SlideShare ist ein Scribd-Unternehmen logo
1 von 42
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon DynamoDB Accelerator (DAX)
DynamoDB Just Got Faster
5/30/2017 Slides not intended for redistribution 2
Amazon DynamoDB
Fast and flexible NoSQL database
service for any scale
5/30/2017 3
DynamoDB Customers
Ad TechGaming IoTMobile Web
5/30/2017 4
Scalability Performance Security Availability Manageability Developer
Platform
5/30/2017 Slides not intended for redistribution 5
Performance
Scalability Performance Security Availability & Data Protection Manageability Development Platform
5/30/2017 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… ”
5/30/2017 7
Scalability Performance Security Availability & Data Protection Manageability Development Platform
5/30/2017 8
Scalability Performance Security Availability & Data Protection Manageability Development Platform
5/30/2017 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
DAX Demo
5/30/2017 11
Scalability Performance Security Availability & Data Protection Manageability Development Platform
Milliseconds to
microseconds
5/30/2017 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
5/30/2017 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
5/30/2017 Slides not intended for redistribution 14
Fully managed, highly available
5/30/2017 15
High Availability
Scalability Performance Security Availability & Data Protection Manageability Development Platform
AMAZON VPC
EC2
App
DAX
SDK
DynamoDB
AZ1
AZ2
AZ3
5/30/2017 Slides not intended for redistribution 16
DynamoDB API compatible
5/30/2017 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
5/30/2017 18
• 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
DAX is API compatible with DynamoDB
5/30/2017 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
5/30/2017 Slides not intended for redistribution 20
Write-through
5/30/2017 21
Scalability Performance Security Availability & Data Protection Manageability Development Platform
DynamoDB Accelerator (DAX): Reads
DynamoDB
Your Applications
DynamoDB Accelerator
t=1 GetItem
t=2 Cache Miss
t=3 GetItem
t=4 Populate cache
t=5 Return item
5/30/2017 22
Scalability Performance Security Availability & Data Protection Manageability Development Platform
DynamoDB Accelerator (DAX): Reads
DynamoDB
Your Applications
DynamoDB Accelerator
t=1 GetItem
t=2 Cache Hit
t=3 Return item
5/30/2017 23
Scalability Performance Security Availability & Data Protection Manageability Development Platform
DynamoDB Accelerator (DAX): Write-through
DynamoDB
Your Applications
DynamoDB Accelerator
t=1 PutItem
t=2 Write
t=3 Populate cache
t=4 Return item
5/30/2017 24
Scalability Performance Security Availability & Data Protection Manageability Development Platform
DynamoDB Accelerator (DAX): Read after Write
DynamoDB
Your Applications
DynamoDB Accelerator
t=1 GetItem
t=2 Cache Hit
t=3 Return item
5/30/2017 Slides not intended for redistribution 25
Flexible
5/30/2017 26
Scalability Performance Security Availability & Data Protection Manageability Development Platform
DynamoDB Accelerator (DAX): Flexible
DynamoDB
Your Application
DynamoDB Accelerator
Table #1
DynamoDB
Your Application
DynamoDB Accelerator
Table #1
Table #2
DynamoDB
Your Applications
DynamoDB Accelerator
Table #1
DynamoDB
Your Applications
DynamoDB Accelerator
Table #1
Table #2
One-to-One One-to-Many Many-to-One Many-to-Many
5/30/2017 Slides not intended for redistribution 27
Scalable
5/30/2017 28
Scaling DAX
. . .
Scale Up
(15.25 GiB to 244 GiB)
Scale-out
Scale Out
(up to 10 replicas)
Scale-up
. . .
Scalability Performance Security Availability & Data Protection Manageability Development Platform
5/30/2017 Slides not intended for redistribution 29
Manageability
5/30/2017 30
Scalability Performance Security Availability & Data Protection Manageability Development Platform
Amazon
CloudWatch
AWS Management
Console
Cost-based
Tagging
5/30/2017 31
Cache Eviction
Scalability Performance Security Availability & Data Protection Manageability Development Platform
Time-to-live (TTL) Least Recently Used
(LRU)
Write-through
eviction
5/30/2017 Slides not intended for redistribution 32
Security
5/30/2017 Slides not intended for redistribution 33
VPC subnet IAM
AWS
CloudTrail
Scalability Performance Security Availability & Data Protection Manageability Development Platform
5/30/2017 Slides not intended for redistribution 34
Customer scenarios
5/30/2017 35
Scalability Performance Security Availability & Data Protection Manageability Development Platform
Customer Use Case #1: Unpredictable spikes
5/30/2017 36
Scalability Performance Security Availability & Data Protection Manageability Development Platform
Customer Use Case #2: Speed
Response times in microseconds
5/30/2017 37
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
5/30/2017 38
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)
5/30/2017 39
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)
5/30/2017 40
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
5/30/2017 41
Learn more
• DAX: https://aws.amazon.com/dynamodb/dax/
• Introducing DAX: https://www.youtube.com/watch?v=weWRdSqrxfs
• Documentation: http://s3.amazonaws.com/dynamodb-preview-dax/DAX.html
• DAX Announcement blog: https://aws.amazon.com/blogs/aws/amazon-dynamodb-
accelerator-dax-in-memory-caching-for-read-intensive-workloads/
Thank you!

