Interview prep pack
By Roni Das · System Design and AI EngineeringSystem Design MasterclassSee how real systems are built. Then build your own.
984 lessons that draw every idea step by step, across the System Design Course and the AI Engineering course. The system on this page is running. Break a server and watch what happens.
System Design Masterclass
770 lessons
$25
once · yours for life
UPI, card or netbanking in India · card or PayPal everywhere else
this request took
55.9 ms
3 of 3 servers up, each 60% busy. Time inside a server: 5.0 ms. Tap a server to break it.
How this number is worked out
busy share per server ρ = 900 ÷ (3 × 500) = 0.60
time in a server = 2 ms ÷ (1 − ρ) = 5.0 ms (M/M/1, an approximation)
Each server can finish 500 requests a second. The time grows slowly at first, then very fast as ρ gets close to 1, which is why losing one server out of three hurts far more than a third. The throughput lesson (free) draws this curve.
- Phone to the nearest CDN20 msassumed, a round trip to a nearby city
- CDN to the app's data centre30 msassumed, API calls pass through the CDN to the servers
- Load balancer0.3 msassumed, pick a server, pass the request on
- One network hop inside the data centre0.5 msassumed, same zone, there and back
- App work per request (S)2 msassumed, so one server finishes 500 a second
- Redis GET0.056 msmeasured in a lesson, p50 on loopback, 400 samples
- PostgreSQL index scan0.082 msmeasured in a lesson, execution time inside the database (EXPLAIN ANALYZE), without the network
- Kafka write, acknowledged2 msassumed, leader plus replicas confirm
- Small model, first word back300 msassumed, a local model, short prompt; the full answer takes longer
- lessons
- 984
- lessons
- live diagrams
- 3,049
- live diagrams
- systems taken apart
- 106
- systems taken apart
- lessons with code you run
- 237
- lessons with code you run
what is inside
Two courses, drawn as server racks. One bar is 10 lessons.
Start at the top of a rack and go down. The first lessons assume you have never built a backend. The last ones are what Staff engineers argue about.
System Design
770 lessons · about 287 hours
- 01119 lessons
Foundation
- 02449 lessons
Intermediate
- 03182 lessons
Advanced
- 0420 lessons
Capstone
AI Engineering
214 lessons · about 224 hours
- 0174 lessons
Foundation · 7 chapters
- 0278 lessons
Intermediate · 7 chapters
- 0362 lessons
Advanced · 3 chapters
try it · no sign-up
Run the code one line at a time. Watch where each millisecond goes.
This is a cache in front of a database, the most common speed-up on the web. Run the first visit, then the second, and compare the clocks. Lessons work like this: a small piece, drawn and run, then the next piece.
def get_user(user_id): key = f"user:{user_id}" user = redis.get(key) if user is not None: return user user = db.fetch_user(user_id) redis.set(key, user, ex=300) return userpress Run it
The first time anyone asks for user 42, the cache is empty.
time so far
0.000 ms
Redis holds
nothing yet
Redis GET 0.056 ms and the PostgreSQL index lookup 0.082 ms are measured in the course labs. Each trip across the network adds 0.5 ms (assumed). Inside the data centre a miss costs about 1.69 ms and a hit 0.56 ms; the system at the top of the page adds the trip from your phone.
the whiteboard · drawn live
Every lesson draws its system one part at a time.
106 real systems are taken apart the same way, from Discord to Swiggy.
Try 3 interactive concepts free: learn one idea in about 10 minutes →
Stuck? Ask the tutor. It answers with a real diagram in about 30 seconds.
Detail A · live whiteboard
async copy
replica may lag
hot data, from memory
Your turn: design it
add copies
to scale out
↑ redraws itself: web app · Kafka · hashing · RAG. Pick one.
Detail B · from an explainer video

