Course

System Design Fundamentals

Learn how big software systems are planned, step by step. Each topic has an easy example, a real-world example, colourful diagrams and, where it helps, a visualizer you can play with.

Topics
311
Ready now
311
Reading time
77h 31m
Parts
10
x
0/311 done

Part 1: Foundations

The big ideas, the network basics and the first building block (load balancers). Start here.

Introduction

9 topics

Core Concepts

13 topics
Scalability
Beginner

Handling more users and more data by adding resources, without breaking.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Availability
Beginner

How much of the time your system is up and working. Measured in nines.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Reliability
Beginner

Giving the right answer, every time, even when parts fail.

⏱ 12 minMust KnowVisualizer
Single Point of Failure (SPOF)
Beginner

One part that, if it breaks, stops the whole system.

⏱ 10 minMust KnowInterview FavouriteVisualizer
Latency vs Throughput vs Bandwidth
Beginner

Three different ways to talk about 'fast'. Do not mix them up.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Consistent Hashing
Intermediate

Spread data over servers so adding or removing a server moves very little data.

⏱ 15 minInterview FavouriteVisualizer
CAP Theorem
Intermediate

When the network breaks, a distributed system must choose: stay consistent or stay available.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Fault Tolerance and Redundancy
Beginner

Keep working when parts break, by having spare copies of everything important.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Failover
Intermediate

Switch to a backup when the main system fails: active-passive and active-active.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Stateless vs Stateful
Beginner

Does the server remember you between requests? This choice decides how easily you can scale.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Concurrency vs Parallelism
Intermediate

Juggling many tasks versus doing many at once, and the bugs it brings: race conditions and deadlock.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Capacity Planning
Intermediate

Work out how much hardware you will need before the traffic arrives.

⏱ 12 minInterview FavouriteVisualizer
Back Pressure
Intermediate

When a consumer is too slow, push back on the producer instead of letting everything pile up.

⏱ 12 minInterview FavouriteVisualizer

Networking

12 topics
OSI Model
Beginner

Seven layers that explain how a message travels from your app to another computer.

⏱ 14 minMust KnowVisualizer
IP Address
Beginner

The street address of a device on a network. IPv4, IPv6, public, private and subnets.

⏱ 12 minMust KnowVisualizer
TCP vs UDP
Beginner

Safe and ordered, or fast and light? Two ways to send data.

⏱ 13 minMust KnowInterview FavouriteVisualizer
HTTP / HTTPS
Beginner

The language browsers and servers use to talk, and how HTTPS keeps it secret.

⏱ 14 minMust KnowInterview FavouriteVisualizer
DNS
Beginner

The phone book of the internet: turns names like google.com into IP addresses.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Proxy vs Reverse Proxy
Beginner

A middle-man for clients, versus a middle-man for servers.

⏱ 11 minInterview FavouriteVisualizer
Checksums
Intermediate

A small number that helps you check if data was changed or damaged.

⏱ 10 minVisualizer
HTTP/1.1 vs HTTP/2 vs HTTP/3
Intermediate

How HTTP got faster: reusing connections, multiplexing, and QUIC over UDP.

⏱ 14 minInterview FavouriteVisualizer
Cookies and CORS
Intermediate

How browsers remember you, and the rules that decide which websites may call which servers.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Subnets, CIDR and NAT
Intermediate

Carve a network into pieces, write address ranges the short way, and share one public IP.

⏱ 14 minVisualizer
Firewalls and VPN
Beginner

Rules that block unwanted traffic, and a private tunnel across the public internet.

⏱ 12 minVisualizer
Ports and Sockets
Beginner

The door numbers on a machine, and the connections that pass through them.

⏱ 12 minMust KnowVisualizer

Load Balancing

9 topics

Part 2: APIs and Communication

How programs talk to each other: API design, keeping APIs safe, real-time updates and background messaging.

API Design

10 topics

API Security

11 topics
Rate Limiting
Intermediate

Limit how many requests one user can make, so nobody can overload the system.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Authentication vs Authorization
Beginner

Who are you? And what are you allowed to do?

