One DynamoDB table throttles even though consumed capacity is far below provisioned (or it is on-demand).
AdvancedTroubleshootingRDS, Aurora and DynamoDB
Answer
Likely causes → A hot partition. One partition key, such as status=PENDING, today's date or one big tenant, takes most of the traffic. Each partition is limited to about 3,000 RCU and 1,000 WCU per second, no matter how much the table has.
Diagnose →
aws dynamodb describe-contributor-insights --table-name orders
aws dynamodb update-contributor-insights --table-name orders --contributor-insights-action ENABLE
# then view top partition keys in CloudWatch Contributor Insights
Fix →
- Redesign the key for higher cardinality, for example write-sharding the hot key:
PENDING#<0-9> - Cache hot reads with DAX or ElastiCache
- Spread time-series writes across shard suffixes
Prevent → Model access patterns before you build the table, and keep Contributor Insights on for important tables.
More on RDS, Aurora and DynamoDB
The app cannot connect to RDS: `psql: error: connection to server at "mydb.abc.us-east-1.rds.amazonaws.com" (10.0.3.12), port 5432 failed: Connection timed out`.Beginner`FATAL: password authentication failed for user "postgres"` and nobody knows the master password.Beginner`FATAL: no pg_hba.conf entry for host "10.0.1.25", user "app", database "orders", no encryption`.IntermediateApp logs show `FATAL: remaining connection slots are reserved for non-replication superuser connections` (or MySQL `ERROR 1040 (HY000): Too many connections`).IntermediateRDS status shows `storage-full` and writes fail.IntermediateA read replica's `ReplicaLag` keeps growing and reports show stale data.Intermediate