Distributed Systems
4 guides tagged “Distributed Systems”.
- What Is the Outbox Pattern? Writing to the database and sending a message are two operations that cannot both be atomic. The outbox pattern makes the message a database row first, then delivers it reliably.
- What Is a Distributed Lock? A distributed lock gives one process exclusive access to a resource across machines. It is easy to implement badly and hard to get right, so here is what it guarantees and where it fails.
- What Is Sharding? Sharding splits one large dataset across several databases so no single machine has to hold it all. It is a last resort, and the shard key is the decision you live with.
- What Is a Saga Pattern (and How Is It Different From Two-Phase Commit)? Sagas coordinate a multi-service operation through local transactions and compensating actions; two-phase commit uses a coordinator that blocks. Which one fits depends on consistency needs.