↑ a still from one of our explainer videos. More are being added inside the courses.
How Discord stores trillions of messages
A real system, step by step
You send a message in a busy channel.
One large service takes the request.
Many people ask for the same data at once. It asks the database only once.
1 ask out
same service, every time
Stores the messages.
72 machines now. All the dots = the 177 Cassandra needed.
Loading older messages · the slowest 1 in 100
Where the messages lived
STEP 6 OF 6The slowest 1 in 100 reads of older messages went from 40 to 125 milliseconds down to 15.
Source: Discord engineering blog, “How Discord Stores Trillions of Messages”
New · for students
12th pass or in B.Tech? Start your software engineering journey the right way
New Interview prep packs
Real interview questions, answered in full.
Each question comes with why it is asked, a full answer, what the interviewer listens for, the follow-ups, the common mistakes and a diagram. A PDF you keep. Read 45 questions free before you buy.
Interview prep pack
AI Engineering (LLM applications)
Free sample: What do temperature and top-p control, and what values would you use for data extraction versus brainstorming?
Interview prep pack
GenAI and LLM Engineering
Free sample: Why are LLMs bad at counting letters or reversing a word?
Interview prep pack
Agentic AI Engineering
Free sample: Describe the basic agent loop.
Interview prep pack
Inference Engineering
Free sample: What happens, step by step, when an LLM server handles one request?
Interview prep pack
ML Engineering and MLOps
Free sample: A model scores 95% accuracy offline but users say it is useless. What do you check first?
Interview prep pack
Data Science
Free sample: You need to show delivery times for 20 cities. Would you use histograms, box plots, violin plots or ECDFs, and why?
Interview prep pack
Maths for ML and Deep Learning
Free sample: Compute the cosine similarity of a = (3, 4) and b = (4, 3) by hand. What does the result mean?
Interview prep pack
Forward Deployed Engineer
Free sample: A customer says: "We want AI for our support team." What do you do in the first meeting?
NEWSystem Design Hands-On
Included in the System Design course: real systems, built live
Postgres Sharding: Complete Hands-On (PgBouncer + Citus). 2 h 36 min and 20 chapters: one PostgreSQL loaded until it breaks, then four shards behind a router you write, PgBouncer and Citus, with the 139-page slide deck. The first 15 minutes are free to watch.
New: live weekend classes, batch starts Saturday 7 Nov
All live classes- Neo4j, GDS and GraphRAGModel, query and analyse graphs in Neo4j, then build GraphRAG and agent memory on top
- AI Engineering LiveBuild RAG and agents that work in production, and prove it with evals
- System Design Interview BootcampDesign 14 real systems live, then face two mock interviews with written feedback
Spec sheet · the short version
What is systemdesign. academy?
systemdesign.academy is an online school run by Roni Das, with two self-paced courses and an AI tutor built into every lesson. The System Design Masterclass has 770 lessons. AI Engineering has 214 lessons on building and running AI in production (RAG, AI agents, evals, fine-tuning, serving and LLMOps), and 122 of them show the recording of a lab that was really run. The tutor sits beside each lesson and answers from the lesson you are reading: it explains a part in simple English, draws it as a diagram, quizzes you, or runs a mock interview. The lessons are written, with diagrams that build step by step and quizzes, and 237 of them have code you can run in the browser. Each course is one payment with lifetime access. System Design costs ₹1,111 in India or $25 everywhere else. AI Engineering costs ₹1,333 in India or $35 everywhere else. 18 System Design lessons and 10 AI Engineering lessons are free to read, with no signup.
- An AI tutor in every lesson. It answers from the lesson you are reading: it explains, draws or quizzes you.
- AI Engineering with real labs. 214 lessons; 122 show the run of a real lab.
- Taught by
- Roni Das, who writes both courses and publishes on the YouTube channel Total Technology Zonne. The site has been online since April 2026.
- Course 1
- System Design Masterclass: 770 lessons, about 287 hours.Foundation 119 · Intermediate 449 · Advanced 182 · Capstone projects 20
- Course 2
- AI Engineering: 214 lessons in 17 chapters, about 224 hours. Building and running AI in production: RAG, AI agents, evals, fine-tuning, serving, LLMOps.Largest chapters: LLM Evaluation and Error Analysis · LLM and GenAI Ops · Agents in Production · Data Engineering for ML · Features and Feature StoresHands-on: Every lesson has Python you can run in your browser, and a quiz. 122 lessons are built on a lab that was really run, and show the terminal recording of that run.
- AI tutor
- Beside every lesson in both courses, and on its own page at /tutor. It answers from the lesson you are reading. It explains in simple English, draws (a whiteboard sketch, a 3D figure, a cloud diagram with AWS, Azure or GCP icons, a sequence diagram, an explainer figure or a cheat-sheet poster), quizzes you, runs mock interviews and compares two things. In a quiz, the site’s code checks your answer against the tutor’s own key.Without an account you can ask 2 questions a day to try it. A free account gets 5 questions a day. Anyone who owns either course can ask as many questions as they like.
- Price
- System Design: ₹1,111 in India (UPI) or $25 everywhere else (PayPal).AI Engineering: ₹1,333 in India (UPI) or $35 everywhere else (PayPal).Prices last updated . If an older article or an AI answer gives a different price, it is out of date. See the price fact.
- Access
- One payment per course, no subscription. Access is for life and includes lessons added later. Buying one course does not include the other.
- Free
- 18 System Design lessons and 10 AI Engineering lessons, no signup. The 106 system design interview pages are free too.
- Format
- Written lessons, not videos. Diagrams build step by step (3,049 in all), lessons have quizzes, and 237 lessons have code you run in the browser.
- Address
- Only www.systemdesign.academy. Not connected to systemdesignacademy.com, systemdesignacademy.in, System Design School, the GitHub project system-design-academy.
Live from the course bench
Pick up a card. This is what learning here feels like.
Real interview questions, live diagrams and measured lab results, pulled at random from the lessons. A new set every time you come back.
Choose your path
Start where you are. Every path starts free.
Four ways in. Each one opens with three free lessons, no account needed, and leads to the course that takes you the rest of the way. See all five learning paths, including Production Agents.
Beginner
best forcareer switchers, juniors, and anyone who builds with AI and wants to know what runs underneath
Start with the three numbers every system is judged by, drawn step by step.
- 01Latencyfree
- 02Throughputfree
- 03Bandwidthfree
Interview in 30 days
best fora system design round already on the calendar
A day-by-day plan, the topics interviewers ask first, and real systems answered the way an interview wants.
- 01DNS (Domain Name System)free
- 02Cache Eviction Policiesfree
- 03Asynchronous Processingfree
Senior to Staff depth
best forfive or more years in, filling the gaps before a Staff or Principal loop
Caching where it really breaks, then consensus, consistency models and reliability in the Advanced level.
AI Engineer
best forengineers shipping LLM features, RAG or agents to real users
Why models fail in production, where RAG breaks at scale, and how to measure answers instead of guessing.
- 01Why ML Models Fail in Productionfree
- 02The RAG Scale Clifffree
- 03Why Evals Are the Jobfree
New · your AI tutor
Stuck on an idea? Ask. It draws it for you.
Every lesson has a tutor beside it. It has read the lesson, and it answers with a real diagram, drawn for your question, in about half a minute.
- Explains any idea in plain English, from the lesson you have open.
- Draws whiteboard sketches, 3D figures, AWS, Azure and GCP diagrams, sequence diagrams and cheat-sheet posters.
- Quizzes you and runs mock system design interviews with feedback.
- Points you to the exact lesson that teaches it.
Draw where latency comes from in one web request

