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
01
Fundamentals
4 lessons- 1Introduction to System DesignWhat system design is, the building blocks of large systems, functional vs non-functional requirements, and a repeatable framework for system design interviews.beginner3 min
- 2Scalability BasicsVertical vs horizontal scaling, stateless services, the evolution from one server to millions of users, and the bottlenecks you'll hit along the way.beginner4 min
- 3Latency, Throughput & AvailabilityLatency vs throughput, percentiles and tail latency, Little's law, availability nines and SLIs/SLOs/SLAs, and the latency numbers every engineer should know.beginner4 min
- 4Back-of-the-Envelope EstimationQuick capacity estimates for QPS, storage, bandwidth, memory and servers — useful powers of two, worked examples, and the rounding tricks interviewers expect.beginner3 min
02
Building Blocks
8 lessons- 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
- 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
- 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
- 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
- 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
- 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
- 11API DesignDesigning good APIs — REST resources and conventions, pagination, filtering, versioning, idempotency, errors, and when to choose gRPC or GraphQL instead.intermediate3 min
- 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
03
Architecture
3 lessons- 13MicroservicesMonolith vs microservices, how to draw service boundaries, communication styles, API gateways, service discovery, data ownership, sagas, and the real costs of distribution.intermediate4 min
- 14ObservabilityLogs, metrics and traces; the RED and USE methods; percentiles and histograms; distributed tracing with OpenTelemetry; SLIs, SLOs and alerting that doesn't burn people out.intermediate3 min
- 15Reliability PatternsDesigning for failure — redundancy, timeouts, retries with backoff and jitter, circuit breakers, bulkheads, graceful degradation, health checks, and disaster recovery.intermediate4 min
04
Case Studies
5 lessons- 16Case Study: URL ShortenerDesign a TinyURL/bit.ly-style service end to end — requirements, estimates, key generation (base62, counters, hashing), the redirect path, caching, analytics and scaling.intermediate3 min
- 17Case Study: Chat SystemDesign a WhatsApp/Slack-style messenger — persistent WebSocket connections, message routing across servers, storage, ordering, delivery receipts, presence, group chats and push notifications.advanced3 min
- 18Case Study: News FeedDesign a Twitter/Instagram-style home timeline — fan-out on write vs read, the celebrity problem and the hybrid approach, feed caches, ranking, pagination and media.advanced3 min
- 19Case Study: Video StreamingDesign a YouTube/Netflix-style platform — resumable uploads, the transcoding pipeline, adaptive bitrate streaming with HLS/DASH, CDNs, metadata, and view counting.advanced3 min
- 20Case Study: Distributed CacheDesign a Redis/Memcached-style distributed in-memory cache — the single-node core (hash map + LRU), partitioning with consistent hashing, replication, failure handling and hot keys.advanced3 min