DynamoDB Throttling
- Only for DynamoDB Provisioned
- If exceed provisioned RCUs or WCUs, we get
ProvisionedThroughputExceededException
- Reasons
- Hot keys: one partition key is being read too many time
- Hot partitions
- Very large items
- Solutions
- Exponential Backoff (any AWS service)
- Redistribute partition keys
- If it's RCU issues for read, we can try DynamoDB Accelerator (DAX)
For DynamoDB Global Secondary Index (GSI)
- If the writes are throttled on the GSI, the main table will be throttled as well
- Even if the WCU on the main tables are fine
For Dynamo Local Secondary Index (LSI)
- Use WCUs and RCUs of the main table
- No special throttling considerations