⏱ 11 minMust KnowInterview FavouriteVisualizer
Session vs Token Based Auth
Intermediate

Does the server remember you, or do you carry a pass?

⏱ 13 minInterview FavouriteVisualizer
JWT
Intermediate

A signed pass with your details inside, which a server can check without a database.

⏱ 14 minMust KnowInterview FavouriteVisualizer
OAuth / OAuth2
Intermediate

Let an app use your account safely, without ever giving it your password.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Single Sign-On (SSO)
Intermediate

Log in once, and use many apps.

⏱ 12 minInterview FavouriteVisualizer
API Keys
Beginner

A simple secret that tells an API which app is calling, and how to handle it safely.

⏱ 11 minMust KnowInterview FavouriteVisualizer
OpenID Connect (OIDC)
Intermediate

The login layer on top of OAuth2: it tells an app who the user is.

⏱ 14 minMust KnowInterview FavouriteVisualizer
CSRF
Intermediate

A trick that makes your browser send a request you never meant to send, and how to stop it.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Input Validation
Beginner

Never trust what arrives: check and clean every input, to stop injection and bad data.

⏱ 13 minMust KnowInterview FavouriteVisualizer
mTLS and Request Signing (HMAC)
Advanced

Prove who is calling and that the message was not changed, using certificates or signatures.

⏱ 14 minInterview FavouriteVisualizer

Real-Time Communication

8 topics

Asynchronous Communication

11 topics
Message Queues
Beginner

A line of tasks waiting for a worker, so users do not have to wait.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Pub/Sub
Intermediate

Publish once and every subscriber gets a copy.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Message Brokers
Intermediate

The post office that stores, routes and delivers messages (Kafka, RabbitMQ, SQS).

⏱ 14 minInterview FavouriteVisualizer
Delivery Semantics
Advanced

At most once, at least once or exactly once: what a message promise really means.

⏱ 14 minInterview FavouriteVisualizer
Dead Letter Queues
Intermediate

A safe place for messages that keep failing, so they do not block everyone else.

⏱ 10 minVisualizer
Kafka Deep Dive
Advanced

Topics, partitions, offsets and consumer groups: how Kafka stores and delivers a huge stream of events.

⏱ 17 minMust KnowInterview FavouriteVisualizer
Retries with Backoff
Intermediate

Try again after a growing wait, with a little randomness, so retries help instead of hurt.

⏱ 12 minMust KnowInterview FavouriteVisualizer
RabbitMQ and SQS
Intermediate

Two popular queues: a flexible broker you run, and a managed queue in the cloud.

⏱ 14 minInterview FavouriteVisualizer
Event Streaming vs Message Queues
Intermediate

A log you can replay, or a queue that hands out each task once? How to choose.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Message Ordering
Advanced

When order matters, how to keep it, and what it costs in speed.

⏱ 13 minInterview FavouriteVisualizer
Task Queues, Workers and Scheduled Jobs
Intermediate

Hand slow work to background workers, and run jobs on a timetable.

⏱ 14 minInterview FavouriteVisualizer

Part 3: Caching

Keep popular data close and ready, so systems answer faster and databases stay calm.

Caching Basics

7 topics

Distributed Caching

7 topics

Part 4: Data and Storage

Where data lives: the main kinds of databases, how they are built inside, how to scale them, and where big files are stored.

Database Basics

11 topics
Common Database Types
Beginner

A quick map of the main kinds of databases and what each one is good at.

⏱ 12 minMust KnowVisualizer
SQL vs NoSQL
Beginner

Tables with strict rules, or flexible shapes that scale out? How to choose.

⏱ 14 minMust KnowInterview FavouriteVisualizer
ACID Transactions
Intermediate

All-or-nothing changes that keep your data correct, even when things crash.

⏱ 15 minMust KnowInterview FavouriteVisualizer
B-Trees and B+ Trees
Advanced

The tree that lets a database find one row among millions in a few steps.

⏱ 15 minInterview FavouriteVisualizer
LSM Trees
Advanced

Write fast to memory, flush to sorted files, and merge them later.

⏱ 14 minInterview FavouriteVisualizer
Transaction Isolation Levels
Advanced

