All guide activities

CH-16 · CHAPTER REVIEW

Queues and failure handling

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

Jobs arrive at 120/s and six ideal consumers process 30/s each. How long does an old backlog of 1,800 jobs take to drain?

Reveal model answer

Capacity is 180/s, spare capacity is 60/s and the ideal drain time is 30 seconds. Work variation, failures and downstream quotas can make the real result worse.

Question 2

A payment request times out after a possible commit. Why should a retry preserve its original operation key?

Reveal model answer

The effect may already exist. A stable user-scoped key lets the service retrieve or reconcile that existing outcome; a fresh key may be interpreted as another purchase. Unknown outcome is not definite failure.

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