News for hackers. Stuff that matters.
Re:Ask HN: When should event-driven architecture be avoided? by busterarm on Friday February 04, 2022 @10:11AM (#30207703)
This is just software engineers failing to have taken classic basic engineering courses during their education. These are basic problems that control systems deal with and you have things like PID that to other engineering disciplines are obvious.

The amount of times I've seen software clearly want to have a form of PID controller and fail to realize that such a thing even exists are countless.

Re:Ask HN: When should event-driven architecture be avoided? by dc-programmer on Friday February 04, 2022 @11:43AM (#30209148)
Do you have any recommendations for resources that map control theory to web services? I find the idea really interesting. I have two questions though

How well do controllers work with non-numerical inputs? I would assume the usual use cases involve numerical data from sensors.

Does it work well with applications where the importance of availability supersedes consistency? When I hear controller, I can’t help but think single point of failure

Re:Ask HN: When should event-driven architecture be avoided? by busterarm on Friday February 04, 2022 @12:58PM (#30210215)
You might want to apply it to the scaling of web services rather than the fine details of the application itself. I think you would want to focus on the areas where you can reduce your variables to simple numerics.
Re:Ask HN: When should event-driven architecture be avoided? by dc-programmer on Friday February 04, 2022 @01:09PM (#30210373)
That does make sense, but isn’t that what container orchestration services do for you?
Re:Ask HN: When should event-driven architecture be avoided? by busterarm on Friday February 04, 2022 @02:21PM (#30211615)
Not very effectively yet, in my experience. Also, "throw more compute at it" is much simpler in complexity to something like PID. We don't have good orchestration yet for automating changes of multiple variables.

/s orchestrating workloads on 10^5 hosts.