How much can two transactions see of each other? Dirty reads, repeatable reads and the levels that stop them.

⏱ 16 minMust KnowInterview FavouriteVisualizer
Locking and MVCC
Advanced

Pessimistic and optimistic locking, and how MVCC lets readers and writers work without blocking each other.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Normalization
Beginner

Store each fact once, by splitting data into tables, so it cannot disagree with itself.

⏱ 13 minMust KnowInterview FavouriteVisualizer
OLTP vs OLAP
Beginner

Many small updates for live apps, or a few huge questions for analysts: two very different workloads.

⏱ 12 minMust KnowInterview FavouriteVisualizer
BASE and PACELC
Advanced

The relaxed cousin of ACID, and a fuller rule than CAP that also counts latency.

⏱ 13 minInterview FavouriteVisualizer
Write-Ahead Log (WAL)
Intermediate

Write the change to a log first, so a crash never loses it. The trick behind durability and replication.

⏱ 14 minInterview FavouriteVisualizer

Database Types (Deep Dive)

11 topics
Relational Databases
Beginner

Tables, rows, keys and joins: the classic way to store connected data (PostgreSQL, MySQL).

⏱ 14 minMust KnowVisualizer
Document Databases
Beginner

Store each record as a flexible JSON-like document (MongoDB, DynamoDB).

⏱ 12 minMust KnowInterview FavouriteVisualizer
Key-Value Databases
Beginner

A giant dictionary: give a key, get a value, very fast (Redis, DynamoDB).

⏱ 12 minMust KnowInterview FavouriteVisualizer
Full-Text Search Engines
Intermediate

Search words inside text, with ranking, using an inverted index (Elasticsearch).

⏱ 14 minInterview FavouriteVisualizer
Wide Column Databases
Advanced

Rows with flexible columns, spread over many machines, built for huge writes (Cassandra, Bigtable).

⏱ 13 minInterview FavouriteVisualizer
Time Series Databases
Intermediate

Built for data stamped with time: metrics, sensors and logs (InfluxDB, TimescaleDB).

⏱ 12 minVisualizer
Graph Databases
Intermediate

Store things and the links between them, and walk those links quickly (Neo4j).

⏱ 12 minVisualizer
Vector Databases
Advanced

Find items that are similar in meaning, using numbers called embeddings.

⏱ 13 minInterview FavouriteVisualizer
NewSQL Databases
Advanced

SQL and transactions like a classic database, with scale-out like NoSQL (Spanner, CockroachDB).

⏱ 14 minInterview FavouriteVisualizer
Columnar Databases
Intermediate

Store data column by column, so analytics reads only what it needs and compresses well.

⏱ 13 minInterview FavouriteVisualizer
In-Memory Databases
Intermediate

Keep the data in RAM for microsecond answers, and decide how to survive a restart.

⏱ 12 minVisualizer

Database Scaling

16 topics
Indexing
Intermediate

A shortcut so the database does not read every row to find the one you want.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Partitioning
Intermediate

Cut one big table into smaller pieces that are easier to manage.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Replication
Intermediate

Keep copies of your data on several machines for safety and read speed.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Sharding
Advanced

Split the data across many databases, so no single one holds everything.

⏱ 16 minMust KnowInterview FavouriteVisualizer
Query Optimization
Intermediate

Make slow queries fast: read the plan, add the right index, fetch less.

⏱ 14 minInterview FavouriteVisualizer
Denormalization
Intermediate

Copy data on purpose to avoid slow joins, and pay for it with extra writes.

⏱ 12 minInterview FavouriteVisualizer
Materialized Views
Intermediate

Save the answer of a heavy query as a table, and refresh it when needed.

⏱ 11 minVisualizer
Connection Pooling
Intermediate

Reuse a small set of database connections instead of opening a new one every time.

⏱ 11 minInterview FavouriteVisualizer
Replication Models
Advanced

Leader-follower, multi-leader and leaderless: who is allowed to accept a write?

⏱ 16 minMust KnowInterview FavouriteVisualizer
Replication Lag
Intermediate

Followers are always a little behind. What users see because of it, and how to cope.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Quorum (R + W > N)
Advanced

