Book Image

DynamoDB Applied Design Patterns

By : Uchit Hamendra Vyas
Book Image

DynamoDB Applied Design Patterns

By: Uchit Hamendra Vyas

Overview of this book

Table of Contents (17 chapters)
DynamoDB Applied Design Patterns
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Uniform workload


For uniform data access within items in your tables, you have to identify the workload patterns on items/tables. Your provisioned throughput is dependent on the primary key plus pattern of workload on items. At the time of storing data, DynamoDB will divide your items into more than one partition and will distribute your data based on the hash key element. So your throughput will be associated with a table which is also divided among partitions. This throughput will be based on no sharing among all partitions.

To get the quantity of requested throughput, you have to keep your workload spread out evenly among the hash key values. By distributing the hash key values, you can distribute the requests across multiple partitions.

Let's take an example. If your table has a single hash key element for your content, and supposing your hash key element is heavily accessed, the traffic will be concentrated in a small number of partitions. Here you have only one for example. So from the...