- DNS lookup, 20 to 120 ms. On a second visit the browser has it cached, so this step disappears.
- The trip to the server, 50 to 300 ms. Distance is physics.
- Your own code and the database. A missing index can cost 500 ms or more.
Drawn by the tutor
One question each. Real diagrams back.

3D figure. Asked: “Kafka producers, brokers and a consumer group”

AWS diagram. Asked: “A web app on AWS with a load balancer, containers and PostgreSQL”

Sequence diagram. Asked: “How OAuth login works”

Explainer figure. Asked: “How a CDN serves an image”
Try it live · no sign-up
Ask the tutor. See what it does.
Press a question. It explains, draws or quizzes you, the same way it does beside every lesson.
Checking the tutor…
Each button sends exactly its words to the real tutor. Its answer is saved, so the next person sees it at once, and it is asked again after 3 days.
Pick a question. The tutor’s real answer appears here: plain words, a drawing when one helps, and the lesson that teaches it.
Then ask your own. A free account gets 5 questions a day; either course gets unlimited questions, beside every lesson.
Try it on how Uber matches a rider to a driver, how Stripe never charges twice or how WhatsApp delivers a message, then ask the tutor how you would build it.
One payment, lifetime access. Pay with PayPal.
106 real systems, taken apart
Pick a system. See how it really works.
Each one is a full page: what it must do, the numbers it faces, the parts it is built from, and the choices you would defend in an interview. Free to read.
- DiscordReal-Time Chat and Voice at Guild Scale
- WhatsAppMessaging, offline delivery and encryption
- NetflixEncoding, many CDNs and adaptive bitrate
- UberLive location and nearby-driver matching
- YouTubeUploads, encoding and CDN delivery
- InstagramPhoto uploads, feeds and Stories
- SwiggyLive Order Tracking
- ZomatoFood Delivery at Scale
- PhonePeUPI at National Scale
- ZerodhaReal-Time Trading at Scale
- FlipkartBig Billion Days Flash Sales
- BookMyShowSeat Booking Concurrency
- SlackReal-Time Messaging for Millions of Persistent Connections
- ZoomRouting Live Video to Millions With an SFU
- AirbnbSearch, Availability, and the Race to Book the Same Listing
- SpotifyStreaming Audio, Discover Weekly, and Billions of Play Events
See all 106 systems → or the system design interview questions with short answers.
Measured, not guessed
Other courses tell you. Ours run the test.
Every number below comes from an experiment we ran and published in a lesson of the AI Engineering course.