Ask enough replicas on reads and writes that they must overlap, so you always see the latest write.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Shard Keys, Hot Shards and Resharding
Advanced

Pick the key that decides where data lives, avoid one overloaded shard, and grow without downtime.

⏱ 16 minMust KnowInterview FavouriteVisualizer
Cross-Shard Joins
Advanced

When the data you need lives on different shards: scatter-gather, and ways to avoid it.

⏱ 12 minInterview FavouriteVisualizer
Backups, RPO, RTO and Disaster Recovery
Intermediate

How much data can you lose, how long can you be down, and how to plan for a whole region failing.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Point-in-Time Recovery
Advanced

Rewind a database to the minute before the mistake, using a backup plus the log.

⏱ 12 minInterview FavouriteVisualizer
Data Archiving and TTL
Intermediate

Move old data to cheaper storage, or let it expire automatically, so the main database stays small.

⏱ 11 minVisualizer

Storage Systems

8 topics

Part 5: Architecture

How whole systems are shaped: the big architecture styles, and the patterns that keep many small services working together.

Architectural Patterns

16 topics
Client-Server
Beginner

One side asks, the other side answers: the oldest and most common shape of a networked app.

⏱ 12 minMust KnowVisualizer
Monolithic Architecture
Beginner

Build the whole app as one piece that is built, deployed and run together.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Microservices
Intermediate

Split an app into small services that each do one job and can be deployed on their own.

⏱ 16 minMust KnowInterview FavouriteVisualizer
Serverless
Intermediate

Write functions, let the cloud run them on demand, and pay only while they run.

⏱ 13 minInterview FavouriteVisualizer
Event-Driven Architecture
Intermediate

Parts of the system react to events instead of calling each other directly.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Peer-to-Peer (P2P)
Intermediate

No central server: every machine is both a client and a server (BitTorrent, blockchains).

⏱ 13 minVisualizer
Hexagonal Architecture
Advanced

Keep business rules in the middle and plug the outside world in through ports and adapters.

⏱ 13 minInterview FavouriteVisualizer
CQRS
Advanced

Use one model to write data and a different one to read it.

⏱ 14 minInterview FavouriteVisualizer
Event Sourcing
Advanced

Store every change as an event, and rebuild the current state by replaying them.

⏱ 15 minInterview FavouriteVisualizer
Domain-Driven Design (DDD)
Advanced

Model the software around the business: shared language, bounded contexts, aggregates and events.

⏱ 16 minMust KnowInterview FavouriteVisualizer
Layered (N-Tier) Architecture
Beginner

Stack the app in layers (presentation, business, data) where each layer only talks to the one below.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Containers and Docker
Beginner

Pack an app with everything it needs into one light, portable box that runs the same everywhere.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Kubernetes Basics
Intermediate

A system that runs, scales, heals and updates your containers across many machines.

⏱ 16 minMust KnowInterview FavouriteVisualizer
Clean Architecture and Modular Monolith
Advanced

Keep rules independent of frameworks, and split one deployable app into clear modules before you split it into services.

⏱ 14 minInterview FavouriteVisualizer
Multi-Tenancy
Intermediate

Serve many customers from one system while keeping their data apart, and their noisy neighbours in check.

⏱ 13 minInterview FavouriteVisualizer
Cloud Basics: Regions, Zones and Edge
Beginner

Where cloud machines live (regions and availability zones), and why some work runs near the user at the edge.

⏱ 13 minMust KnowInterview FavouriteVisualizer

Microservices Patterns

14 topics
Service Discovery
Intermediate

How services find each other when machines and addresses keep changing.

⏱ 13 minInterview FavouriteVisualizer
API Gateway Pattern
Intermediate

One front door for all clients that routes, secures and limits requests to the services behind it.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Backend for Frontend (BFF)
Intermediate

A separate backend shaped for each kind of client, such as web and mobile.

⏱ 12 minVisualizer
Sidecar Pattern
Intermediate

Run a helper next to your service to handle logging, security or networking for it.

⏱ 11 minVisualizer
Circuit Breaker
Intermediate

