heartin's blog

DynamoDB Secondary Indexes

For efficient access to data in a table, DynamoDB creates and maintains indexes for the primary key attributes. You can also create one or more secondary indexes on a table.

Can query the secondary index just as you would query a table. Secondary indexes are also specified with a partition key and a sort key. 

Amazon EFS with EC2

Amazon Elastic File System (Amazon EFS) is a simple, scalable file storage for use with Amazon EC2 instances in the AWS Cloud.  With Amazon EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files.

 

EC2 Pricing Options - On Demand, Reserved, Spot, Dedicated

Amazon EC2 can be used with various pricing options such as on-demand, reserved, spot and dedicated server. 

 

On Demand

  1. Pay fixed rate per hour without any commitment.

  2. Suitable for applications that are:

    1. Short term and cannot be interrupted.

    2. Developed and tested on EC2 for first time.

 

Amazon EBS Overview

Amazon Elastic Block Store (EBS) provides persistent block storage volumes for use with Amazon EC2 instances.

Each EBS volume is automatically replicated within its Availability Zone to protect you from component failure.

With EBS, you can scale your usage up or down within minutes.

EBS is designed for application workloads that benefit from fine tuning for performance, cost and capacity.

 

EC2 Storage Options Overview: Instance Store, EBS Backed and Snapshots

Storage for the root device of an EC2 instance can be either Instance Store (ephemeral storage) or EBS backed volumes.

Ephemeral disk is a temporary storage that is added to your instance and is not persistant. 

EBS volume is a durable, block-level storage device that you can attach to a single EC2 instance. 

Root device type of an AMI is displayed on the AMI selection page. 

 

Auto Scaling DynamoDB Tables

DynamoDB Auto Scaling automatically scales up or down provisioned read and write capacity of a DynamoDB table or a global secondary index, as application requests increase or decrease.

There are no additional cost to using Auto Scaling, beyond what you already pay for DynamoDB and CloudWatch alarms.

Auto Scaling Benefits:

  1. Eliminates the guesswork involved in provisioning adequate capacity when creating new tables

DynamoDB Errors and Exceptions - Running List

Will add errors and exceptions that I come across here.

LimitExceededException

The number of concurrent table requests (cumulative number of tables in the CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10.

Also, for tables with secondary indexes, only one of those tables can be in the CREATING state at any point in time. Do not attempt to create more than one such table simultaneously.

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