Sharding a hot DynamoDB key to avoid throttling on on-demand tables
On-demand DynamoDB tables can still throttle when a single partition key receives very heavy write traffic, because each physical partition caps out at about 1,000 write units per second regardless of table size or capacity mode. The article recommends confirming the cause with the ThrottlingReasons field and CloudWatch Contributor Insights, which can identify the hot key. The suggested fix is write sharding: appending a numeric suffix to the key so writes spread across roughly twenty partitions, with reads summing all shards. Sizing is estimated with a 50 percent safety margin, and read and write shard counts must be raised in a careful order to avoid silently losing throughput. Sharding should be limited to the keys that actually need it, since it complicates reads.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in