Stop calling a failing service for a while, so one failure does not spread.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Bulkhead
Intermediate

Split resources into separate compartments so one overload cannot sink the whole ship.

⏱ 12 minInterview FavouriteVisualizer
Strangler Fig
Intermediate

Replace an old system piece by piece, until nothing of the old one remains.

⏱ 12 minInterview FavouriteVisualizer
Service Mesh
Advanced

A layer of sidecar proxies that handles service-to-service traffic, security and metrics.

⏱ 14 minInterview FavouriteVisualizer
Database per Service
Intermediate

Each service owns its data and nobody else touches it, so services can change and scale on their own.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Timeouts and Deadlines
Intermediate

Never wait forever: set a limit on every call, and pass the remaining time down the chain.

⏱ 12 minMust KnowInterview FavouriteVisualizer
API Composition
Intermediate

Build one answer by calling several services and combining the results in one place.

⏱ 12 minInterview FavouriteVisualizer
Anti-Corruption Layer
Advanced

A translator at the border that keeps an old or foreign model from leaking into your clean design.

⏱ 12 minInterview FavouriteVisualizer
Ambassador Pattern
Intermediate

A helper next to your service that makes the outside calls for it: retries, routing, monitoring.

⏱ 11 minVisualizer
Idempotent Consumer and Inbox Pattern
Advanced

Handle the same message twice without doing the work twice, by remembering what you already processed.

⏱ 13 minInterview FavouriteVisualizer

Part 6: Distributed Systems

What changes when many machines work together: failures, clocks, agreement, and keeping data correct across services.

Distributed System Fundamentals

8 topics

Time and Ordering

7 topics

Coordination and Consensus

13 topics
Consensus Algorithms
Advanced

How a group of machines agrees on one value, even when some of them fail.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Paxos
Advanced

The classic consensus algorithm: propose, promise, accept.

⏱ 16 minInterview FavouriteVisualizer
Raft
Advanced

Consensus made easier to understand: one leader, a replicated log, and elections.

⏱ 16 minMust KnowInterview FavouriteVisualizer
Leader Election
Intermediate

How a group picks one machine to lead, and picks a new one when it fails.

⏱ 13 minMust KnowInterview FavouriteVisualizer
ZooKeeper and etcd
Intermediate

Small, highly reliable stores that other systems use for locks, leaders, config and who-is-alive.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Distributed Locks
Advanced

Let only one machine do a job at a time, across many machines (and why that is hard).

⏱ 14 minInterview FavouriteVisualizer
Fencing Tokens
Advanced

A number that grows with every lock, so storage can reject a client that woke up too late.

⏱ 11 minInterview FavouriteVisualizer
Gossip Protocol
Intermediate

Spread news like a rumour: each machine tells a few random others.

⏱ 12 minInterview FavouriteVisualizer
CRDTs
Advanced

Data types that can be changed on many machines and always merge to the same result.

⏱ 14 minInterview FavouriteVisualizer
Operational Transformation
Advanced

How collaborative editors like Google Docs merge edits made at the same time.

⏱ 13 minVisualizer
Distributed Unique ID Generation (Snowflake, UUID)
Intermediate

Make unique IDs on many machines at once without asking a central counter every time.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Two Generals Problem
Intermediate

Why two machines can never be fully sure the other got the last message.

⏱ 11 minInterview FavouriteVisualizer
Byzantine Fault Tolerance (BFT)
Advanced

Reaching agreement even when some machines lie. The idea behind PBFT and blockchains.

⏱ 13 minVisualizer

Distributed Transactions

8 topics

Part 7: Advanced Data Topics

Clever data structures that make huge systems fast and small, and the ways big data is collected, stored and processed.

Data Structures for Scale

6 topics

Probabilistic and Other Structures

7 topics

Big Data Processing

14 topics
Batch vs Stream Processing
Beginner

Process data in big chunks later, or one event at a time as it arrives.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Change Data Capture (CDC)
Intermediate

Read every change made in a database and send it on to other systems.

⏱ 13 minInterview FavouriteVisualizer
MapReduce
Intermediate

Split a huge job into small map tasks and then combine the results with reduce tasks.

