Behind the scenes, DDB throughput is controlled by the number of partitions that are allocated to your table. It is important to consider how your data will be spread across these partitions to ensure you get the performance you expect and have paid for.
We start this recipe by calculating the size of the items in your database, for throughput purposes. DDB has a minimum size it will consider, and even if an operation uses less than this size, it is rounded up in terms of allocated throughput used. The minimum size depends on the type of operation:
- Read operations are calculated in 4-K blocks
- Write operations are calculated in 1-K blocks
We then work out what the required RCU and WCU is, based on the expected number of operations. ...