Table of Contents

Aws - DynamoDB

About

Amazon implementation inspired by dynamo

Amazon DynamoDB is a nosql database that store its data as a key/value.

DynamoDB was introduced to address the limitations of SimpleDB

DynamoDb combine the best parts of:

Table

DynamoDB tables do not have a fixed schema but instead allow each data item to have any number of attributes, including multi-valued attributes.

The key (primary and sort) can not be changed.

Installation

Local

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html

Management

Create table

Key features

Consistency

A feature of Dynamo is eventual consistency through vector clocks.

vector clock

Each data item associated with a list of (server, timestamp) pairs indicating its version history.

Which pairs of vector clocks do not conflict? Select all that apply.

Answer C and D

Vector clocks conflict when all values in one clock are not later than or equal to all values in the other clock. This means the vector clock [(SX, A), (SY, B), (SZ, C)] does not conflict with the vector clock [(SX, D), (SY, E), (SZ, F)] if and only if A ≥ D, B ≥ E, and C ≥ F OR D ≥ A, E ≥ B, and F ≥ C. If a server has no entry in a specific clock, you can treat its time stamp as 0.

Configurable Consistency

If R + W > N, you can claim consistency but R + W < N means lower latency.

Documentation / Reference