sheepinwild
sheepinwild

Reputation: 541

DynamoDB throttling and hot partition?

I have a DynamoDB table that has provisioned read way above the consumed read, the utilization percentage is 70%.

I'm still getting throttling on the table and I couldn't figure out why. Once thing I'm suspecting is hot partition, but I'm unable to verify.

In the case of hot partitioning, does it throttle only the read to the hot partition, or to reads to all partitions?

Upvotes: 0

Views: 1205

Answers (1)

Leeroy Hannigan
Leeroy Hannigan

Reputation: 19873

A single partition can serve 1000WCU and 3000RCU. If you consume capacity on a single partition exceeding that you will be throttled.

If you have a number of keys sharing the same partition then throttling will be for all keys sharing that partition. DynamoDB does have Adaptive Capacity feature that can isolate hot keys but would sometimes have to have some throttling before that happens.

2 things you can try:

  1. Enable CloudWatch contributor insights to understand which keys are throttling allowing you to make necessary changes.
  2. Scale the table up to a large WCU manually, once complete re-enable your autoscaling as before, this will give you more partitions in the backend which may reduce your throttling by separating keys.

Upvotes: 0

Related Questions