Amazon DynamoDB by Aswin

Preview:

DESCRIPTION

 

Citation preview

@agatestudio

DynamoDB

Aswin

Knight

Agate Studio

Amazon DynamoDB (Introduction)

Aswin Juari

Overview

• Amazon DynamoDB

• Getting Started

• Best Practice

Amazon DynamoDB

• Fully Managed NoSQL Database Service

• Unlimited traffic & storage :D.

• Scaling without downtime.

Getting Started with DynamoDB

• Define Primary Keys – Hash – Hash and Range

• Provisioned throughput: – Read Operation : Read Operation Per Second * Read Operation Data/ 4KB – Write Operation: Write Operation Per Second * size of item/1KB

• Note: You will be charged priced per hour of provisioned throughput

Example

Getting Started with DynamoDB

• Optional Element

– Secondary Index

• Local Secondary Index

• Global Secondary Index

• Transaction

Item Level Transaction only. Puts, updates, deletes, are ACID.

Local Secondary Index

• Hash key is the same with primary index

• Consume Read & Write from table

Global Secondary Index

• Hash Key can be different from hash Index

• Every read & write has its own provisioned throughput setting

• Notes: Global Secondary Index is like create a new table that has the same content, but different index. Meanwhile, local secondary index is the same table with the different range key.

Minus

• Cannot Modify Table Index

• You cannot query for not indexed attribute.

Best Practice

• Big Data Upload to S3

– DynamoDB only for Pointer

• Design Uniform Workload

– Avoid limited hash key values,

– Use distinct hash key values.

Further Research

• Development API

– How to Do Query