internalsGet Pro

System Design · Module 09

Distributed systems: replication and consistency

Lessons
13
Free
0
Reading
~4 h

Your progress

0 / 13 lessons done

Sign in to track

Lessons

  1. Distributed systems: why they are hardA service can save a change even when its caller sees an error. You need to preserve business rules across those uncertain outcomes, especially when retries and replicas are involved.18 min
  2. Network partitions: when nodes cannot communicateA service can pass health checks while failing to reach its dependencies. You need explicit rules for what it may return, change and retry during that uncertainty.17 min
  3. Logical clocks: ordering events across machinesReplicated services receive updates in different orders. Logical clocks help you preserve dependencies and detect competing edits without trusting machine timestamps.18 min
  4. Replication models: single-leader, multi-leader, leaderlessAdding database copies changes where writes can succeed and what a successful response promises. You need these distinctions when choosing storage, routing reads or planning failover.19 min
  5. Consistency models: from strong to eventualReplicas can return different answers without malfunctioning. You need an explicit contract to decide which differences are acceptable and which can lose an order or mislead a customer.18 min
  6. Read-your-writes consistency: always seeing your own updatesA successful save followed by an old value makes customers doubt whether their change survived. You need a read path that respects completed writes without sending every request to the database leader.18 min
  7. CAP and PACELC: core distributed tradeoffsReplication creates decisions about what to promise when copies cannot communicate. CAP and PACELC help you connect those decisions to customer-visible behavior and normal request latency.18 min
  8. Quorums: how many replicas must agreeReplicated databases let you choose how many responses an operation needs. Those settings change latency, failure tolerance and what a successful response actually promises.20 min
  9. CRDTs: merging concurrent edits without conflictsOffline clients and independently writable replicas can receive conflicting edits. CRDTs let you choose precise merge behavior instead of building ad hoc conflict handlers.19 min
  10. Gossip protocols: sharing state between nodesCluster nodes need changing information about their peers without consulting one server for every request. Gossip spreads that information, but its delays and incomplete views must not become authority for unsafe actions.19 min
  11. Failure detection: telling slow nodes from dead onesClusters must react when a peer stops answering. The difficult part is choosing a reaction that remains safe when the peer is slow, partitioned or still serving other clients.20 min
  12. Service and node discovery in a clusterDeployments change addresses while requests are still arriving. Discovery connects stable service names to changing instances without making every request depend on a registry.19 min
  13. Case: lessons from Amazon’s Dynamo paperReplication moves failures around rather than removing them. Dynamo shows how a product requirement changes the storage contract, application logic and recovery work together.19 min

Practise with

Terms this module teaches 46

Open glossary

Anti-entropy

Repeated comparison and repair of stored replica state to recover differences missed by ordinary update delivery.