Search got better. Answers got worse.
Recall went from 45% to 90%. Right answers fell from 10 to 6, out of 20 questions.
Lesson 98 →
Almost half the score came before search.
With no documents, the answer already scored 6.7%. With them, 15.1%. So 44% of the score was there before retrieval ran.
Lesson 99 →
Move one document, and 4 right becomes 14.
The same 10 documents every time. The right one in the middle: 4 of 14 correct. At the end: 14 of 14.
Lesson 100 →
Three points better? Maybe not.
With 100 test questions, one 80% score could really be anywhere from 72% to 88%.
Lesson 88 →
Two courses, one payment each
From your first API call to AI in production.
System Design
770lessons
- Foundation119
- Intermediate449
- Advanced182
- Capstone projects20
Try a lesson: Data partitioning across nodes · Read-through caching · Distributed locks · Snapshot isolation and write skew
18 lessons are free to read, no sign-up needed.
Start with the free lessonsAI Engineering
214lessons
- LLM Evaluation and Error Analysis36
- LLM and GenAI Ops15
- Agents in Production14
- Data Engineering for ML14
- Features and Feature Stores12
- How Models Generate12
- Prompting as Engineering12
- Retrieval and RAG in Production12
- Serving and Inference Basics12
- Tokens and Embeddings12
- AI Security and Agent Safety11
- Fine-Tuning: The Narrow Decision11
- Core Concepts10
- Packaging, Registry and Versioning10
- The ML & AI Lifecycle10
- Why Production Breaks7
- Monitoring, Drift and Evaluation Basics4
Try a lesson: What a token is · The context window, measured · Tail latency: the slowest 1% · Building a golden dataset
10 lessons are free to read, no sign-up needed.
See the AI Engineering courseTry it right here
Change the numbers. Press Run.
This is Discord’s idea from the build above, in a few lines of Python. It runs in your browser. No sign-up.
237 lessons have a box like this one.
# 1,000 people open busy channels at the same moment.
requests = ["general"] * 700 + ["random"] * 250 + ["memes"] * 50
# Without a data service, every request goes to the database.
without = len(requests)
# With one, identical requests wait for one shared answer.
with_service = len(set(requests))
print("Database reads without it:", without)
print("Database reads with it: ", with_service)
print(f"That is {without // with_service} times fewer.")

