DynamoDB Hot Partition That Throttled a Flash Sale

A product ID used as the DynamoDB partition key concentrated 80% of flash-sale reads on a single partition, causing sustained throttling.

Overview

A flash sale for one limited-edition sneaker sent every read to a single DynamoDB partition at more than twice its limit, and product pages failed for all users.

What happened

The catalog table used product_id as the partition key. DynamoDB hashes the partition key to choose the partition that stores an item, so every read of one product_id goes to the same partition. The hero product's item was read by three different sources at once, and all of them landed there.

Key concepts

  • Hot partition
  • Partition key design
  • Write sharding
  • DAX (DynamoDB Accelerator)

Interview questions

  • How do you redesign a DynamoDB product catalog to handle flash-sale access patterns without hot partitions?

Sign up free to read the full topic

More War Stories topics

Start free on Cariara · Coding problems · System design studio