heartin's blog

DynamoDB Conditional Operations and Atomic Counters

Updating items in DynamoDB has two special cases - Conditional Operations and Atomic Counters.  

 

Conditional Operations and Expressions

By default, the DynamoDB write operations (PutItem, UpdateItem, DeleteItem) are unconditional: each of these operations will overwrite an existing item that has the specified primary key. In certain cases such as multiple users attempting to modify the same item, this might create problems.

DynamoDB Data Model Overview - Table, Item, Attribute and Data Types

Data model for DynamoDB comprises of tables, items (rows) and attributes.

 

Table

A table is a collection of data items.

Table can have a single primary key called partition key or a composite key which contains both partition key and sort key.

 

Item (row)

An item is synonymous to a row in a traditional database.

Amazon Machine Images (AMI) Overview

An Amazon Machine Image (AMI) provides the information required to launch an EC2 instance.  

You specify an AMI when you launch an instance, and you can launch as many instances from the AMI as you need.

You can also launch instances from as many different AMIs as you need.

An AMI includes the following:

  1. A template for the root volume for the instance (for example, an operating system, an application server, and applications)

DynamoDB Accelerator (DAX) Overview

Amazon DynamoDB Accelerator (DAX) is a fully managed, highly available, in-memory cache for DynamoDB that enables you to benefit from fast in-memory performance for demanding applications. DAX improves the performance of read-intensive DynamoDB workloads so repeat reads of cached data can be served immediately with extremely low latency.

DynamoDB Storage Backend for Titan

The DynamoDB Storage Backend for Titan is a plug-in that allows you to use DynamoDB as the underlying storage layer for Titan graph database.

It is a client side solution that implements index free adjacency for fast graph traversals on top of DynamoDB.  

Using DynamoDB enables you to run graph workloads without having to manage your own cluster for graph storage.

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