dynamodb

Important Reference Links for DynamoDB

Amazon home page for DynamoDB:

https://aws.amazon.com/dynamodb/

 

DynamoDB FAQs:

https://aws.amazon.com/dynamodb/faqs/

 

Limits in DynamoDB:

[Lab] DynamoDB with Java & Spring Part 4 - Testing and Verifying With Local DynamoDB

First, we will test using dynamodb local. There is also an embedded version of DynamoDB that can be started and stopped programmatically, which we will see in next note.

You can download, extract and run the local server. Developer guide for the DynamoDB local can be found at http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html.

 

Test Code

[Lab] DynamoDB with Java & Spring Part 3 - Scanning the Data

You can query or scan data from dynamodb. Query needs condition on a key and is more efficient. Scan is for providing a non-key condition and does a complete table scan. We will see two different ways to scan here and will do a query in a different note.

You can do scan in two ways:

  1. Calling scan on a Table object.

  2. Calling scan on the client object of type AmazonDynamoDB.

 

[Lab] DynamoDB with Java & Spring Part 2 - Data Loader and Cleanup Class

The client of type AmazonDynamoDB returned by the context class can be autowired into a variable of same type within the data loader class and used to create the DynamoDB object.

 

    final DynamoDB dynamoDB;

    @Autowired

    DefaultDataLoaderImpl(final AmazonDynamoDB client){

        dynamoDB = new DynamoDB(client);

    }

 

[Lab] DynamoDB with Java & Spring Part 1 - Setting Up Project and Environment

I will be using Spring Boot, however, I won’t be using any Spring Boot specific started dependencies for AWS. There will be a separate note on using spring-cloud-starter-aws starter dependency of Spring Boot.

This is the beginning of a new lab. Though having done the previous labs are an advantage, it is not a requirement.

 

Use Case - DynamoDB and IoT

We had designed an IoT rule engine specifically in AWS cloud and uses DynamoDB for dynamic storing and querying of device data.

Following are some of the arguments in favor of using DynamoDB for storing and querying device data within a cloud integrated IoT Rule Engine:

  • There is virtually no limit on the throughput or storage with DynamoDB.