⏱ 14 minInterview FavouriteVisualizer
ETL Pipelines
Beginner

Extract data from sources, transform it, and load it where it can be analysed.

⏱ 12 minVisualizer
Data Lakes
Beginner

One big, cheap place to keep raw data of every kind, to decide what to do with it later.

⏱ 12 minVisualizer
Data Warehousing
Intermediate

A database built for analysis: clean, organised data for reports and dashboards.

⏱ 13 minInterview FavouriteVisualizer
Data Lakehouse
Intermediate

A data lake with warehouse features on top: tables, transactions and fast queries.

⏱ 12 minVisualizer
Lambda Architecture
Advanced

Run a batch path and a speed path side by side, then merge their answers.

⏱ 13 minInterview FavouriteVisualizer
Kappa Architecture
Advanced

Use only a stream path, and replay the log when you need to recompute.

⏱ 12 minInterview FavouriteVisualizer
Streaming Engines
Advanced

The engines that process endless streams of events (Kafka Streams, Flink, Spark Streaming).

⏱ 14 minInterview FavouriteVisualizer
Spark and Hadoop
Intermediate

The big data toolbox: HDFS to store, YARN to schedule, MapReduce and Spark to compute.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Workflow Orchestration (Airflow)
Intermediate

Describe a pipeline as tasks and dependencies, and let a scheduler run, retry and monitor it.

⏱ 13 minInterview FavouriteVisualizer
Parquet and Columnar File Formats
Intermediate

Store data column by column in files, so analytics read less and compress better.

⏱ 13 minInterview FavouriteVisualizer
Data Governance and Feature Stores
Intermediate

Who owns the data, who may use it, and one shared place for the inputs of machine learning models.

⏱ 12 minVisualizer

Part 8: Operations and Security

How software is shipped safely, how you see what it is doing in production, and how you protect it and its data.

Deployment Patterns

15 topics
Deployment Strategies Overview
Beginner

A map of the ways to put new code into production, and the risk each one carries.

⏱ 12 minMust KnowVisualizer
CI/CD Pipelines
Beginner

An automatic line that builds, tests and ships every code change.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Rolling Deployments
Beginner

Replace old servers with new ones a few at a time, so the service never stops.

⏱ 12 minInterview FavouriteVisualizer
Blue-Green Deployments
Intermediate

Run two full copies of production, then switch the traffic from one to the other.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Canary Releases
Intermediate

Send the new version to a small slice of users first, and grow it only if it looks healthy.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Feature Flags
Intermediate

Turn features on or off with a switch, without deploying new code.

⏱ 13 minInterview FavouriteVisualizer
A/B Testing Infrastructure
Advanced

Show different versions to different users and measure which one wins.

⏱ 14 minVisualizer
Schema Migrations
Advanced

Change the shape of a live database safely, without breaking the running app.

⏱ 14 minInterview FavouriteVisualizer
Rollbacks and Immutable Infrastructure
Intermediate

Go back fast when a release fails, and never patch servers in place.

⏱ 12 minInterview FavouriteVisualizer
Multi-Region and Active-Active
Advanced

Run the system in several regions at once, so users stay served when a whole region goes dark.

⏱ 14 minInterview FavouriteVisualizer
Infrastructure as Code (Terraform)
Intermediate

Describe servers, networks and databases in files, and let a tool build and change them for you.

⏱ 13 minInterview FavouriteVisualizer
Auto-Scaling Policies
Intermediate

Add and remove servers by rules (target, step, schedule, prediction) so capacity follows the load.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Zero-Downtime Deployment
Intermediate

Ship new code with no failed requests: draining, health gates and changes that old and new can share.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Chaos Engineering
Intermediate

Break things on purpose, in a controlled way, to find weak spots before real failures do.

⏱ 12 minInterview FavouriteVisualizer
Shadow Traffic and Dark Launches
Advanced

Try new code with real traffic and no user impact, by copying requests or hiding the feature.

⏱ 12 minVisualizer

Observability

11 topics
Three Pillars of Observability
Beginner

Logs, metrics and traces: three views that together explain what a system is doing.

