Absorb the Burst
Easy · system design problem
A one-minute burst of writes overloads the database. There is no Kafka yet — add it.
review-api writes every review straight to PostgreSQL and also serves reads from it. A celebrity is about to share a product: for one minute traffic will be 2.5× normal, and the database cannot take that many writes. Reviews may appear a little late (up to 2 minutes), but reads and submissions must keep succeeding.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.