The Saga Pattern Explained
How the saga pattern coordinates long running business transactions across services using local commits and compensating actions instead of distributed two phase commit.
8 posts · page 1 of 1
How the saga pattern coordinates long running business transactions across services using local commits and compensating actions instead of distributed two phase commit.
A pragmatic look at the CAP theorem: what consistency and availability mean for real workloads, and how PACELC describes the trade-offs better.
How consistent hashing actually works in production: virtual nodes, rebalancing, hot keys, and why naive modulo hashing fails at scale.
A senior-engineer guide to designing rate limiters: algorithms, distributed coordination, trade-offs, and production patterns that actually scale.
A practical look at distributed locking with Redis: SET NX EX, Redlock, fencing tokens, and the failure modes that cause data corruption.
What ACID and BASE actually mean, where each shines, and how to reason about consistency, availability, and durability when you design data systems.
Design a distributed cache using consistent hashing, replication, and eviction policies to speed up reads at internet scale.
Design a distributed rate limiter using the token bucket algorithm with Redis, handling bursty traffic while protecting backend services.