ProblemsSSA0030

Inventory Is Wrong

Hard

Problem

Paradox Shop's storefront serves 1,200 requests/second of inventory reads through a cache, while a warehouse system publishes stock-change events through a queue that a worker consumes and writes to the database. A sale must be reflected in what customers see within 10 seconds, not up to a full TTL later; customers must never see 'in stock' on an item that just sold out. Build both paths, and bound how stale a cached count can ever be while still meaningfully protecting the database.

Required components

Click to add a component to the canvas.

Additional components

Browse by category. Click or drag a component onto the canvas.

Drag components from the library onto the canvas, then drag from a component's right handle to connect it to another.

100%

Design canvas

Sign up to start designing

Sign up free

Premium is free for 58 more days.

$0 / $1,850