All Questions
Scaling Writes easy

A user clicks 'Generate Report'. This operation requires a heavy database write that takes 10 seconds. To keep the website responsive, what is the best architectural pattern?

  1. A Use a faster CPU.
  2. B Place the request in a Message Queue and have a background worker process the write asynchronously.
  3. C Increase the browser timeout.
  4. D Run the write on the user's computer.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions