Home › Forums › General Discussions › Dynamo DB Partitions Keys for distributing the workload evenly
-
Dynamo DB Partitions Keys for distributing the workload evenly
-
Having Difficulty understanding the statement -> “partition keys with high-cardinality attributes, which have a large number of distinct values for each item”. This statement I took from the Practice Exam. Adding complete question as below for your reference.
Ques – A Docker application, which is running on an Amazon ECS cluster behind a load balancer, is heavily using DynamoDB. You are instructed to improve the database performance by distributing the workload evenly and using the provisioned throughput efficiently.
Ans – partition keys with high-cardinality attributes, which have a large number of distinct values for each item
- This discussion was modified 2 years, 1 month ago by Gurpreet001.
-
Hello Gurpreet,
The storage location in which items are saved is determined by the value of their partition keys. That said, items with similar partition keys are grouped together. Each partition can deliver a limited amount of read/write capacity, hence, a table with low cardinality (small partition numbers) is more likely to cause a “hot partition” — that is, few partitions receiving a greater number of requests than other partitions. Having more distinct partition key values has a higher chance of spreading out requests evenly across a partition space.
Let me know if this answers your question.
Regards,
Carlo @ Tutorials Dojo
Log in to reply.