Interview Prep

System Design

How large systems are built: the building blocks (load balancers, caches, queues, databases, CDNs), the trade-offs between them, a framework for interviews, and end-to-end case studies.

4 modules 20 lessons ~1 h of reading
Start learning
0/20 completed
02

Building Blocks

8 lessons
  1. 5Load BalancingL4 vs L7 load balancers, balancing algorithms, health checks, session affinity, global load balancing, and avoiding the load balancer as a single point of failure.intermediate3 min
  2. 6CachingWhere to cache, cache-aside, read-through, write-through and write-behind patterns, eviction and TTLs, invalidation, stampedes, hot keys, and consistency pitfalls.intermediate4 min
  3. 7Content Delivery NetworksHow CDNs bring content close to users — edge caching, push vs pull, cache keys and invalidation, dynamic acceleration, edge compute, and security benefits.intermediate3 min
  4. 8Scaling DatabasesA practical playbook — query optimisation, connection pooling, vertical scaling, read replicas, caching, CQRS, partitioning and sharding, and choosing the right database for each job.intermediate3 min
  5. 9Consistent HashingWhy hash mod N breaks when servers change, the hash ring, virtual nodes, replication on the ring, rendezvous hashing, and where consistent hashing is used.intermediate3 min
  6. 10Message Queues & Event StreamingAsynchronous processing with queues and logs — RabbitMQ/SQS vs Kafka, delivery guarantees, idempotency, ordering, dead-letter queues, backpressure, and event-driven architecture.intermediate4 min
  7. 11API DesignDesigning good APIs — REST resources and conventions, pagination, filtering, versioning, idempotency, errors, and when to choose gRPC or GraphQL instead.intermediate3 min
  8. 12Rate LimitingWhy and where to rate limit, the main algorithms (token bucket, leaky bucket, fixed and sliding windows) with code, distributed rate limiting with Redis, and how to communicate limits.intermediate3 min