0

I know that dynamoDB supports shards. I wanted to know that is it possible to add shards dynamically. Suppose I provisioned 4 shards and shardkey would be customerID.

  • Now in the future I want to provision 6 more shards, is it possible to add it?
  • Suppose if we can add 6 more shards how will the old data gets remapped to new shards and will the availability or consistency take hit?

For remapping my guess is that they must using consistent hashing.

1 Answer 1

3

No, There is no way to provision partitions as many as you want manually.

The number of Dynamodb partition is decided by specific criteria.

This is the criteria.

  1. Partitions by capacity = (RCUs/3000) + (WCUs/1000)
    • It is depending on how many capacity you provision to the table.
  2. Partitions by size = TableSizeInGB/10
    • It is depending on how far the table size is.

Total Partitions = Take the largest of your Partitions by capacity and Partitions by size and round this up to an integer.

For more information, I recommend you read the post .

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.