Gradium × TensorTonic Voice Challenge is open for registration.Register now

Build end-to-end ML system designs

01 · Understanding ML systems

These 37 lessons teach ML system design the way interviews test it, from clarifying requirements to monitoring a model in production. You then practice on 21 design problems modelled on real products, such as Uber ETA prediction, Stripe fraud detection and YouTube video recommendation, building each one on a canvas that estimates latency and cost and gives written feedback on what to fix.

4 min read

Machine learning system design is the work of building everything around a model so that its predictions help people in a product. A model is a piece of software that has learned a pattern from past examples. The design covers how data is collected, how the model is built and checked, how its answers reach the people or software that need them, and how anyone finds out when it stops working well.

From a trained model to a working product

A model on its own can be scored on a stored set of examples and nothing more. Inside a product it also needs fresh inputs arriving at the right moment, a place to run, a way to hand its answer to the screen or the service that asked, and a check that the answer helped. A weather forecast has the same shape. The forecasting model is one part, and the sensors that feed it, the schedule it runs on and the app that shows the result are the rest. Those surrounding parts are what ML system design decides.

The model within an ML systemPrepare inputs, Get usable data. Trained model, Make a prediction. Application, Use the result. The design has to build the two boxes around the model as well.The model within an ML systemML systemPrepare inputsGet usable dataTrained modelMake a predictionApplicationUse the result
The design has to build the two boxes around the model as well.On a narrow screen, scroll the figure sideways to see every step.

The main parts of an ML system

The work divides into four areas, and each one answers a different question about how the system will behave.

  • Data. The system needs records to learn from and inputs to predict with, so this area covers collecting those records, fixing the mistakes in them, and shaping them into a form the model accepts.
  • Model development. The team chooses a kind of model, trains it on past examples, and tests it on examples it has never seen, because a model that only repeats its training data is of no use on new inputs.
  • Prediction. The product has to decide when it needs an answer, how quickly, and how the answer travels from the model to the screen or the service that asked for it.
  • Monitoring and updates. Someone has to notice when the system’s answers get worse, find out why, and check a proposed fix before it reaches users, since the world the model learned from keeps changing.

What a useful system has to get right

A good score on a test set is evidence about the model and nothing else. The complete system is judged by how it behaves while people are using it, and four qualities decide that.

  • Useful predictions. The answers have to move the product toward its purpose, and the mistakes that would hurt a person matter more than the ones that only cost a little time.
  • Timely responses. An answer has to arrive while someone can still act on it, which might mean a fraction of a second for a page that is loading or a whole night for a report.
  • Reliable operation. The product should keep working when an input is missing or a machine fails, and it should still answer when ten times as many people show up.
  • Manageable cost. Running the model, storing the data and updating the model all cost money and people’s time, and the total has to make sense for how much the product gains.

Start with the problem

These four qualities pull against one another. A larger model may predict better and also take longer and cost more to run, while a smaller one may be good enough when the extra accuracy would change nothing for the person using the product. Designing the system means making these trades on purpose and being able to explain each one in terms of the problem being solved.

That is why the work starts with what the product needs to achieve, before anyone names a model or a tool. The next topic, When machine learning is the right tool, connects the improvement we want for people to a decision in the product that a prediction could support. It then asks whether learning from data is the best way to support that decision.

Frequently asked questions

Where can I practice ML system design interview problems?

You can practice on 21 ML system design problems modelled on products such as Uber ETA prediction, Stripe fraud detection and Meta ad click prediction. You build each design on a drag-and-drop canvas, a simulator estimates its latency and monthly cost, and platform checks grade it against the problem constraints before you get written feedback on what to fix. A timed 45-minute mode adds an AI interviewer who asks questions while you design. The practice problems are part of Plus.

How should I structure a 45-minute ML system design answer?

Start by clarifying requirements and framing the business goal as an ML task with a metric, then work through data and labels, features, a baseline model, offline and online evaluation, serving and latency, and finally monitoring and retraining. The framework lesson shows how to split the 45 minutes, and the two walkthrough lessons apply it to content moderation and video recommendation. Start with the framework for the 45 minutes.

What does an ML system design interview test?

It tests whether you can turn a vague product goal into a working ML system and defend the trade-offs you make. Interviewers listen for clear requirements, a sensible metric, realistic data and labels, a baseline before a complex model, and a plan for serving, monitoring and retraining.