Question 1
Topic: Heroku Platform
Skill tested: Select a scaling strategy that absorbs traffic spikes while managing dyno capacity.
A ticketing service runs a web process on Heroku Common Runtime. During scheduled onsales, request volume can rise sharply for several minutes and then return to its normal level. The application is stateless, and its operator can forecast the event but cannot guarantee the exact peak. The current web dyno count is sized for ordinary demand, and long-running requests are already being moved to background workers. The team wants to protect response times during the surge without paying for peak capacity all month. Which approach is most appropriate?
Autoscaling can adjust eligible dyno capacity in response to application demand, which better fits a brief, variable surge than maintaining peak dyno counts continuously. The team should configure suitable scaling targets and limits and monitor the result; autoscaling is not a substitute for capacity planning or performance testing. A permanent peak formation increases ongoing cost. Buildpacks assemble the slug and do not themselves provide request-level scaling. A follower database is for read scaling and does not add web-process capacity.