← Roadmap / Level 5 · Distributed systems · lesson 1 of 11
Lesson 5.1
Why distributed is hard
Your turn · required
Keep checkout working
You run a shop where the payment code has just moved to its own computer, the payment service. The shop server now calls it over the network for every order. At each moment, choose what you would do. Watch the diagram and the meters to see what your choice does.
1A busy evening2Silence after 2 seconds3The service moves4The slow order page
- Checkouts that fail
- 3%▲
- Double charges a day
- 0
- Slowest page wait
- 45,000ms▲
- Support emails a day
- 60▲
Moment 1 of 4
A busy evening
Friday, 8 pm, 2,000 orders an hour. Most payment calls come back in half a second. But a few get no reply at all, and the shop server just keeps waiting. Some customers have stared at a spinning wheel for 45 seconds.
How long should the shop server wait for a reply?
Pass the exercise above to finish this lesson. You can still move on and come back later.