SlideShare a Scribd company logo
Deep Dive on DynamoDB
Pricing
Alex DeBrie
Principal, DeBrie Advisory
Why I love
DynamoDB's pricing.
DynamoDB's pricing …
DynamoDB's pricing …
■ is predictable.
Predictable pricing
■ "able to reason about in advance"
■ Can reason about your costs before building
■ Can see the impact of changes
DynamoDB's pricing …
■ is predictable.
DynamoDB's pricing …
■ is predictable.
■ is flexible.
Flexible pricing
■ Can scale capacity up + down to match traffic
■ Can switch between modes
You get all this with world-class reliability +
availability
DynamoDB's pricing …
■ is predictable.
■ is flexible.
DynamoDB's pricing …
■ is predictable.
■ is flexible.
■ has a tight feedback loop.
Tight feedback loop
■ Understand what's driving your costs
■ Adjust as needed
■ Tight integration between resource usage +
your costs
DynamoDB's pricing should
change how you build
applications.
Outline
■ Why I love DynamoDB's pricing model
■ Basics of DynamoDB pricing
■ Tips for managing DynamoDB costs
Who am I?
Alex DeBrie
AWS Data Hero
Author, The DynamoDB Book
alexdebrie1@gmail.com
@alexbdebrie
Basics of DynamoDB Pricing
Basics of DynamoDB pricing
■ The core units
■ Macro factors
■ Micro factors
The core units: RCUs + WCUs
■ Pay for reads and writes directly rather than resources
○ Traditional databases: CPU, RAM, IOPS
○ DynamoDB: RCUs and WCUs
■ Read Capacity Units (RCUs) → up to 4KB of data read
■ Write Capacity Units (WCUs) → up to 1KB of data
written
■ Storage: priced per GB-month
Billing is (mostly) independent from performance!
Concurrent queries
Response
time
Saturation
Concurrent queries
Response
time
Throttling
Concurrent queries
Response
time
Saturation
The core units: RCUs + WCUs
■ Pay for reads and writes directly rather than resources
○ Traditional databases: CPU, RAM, IOPS
○ DynamoDB: RCUs and WCUs
■ Read Capacity Units (RCUs) → up to 4KB of data read
■ Write Capacity Units (WCUs) → up to 1KB of data written
■ Storage: priced per GB-month
Billing is (mostly) independent from performance!
Basics of DynamoDB pricing
■ The core units
■ Macro factors
■ Micro factors
Basics of DynamoDB pricing
■ The core units
■ Macro factors
■ Micro factors
The macro: DynamoDB modes
■ DynamoDB bill == operations + storage.
■ Billing modes
○ Provisioned throughput → RCUs & WCUs available on a
per-second basis
○ On-demand mode → Charged per request
■ Table storage class
○ Standard → Cheaper operations but more expensive storage
○ Standard-IA → Cheaper storage but more expensive
operations
Basics of DynamoDB pricing
■ The core units
■ Macro factors
■ Micro factors
Basics of DynamoDB pricing
■ The core units
■ Macro factors
■ Micro factors
The micro: WCU + RCU multipliers
■ Item size
■ Secondary indexes
■ Transactions
■ Global tables
■ Consistent Read
■ Query vs. BatchGet
Tight feedback loop
■ Understand what's driving your costs
■ Adjust as needed
■ Tight integration between resource usage +
your costs
The micro: WCU + RCU multipliers
■ Item size
■ Secondary indexes
■ Transactions
■ Global tables
■ Consistent Read
■ Query vs. BatchGet
← Larger items require more resources
← More writes
← Coordination
← Requests to more storage nodes
← Requires routing to leader
← Replication infra + conflict resolution
Basics of DynamoDB pricing
■ The core units
■ Macro factors
■ Micro factors
Managing DynamoDB Costs
Tips for managing DynamoDB
costs
■ Mind your multipliers!
The micro: WCU + RCU multipliers
■ Item size
■ Secondary indexes
■ Transactions
■ Global tables
■ Consistent Read
■ Query vs. BatchGet
Mind your multipliers
■ Review item sizes carefully
○ Remove unused attributes
○ Compress large values (or send to S3)
○ Reduce attribute names
○ Split items if needed
Mind your multipliers
■ Review item sizes carefully
Mind your multipliers
■ Review item sizes carefully
■ Limit secondary indexes
○ Do you need an index? Writes are ~20x more
than reads.
○ Use projections to limit size of items in index
Mind your multipliers
■ Review item sizes carefully
■ Limit secondary indexes
Mind your multipliers
■ Review item sizes carefully
■ Limit secondary indexes
■ Limit transactions
Mind your multipliers
■ Review item sizes carefully
■ Limit secondary indexes
■ Limit transactions
■ Ensure you need Global Tables
Mind your multipliers
■ Review item sizes carefully
■ Limit secondary indexes
■ Limit transactions
■ Ensure you need Global Tables
■ Don't use consistent reads
Tips for managing DynamoDB
costs
■ Mind your multipliers!
Tips for managing DynamoDB
costs
■ Mind your multipliers!
■ Audit your usage
The macro: DynamoDB modes
■ DynamoDB bill == operations + storage.
■ Billing modes
○ Provisioned throughput → RCUs & WCUs available
on a per-second basis
○ On-demand mode → Charged per request
■ Table storage class
○ Standard → Cheaper operations but more
expensive storage
○ Standard-IA → Cheaper storage but more
expensive operations
Audit your usage
■ Billing mode
Choosing a billing mode
■ On-Demand costs 6.94x fully-utilized Provisioned Capacity
○ But: full utilization is hard to achieve!
○ Requires >14.4% utilization on average
■ My advice:
○ Use On-Demand until it hurts.
○ If using Provisioned, ensure you're hitting >14.4% utilization.
○ Add Auto-Scaling with caution
○ Explore Reserved Capacity
Audit your usage
■ Billing mode
Audit your usage
■ Billing mode
■ Table storage class
Choosing a table storage class
■ Indifferent whenever Operations costs are 2.4x
Storage costs
○ If >2.4x, then use Standard storage
○ If <2.4x, then use Standard-IA
■ Standard storage will (almost) always be cheaper at
first
○ Writing 1KB == 5 months of storage
○ But: this shifts over time
■ Audit this monthly!
■ Use TTL to expire data
Audit your usage
■ Billing mode
■ Table storage class
Audit your usage
■ Billing mode
■ Table storage class
■ Review secondary indexes
Audit your usage
■ Billing mode
■ Table storage class
■ Review secondary indexes
○ Does my secondary index have any reads?
Audit your usage
■ Billing mode
■ Table storage class
■ Review secondary indexes
○ Does my secondary index have any reads?
○ What is the write:read cost ratio on my
secondary index?
Audit your usage
■ Billing mode
■ Table storage class
■ Review secondary indexes
Tips for managing DynamoDB
costs
■ Mind your multipliers!
■ Audit your usage
Tips for managing DynamoDB
costs
■ Mind your multipliers!
■ Audit your usage
■ Run the numbers
DynamoDB's pricing should
change how you build
applications.
The micro: WCU + RCU multipliers
■ Item size
■ Secondary indexes
■ Transactions
■ Global tables
■ Consistent Read
■ Query vs. BatchGet
← Larger items require more resources
← More writes
← Coordination
← Requests to more storage nodes
← Requires routing to leader
← Replication infra + conflict resolution
DynamoDB's pricing should
change how you build
applications.
Keep in touch!
Alex DeBrie
AWS Data Hero
Author, The DynamoDB Book
alexdebrie1@gmail.com
@alexbdebrie

