Amazon DynamoDB
Global Tables
Globally-replicated, reliable, and fast database
Simone Lusenti
Co-founder & CTO @ Digital Attitude Srl
twitter.com/Lanzone31
github.com/lusentis
Amazon DynamoDB
- No-SQL
- No servers!
- IAM Support, up to item-level permissions (FGAC)
- Lambda Triggers
- 1-Click infinite scalability (unlimited size and throughput)
- Single-digit millisecond latency
- Encryption at rest
- Managed Backup & Restore
- Global Tables
2018 Updates
Amazon DynamoDB
Amazon DynamoDB
Global Tables
Amazon DynamoDB Global Tables
Use Case #2
Amazon DynamoDB Global Tables
Use Case #1
Latency?
Amazon DynamoDB Global Tables
- 1-click, fully managed (serverless!)
- multi-region
- multi-master
Amazon DynamoDB Global Tables
{
When an application writes data to a replica table in one region,
DynamoDB automatically propagates the write to the other replica tables, within seconds.
Eventual consistency in a few seconds!
Amazon DynamoDB Global Tables
A DynamoDB Global Table consists of multiple Replica Tables, max one per region, that DynamoDB treats as a single table.
{
Amazon DynamoDB Global Tables
Performance:
- same single-digit millisecond latency for regional access
- reasonable price
(~50% more than standard WCU, ask Alex)
- plan the appropriate write capacity
(2x, auto scaling is highly recommended)
Demo :)
Amazon DynamoDB Global Tables
- tables must be empty
- tables must have streams enabled
Requirements:
- tables must have the same name
Amazon DynamoDB Global Tables
Restrictions:
- not supported by CloudFormation
- no consistent read support*
- last writer wins conflict resolution
- up to 1 replica per region
Amazon DynamoDB
Developer Guide: https://goo.gl/NFThSt
"How to Build a Regionally Distributed Serverless Application" https://www.youtube.com/watch?v=6uijFRFURPQ
Demo source code: https://github.com/lusentis/serverless-talks
DynamoDB 20180219
By Simone Lusenti
DynamoDB 20180219
Introduction to new DynamoDB features, introduced during re:Invent 2017
- 165