Distributed Systems
Gossip membership
Gossip membership spreads liveness news between random peers. SWIM detects failures with indirect probes and spreads changes on existing messages, trading detection speed against false alarms.
What you will be able to do
- Explain how indirect probes and suspicion reduce false failure reports.
- Decide how to tune detection time against false alarms on a real network.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Distributed Systems
- Two phase commitAdvanced · 4 min
Two-phase commit lets several databases commit or abort together. A yes vote binds each participant, which is why a coordinator failure can leave locks held until a…
- CRDT merge rulesAdvanced · 4 min
CRDTs let replicas update independently and merge later without a coordinator. The merge rule decides which change wins, and a timestamp-based rule can silently drop a…
- Backpressure propagationAdvanced · 4 min
Backpressure lets a slow consumer slow its producer by signaling demand upstream. Without a bound on the buffer between stages, the surplus turns into memory growth…
- FLP impossibilityAdvanced · 4 min
The FLP result says no deterministic consensus protocol can guarantee agreement in an asynchronous system if one process may crash. Practical systems keep safety and…
- Leases: failure analysisAdvanced · 4 min
A lease grants a role for a limited time, but a paused holder can act after the grant has moved on. Fencing tokens let the storage layer reject writes from stale holders.
- Idempotency keys: operational verificationAdvanced · 4 min
An idempotency key lets a server recognize a repeated request and return the saved result instead of running the operation again. The key must identify one logical…