More Related Content

Similar to DynamoDB Cost Optimization Masterclass: Deep Dive on DynamoDB Pricing (20)

PDF
How to squeeze AWS costs
Jacek Migdał
 
PPTX
iFood on Delivering 100 Million Events a Month to Restaurants with Scylla
ScyllaDB
 
PDF
Amazon RedShift - Ianni Vamvadelis
huguk
 
PDF
Evolution of DBA in the Cloud Era
Mydbops
 
PPTX
Cloud dwh
Alexander Tokarev
 
PPTX
AWS Cost Optimization
Miles Ward
 
PDF
Using Sketching Technology to Optimize Services with Fewer Resources by Yiche...
ScyllaDB
 
PDF
Scylla Summit 2022: Migrating SQL Schemas for ScyllaDB: Data Modeling Best Pr...
ScyllaDB
 
PDF
Database Performance at Scale Masterclass: Workload Characteristics by Felipe...
ScyllaDB
 
PDF
How Yieldmo Cut Database Costs and Cloud Dependencies Fast by Todd Coleman
ScyllaDB
 
PDF
Olap scalability
lucboudreau
 
PDF
Amazon DynamoDB by Aswin
Agate Studio
 
PDF
Data Lessons Learned at Scale - Big Data DC
Charlie Reverte
 
PDF
Elasticsearch as a time series database
felixbarny
 
PDF
How to get started in Big Data for master's students
Mohamed Nadjib MAMI
 
