amazon dynamodb by aswin

12
@agatestudio DynamoDB Aswin Knight Agate Studio

Upload: agate-studio

Post on 26-Jan-2015

112 views

Category:

Education


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Amazon DynamoDB by Aswin

@agatestudio

DynamoDB

Aswin

Knight

Agate Studio

Page 2: Amazon DynamoDB by Aswin

Amazon DynamoDB (Introduction)

Aswin Juari

Page 3: Amazon DynamoDB by Aswin

Overview

• Amazon DynamoDB

• Getting Started

• Best Practice

Page 4: Amazon DynamoDB by Aswin

Amazon DynamoDB

• Fully Managed NoSQL Database Service

• Unlimited traffic & storage :D.

• Scaling without downtime.

Page 5: Amazon DynamoDB by Aswin

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

Page 6: Amazon DynamoDB by Aswin

Example

Page 7: Amazon DynamoDB by Aswin

Getting Started with DynamoDB

• Optional Element

– Secondary Index

• Local Secondary Index

• Global Secondary Index

• Transaction

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

Page 8: Amazon DynamoDB by Aswin

Local Secondary Index

• Hash key is the same with primary index

• Consume Read & Write from table

Page 9: Amazon DynamoDB by Aswin

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.

Page 10: Amazon DynamoDB by Aswin

Minus

• Cannot Modify Table Index

• You cannot query for not indexed attribute.

Page 11: Amazon DynamoDB by Aswin

Best Practice

• Big Data Upload to S3

– DynamoDB only for Pointer

• Design Uniform Workload

– Avoid limited hash key values,

– Use distinct hash key values.

Page 12: Amazon DynamoDB by Aswin

Further Research

• Development API

– How to Do Query