AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

System design: estimate, cache and survive a spike

Learn to size a system on the back of an envelope before drawing any boxes, see how a cache changes both speed and load and what it costs in freshness, and design for a sudden twenty-fold spike in traffic.

System design is deciding how the parts of a software system fit together so that it works, stays fast and survives growth, within a budget. It starts not with a diagram but with numbers: how many users, how many requests, how much data. Those numbers tell you which designs are even possible.

This course models three ideas with small programs you can run in your browser: back-of-the-envelope estimates, caching, and designing for a spike. They use made-up figures; for a real design, use your own measurements. No real servers are involved.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No prior experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 00 25 min 🔒 AiTeky Pass Start here: the parts of a system and how a request flows Meet the building blocks of nearly every online system, the client, the server, the database, the cache and the queue, and follow one request through them with simple timings.
  2. 01 30 min Free sample 🔒 AiTeky Pass Estimating on the back of an envelope Turn a number of users into requests per second, storage and bandwidth with a few simple multiplications, include the busy-hour factor, and see how a quick estimate rules designs in or out before anything is built.
  3. 02 30 min 🔒 AiTeky Pass Caching: speed, load and stale data Simulate a cache in front of a slow database with realistic uneven demand, see how a small cache can serve most requests and cut the database's load, and see the price of caching: data that can be out of date until it expires or is cleared.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 35 min 🔒 AiTeky Pass On the job: designing for a twenty-fold spike A ticket sale will bring twenty times the normal traffic for ten minutes. Estimate the load, compare four designs (more servers, a cache for reads, read replicas, a waiting room that lets people in at a steady rate) by capacity, cost and what customers experience, choose one, and write the design note.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in