ProblemsSSA0067

Availability or Strong Consistency

Hard

Problem

Paradox Shop's global inventory counter needs to survive a network partition between regions; exactly the kind of thing that's especially likely to hit during a flash sale. A partition means you cannot have both full availability AND strong consistency on the same operation at the same time: something has to give. Design a data tier from scratch where the write path (decrementing stock) never oversells during a partition, even if that means a write occasionally has to wait or fail; while the read path (showing stock on the product page) keeps answering in degraded form, through a cache, rather than going down entirely.

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.