DynamoDB Throttling (ProvisionedThroughputExceededException): Fixes
DynamoDB throttles when requests exceed table capacity or pile onto one hot partition key. Spread keys, adjust capacity, and retry with backoff.
Typical errors:
ProvisionedThroughputExceededException: The level of configured provisioned throughput
for the table was exceeded.
ThrottlingException: Rate of requests exceeds the allowed throughput.1. Check whether it's the whole table or one hot key
In CloudWatch, compare consumed capacity with provisioned capacity, and look at the ThrottledRequests metric.
CloudWatch Contributor Insights for DynamoDB shows the most-accessed keys.
- The whole table is at its limit: you need more capacity.
- The table has headroom but still throttles: you have a hot partition. Too many requests are hitting the same partition key.
2. Fix hot partitions with better keys
Each partition handles roughly 3,000 reads and 1,000 writes per second. A key like status or today's date sends
everything to a few partitions. Use high-cardinality keys (user ID, order ID), or add a random suffix to spread
writes for very hot items (write sharding).
3. Adjust capacity
- Provisioned mode: raise capacity or enable auto scaling. Auto scaling reacts in minutes, not seconds.
- On-demand mode: handles spikes up to about double your previous peak instantly. Bigger sudden jumps can still throttle briefly while it adapts.
4. Don't forget GSIs
A Global Secondary Index with too little write capacity throttles writes to the base table too. Check each GSI's metrics.
5. Retry with backoff and smooth the traffic
The AWS SDKs retry throttled requests automatically with exponential backoff, and you can raise the retry count. For bulk loads, slow down batch writes, or put an SQS queue in front to absorb bursts.
Repeated reads of the same items? A cache (DAX or ElastiCache) removes that load from the table entirely.
Learn more: DynamoDB keys, Design tips & common mistakes, and On-demand vs provisioned.
Key takeaways
- Compare consumed vs provisioned capacity to tell a capacity problem from a hot key.
- High-cardinality partition keys spread load across partitions.
- Under-provisioned GSIs throttle base-table writes, and the SDK retries with backoff.