Index

Module 06 · System DesignThe stall, built

The stall, built: one counter in code (load balancing, health checks and caching in Go)

Design the Whole Thing
Design the Whole Thing · Open board

The whiteboard where every box had to be paid for by a number. This lesson takes three of those boxes, the gate, the slate and the rail, and writes them as one small program you can run on a laptop.

Before you start. You need the chai stall from The chai stall that got famous (load balancing): one famous stall became three, and a man at the gate sends each customer to one of them, which is a load balancer. You need the slate from The slate next to the stove (caching), a small board by the stove that remembers answers so the wala does not walk to the back room every time, which is a cache. You need the rail from The order slip rail (queues & the utilization cliff), a wire of paper slips that lets the counter take an order now and cook it later, which is a queue. Design the Whole Thing (the interview, assembled) put all three on one whiteboard; this lesson turns that whiteboard into code.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Review System Design →

Saved in this browser, and to your account when you sign in.