Quick Start on DynamoDB: Part 1

Image title

Quick start on DynamoDB

My intention is to make it loud and clear that learning Dynamo DB is simple and easy to use. Before we jump right into it, I would like to familiarize you with the following. This article can be considered a quick reference for the DynamoDB starters.

You may also like:  Should You Use DynamoDB? (Part 1)

This will help to unlearn the RDBMS mindset and give you enough torque for learning and implementing this quickly.

DynamoDB is

  • AWS NoSQL database
  • Fast and flexible
  • Cost-effective
  • Highly scalable
  • Secure and fault-tolerant

Terminology Mapping to RDBMS









Multicolumn – Primary                    

Mandatory Primary Key                            


Local Secondary Indexes


Global Secondary Indexes

Dynamo DB supports the following data types:


  • string

  • number

  • binary

  • Boolean


  • Stringset

  • Numberset

  • Binaryset

Doc Types:

Naming Conventions

Since Dynamo DB does not allow multiple database concept like RDBMS, we should follow some naming convention to identify the tables related to each project otherwise it will be difficult to maintain

We always suggest prefixing the table name with product.

e.g: myProduct.userTable

Consistency Models

 Strong Consistency:

A strongly consistent is used to read and return a result that reflects all the writes that was received as a successful response prior to the read.

  • Up to date

Eventual Consistency:

The eventual consistency option is used to maximize the read throughput. Consistency across all copies of data is usually reached within a second. Repeating a read after a short time should return the updated data.

  • 50% Cheaper
  • May or may not reflect the latest copy of data
  • Default consistency for all operations

Capacity Units

The read/write capacity mode controls how you are charged for read and write throughput and how you manage capacity. You can set the read/write capacity mode while creating a table. You can change it later.

Throughput Capacity

Read Capacity Unit


Write Capacity Unit

In the next article, we will see about Partition key, indexing, and creating tables using AWS consoles. Hope this helps.

Further Reading

Getting Started With DynamoDB and Spring

Working With DynamoDB

Comment here

This site uses Akismet to reduce spam. Learn how your comment data is processed.