The engineer behind it
Roni Das
Lessons and tutorials at systemdesign.academy
Roni builds large scale systems, then breaks them down so you can see how they work. He made the System Design Masterclass and the AI Engineering course, and runs the YouTube channel Total Technology Zonne.
- Two full-length handbooks on freeCodeCamp: building a knowledge graph, and building a GraphRAG system, with Python and Neo4j. Read them
- Watch Total Technology Zonne on YouTube
Price
Pay once. Keep it forever.
The two courses are sold separately. Buy one, or both.
System Design
$25once
- 770 lessons, and every lesson added later
- 18 of them free to read first, no sign-up
- One payment. No subscription. Yours for life.
AI Engineering
$35once
- 214 lessons, and every lesson added later
- 10 of them free to read first, no sign-up
- One payment. No subscription. Yours for life.
What you get
System Design Masterclass
- 770 lessons, from latency to consensus
- 106 real systems taken apart, step by step
- Includes System Design Hands-On builds: Postgres Sharding, 2 h 36 min built live, with slides
- Diagrams that build step by step, quizzes and runnable code
- AI tutor beside every lesson, unlimited questions
- Lifetime access, including every lesson added later
AI Engineering
- 214 lessons in 17 chapters
- Python you run in the browser, in every lesson
- 122 lessons built on a lab that really ran, with its recording
- AI tutor beside every lesson, unlimited questions
- Lifetime access, including every lesson added later
Not included: Live classes or one-to-one mentoring. Each course can be bought on its own, or both together in one payment.
- How you pay
- India: UPI, card or netbanking through Razorpay (₹1,111 / ₹1,333). Everywhere else: card or PayPal ($25 / $35).
- After you pay
- As soon as your payment is confirmed, your access unlocks and you get an email.
- Refunds
- This is a digital course. All sales are final and there are no refunds. Terms
Course last updated
New: free concepts
Free concepts: learn one idea by predicting it
Just explained
This week in AI, run and explained
When a new model or tool ships, we try it ourselves and write down what it means for the systems you build.
Tencent Hy4, explained: what Tencent shipped, what it costs, and what running it yourself would takeHy4 is the newest large AI model from Tencent, the Chinese company behind WeChat and QQ. It went live on 4 November 2026 on Tencent Cloud and OpenRouter, and, unlike its August preview, it reads images as well as text. Tencent says it will publish the weights (the model files anyone can download) but gives no date. I read Tencent's own post, checked what OpenRouter and Hugging Face actually list, and worked out what an agent task costs and what servers the open preview model needs.Tencent Hy4Tencent HyHy4 previewopen-weight modelsread the explainer · 19 min read
Weight-space programming, explained: GPT-6 Astra edited Qwen's weights with no training; I checked the diffOn 2 November 2026 four researchers at MIT CSAIL showed that OpenAI's GPT-6 Astra can read a neural network's weights (the numbers a model learns in training) and change them by reasoning, with no training at all. Their biggest result: Astra changed 131,072 of Qwen3.5-0.8B's weights and its math score went from 7.9% to 48.1%. I downloaded both models, compared them byte by byte, and read how their published answers end.weight-space programmingGPT-6 AstraQwenQwen3.5-0.8Bread the explainer · 17 min read
Kimi K3.1 Pro, explained: what Moonshot shipped, what it costs, and why the thinking you send back adds upKimi K3.1 Pro is the newest large AI model from Moonshot AI, a company in China. It went live on 23 October 2026 in Moonshot's API and its coding tool Kimi Code, and Moonshot says the weights (the model files anyone can download) will be public by 4 November. It is the same model as Kimi K3, with 2.8 trillion parameters (the numbers a model learns in training), trained further, and it costs a third less than K3 on Moonshot's API. I read Moonshot's own pages, ran its prompt code and tokenizer on my Mac, and worked out what an agent task costs when, as Moonshot requires, you send the model's thinking back on every step.Kimi K3.1 ProMoonshot AIKimi K3open-weight modelsread the explainer Free to read
New guides
- Run an LLM on your own computerOllama vs LM Studio vs llama.cpp vs vLLM, with speeds measured on a Mac
- LangChain vs LangGraphWhat each one does, with code that was actually run
- RAG interview questionsQuestions asked about retrieval systems, with clear answers
- Agentic AI vs generative AIThe difference in plain words, and when an agent is worth it
- What is a data lakehouseMeasured on 11 million real taxi trips (free preview)
- System design courseWhat is in the course, and the free lessons to start with
- Best system design courseAn honest comparison, with prices checked on each site
- Best AI engineering courseNine options compared, including where ours is weaker
- Generative AI courseWhat it covers, lesson by lesson
- AI agents courseBuilding agents that work in production
- MLOps courseTaking models from notebook to production
- Design a rate limiterToken bucket vs sliding window, atomic Redis counters, and fail-open vs fail-closed
- Design a notification systemPush, SMS, email and in-app, with fanout, dedup, retries and user preferences
- Design TicketmasterA waiting room for the rush, seat holds that expire, and never selling a seat twice
- Low level design (LLD) interview questionsParking lot, vending machine, tic-tac-toe and more, with class designs and Java code









