Skip to content

Practice and self-review

Practice System Design

Practice System Design. Diagnose readiness, trace resource models and review your designs with explicit criteria. Read the explanation and worked decisions.

Published date · Author's judgment

More
20px

Diagnose the decision, then choose a prerequisite

Try each prompt before checking. Each explanation links to a concept to revisit; these questions are a study aid, not a validated professional-level score.

A pool has four servers with a hypothetical safe budget of 100 requests/s each. Peak is 350 requests/s. Can it sustain peak after one server fails?

Revisit Back-of-Envelope Capacity Estimation

Normal cache hits are 90%. What origin load should a recovery review consider?

Revisit Distributed Caching & Stampede Prevention

Payment submission times out after the provider might have accepted it. What is the safest next design step?

Revisit Idempotency Keys & Distributed Retries

A publisher has ten million followers. What does eager fan-out create for one post?

Revisit Distributed News Feed Architecture

A cached answer contains tenant-private evidence. Can another tenant receive it because its question text matches?

Revisit Security Architecture, Zero-Trust & Multi-Tenancy

An older event arrives after a result was marked final. What should the system do?

Revisit Real-Time Stream Processing Engine (Apache Flink Internals)

Six timed design sessions

Each session suggests 45 minutes, introduces a changed condition around minute 20 and supplies an explicit self-review. The timer is optional; it does not grade your prose.

  1. Short links under an abusive hot key
  2. Chat across a gateway restart
  3. Payments with uncertain provider responses
  4. Notifications under provider throttling
  5. Video publication with stale encoders
  6. Reservations under concurrent checkout

A tenant-isolated event registration platform

Workload estimator

Hypothetical payload model: daily operations = users × operations/user; average = daily / 86,400; peak = average × selected peak factor; payload bandwidth = peak × bytes/operation.

Trace an LRU cache

Every miss in this simplified trace requests the origin. There is no TTL, concurrent miss coalescing or authorization model. Cache order is shown oldest to newest.

Move a token on a placement ring

Tokens A=20, B=60 and C=90 own numeric key positions clockwise, wrapping after 99. Add owner D at an unused token. The exercise starts from already hashed positions and does not model replicas, migration or failure.

Your review queue

  • Enable JavaScript to show locally saved review flags.
All chapter exercises
  1. Back-of-Envelope Capacity Estimation
  2. Latency Numbers & Networking Foundations
  3. Load Balancing & API Gateways
  4. SQL vs. NoSQL vs. NewSQL Storage Engines
  5. Indexes & Storage Engines: B-Trees vs. LSM Trees
  6. Distributed Caching & Stampede Prevention
  7. Message Queues & Event Streams: Kafka vs. RabbitMQ
  8. Consistency Models: CAP, PACELC & Linearizability
  9. Database Sharding & Consistent Hashing
  10. Replication, Consensus & Automated Failover
  11. Rate Limiting Algorithms: Token Bucket to Sliding Window
  12. Idempotency Keys & Distributed Retries
  13. Monolith vs. Microservices Architecture
  14. Service Discovery & Service Mesh Architecture
  15. Observability, Distributed Tracing & Error Budget SLOs
  16. Timeouts, Circuit Breakers & Backpressure
  17. Distributed Consensus: Raft & Multi-Paxos
  18. Distributed Transactions: 2PC vs. Saga Orchestration
  19. Event Sourcing & CQRS Architecture
  20. Time, Clocks & Distributed Ordering: Lamport to TrueTime
  21. CDN Architecture, Anycast & Edge Compute
  22. Security Architecture, Zero-Trust & Multi-Tenancy
  23. URL Shortener Architecture
  24. Real-Time Distributed Chat System
  25. Distributed News Feed Architecture
  26. High-Throughput Ledger & Payment Gateway
  27. Video Streaming Platform Architecture
  28. Search Engine & Real-Time Typeahead
  29. Ride-Hailing & Geospatial Matching
  30. Real-Time Collaborative Editing
  31. Enterprise RAG System Architecture & Failure Modes
  32. High-Throughput LLM Inference Serving
  33. Autonomous Agent Orchestration Platform
  34. AI Evaluation, Red-Teaming & Observability Pipeline
  35. Enterprise AI Gateway: Routing, Semantic Caching & Guardrails
  36. Enterprise Copilot Platform: Full Architecture (Capstone)
  37. Distributed Unique ID Generator (Twitter Snowflake Scale)
  38. Distributed Lock Manager (etcd / ZooKeeper / Chubby Internals)
  39. Distributed Task & Cron Scheduler (Temporal / Quartz Scale)
  40. Distributed Blob & Object Storage (Amazon S3 Scale)
  41. Distributed File Systems (GFS / HDFS / Colossus Architecture)
  42. In-Memory Distributed Key-Value Store (Redis Cluster / Memcached)
  43. Time-Series Database Engine (Prometheus / InfluxDB / Gorilla)
  44. Graph Database & Authorization Engine (Google Zanzibar / Meta TAO)
  45. Change Data Capture (CDC) & Outbox Pipelines (Debezium Scale)
  46. Real-Time Stream Processing Engine (Apache Flink Internals)
  47. Real-Time OLAP & Columnar Analytics (ClickHouse / Apache Pinot)
  48. Modern Data Lakehouse Architecture (Apache Iceberg / Delta Lake)
  49. Large-Scale Log Aggregation & Search Pipeline (Datadog / Splunk Scale)
  50. Feature Store Architecture for Real-Time ML (Feast / Tecton Scale)
  51. Vector Database Internals (Milvus / Qdrant / pgvector Scale)
  52. Distributed Web Crawler
  53. Notification & Omnichannel Push System
  54. Cloud File Sync & Sharing Service
  55. High-Concurrency Ticket Booking System
  56. Flash Sale & E-Commerce Inventory Engine
  57. Hotel & Flight Reservation System
  58. Ad Click Aggregation & Real-Time Bidding (RTB)
  59. Real-Time Gaming Leaderboard
  60. Proximity Service & Business Discovery
  61. Food Delivery & Multi-Hop Logistics
  62. Stock Exchange & Low-Latency Order Matching Engine
  63. Cloud CI/CD & Ephemeral Container Execution
  64. Multi-Region Active-Active Architecture & Disaster Recovery
  65. Distributed Webhooks & Event Delivery Platform
  66. Real-Time Voice & Multimodal AI Streaming
  67. AI Code Indexing & Repository Context Engine
  68. Large-Scale Model Training & Checkpoint Infrastructure
  69. Multi-Tenant SaaS Control Plane & Usage-Based Metering