Weitere ähnliche Inhalte

Mehr von Amazon Web Services

Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSAmazon Web Services
 
AWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAmazon Web Services
 
Crea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightCrea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightAmazon Web Services
 
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotCostruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotAmazon Web Services
 
Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Amazon Web Services
 
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?Amazon Web Services
 
Protect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksProtect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksAmazon Web Services
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Amazon Web Services
 

Mehr von Amazon Web Services (20)

Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWS
 
AWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei server
 
Crea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightCrea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSight
 
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotCostruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
 
Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows
 
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
 
Protect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksProtect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced Attacks
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
 

Kürzlich hochgeladen

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 

Kürzlich hochgeladen (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

DynamoDB: Architectural Patterns and Best Practices for Infinitely Scalable Applications - May 2017 AWS Online Tech Talks

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon DynamoDB Accelerator (DAX) DynamoDB Just Got Faster
  • 2. 5/30/2017 Slides not intended for redistribution 2 Amazon DynamoDB Fast and flexible NoSQL database service for any scale
  • 3. 5/30/2017 3 DynamoDB Customers Ad TechGaming IoTMobile Web
  • 4. 5/30/2017 4 Scalability Performance Security Availability Manageability Developer Platform
  • 5. 5/30/2017 Slides not intended for redistribution 5 Performance Scalability Performance Security Availability & Data Protection Manageability Development Platform
  • 6. 5/30/2017 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… ”
  • 7. 5/30/2017 7 Scalability Performance Security Availability & Data Protection Manageability Development Platform
  • 8. 5/30/2017 8 Scalability Performance Security Availability & Data Protection Manageability Development Platform
  • 9. 5/30/2017 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
  • 11. 5/30/2017 11 Scalability Performance Security Availability & Data Protection Manageability Development Platform Milliseconds to microseconds
  • 12. 5/30/2017 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. 5/30/2017 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
  • 14. 5/30/2017 Slides not intended for redistribution 14 Fully managed, highly available
  • 15. 5/30/2017 15 High Availability Scalability Performance Security Availability & Data Protection Manageability Development Platform AMAZON VPC EC2 App DAX SDK DynamoDB AZ1 AZ2 AZ3
  • 16. 5/30/2017 Slides not intended for redistribution 16 DynamoDB API compatible
  • 17. 5/30/2017 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. 5/30/2017 18 • 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 DAX is API compatible with DynamoDB
  • 19. 5/30/2017 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
  • 20. 5/30/2017 Slides not intended for redistribution 20 Write-through
  • 21. 5/30/2017 21 Scalability Performance Security Availability & Data Protection Manageability Development Platform DynamoDB Accelerator (DAX): Reads DynamoDB Your Applications DynamoDB Accelerator t=1 GetItem t=2 Cache Miss t=3 GetItem t=4 Populate cache t=5 Return item
  • 22. 5/30/2017 22 Scalability Performance Security Availability & Data Protection Manageability Development Platform DynamoDB Accelerator (DAX): Reads DynamoDB Your Applications DynamoDB Accelerator t=1 GetItem t=2 Cache Hit t=3 Return item
  • 23. 5/30/2017 23 Scalability Performance Security Availability & Data Protection Manageability Development Platform DynamoDB Accelerator (DAX): Write-through DynamoDB Your Applications DynamoDB Accelerator t=1 PutItem t=2 Write t=3 Populate cache t=4 Return item
  • 24. 5/30/2017 24 Scalability Performance Security Availability & Data Protection Manageability Development Platform DynamoDB Accelerator (DAX): Read after Write DynamoDB Your Applications DynamoDB Accelerator t=1 GetItem t=2 Cache Hit t=3 Return item
  • 25. 5/30/2017 Slides not intended for redistribution 25 Flexible
  • 26. 5/30/2017 26 Scalability Performance Security Availability & Data Protection Manageability Development Platform DynamoDB Accelerator (DAX): Flexible DynamoDB Your Application DynamoDB Accelerator Table #1 DynamoDB Your Application DynamoDB Accelerator Table #1 Table #2 DynamoDB Your Applications DynamoDB Accelerator Table #1 DynamoDB Your Applications DynamoDB Accelerator Table #1 Table #2 One-to-One One-to-Many Many-to-One Many-to-Many
  • 27. 5/30/2017 Slides not intended for redistribution 27 Scalable
  • 28. 5/30/2017 28 Scaling DAX . . . Scale Up (15.25 GiB to 244 GiB) Scale-out Scale Out (up to 10 replicas) Scale-up . . . Scalability Performance Security Availability & Data Protection Manageability Development Platform
  • 29. 5/30/2017 Slides not intended for redistribution 29 Manageability
  • 30. 5/30/2017 30 Scalability Performance Security Availability & Data Protection Manageability Development Platform Amazon CloudWatch AWS Management Console Cost-based Tagging
  • 31. 5/30/2017 31 Cache Eviction Scalability Performance Security Availability & Data Protection Manageability Development Platform Time-to-live (TTL) Least Recently Used (LRU) Write-through eviction
  • 32. 5/30/2017 Slides not intended for redistribution 32 Security
  • 33. 5/30/2017 Slides not intended for redistribution 33 VPC subnet IAM AWS CloudTrail Scalability Performance Security Availability & Data Protection Manageability Development Platform
  • 34. 5/30/2017 Slides not intended for redistribution 34 Customer scenarios
  • 35. 5/30/2017 35 Scalability Performance Security Availability & Data Protection Manageability Development Platform Customer Use Case #1: Unpredictable spikes
  • 36. 5/30/2017 36 Scalability Performance Security Availability & Data Protection Manageability Development Platform Customer Use Case #2: Speed Response times in microseconds
  • 37. 5/30/2017 37 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
  • 38. 5/30/2017 38 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)
  • 39. 5/30/2017 39 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)
  • 40. 5/30/2017 40 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
  • 41. 5/30/2017 41 Learn more • DAX: https://aws.amazon.com/dynamodb/dax/ • Introducing DAX: https://www.youtube.com/watch?v=weWRdSqrxfs • Documentation: http://s3.amazonaws.com/dynamodb-preview-dax/DAX.html • DAX Announcement blog: https://aws.amazon.com/blogs/aws/amazon-dynamodb- accelerator-dax-in-memory-caching-for-read-intensive-workloads/