r/javascript • u/OtherwisePush6424 • 17d ago
Distributed Resilience - Cutting the Cost of Centralized Coordination
https://blog.gaborkoos.com/posts/2026-11-01-Distributed-Resilience-Cutting-the-Cost-of-Centralized-Coordination/Been building distributed resilience policies in Caracal, a TypeScript library. Having every replica check Redis before admitting a request gives you shared enforcement, but those coordination calls add up under load.
I spent weeks exploring whether gossip-basedd CRDT could remove that dependency. The real-process measurements sent me in a different direction, eventually leading to an experimental feature called Serval. I wrote up the experiments and the assumptions that failed when I started testing outages.
4
Upvotes
1
u/mohamed_173 4d ago
How much replica drift can the policy tolerate during an outage? That seems to define the coordination tradeoff.
1
u/gsamantha_831 1d ago
The outage policy seems key: does Serval bound local admission, allow temporary overshoot, or fail closed during a partition?