Systems and Delays

https://martin.janiczek.cz/2026/07/24/systems-and-delays.html

Comments

dognotdogJul 26, 2026, 2:08 AM
In terms of control theory, the order "delay" is actually a simple filter. What leads to bad outcomes is exactly the described scenario, when the control response too fast for the system, overcorrecting and oscillating. Increasing the order filtering dampens the control response.
milanhbsJul 26, 2026, 2:10 AM
For people interested in the related math, "Nonlinear Dynamics and Chaos" by Steven Strogatz is a great book! Pdfs abound online.
AvicebronJul 26, 2026, 2:35 AM
Or if you want something lighter but still fascinating "Sync" by Steven Strogatz is also good :)
bloafJul 26, 2026, 4:06 AM
Reminds me of this piece I read on hacker news over a decade ago:

https://mcfunley.com/whom-the-gods-would-destroy-they-first-...

aryehofJul 26, 2026, 5:31 AM
It strikes me that a problem with this analysis is with the modeled example system itself. The assumption that stock should follow immediately preceding demand is valid but typically wrong.

Pursuing the intellectual mechanics of a system is obscuring the error of the wrong system!

Instead stock levels should take into account lead time, historical seasonal demand, and a subjective value. The observation and order frequency should be in months not days. While computing allows near “real time” everything, that doesn’t mean it should necessarily be applied.

Just-in-time thinking needs to take the reality of the system (in this case the supply chain) and other factors like hedging opportunities?

belZaahJul 26, 2026, 6:28 AM
It’s a simplified example of a broader principle. This structure shows how oscillation can emerge from a very simple system and how it can be remedied by adjustments of the delays. Oscillating systems are very much a thing and this explains why.

By the way, what you said about stock levels is correct, of course, but doesn’t necessarily avoid oscillations. See, all of these metrics are feedback-based as well. With a delay. How much history do we take into account? Are account lead times influenced by delivery times. This is a classic problem in system dynamics: where do we draw the system boundary? Since everything is connected to everything, the right thing to do is to model the entire universe. Since this is not practical, we draw a line _somewhere_. _Where_ exactly does not matter much as long as the resulting model is useful.

wonnageJul 26, 2026, 5:59 AM
It applies to software engineering too in things like autoscaling. I’ve seen many DDOS outages caused not by the attack itself but the wave of autoscaling that takes things down (often well after the actual attack ended).
skybrianJul 26, 2026, 3:16 AM
I think the source of confusion is that the "response delay divisor" isn't a delay at all. This parameter is the inverse of amplification. If you dampen a signal more then it will oscillate less.
sigbottleJul 26, 2026, 3:30 AM
Do people actually do systems design with control theory? I know the authoritative question to possibility - yes, my company does it. But I'm wondering about say, an industry standard formalism to it, such as like how DDIA is household
jandrewrogersJul 26, 2026, 3:58 AM
Somewhat, but for distributed systems I’ve found game theory to be more useful. Which does end up looking like high-order control theory in many cases.
taneqJul 26, 2026, 7:15 AM
It’d be nice but in my experience I’ve seldom seen that much thought put into it, even with actual literal control systems. Unless you’re doing something interesting in robotics or aerospace, most stuff gets solved with logic sequences and maybe some PIDs.
mwcremerJul 26, 2026, 2:05 AM
pjotJul 26, 2026, 3:47 AM
po1ntJul 26, 2026, 12:37 PM
This all sound like PID tuning guide
agumonkeyJul 26, 2026, 2:40 PM
Beside system theory, were there other fields studying the relationship between sampling data rate en stability ?
inferhavenJul 26, 2026, 1:07 AM
very interesting read, key takeaway, delays are not always bad! Definitely something to think about in 2026
Studui81LabsJul 26, 2026, 11:01 AM
[flagged]