SlideShare a Scribd company logo
Auto scale DynamoDB
with
Dynamic DynamoDB
Sebastian Dahlgren!
@sebdah
Project overview
Throughput metrics via CloudWatch
Supports auto scaling of

tables & global secondary indexes



Live for about a year
>10.000 monthly downloads
Open source
Background
Auto scaling is important!
- Saves money

- Saves your skin
No auto scaling in DynamoDB
Basic config example
Configuration
• [global]	
  
o AWS credentials
o Check interval
o Circuit breaker
• [logging]	
  
o Logging settings
o Supports external logging config
• [table:	
  my_table]	
  
o Rules for scaling a certain table
o Maintenance windows
• [gsi:	
  my_gsi	
  table:	
  my_table]	
  
o Rules for scaling Global Secondary Indexes
Handling many tables or
dynamic table names
• Table list refreshed for every iteration
o Addition of new tables
o Removal of old tables

• Use regular expressions in your configuration
[table:	
  ^daily_data.*$]
Scaling down
• DynamoDB limits down scaling to 4 times per UTC
day
• Optimize downscaling by using

o reads-­‐lower-­‐threshold

o writes-­‐lower-­‐threshold

o always-­‐decrease-­‐rw-­‐together

o maintenance-­‐windows
SNS notifications
• Get an email when your
provisioning is updated

• Currently supports:
o scale-up
o scale-down
Circuit breaker
• Dynamic DynamoDB
can poll an URL to
check system health

• All scaling is paused if
the URL does not
return HTTP 200	
  OK
CloudFormation template
• Launches a t1.micro
instance

(<$15/mo)
• Auto Scaling Group

min: 1, max: 1
• Running Dynamic
DynamoDB in daemon
mode
• Configuration on S3
Tadaa
Image publishing service
Thank you!
sebdah / dynamic-dynamodb

More Related Content

Similar to Autoscale DynamoDB with Dynamic DynamoDB (20)

PDF
DynamoDB Deep Dive
Amazon Web Services LATAM
 
PDF
AWS CLOUD 2018- Amazon DynamoDB기반 글로벌 서비스 개발 방법 (김준형 솔루션즈 아키텍트)
Amazon Web Services Korea
 
PPTX
갑작스러운 유저의 수요 증가에 현명하게 대처하는 방법
Amazon Web Services Korea
 
PDF
Intro to database_services_fg_aws_summit_2014
Amazon Web Services LATAM
 
PDF
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
Amazon Web Services Korea
 
PDF
Serverless on AWS : Understanding the hard parts at Serverless Meetup Dusseld...
Vadym Kazulkin
 
DOCX
Dynamo db pros and cons
Saniya Khalsa
 
PDF
Serverless on AWS : Understanding the hard parts at Froscon 2019
Vadym Kazulkin
 
PDF
DynamoDB Cost Optimization Masterclass: ScyllaDB as a DynamoDB Alternative
ScyllaDB
 
PDF
DynamoDB Cost Optimization Masterclass: Deep Dive on DynamoDB Pricing
ScyllaDB
 
PPTX
AWS SSA Webinar 33 - Getting started with databases on AWS Amazon DynamoDB
Cobus Bernard
 
PDF
Scalr: Setting Up Automated Scaling
Hakka Labs
 
PDF
AWS DynamoDB
Aléx Carvalho
 
PDF
DynamoDB Cost Optimization Considerations and Strategies by Alex DeBrie
ScyllaDB
 
PDF
Amazon DynamoDB
Kriti Katyayan
 
PDF
AWS DYNAMODB TWO CASE STUDIES.pdf
hayhadiabbas
 
PDF
Production Ready Serverless Java Applications in 3 Weeks AWS UG Cologne Febru...
Vadym Kazulkin
 
PPTX
Dynamodb ppt
Shellychoudhary1
 
PDF
Data Analytics on AWS
Danilo Poccia
 
