Amazon DynamoDB is a fully managed ‘NoSQL Database Service” that provides fast performance with seamless scalability.
What is Amazon DynamoDB?
Amazon DynamoDB is a fully managed ‘NoSQL Database Service” that provides fast performance with seamless scalability. Amazon Dynamo DB can be used to create database tables to store any amount of data and serve any level of request traffic. Amazon DynamoDB spreads the tables to sufficient number of servers to handle the request capacity.
When to Use/Go for Amazon DynamoDB?
● Amazon DynamoDB can be used, when there is unpredictable/huge amount of data store is required for the applications.
● If the application is expected to manage maximum traffic, then it is better to go for Amazon DynamoDB as it provides the high performance and scalability.
Amazon SimpleDB vs Amazon DynamoDB
1. Good for smaller workloads.
2. Limited resources available.
3. Flexible Indexing due to less data.
4. Easy administration and consistency.
1. Best solution for high performance database.
2. Unlimited resources provided as required.
3. Cannot modify indexing.
4. Incremental Scalability and predictable high performance.
What are you Going to Learn?
● What are the Advantages of DynamoDB?
● Companies Depending on Amazon DynamoDB
● Terminology Used in Amazon DynamoDB
● How to Setup and Manage Amazon DynamoDB?
What are the Advantages of Amazon DynamoDB?
● Amazon DynamoDB provides seamless throughput and storage scaling via API and also a management console.
● Amazon DynamoDB tables do not have fixed schemas.
● There is no limit to the amount of data stored in Amazon DynamoDB and it automatically allocates storage as required.
● Amazon DynamoDB scales the tables over hundred of servers to share the distributed load.
● Amazon DynamoDB has a built-in fault tolerance service that replicates the data across three availability zones in a region to protect your valuable data.
● Amazon DynamoDB is a secure, cost effective and strong consistence database service.
Companies Depending on Amazon DynamoDB
● Amazon Cloud Drive
Terminology Used in Amazon DynamoDB
● Table : A table is a collection of items. Each table can have infinite number of items and they must have a primary key.
● Item : An item is composed of a primary or composite key and a flexible number of attributes. There is no limitation in the number of items, but the total size of an item must not exceed 64KB
● Attribute : Each attribute associated with a data item which is composed of an attribute name (e.g. “Family”) and a value or set of values (e.g. “father” or “mother, son, daughter”).
Below are some of the example APIs-
How to Setup and Manage Amazon DynamoDB?
● Sign in to AWS management console and open the Amazon DynamoDB console at https://console.aws.amazon.com/dynamodb/.
● Click Create table.
● Set the table name and primary key
● After setting the primary key and attribute details, click continue.
● In the next page, you can add indexes if required and then click continue.
● In the next page, you can set the throughput capacity of your database.
● After clicking continue, you can set the throughput alarms which are optional.
● At the end of the create table wizard, you can review your settings and click creat
● Once the table is created, it will be active the DynamoDB management console
● Click ‘Explore Table’ to browse the items inside the table.
● You can load data into the table using AWS sdk for Java, PHP or .NET
● You can query the table using the DynamoDB Management Console.
● You can also send queries using Java, PHP or .NET
● To Delete the table, you have to select the table and then click ‘Delete Table’ to delete the table from the Amazon DynamoDB table list.
Amazon DynamoDB can be monitored with basic threshold alarms and also using CloudWatch. The automatic scaling is managed by the DynamoDB as per the requirement to provide the predictable performance to application. Easy administration and high performance of the Amazon DynamoDB recommends it for large database applications ahead of other data store services.