Amazon DynamoDB (50 Qs)•Part 3: Advanced Architecture, Scale & Internals (Senior / Lead)
What are the best practices for Primary Key design to prevent write throttling?
senior LevelSystem Design
In Simple Words:
- Use high-cardinality values for Partition Keys (UUIDs, User IDs, Device IDs).
- Avoid low-cardinality keys like status flags, boolean values, or day/month dates.
- If temporal data is required, prefix date with entity ID:
USER#101#2026-03. - Add random or calculated suffixes (sharding salt:
0..N) to hot write partitions.