Where do I start, and what comes next?
33 lessons in 8 modules, or a short path for your goal. Free, no account, progress saved in this browser.
System design courses treat the database as one box. This course opens it: each module follows the same data further, from one query on one server to many servers in many regions.
0 of 33 lessons read. Start: Start here →
The words, and one query followed from your app to the disk and back.
What the engine does with memory, files and processes.
What a commit promises, and what two sessions at once can break.
More traffic: connections, caches, replicas, and when one server is not enough.
Splitting data across servers, and the keys that decide where rows go.
Failures, elections, backups, and what each one loses.
Many services, one truth: events, migrations, upgrades and access.
Everything together, in designs you can copy.
Going for a staff role? The staff deep dive goes further on every topic.
Each lesson is a page on this site, in an order that builds: one query first, then one server, then many servers, then whole systems. A bar under the breadcrumb on every lesson shows where you are and links to the next one.
A lesson is marked read when you reach the end of it. That progress lives in this browser only. Nothing is sent anywhere, and there is no account.
Each path is a short ordered list of pages for one goal, with a line on why each one is there.
Staff DBA, DBRE or database engineer loops. Nine steps, in the order that builds an answer.
See the path →The database part of the loop: which store for which data, the numbers, and what breaks. Eight steps and eight timed practice prompts.
See the path →Name the layer, run the checklist, find the queue. Eleven pages, built to be read under pressure.
See the path →From the workload to the engine to the bill. Eight steps.
See the path →Aim to be able to draw each step on a whiteboard and say what the file is called. That is the level these loops ask for.
The database part of a design loop asks three things: which store for which data and why, the numbers that justify it, and what breaks first as it grows. Read these in order, then practise on the prompts below.
Start the timer and answer out loud or on paper: the kinds of data, where each one lives, the key you would use, the numbers (writes a second, storage per year), what breaks first at ten times the load, and one trade-off you are accepting. Then check yourself against the design doc.
1. A chat app for 50 million users. Each conversation shows its latest 50 messages, and history is kept forever.
2. A wallet where money must never be lost or counted twice, with balances shown instantly.
3. A live leaderboard for 10 million players, updated on every game, with each player's rank.
4. Ticket sales for a concert: 50,000 seats, 500,000 people at the moment sales open, no seat sold twice.
5. A home timeline for a social app: people follow others and see their posts newest first.
6. 100,000 devices each send a reading every 10 seconds. Dashboards show the last day; raw data is kept 90 days.
7. Search and AI answers over 20 million documents, where each user may only see the documents they are allowed to.
8. Memory for AI agents: each agent remembers facts and past conversations across sessions, for thousands of customers.
Read top to bottom. Do not skip the first step. Most of the time spent in an incident is spent looking in the wrong layer.
The engine is the last decision to make. First write down the workload: what reads, what writes, how big, and what a lost commit costs.
How do databases actually work? From one row on disk to transactions: the words you need, PostgreSQL, MySQL and MongoDB from the files up, then Redis, Cassandra and vector search, side by side, and the query and concurrency traps.