⏱ 12 minMust KnowVisualizer
Logging Best Practices
Beginner

What to log, how to structure it, and what to never write down.

⏱ 12 minVisualizer
Log Aggregation
Intermediate

Collect logs from every machine into one place that you can search.

⏱ 12 minInterview FavouriteVisualizer
Metrics and Instrumentation
Intermediate

Add counters, gauges and histograms to your code, so you can measure how it behaves.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Distributed Tracing
Intermediate

Follow one request through many services and see where the time went.

⏱ 14 minMust KnowInterview FavouriteVisualizer
Alerts and Monitoring
Intermediate

Watch the system, and wake a human only when something really needs them.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Dashboards and Runbooks
Beginner

One screen to see health at a glance, and a step-by-step guide for when it goes wrong.

⏱ 11 minVisualizer
SLOs and Error Budgets
Intermediate

Turn reliability into a budget you can spend, and use burn-rate alerts to know when you are overspending.

⏱ 13 minMust KnowInterview FavouriteVisualizer
Incident Management and Postmortems
Intermediate

How a team handles an outage: roles, on-call, communication, and learning without blame.

⏱ 13 minInterview FavouriteVisualizer
Profiling
Intermediate

Find out which code uses the time and memory: CPU profiles, flame graphs and continuous profiling.

⏱ 12 minVisualizer
Audit Logs
Intermediate

A tamper-resistant record of who did what and when, for security, compliance and investigations.

⏱ 11 minInterview FavouriteVisualizer

Advanced Security

14 topics
SSL/TLS
Intermediate

The handshake and encryption that keep a connection private and prove who you are talking to.

⏱ 15 minMust KnowInterview FavouriteVisualizer
Encryption at Rest
Intermediate

Scramble stored data, so a stolen disk or backup is useless without the key.

⏱ 13 minInterview FavouriteVisualizer
Secrets Management
Intermediate

Keep passwords, API keys and certificates out of code, and hand them out safely.

⏱ 13 minInterview FavouriteVisualizer
Password Management
Intermediate

Store user passwords safely with salting and slow hashes, and handle resets well.

⏱ 14 minMust KnowInterview FavouriteVisualizer
RBAC
Intermediate

Give permissions to roles, then give roles to people.

⏱ 12 minMust KnowInterview FavouriteVisualizer
SAML
Advanced

An XML-based way for a company login to sign users in to other apps.

⏱ 13 minVisualizer
OWASP Top 10 and Common Attacks
Intermediate

A tour of the most common web attacks (injection, XSS, broken access control) and how each is stopped.

⏱ 14 minMust KnowInterview FavouriteVisualizer
DDoS Attacks and Defenses
Intermediate

Floods of fake traffic that try to knock a service over, and the layers that absorb them.

⏱ 12 minInterview FavouriteVisualizer
Web Application Firewall (WAF)
Intermediate

A filter in front of your app that reads HTTP requests and blocks known attack patterns.

⏱ 11 minVisualizer
Certificates and PKI
Advanced

How a chain of trusted authorities lets you believe a public key really belongs to who it says.

⏱ 14 minInterview FavouriteVisualizer
Multi-Factor Authentication (MFA)
Intermediate

Prove who you are with two or more different things: know, have, are. Codes, apps, keys and passkeys.

⏱ 12 minMust KnowInterview FavouriteVisualizer
Zero Trust
Advanced

Never trust a request because of where it comes from. Verify every user, device and call, every time.

⏱ 13 minInterview FavouriteVisualizer
Key Management (KMS)
Advanced

Create, store, use, rotate and retire encryption keys safely, with a service that never shows the key.

⏱ 13 minInterview FavouriteVisualizer
Data Privacy and GDPR Basics
Intermediate

Collect less, protect it, let people see and erase their data: the engineering side of privacy law.

⏱ 13 minInterview FavouriteVisualizer

Part 9: Estimation and Interview Method

How to turn everything above into a clear answer: ask the right questions, do the maths out loud, follow a steady method, and explain your choices.

Part 10: Case Studies

