You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Understanding DynamoDB's capacity modes and pricing model is essential for controlling costs and ensuring performance. This lesson covers on-demand and provisioned capacity, auto-scaling, reserved capacity, and how to estimate costs.
DynamoDB measures throughput in capacity units:
| Read Type | Size | RCUs |
|---|---|---|
| Strongly consistent | Up to 4 KB | 1 RCU |
| Eventually consistent | Up to 4 KB | 0.5 RCU |
| Transactional | Up to 4 KB | 2 RCUs |
For items larger than 4 KB, DynamoDB rounds up. For example, a 6 KB item consumes 2 RCUs for a strongly consistent read.
| Write Type | Size | WCUs |
|---|---|---|
| Standard | Up to 1 KB | 1 WCU |
| Transactional | Up to 1 KB | 2 WCUs |
For items larger than 1 KB, DynamoDB rounds up. For example, a 3 KB item consumes 3 WCUs.
DynamoDB offers two capacity modes:
Pay per request with no capacity planning:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.