All guide activities

CH-04 · CHAPTER REVIEW

Scaling and load balancing

Solve these two questions after studying the chapter. State your assumptions and explain your reasoning.

Read. Try. Defend.

Companion to the Buildfest System Design guides.

Chapter review: two questions

Attempt both questions before opening the model answers.

Question 1

A fleet must serve 900 requests/s after one server fails. Each server handles an assumed 250 requests/s. Find the minimum total server count in the homogeneous ideal model.

Reveal model answer

The healthy fleet needs ceil(900 / 250) = 4 servers. Add one server for the stated single-instance failure, giving five total. Four total would leave only 750 requests/s after the failure. This does not account for other shared bottlenecks or detection delay.

Question 2

A load-balanced application has four healthy servers but one student's cart disappears when requests change servers. Identify the likely design issue and compare two fixes.

Reveal model answer

The cart may live only in an instance's private memory. Shared durable or appropriately persisted session storage lets another instance recover it. Sticky routing may temporarily preserve the experience but creates affinity, imbalance and loss exposure when that instance fails. Explain the selected durability contract.

Answers stay in this tab. Download before leaving. This practice is not graded or saved to your account.