PPTX
Autoscaling Spark on AWS EC2 - 11th Spark London meetup
Rafal Kwasny
 
DynamoDB Deep Dive
Amazon Web Services LATAM
 
AWS CLOUD 2018- Amazon DynamoDB기반 글로벌 서비스 개발 방법 (김준형 솔루션즈 아키텍트)
Amazon Web Services Korea
 
갑작스러운 유저의 수요 증가에 현명하게 대처하는 방법
Amazon Web Services Korea
 
Intro to database_services_fg_aws_summit_2014
Amazon Web Services LATAM
 
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
Amazon Web Services Korea
 
Serverless on AWS : Understanding the hard parts at Serverless Meetup Dusseld...
Vadym Kazulkin
 
Dynamo db pros and cons
Saniya Khalsa
 
Serverless on AWS : Understanding the hard parts at Froscon 2019
Vadym Kazulkin
 
DynamoDB Cost Optimization Masterclass: ScyllaDB as a DynamoDB Alternative
ScyllaDB
 
DynamoDB Cost Optimization Masterclass: Deep Dive on DynamoDB Pricing
ScyllaDB
 
AWS SSA Webinar 33 - Getting started with databases on AWS Amazon DynamoDB
Cobus Bernard
 
Scalr: Setting Up Automated Scaling
Hakka Labs
 
AWS DynamoDB
Aléx Carvalho
 
DynamoDB Cost Optimization Considerations and Strategies by Alex DeBrie
ScyllaDB
 
Amazon DynamoDB
Kriti Katyayan
 
AWS DYNAMODB TWO CASE STUDIES.pdf
hayhadiabbas
 
Production Ready Serverless Java Applications in 3 Weeks AWS UG Cologne Febru...
Vadym Kazulkin
 
Dynamodb ppt
Shellychoudhary1
 
Data Analytics on AWS
Danilo Poccia
 
Autoscaling Spark on AWS EC2 - 11th Spark London meetup
Rafal Kwasny
 

Recently uploaded (20)

PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
July Patch Tuesday
Ivanti
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
July Patch Tuesday
Ivanti
 
Ad

Autoscale DynamoDB with Dynamic DynamoDB

  • 1. Auto scale DynamoDB with Dynamic DynamoDB Sebastian Dahlgren! @sebdah
  • 2. Project overview Throughput metrics via CloudWatch Supports auto scaling of
 tables & global secondary indexes
 
 Live for about a year >10.000 monthly downloads Open source
  • 3. Background Auto scaling is important! - Saves money
 - Saves your skin No auto scaling in DynamoDB
  • 5. Configuration • [global]   o AWS credentials o Check interval o Circuit breaker • [logging]   o Logging settings o Supports external logging config • [table:  my_table]   o Rules for scaling a certain table o Maintenance windows • [gsi:  my_gsi  table:  my_table]   o Rules for scaling Global Secondary Indexes
  • 6. Handling many tables or dynamic table names • Table list refreshed for every iteration o Addition of new tables o Removal of old tables
 • Use regular expressions in your configuration [table:  ^daily_data.*$]
  • 7. Scaling down • DynamoDB limits down scaling to 4 times per UTC day • Optimize downscaling by using
 o reads-­‐lower-­‐threshold
 o writes-­‐lower-­‐threshold
 o always-­‐decrease-­‐rw-­‐together
 o maintenance-­‐windows
  • 8. SNS notifications • Get an email when your provisioning is updated
 • Currently supports: o scale-up o scale-down
  • 9. Circuit breaker • Dynamic DynamoDB can poll an URL to check system health
 • All scaling is paused if the URL does not return HTTP 200  OK
  • 10. CloudFormation template • Launches a t1.micro instance
 (<$15/mo) • Auto Scaling Group
 min: 1, max: 1 • Running Dynamic DynamoDB in daemon mode • Configuration on S3
  • 12. Thank you! sebdah / dynamic-dynamodb