Blog Posts

DynamoDB Throughput Provisioning Examples

Throughput and Pricing Example 1 (from Amazon docs)

Your application needs to perform 5 million writes and 5 million eventually consistent reads per day on a DynamoDB table, while storing 8 GB of data. Items are no larger than 1 KB in size. 

Pricing: $0.47 per WCU per month, At $0.09 per RCU per month, $0.25 per GB per month.

Write Capacity Units (WCUs)

= 5 million writes per day

= 57.9 writes per second.

1 WCU can handle 1 write per second, so you need 58 WCUs.

At $0.47 per WCU per month, 58 WCUs costs $27.26 per month.

DynamoDB Throughput Provisioning

DynamoDB throughput provisioning might look bit difficult to understand and hence adding examples.

 

Throughput Provisioning - Basic Concepts

Provisioned Throughput (Write)

  • One write capacity unit (WCU) provides up to one write per second

  • Enough for 2.5 million writes per month               

  • Price as low as  $0.47 per WCU

DynamoDB Pricing Concepts

Pay only for the resources you provision.

You do not allocate memory, CPU, and other system resources. Instead you specify the target utilization rate and minimum to maximum capacity that you want for your table.

DynamoDB handles the provisioning of resources to achieve your target utilization of read and write capacity, and also auto scales your capacity based on usage. 

Optionally, you can directly specify read and write capacity if you prefer to manually manage table throughput.

DynamoDB Conditional Operations and Atomic Counters

Updating items in DynamoDB has two special cases - Conditional Operations and Atomic Counters.  

 

Conditional Operations and Expressions

By default, the DynamoDB write operations (PutItem, UpdateItem, DeleteItem) are unconditional: each of these operations will overwrite an existing item that has the specified primary key. In certain cases such as multiple users attempting to modify the same item, this might create problems.

DynamoDB Data Model Overview - Table, Item, Attribute and Data Types

Data model for DynamoDB comprises of tables, items (rows) and attributes.

 

Table

A table is a collection of data items.

Table can have a single primary key called partition key or a composite key which contains both partition key and sort key.

 

Item (row)

An item is synonymous to a row in a traditional database.

DynamoDB - Overview and Important Features

DynamoDB is a fully managed distributed NoSQL database service from Amazon and as per Amazon, it can scale without limits.

 DynamoDB is the most popular NoSQL cloud database according to Forrester, as of Jan 2017.

DynamoDB automatically partitions and re-partitions your data as your table size grows.

Amazon Machine Images (AMI) Overview

An Amazon Machine Image (AMI) provides the information required to launch an EC2 instance.  

You specify an AMI when you launch an instance, and you can launch as many instances from the AMI as you need.

You can also launch instances from as many different AMIs as you need.

An AMI includes the following:

  1. A template for the root volume for the instance (for example, an operating system, an application server, and applications)

Pages

Learn Serverless from Serverless Programming Cookbook

Contact

Please first use the contact form or facebook page messaging to connect.

Offline Contact
We currently connect locally for discussions and sessions at Bangalore, India. Please follow us on our facebook page for details.
WhatsApp (Primary): (+91) 7411174113
Phone (Escalations): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.

About

CloudMaterials is my blog to share notes and learning materials on Cloud and Data Analytics. My current focus is on Microsoft Azure and Amazon Web Services (AWS).

I like to write and I try to document what I learn to share with others. I believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream