Throttled at 30,000 RCU
Easy · system design problem
A flash-sale item makes 40% of reads and writes hit one partition key. Reads and writes throttle separately — and raising RCU makes the reads worse.
cart-api stores carts in a DynamoDB table provisioned at 30,000 RCU and 8,000 WCU. At T+20s a limited sneaker drop starts: traffic rises 1.5× for the rest of the day and 40% of requests read or update the item’s stock record. DynamoDB splits a table into partitions of ~3,000 RCU each, and one key lives on one partition. Carts are personalized; the stock record changes every second.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.