All Questions
Scaling Writes medium

Your traffic has huge spikes (10x load) every hour. Your database crashes during these spikes. How does a Message Queue help scaling writes?

  1. A It makes the database faster.
  2. B It acts as a buffer. The Queue accepts writes instantly during the spike, and a 'Worker' process drains the queue at a constant, safe speed that the database can handle.
  3. C It deletes excess messages.
  4. D It compresses the data.

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

Get the app

Related questions