PDF
Denodo Data Virtualization Platform Architecture: Performance (session 2 from...
Denodo
 
PDF
Mongo nyc nyt + mongodb
Deep Kapadia
 
PPTX
Inside Expedia's Migration to ScyllaDB for Change Data Capture
ScyllaDB
 
PPTX
What's So Unique About a Columnar Database?
FlyData Inc.
 
PDF
MongoDB .local Munich 2019: A Complete Methodology to Data Modeling for MongoDB
MongoDB
 
How to squeeze AWS costs
Jacek Migdał
 
iFood on Delivering 100 Million Events a Month to Restaurants with Scylla
ScyllaDB
 
Amazon RedShift - Ianni Vamvadelis
huguk
 
Evolution of DBA in the Cloud Era
Mydbops
 
AWS Cost Optimization
Miles Ward
 
Using Sketching Technology to Optimize Services with Fewer Resources by Yiche...
ScyllaDB
 
Scylla Summit 2022: Migrating SQL Schemas for ScyllaDB: Data Modeling Best Pr...
ScyllaDB
 
Database Performance at Scale Masterclass: Workload Characteristics by Felipe...
ScyllaDB
 
How Yieldmo Cut Database Costs and Cloud Dependencies Fast by Todd Coleman
ScyllaDB
 
Olap scalability
lucboudreau
 
Amazon DynamoDB by Aswin
Agate Studio
 
Data Lessons Learned at Scale - Big Data DC
Charlie Reverte
 
Elasticsearch as a time series database
felixbarny
 
How to get started in Big Data for master's students
Mohamed Nadjib MAMI
 
Denodo Data Virtualization Platform Architecture: Performance (session 2 from...
Denodo
 
Mongo nyc nyt + mongodb
Deep Kapadia
 
Inside Expedia's Migration to ScyllaDB for Change Data Capture
ScyllaDB
 
What's So Unique About a Columnar Database?
FlyData Inc.
 
MongoDB .local Munich 2019: A Complete Methodology to Data Modeling for MongoDB
MongoDB
 

More from ScyllaDB (20)

PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PDF
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
PDF
Database Benchmarking for Performance Masterclass: Session 1 - Benchmarking F...
ScyllaDB
 
PDF
New Ways to Reduce Database Costs with ScyllaDB
ScyllaDB
 
PDF
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
PDF
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
ScyllaDB
 
PDF
Leading a High-Stakes Database Migration
ScyllaDB
 
PDF
Achieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
ScyllaDB
 
PDF
Securely Serving Millions of Boot Artifacts a Day by João Pedro Lima & Matt ...
ScyllaDB
 
PDF
How Agoda Scaled 50x Throughput with ScyllaDB by Worakarn Isaratham
ScyllaDB
 
PDF
ScyllaDB: 10 Years and Beyond by Dor Laor
ScyllaDB
 
PDF
Reduce Your Cloud Spend with ScyllaDB by Tzach Livyatan
ScyllaDB
 
PDF
Migrating 50TB Data From a Home-Grown Database to ScyllaDB, Fast by Terence Liu
ScyllaDB
 
PDF
Vector Search with ScyllaDB by Szymon Wasik
ScyllaDB
 
PDF
Workload Prioritization: How to Balance Multiple Workloads in a Cluster by Fe...
ScyllaDB
 
PDF
Two Leading Approaches to Data Virtualization, and Which Scales Better? by Da...
ScyllaDB
 
PDF
Scaling a Beast: Lessons from 400x Growth in a High-Stakes Financial System b...
ScyllaDB
 
PDF
Object Storage in ScyllaDB by Ran Regev, ScyllaDB
ScyllaDB
 
PDF
Lessons Learned from Building a Serverless Notifications System by Srushith R...
ScyllaDB
 
PDF
A Dist Sys Programmer's Journey into AI by Piotr Sarna
ScyllaDB
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
Database Benchmarking for Performance Masterclass: Session 1 - Benchmarking F...
ScyllaDB
 
New Ways to Reduce Database Costs with ScyllaDB
ScyllaDB
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
ScyllaDB
 
Leading a High-Stakes Database Migration
ScyllaDB
 
Achieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
ScyllaDB
 
Securely Serving Millions of Boot Artifacts a Day by João Pedro Lima & Matt ...
ScyllaDB
 
How Agoda Scaled 50x Throughput with ScyllaDB by Worakarn Isaratham
ScyllaDB
 
ScyllaDB: 10 Years and Beyond by Dor Laor
ScyllaDB
 
Reduce Your Cloud Spend with ScyllaDB by Tzach Livyatan
ScyllaDB
 
Migrating 50TB Data From a Home-Grown Database to ScyllaDB, Fast by Terence Liu
ScyllaDB
 
Vector Search with ScyllaDB by Szymon Wasik
ScyllaDB
 
Workload Prioritization: How to Balance Multiple Workloads in a Cluster by Fe...
ScyllaDB
 
Two Leading Approaches to Data Virtualization, and Which Scales Better? by Da...
ScyllaDB
 
Scaling a Beast: Lessons from 400x Growth in a High-Stakes Financial System b...
ScyllaDB
 
Object Storage in ScyllaDB by Ran Regev, ScyllaDB
ScyllaDB
 
Lessons Learned from Building a Serverless Notifications System by Srushith R...
ScyllaDB
 
A Dist Sys Programmer's Journey into AI by Piotr Sarna
ScyllaDB
 
Ad

Recently uploaded (20)

PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
Q2 Leading a Tableau User Group - Onboarding
lward7
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Q2 Leading a Tableau User Group - Onboarding
lward7
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Ad

DynamoDB Cost Optimization Masterclass: Deep Dive on DynamoDB Pricing

  • 1. Deep Dive on DynamoDB Pricing Alex DeBrie Principal, DeBrie Advisory
  • 4. DynamoDB's pricing … ■ is predictable.
  • 5. Predictable pricing ■ "able to reason about in advance" ■ Can reason about your costs before building ■ Can see the impact of changes
  • 6. DynamoDB's pricing … ■ is predictable.
  • 7. DynamoDB's pricing … ■ is predictable. ■ is flexible.
  • 8. Flexible pricing ■ Can scale capacity up + down to match traffic ■ Can switch between modes You get all this with world-class reliability + availability
  • 9. DynamoDB's pricing … ■ is predictable. ■ is flexible.
  • 10. DynamoDB's pricing … ■ is predictable. ■ is flexible. ■ has a tight feedback loop.
  • 11. Tight feedback loop ■ Understand what's driving your costs ■ Adjust as needed ■ Tight integration between resource usage + your costs
  • 12. DynamoDB's pricing should change how you build applications.
  • 13. Outline ■ Why I love DynamoDB's pricing model ■ Basics of DynamoDB pricing ■ Tips for managing DynamoDB costs
  • 14. Who am I? Alex DeBrie AWS Data Hero Author, The DynamoDB Book [email protected] @alexbdebrie
  • 16. Basics of DynamoDB pricing ■ The core units ■ Macro factors ■ Micro factors
  • 17. The core units: RCUs + WCUs ■ Pay for reads and writes directly rather than resources ○ Traditional databases: CPU, RAM, IOPS ○ DynamoDB: RCUs and WCUs ■ Read Capacity Units (RCUs) → up to 4KB of data read ■ Write Capacity Units (WCUs) → up to 1KB of data written ■ Storage: priced per GB-month Billing is (mostly) independent from performance!
  • 21. The core units: RCUs + WCUs ■ Pay for reads and writes directly rather than resources ○ Traditional databases: CPU, RAM, IOPS ○ DynamoDB: RCUs and WCUs ■ Read Capacity Units (RCUs) → up to 4KB of data read ■ Write Capacity Units (WCUs) → up to 1KB of data written ■ Storage: priced per GB-month Billing is (mostly) independent from performance!
  • 22. Basics of DynamoDB pricing ■ The core units ■ Macro factors ■ Micro factors
  • 23. Basics of DynamoDB pricing ■ The core units ■ Macro factors ■ Micro factors
  • 24. The macro: DynamoDB modes ■ DynamoDB bill == operations + storage. ■ Billing modes ○ Provisioned throughput → RCUs & WCUs available on a per-second basis ○ On-demand mode → Charged per request ■ Table storage class ○ Standard → Cheaper operations but more expensive storage ○ Standard-IA → Cheaper storage but more expensive operations
  • 25. Basics of DynamoDB pricing ■ The core units ■ Macro factors ■ Micro factors
  • 26. Basics of DynamoDB pricing ■ The core units ■ Macro factors ■ Micro factors
  • 27. The micro: WCU + RCU multipliers ■ Item size ■ Secondary indexes ■ Transactions ■ Global tables ■ Consistent Read ■ Query vs. BatchGet
  • 28. Tight feedback loop ■ Understand what's driving your costs ■ Adjust as needed ■ Tight integration between resource usage + your costs
  • 29. The micro: WCU + RCU multipliers ■ Item size ■ Secondary indexes ■ Transactions ■ Global tables ■ Consistent Read ■ Query vs. BatchGet ← Larger items require more resources ← More writes ← Coordination ← Requests to more storage nodes ← Requires routing to leader ← Replication infra + conflict resolution
  • 30. Basics of DynamoDB pricing ■ The core units ■ Macro factors ■ Micro factors
  • 32. Tips for managing DynamoDB costs ■ Mind your multipliers!
  • 33. The micro: WCU + RCU multipliers ■ Item size ■ Secondary indexes ■ Transactions ■ Global tables ■ Consistent Read ■ Query vs. BatchGet
  • 34. Mind your multipliers ■ Review item sizes carefully ○ Remove unused attributes ○ Compress large values (or send to S3) ○ Reduce attribute names ○ Split items if needed
  • 35. Mind your multipliers ■ Review item sizes carefully
  • 36. Mind your multipliers ■ Review item sizes carefully ■ Limit secondary indexes ○ Do you need an index? Writes are ~20x more than reads. ○ Use projections to limit size of items in index
  • 37. Mind your multipliers ■ Review item sizes carefully ■ Limit secondary indexes
  • 38. Mind your multipliers ■ Review item sizes carefully ■ Limit secondary indexes ■ Limit transactions
  • 39. Mind your multipliers ■ Review item sizes carefully ■ Limit secondary indexes ■ Limit transactions ■ Ensure you need Global Tables
  • 40. Mind your multipliers ■ Review item sizes carefully ■ Limit secondary indexes ■ Limit transactions ■ Ensure you need Global Tables ■ Don't use consistent reads
  • 41. Tips for managing DynamoDB costs ■ Mind your multipliers!
  • 42. Tips for managing DynamoDB costs ■ Mind your multipliers! ■ Audit your usage
  • 43. The macro: DynamoDB modes ■ DynamoDB bill == operations + storage. ■ Billing modes ○ Provisioned throughput → RCUs & WCUs available on a per-second basis ○ On-demand mode → Charged per request ■ Table storage class ○ Standard → Cheaper operations but more expensive storage ○ Standard-IA → Cheaper storage but more expensive operations
  • 44. Audit your usage ■ Billing mode
  • 45. Choosing a billing mode ■ On-Demand costs 6.94x fully-utilized Provisioned Capacity ○ But: full utilization is hard to achieve! ○ Requires >14.4% utilization on average ■ My advice: ○ Use On-Demand until it hurts. ○ If using Provisioned, ensure you're hitting >14.4% utilization. ○ Add Auto-Scaling with caution ○ Explore Reserved Capacity
  • 46. Audit your usage ■ Billing mode
  • 47. Audit your usage ■ Billing mode ■ Table storage class
  • 48. Choosing a table storage class ■ Indifferent whenever Operations costs are 2.4x Storage costs ○ If >2.4x, then use Standard storage ○ If <2.4x, then use Standard-IA ■ Standard storage will (almost) always be cheaper at first ○ Writing 1KB == 5 months of storage ○ But: this shifts over time ■ Audit this monthly! ■ Use TTL to expire data
  • 49. Audit your usage ■ Billing mode ■ Table storage class
  • 50. Audit your usage ■ Billing mode ■ Table storage class ■ Review secondary indexes
  • 51. Audit your usage ■ Billing mode ■ Table storage class ■ Review secondary indexes ○ Does my secondary index have any reads?
  • 52. Audit your usage ■ Billing mode ■ Table storage class ■ Review secondary indexes ○ Does my secondary index have any reads? ○ What is the write:read cost ratio on my secondary index?
  • 53. Audit your usage ■ Billing mode ■ Table storage class ■ Review secondary indexes
  • 54. Tips for managing DynamoDB costs ■ Mind your multipliers! ■ Audit your usage
  • 55. Tips for managing DynamoDB costs ■ Mind your multipliers! ■ Audit your usage ■ Run the numbers
  • 56. DynamoDB's pricing should change how you build applications.
  • 57. The micro: WCU + RCU multipliers ■ Item size ■ Secondary indexes ■ Transactions ■ Global tables ■ Consistent Read ■ Query vs. BatchGet ← Larger items require more resources ← More writes ← Coordination ← Requests to more storage nodes ← Requires routing to leader ← Replication infra + conflict resolution
  • 58. DynamoDB's pricing should change how you build applications.
  • 59. Keep in touch! Alex DeBrie AWS Data Hero Author, The DynamoDB Book [email protected] @alexbdebrie