ankan (@ankandas99) header
ankan (@ankandas99) profile picture

Software Dev | Sharing insights on code, architecture & all things software | Distributed Systems | Building a journey in tech one project at a time 🌐 #DevLife

Bangalore
Joined June 2018
Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)Photo by ankan (@ankandas99)
Failure Mode Friday: one real distributed systems failure per week, and how it actually gets fixed. First up - the retry storm, one of the most common ways a small slowdown turns into a full outage.
1
14
The uncomfortable truth: a retry storm is often self-inflicted by the very resilience mechanism meant to prevent outages. Naive retries look like they're making the system more reliable, right up until the moment they take it down.
1
5
If you're building sth with client-server retries - API clients, service mesh configs, job queues - the question worth asking isn't "do we retry on failure," it's "what happens if every client retries at the exact same moment." That's the scenario that actually breaks systems.
5
Every distributed system that needs to agree on "what happened, in what order" eventually runs into the same problem: consensus. etcd solves it with Raft. Here's what that actually costs you in practice.
1
9
The tradeoff underneath all of this: Raft chooses consistency over availability during a partition. It is, by design, a CP system. A minority partition can't elect a leader and can't accept writes — by design, not by bug.
1
2
The lesson for anyone building on top of etcd, Consul, or any Raft-based store: don't put anything on the hot path that can't tolerate a multi-hundred-millisecond stall during leader failover. That's not a corner case — it's the protocol working correctly.
2