Learning track
System Design
From one server to planet scale.
Networking, caching, databases, distributed consensus and real-world architectures, with live simulations of how systems behave under load.
Fundamentals
How the internet actually works
Networking, protocols, APIs, estimation and the core qualities of a system: scalability, availability and performance.
What is System Design?
Functional vs non-functional requirements, trade-offs, and a repeatable framework for design interviews.
How the Web Works
What happens when you type a URL: DNS, TCP, TLS, HTTP, rendering and everything in between.
Networking Essentials
The OSI and TCP/IP models, IP addressing, TCP vs UDP and the three-way handshake.
HTTP, HTTPS & TLS
Methods, status codes, headers, HTTP/1.1 vs HTTP/2 vs HTTP/3, and how TLS secures it all.
API Design: REST, GraphQL & gRPC
Design clean, versioned, paginated APIs and choose between REST, GraphQL and gRPC.
Real-time Communication
Short polling, long polling, Server-Sent Events and WebSockets compared.
Back-of-the-Envelope Estimation
Latency numbers every engineer should know, powers of two, and estimating QPS, storage and bandwidth.
Scalability
Vertical vs horizontal scaling, stateless services and the path from one server to millions of users.
Availability & Reliability
Nines, SLAs/SLOs/SLIs, redundancy, failover, and computing availability of whole systems.
Latency, Throughput & Percentiles
Measure performance properly: p50/p99 latency, throughput, Little's Law and tail latency.
Building Blocks
The components of every system
DNS, load balancers, caches, databases, queues and the other Lego bricks you compose into real architectures.
Domain Name System (DNS)
How names become IP addresses: resolvers, root and TLD servers, record types, TTLs and GeoDNS.
Load Balancing
Distribute traffic across servers: algorithms, L4 vs L7, health checks and sticky sessions.
Proxies & API Gateways
Forward vs reverse proxies, and API gateways for routing, auth, rate limiting and aggregation.
Content Delivery Networks
Serve content from the edge: push vs pull CDNs, cache keys, invalidation and edge compute.
Caching
Cache-aside, write-through, write-back, eviction policies, invalidation and stampede protection.
SQL vs NoSQL Databases
Relational, key-value, document, wide-column and graph databases, and how to choose.
Database Indexing
B-tree and hash indexes, composite and covering indexes, and LSM trees vs B-trees.
Database Replication
Leader-follower, multi-leader and leaderless replication; sync vs async and replication lag.
Sharding & Partitioning
Split data across machines: range, hash and directory partitioning, hot spots and rebalancing.
Consistent Hashing
Place servers and keys on a ring so adding a node moves only K/N keys; virtual nodes for balance.
Message Queues & Pub/Sub
Decouple services with queues and logs: Kafka, RabbitMQ, consumer groups and backpressure.
Blob & Object Storage
Store files at scale: S3-style object stores, block vs file vs object storage, and pre-signed URLs.
Search Systems
Inverted indexes, tokenisation, TF-IDF/BM25 ranking and how Elasticsearch scales search.
Rate Limiting
Token bucket, leaky bucket, fixed and sliding windows, and distributed rate limiting.
Unique ID Generation
UUIDs, database sequences, ticket servers and Twitter Snowflake IDs.
Distributed Systems
Many machines, one system
CAP, consistency, consensus, quorums, clocks and failure detection: the theory that keeps distributed systems correct.
CAP Theorem & PACELC
During a partition you must choose consistency or availability, and latency trades off even without one.
Consistency Models
Linearizability, sequential, causal, read-your-writes and eventual consistency.
ACID, BASE & Isolation Levels
Transactions, isolation anomalies (dirty reads, phantoms, write skew) and MVCC.
Distributed Transactions
Two-phase commit, three-phase commit and the Saga pattern with compensating actions.
Consensus: Raft & Paxos
How a cluster agrees on one value: leader election, log replication and safety.
Quorums & Leaderless Replication
N, R and W: tunable consistency, sloppy quorums, hinted handoff and read repair.
Bloom Filters & Probabilistic Structures
Bloom filters, Count-Min Sketch and HyperLogLog: huge memory savings for a little uncertainty.
Heartbeats & Gossip Protocols
Detect failed nodes and spread cluster state epidemically, as Cassandra and Consul do.
Time, Clocks & Ordering
Why wall clocks lie: Lamport timestamps, vector clocks and hybrid logical clocks.
Idempotency & Delivery Guarantees
At-most-once, at-least-once and effectively-once delivery, idempotency keys and deduplication.
Architecture Patterns
Shapes of real systems
Microservices, event-driven designs, resilience patterns, observability and security: how production systems are organized.
Monoliths vs Microservices
When to split a system, how services communicate, and the costs of distribution.
Event-Driven Architecture, CQRS & Event Sourcing
Build systems around events: choreography vs orchestration, CQRS read models and event stores.
Service Discovery & Service Mesh
How services find each other: client vs server-side discovery, registries and sidecar proxies.
Resilience Patterns
Timeouts, retries with backoff and jitter, circuit breakers, bulkheads and graceful degradation.
Observability
Logs, metrics and traces; RED/USE methods, distributed tracing and alerting on SLOs.
Authentication & Security
Sessions vs JWTs, OAuth 2.0 and OIDC, hashing passwords, and defending against common attacks.
Containers & Orchestration
Docker, Kubernetes, autoscaling and deployment strategies like blue-green and canary.
Batch & Stream Processing
MapReduce, Spark, Flink, windowing and the Lambda vs Kappa architectures.
Case Studies
Design real systems end to end
Interview-style designs of well-known systems: requirements, estimates, APIs, data models, architecture and deep dives.
Design a URL Shortener
TinyURL/bit.ly: ID generation, base62 encoding, redirection and caching hot links.
Design a News Feed
Twitter/Instagram timelines: fan-out on write vs read, ranking and the celebrity problem.
Design a Chat System
WhatsApp/Slack: WebSocket gateways, message ordering, delivery receipts, presence and group chat.
Design a Video Streaming Platform
YouTube/Netflix: upload pipelines, transcoding, adaptive bitrate streaming and CDNs.
Design a Ride-Sharing Service
Uber/Lyft: location updates, geohashes and quadtrees, matching drivers and surge pricing.
Design a Web Crawler
Crawl billions of pages politely: URL frontier, deduplication, robots.txt and distributed workers.
Design Search Autocomplete
Typeahead suggestions in under 100 ms: tries with top-k caching and data collection pipelines.
Design a Notification System
Push, SMS and email at scale: fan-out workers, templates, preferences, retries and rate limits.
Design a Distributed Key-Value Store
Dynamo-style: partitioning, replication, quorums, vector clocks, Merkle trees and anti-entropy.
Design Cloud File Storage
Google Drive/Dropbox: chunking, deduplication, sync conflicts and metadata databases.
Design a Payment System
Stripe-like payments: idempotency, double-entry ledgers, reconciliation and exactly-once money movement.
Design a Ticket Booking System
Ticketmaster/BookMyShow: seat holds, high-contention inventory, virtual waiting rooms.