← All courses
Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
System Design Architect · course 2Hard

Distributed Architecture

The second course of the System Design Architect track. Foundations of Scale taught you to add servers, caches and replicas; this course teaches you what breaks when the data itself no longer fits on one machine or in one region. You will draw service boundaries, model data around access patterns, shard and replicate it, pick consistency models and quorums with your eyes open, coordinate with consensus and sagas, build search and geospatial indexes, order events without a shared clock, merge concurrent edits, and run a system across continents with numbers to back every decision. Ten challenges, four of them capstones, let you test each idea on the canvas.

0/24 lessons · 0/10 challenges0%
Start lesson 1
  1. 1

    API design and service boundaries

    18 min

    Design APIs that survive growth, and draw service boundaries around data ownership rather than nouns.

    Practice
    1. 1/10Design a Task Tracker APIPractise resource-oriented API design with cursor pagination and idempotent writes behind a stateless service.Easy
  2. 2

    Monolith vs microservices

    16 min

    When splitting a system into services pays off, what it costs, and how to migrate without a rewrite.

  3. 3

    API gateways and service mesh

    18 min

    Centralise cross-cutting concerns at the edge with a gateway and between services with a mesh.

    Practice
    1. 2/10Design an API Gateway PlatformCentralise authentication, routing, rate limiting and observability for 40 services without making the gateway a bottleneck.Medium
  4. 4

    Data modelling for scale

    20 min

    Model data from access patterns, choose partition keys deliberately, and denormalise where reads demand it.

  5. 5

    Storage engines: B-trees and LSM trees

    20 min

    How databases lay data on disk, and why that choice shapes write throughput, read latency and space.

  6. 6

    Partitioning and sharding strategies

    20 min

    Split data across machines by range, hash or directory, and rebalance without downtime.

  7. 7

    Consistent hashing

    16 min

    Map keys to nodes so that adding or removing a node moves only a small fraction of the data.

  8. 8

    Replication topologies

    20 min

    Leader/follower, multi-leader and leaderless replication: who accepts writes and what that costs.

  9. 9

    Consistency models

    18 min

    Linearizability, sequential, causal, read-your-writes and eventual consistency, and what users actually notice.

  10. 10

    CAP and PACELC

    15 min

    What the CAP theorem actually says, why PACELC is more useful day to day, and how to place real databases.

  11. 11

    Quorums

    16 min

    Tune N, W and R to trade latency, durability and consistency, and learn where quorums leak.

  12. 12

    Consensus with Raft

    22 min

    How a cluster agrees on a single ordered log despite failures, and when your design needs that.

  13. 13

    Time, clocks and ordering

    20 min

    Why wall clocks lie across machines, and how logical, vector and hybrid clocks order events safely.

  14. 14

    Distributed transactions and sagas

    22 min

    Two-phase commit, why it blocks, and how sagas with compensations keep multi-service workflows correct.

    Practice
    1. 3/10Design a Hotel Booking SystemPrevent double booking with transactional holds and sagas while keeping availability search fast.Medium
  15. 15

    Idempotency and the exactly-once illusion

    18 min

    Networks force retries; idempotent operations and deduplication make retries safe.

    Practice
    1. 4/10Design an Inventory ServiceKeep stock counts exact under concurrent orders using conditional updates, reservations and idempotent events.Medium
  16. 16

    Secondary indexes and search

    20 min

    Local versus global secondary indexes, inverted indexes for full-text search, and keeping them in sync.

    Practice
    1. 5/10Design Product SearchBuild a sharded inverted index with facets, fed from catalogue changes by change data capture rather than dual writes.Medium
  17. 17

    Geospatial indexing

    18 min

    Find things near a point fast with geohashes, quadtrees and hexagonal grids.

    Practice
    1. 6/10Design a Nearby Places ServiceAnswer radius queries quickly with a geospatial index, neighbouring-cell lookups and cached hot areas.Medium
  18. 18

    Caching in distributed systems

    18 min

    Cache clusters, invalidation across services, stampedes, hot keys and the consistency they cost.

    Challenge checkpoint
    1. 7/10Design Ride-Hailing DispatchCombine in-memory geospatial partitioning, distributed caching and linearizable assignment so each driver gets exactly one trip.MAJORHardPRO
  19. 19

    Conflict resolution

    16 min

    When concurrent writes collide: last-write-wins, merges, application logic and avoiding conflicts in the first place.

  20. 20

    CRDTs and operational transformation

    22 min

    The two families of algorithms behind real-time collaboration and offline sync.

    Challenge checkpoint
    1. 8/10Design a Collaborative Document EditorApply CRDTs or OT, per-document session routing and a durable operation log to make concurrent edits converge.MAJORHardPRO
  21. 21

    Multi-region architecture

    22 min

    Active-passive versus active-active, the physics of cross-region latency, and how data follows users.

  22. 22

    Global traffic management

    16 min

    Steer users to the right region with GeoDNS, anycast and health-aware routing, and fail over fast.

    Challenge checkpoint
    1. 9/10Design a Multi-Region Active-Active StoreRun writable profiles in three regions with replication, conflict resolution, failover headroom and global traffic routing.MAJORHardPRO
  23. 23

    Erasure coding and durability maths

    22 min

    How storage systems promise eleven nines, the cost of replication versus erasure coding, and why repair speed matters.

  24. 24

    Capstone: putting distributed architecture together

    25 min

    A repeatable method for hard design problems, and a checklist that ties every lesson in this course together.

    Challenge checkpoint
    1. 10/10Design an Object Storage ServiceReach eleven nines with erasure coding across failure domains, a consistent metadata service and multipart uploads.MAJORHardPRO