Find answers, ask questions, and connect with our
community around the world.

Home Forums General Discussions Dynamo DB Partitions Keys for distributing the workload evenly

  • Dynamo DB Partitions Keys for distributing the workload evenly

  • Gurpreet001

    Member
    October 1, 2022 at 10:03 pm

    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 1 year, 5 months ago by  Gurpreet001.
  • Carlo-TutorialsDojo

    Administrator
    October 3, 2022 at 11:15 pm

    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

  • Gurpreet001

    Member
    October 4, 2022 at 9:42 pm

    Thanks Carlo, got it!!

Viewing 1 - 3 of 3 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now