Skip to content
About
Main content
Recurring principle

Local optimizations compose badly

Identical mechanisms at adjacent layers do not add up. They interfere.

What it is

The general lesson: identical mechanisms at adjacent layers do not add up. They interfere. The lower layer's batching is defeated by the upper layer's batching. Expect the same with caches, retries and batching.

From Physical Substrate & Performance Laws › Disk and flash

Layered optimizations compose badly. Nagle plus delayed ACK is the standard case, but the pattern is general: buffering at two layers, framing disagreement between two hops, compression at two levels. When you add a mechanism at one layer, ask what the layer below already does.

From Data Movement › Zero-copy, Nagle, TLS

Timeout budgets show the general shape, and it recurs: timeout ordering is a global invariant, and each team can edit only a local configuration. No amount of local correctness produces it, because correctness is a property of the composition and nobody owns the composition. This is the same structure as the retry-budget problem: each tier's retry count is safe alone and lethal composed. The only fixes are:

From Emergent Failure Dynamics › Timeout cascade

Where it appears

In 7 mechanisms. Each says what the mechanism is about, then how this principle shows up there, in its own words.

Made on the same pages most often.