internalsGet Pro

Module 17 · Lesson 9 of 11Pro

Real-time ML systems: latency budgets end to end

Level
Advanced
Topic
Distributed training and scalable ML systems
Reading time
17 min

When you finish this page you can

  1. Split an end-to-end latency budget into per-stage p99 limits, and explain why a plan built from typical times fails.
  2. Work out how fan-out turns rare slow calls into common slow requests, and what a timeout trades away to stop it.
  3. Choose what a request does when a stage overruns: wait, time out, fall back or hedge.
  4. Find the stage that spent the time with per-stage tracing, and decide what to cut when the budget breaks.
  1. Design: product recommendations like Amazon28 min
  2. Design: fraud scoring like Stripe Radar28 min
  3. Monitoring ML in production: what to watch16 min

Video lesson · coming soon

A longer timeout, and 600 late rows a second

is the online store this course uses as its example. Its home page shows a “Picked for you” row of 20 products, chosen by a recommendation model for each customer. At a festival-sale peak the row answers about 30,000 requests a second, and each answer must arrive within 100 ms. If it doesn’t, the page shows a cached row of store-wide best-sellers instead.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan