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.