Amazon DynamoDB Accelerator (DAX) is a fully managed, highly available, in-memory cache for DynamoDB that delivers up to a 10x performance improvement – from milliseconds to microseconds – even at millions of requests per second. DAX does all the heavy lifting required to add in-memory acceleration to your DynamoDB tables, without requiring developers to manage cache invalidation, data population, or cluster management.
6. DynamoDB: consistent performance at scale
ConsistentSingle-Digit Millisecond Latency
Requests(millions)
Latency(milliseconds)
Scalability Performance Security Availability & Data Protection Manageability Development Platform
“We cannot afford to waste a 3 or 4 milliseconds...”
“We have 20ms to make a decision… ”
9. Scalability Performance Security Availability & Data Protection Manageability Development Platform
DynamoDB
Cache
Your Applications
Traditional side cache
DynamoDB
Your Applications
Caching made simple
DynamoDB Accelerator
12. Scalability Performance Security Availability & Data Protection Manageability Development Platform
• Fully managed, highly available: handles all software management,
fault tolerant, replication across multi-AZs within a region
• DynamoDB API compatible: seamlessly caches DynamoDB API calls,
no application re-writes required
• Write-through: DAX handles caching for writes
• Flexible: Configure DAX for one table or many
• Scalable: scales-out to any workload with up to 10 read replicas
• Manageability: fully integrated AWS service: Amazon CloudWatch,
Tagging for DynamoDB, AWS Console
• Security: Amazon VPC, AWS IAM, AWS CloudTrail, AWS
Organizations
Features
DynamoDB Accelerator (DAX)
DynamoDB
Your Applications
DynamoDB Accelerator
13. What did we just do?
Scalability Performance Security Availability & Data Protection Manageability Development Platform
AWS VPC
EC2
App
DDB
SDK
DynamoDB
DAX
SDK
DAX
17. Q: How easy is it to add in-
memory caching with DAX?
A: Comment out the this code
and add this code
Scalability Performance Security Availability & Data Protection Manageability Development Platform
18. DAX is API compatible with DynamoDB
• Read APIs: GetItem, BatchGetItem, Query, Scan
• Modify APIs: PutItem, UpdateItem, DeleteItem,
BatchWriteItem
• Control plane APIs: Not supported (CreateTable,
DeleteTable, etc.)
Scalability Performance Security Availability & Data Protection Manageability Development Platform
19. Scalability Performance Security Availability & Data Protection Manageability Development Platform
DAX has two caches
Query Cache {query, scan}
Item Cache {GetItem, PutItem}
key, value
query text, result set
35. Scalability Performance Security Availability & Data Protection Manageability Development Platform
Customer Use Case #1: Unpredictable spikes
36. Scalability Performance Security Availability & Data Protection Manageability Development Platform
Customer Use Case #2: Speed
Response times in microseconds
37. Scalability Performance Security Availability & Data Protection Manageability Development Platform
Customer Use Case #3: Hot keys
RequestsPerSecond
Item Primary Key
Request Distribution Per Partition Key
DynamoDB Requests Cache Hits
38. Scalability Performance Security Availability & Data Protection Manageability Development Platform
Customer Use Cases
DynamoDB
App
DAX
DynamoDB
App
DynamoDB
App
Write-Through Cache
Read-Through Cache
Write-Back Cache
(not available today)
1 2
34
1 3
42
1
23
DAX
DAX
39. Scalability Performance Security Availability & Data Protection Manageability Development Platform
Repeated users are now being handled by the DAX cache
without making the more expensive (in both latency & cost)
call to DynamoDB
Shahar Kobrinky
VP of Architecture and Scale at Eyeview
“
”
DAX represents a big opportunity for us to
find the optimal balance between infrastructure cost and
system performance
Brandon O’Brien
Principle Software Engineer, Expedia, Inc.
“
”
DynamoDB Accelerator (DAX)
40. Scalability Performance Security Availability & Data Protection Manageability Development Platform
The AWS team has taken a best-practice architectural
pattern and turned it into something repeatable and
valuable for its customers
Glenn Nethercutt
Chief Architect, Genesys
“
”
The ability to supercharge DynamoDB with DAX is
something we're looking forward to
Pat Malatack
General Manager of Twilio Messaging
“
”
DynamoDB Accelerator (DAX)
41. Scalability Performance Security Availability & Data Protection Manageability Development Platform
Key Benefits
• Fast performance: Microseconds response
times at millions of reads/sec from single DAX
cluster
• Ease of use: DynamoDB API compatible -
requires minimal code change for existing
applications, simplifying developer experience
• Lower costs: Reduce provisioned read
capacity for DynamoDB tables for tables with
hot data
DynamoDB Accelerator (DAX)
DynamoDB
Your Applications
DynamoDB Accelerator
42. Learn more
Sign up for the DAX Preview
https://goo.gl/txHZmQ
Google ”DAX preview form”