Engineering Decisions · Senior · Question 10 of 14
A flash sale will push traffic past what the database can take, and it can't scale up in minutes. Checkout matters most, while browsing can degrade. What do you prepare?
- 1One big queue that holds every incoming request
- 2Autoscaling of the app servers on CPU usage
- 3Priority load shedding that protects checkout
Show the answer
Correct answer: Priority load shedding that protects checkout
Explanation
Shedding low-priority requests keeps the bottleneck healthy so the most valuable path still works. Autoscaling fits load limited by app servers, but more instances only push harder on the database here. A queue fits work that can wait, like reports, while users on a live page would simply time out in it.