Access DynamoDB DAX Cluster by installing sample application on EC2 Instance

Lab Details

  1. This lab walks you through the steps to launch and configure a DynamoDB DAX Cluster in the Amazon cloud.

  2. You will practice using Amazon Machine Images to launch Amazon EC2 Instances and use key pairs for SSH authentication to log into your instance then you will create a Go application followed by a sample DynamoDB table.

  3. You will run GetItem, Query, and Scan command to note down the timings with the DynamoDB table. And, then run the same command with DAX Cluster and check the duration of GetItem, Query, and Scan.

  4. Duration: 60 minutes

  5. AWS Region: US East (N. Virginia) us-east-1


What is DynamoDB Accelerator (DAX)?

  1. DynamoDB gives you a response in single-digit milliseconds. However, sometimes application demands the response in Microseconds. 

  2. DAX gives you in-memory acceleration to reduce the response time of eventually consistent from Single-digit milliseconds to microseconds.

  3. It is designed to run, within a VPC environment. It uses, Subnet groups and Security groups while creating a DAX Cluster.

  4. A use case for DynamoDB DAX

    • Applications that require to read same data over again and again

    • Cost-sensitive and read-sensitive applications.

    • If your application does repeat read over large datasets.

Architecture Diagram

Task Details

  1. Launching Lab Environment

  2. Create a Security group for DAX Cluster and EC2 instance

  3. Create a DAX Cluster

  4. Launching an EC2 instance

  5. SSH into EC2 Instance

  6. Install go lang, its application and copy the timings

  7. Run the GetItem, Query, and Scan with operation with the DAX Cluster and see the difference in time

  8. Validation of the lab

  9. Terminate EC2 instance and delete the DAX Cluster