Skip to main content

Distributed-Systems

Read Repair and Anti-Entropy
·620 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Foreground repair improves observed keys while background comparison closes the long tail.
Log Replication and the Raft Safety Story
·635 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
A leader commits only entries known to be durable on a quorum, preserving one ordered history.
Saga Coordination Without Mystery
·626 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
A saga is a state machine of forward actions, durable decisions, and explicit compensations.
Version Vectors in Plain Language
·618 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Version vectors distinguish causality from concurrency when one scalar version cannot.
Circuit Breakers Are Not Error Handling
·628 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
A breaker protects a dependency and caller capacity; ordinary failures still require explicit policy.
A Practical Failure Detector
·629 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Failure detectors produce suspicions from imperfect timing; the application decides how costly suspicion may be.
Outbox Pattern for Reliable Event Publishing
·625 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Commit state and an event record together, then publish asynchronously with idempotent delivery.
Exponential Backoff With Jitter
·620 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Jitter breaks synchronized retry waves while caps and deadlines bound recovery cost.
Designing for Partial Failure
·620 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Timeout, retry, fallback, and reconciliation paths are first-class behavior, not exceptional code.
Lease-Based Distributed Locks
·628 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
A lease bounds stale ownership only when fencing tokens protect the resource from expired holders.
Load Shedding as a Correctness Feature
·625 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Rejecting excess work early preserves useful throughput and bounded latency for admitted requests.
Retries, Timeouts, and the Latency Budget
·619 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Retries spend remaining deadline and capacity; they do not create either.
Raft Leader Election From First Principles
·625 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Randomized election timeouts and term monotonicity turn competing candidates into one current leader.
Designing Idempotent Consumers
·622 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Persist the business effect and message identity in one atomic boundary whenever possible.
Consistent Hashing for Practical Sharding
·636 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
A hash ring limits key movement, but load balance still depends on virtual nodes and key distribution.
Exactly Once Is Usually a Local Property
·617 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
End-to-end exactly-once claims decompose into deduplication, atomicity, and replay-safe effects.
Ordering Events in Distributed Systems
·627 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Choose the weakest ordering guarantee the business invariant needs and encode it per entity.
Quorums Without the Hand Waving
·627 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Intersecting read and write quorums provide a reasoning tool, not automatic availability or freshness.
Gossip Protocols and Eventual Membership
·615 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Random peer exchange trades immediate agreement for scalable, failure-tolerant convergence.
Handling Hot Keys Before They Melt a Service
·627 words·3 mins· loading · loading
Distributed-Systems Distributed-Systems Reliability System-Design
Detect skew, isolate the key, coalesce work, and change partitioning only with evidence.