Full interview walk-throughs, easiest first. Each one follows the order of a real interview: clarify, estimate, design, go deep, scale, and wrap up, with the cross-questions you will be asked and model answers.

Easy

6 topics

Medium

11 topics
Design a Chat App
Intermediate

One-to-one and group messaging that feels instant: connections, delivery, ordering and offline users.

⏱ 34 minMust KnowInterview FavouriteVisualizer
Design a News Feed
Intermediate

Show each user a ranked stream of posts from people they follow, fast, even for celebrities.

⏱ 34 minMust KnowInterview FavouriteVisualizer
Design a Notification System
Intermediate

Send push, SMS and email to millions of users: queues, retries, preferences and no duplicates.

⏱ 32 minInterview FavouriteVisualizer
Design a Web Crawler
Intermediate

Visit billions of pages politely: a frontier of URLs, duplicate detection and traps.

⏱ 32 minInterview FavouriteVisualizer
Design Search Autocomplete
Intermediate

Suggest the best completions after every keystroke, in a few milliseconds.

⏱ 30 minMust KnowInterview FavouriteVisualizer
Design File Storage (Dropbox)
Advanced

Store and sync files across devices: chunks, deduplication, sync and sharing.

⏱ 36 minMust KnowInterview FavouriteVisualizer
Design Video Streaming (YouTube/Netflix)
Advanced

Upload, transcode and play video smoothly for millions, on any device and network.

⏱ 36 minMust KnowInterview FavouriteVisualizer
Design a Distributed Cache
Intermediate

A cache across many machines: partitioning, eviction, replication and hot keys.

⏱ 32 minMust KnowInterview FavouriteVisualizer
Design a Leaderboard
Intermediate

Rank millions of players in real time: top-K, a player's own rank and time windows.

⏱ 28 minInterview FavouriteVisualizer
Design a Job Scheduler
Advanced

Run jobs at the right time, exactly when needed, even when machines fail.

⏱ 34 minMust KnowInterview FavouriteVisualizer
Design a Social Media Platform (Facebook)
Intermediate

Profiles, friends, posts, likes, comments and privacy for billions of people, stitched into one platform.

⏱ 36 minMust KnowInterview FavouriteVisualizer

Hard

10 topics
Design Ride Sharing (Uber/Lyft)
Advanced

Match riders with nearby drivers in real time: location tracking, dispatch, pricing and trip state.

⏱ 38 minMust KnowInterview FavouriteVisualizer
Design a Payment System
Advanced

Move money correctly: idempotency, a double-entry ledger, reconciliation and no lost or double charges.

⏱ 38 minMust KnowInterview FavouriteVisualizer
Design Ticket / Hotel Booking
Advanced

Sell a limited inventory fairly: holds, double-booking, flash-sale traffic and payments.

⏱ 36 minMust KnowInterview FavouriteVisualizer
Design a Search Engine
Advanced

Crawl, index and rank billions of pages, and answer a query in milliseconds.

⏱ 38 minInterview FavouriteVisualizer
Design Google Maps
Advanced

Show a map, find the fastest route and estimate arrival time for a whole planet of roads.

⏱ 38 minInterview FavouriteVisualizer
Design a Collaborative Editor (Google Docs)
Advanced

Let many people edit one document at the same time and always end up with the same text.

⏱ 38 minMust KnowInterview FavouriteVisualizer
Design a Metrics and Monitoring System
Advanced

Collect millions of data points a second, store them cheaply, query them fast and alert on them.

⏱ 36 minInterview FavouriteVisualizer
Design a Distributed Message Queue (Kafka-like)
Advanced

A durable, ordered log that millions of messages a second flow through, with replication and consumer groups.

⏱ 38 minMust KnowInterview FavouriteVisualizer
Design an E-commerce System (Amazon)
Advanced

Catalog, search, cart, stock, checkout and orders for millions of shoppers, with no overselling and no lost orders.

⏱ 40 minMust KnowInterview FavouriteVisualizer
Design a Content Recommendation System (YouTube/Netflix)
Advanced

Pick the few items worth showing out of millions: candidates, ranking, fresh feedback and cold start.

⏱ 38 minMust KnowInterview FavouriteVisualizer