System Design
Design systems that scale and stay up: estimates, load balancing, caching, databases, queues, reliability.
Start reading
7 pages
System Design in seven pages
- 1On requirements and estimatesRequirements come before boxes and arrows
- 2On scaling and load balancingScale up first, then scale out
- 3On caching and CDNsA cache trades freshness for speed
- 4On databases, replication and shardingStart with a relational database
- 5On consistency and transactionsA transaction is all or nothing, in one database
- 6On queues and eventsA queue lets slow work happen later
- 7On reliabilityEvery remote call needs a timeout
- ?Quiz8 questions to check it stuck
Sources
Facts checked 2 December 2026 against:
- Google SRE Book: Availability table
- Google SRE Book: Service Level Objectives
- Google SRE Book: Monitoring Distributed Systems
- Google SRE Book: Load Balancing in the Datacenter
- Google SRE Book: Handling Overload
- Google SRE Book: Addressing Cascading Failures
- Amazon Builders' Library: Timeouts, retries, and backoff with jitter
- Amazon Builders' Library: Implementing health checks
- AWS Well-Architected Reliability Pillar: Availability
- Stripe: Designing robust and predictable APIs with idempotency
- Stripe: Scaling your API with rate limiters
- Dynamo: Amazon's Highly Available Key-value Store (DeCandia et al., 2007)
- Martin Kleppmann: Please stop calling databases CP or AP
- Consistency Tradeoffs in Modern Distributed Database System Design (Abadi, 2012)
- Azure Architecture Center: Cache-Aside pattern
- Azure Architecture Center: Sharding pattern
- Azure Architecture Center: Saga pattern
- Azure Architecture Center: Circuit Breaker pattern
- Azure Architecture Center: Understand data models
- PostgreSQL documentation: High Availability, Load Balancing, and Replication
- AWS Prescriptive Guidance: Transactional outbox pattern
- Amazon SQS Developer Guide: Standard queues
- Amazon SQS Developer Guide: Dead-letter queues
- Apache Kafka: Introduction
- Cloudflare docs: Origin Cache Control
- Cloudflare docs: Default cache behavior
- Amazon CloudFront Developer Guide: What is Amazon CloudFront?
- OpenTelemetry: Signals
- Latency Numbers Every Programmer Should Know (Colin Scott, after Jeff Dean)