Amazon DynamoDB - Use Cases and Cost Optimization - 발표자: 이혁, DynamoDB Specialist SA, WWSO, AWS ::: AWS Data Roadshow 2023

Amazon Web Services Korea
Amazon Web Services KoreaAmazon Web Services Korea
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hyuk Lee
DynamoDB SA, AWS
Amazon DynamoDB
- Use Cases and Cost Optimization
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• Use Cases
• Cost optimization
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use Cases
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dec 2004:
Database scalability
challenges
Oct 2007:
Dynamo paper
published
Jan 2012:
DynamoDB general
availability
Q3 2016:
DynamoDB leader in
Gartner MQ, Forrester
Wave
Today:
Tier 0 service powering
most of Amazon
The Amazon NoSQL journey
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Characteristics of internet-scale apps
Users 1 million+
Data volume TB, PB, EB
Locality Global
Performance Microsecond latency
Request rate Millions per second
Access Mobile, IoT, devices
Scale Up and down
Economics Pay as you go
Developer access Instant API access
Online
gaming
Social
media
Media
streaming
E-commerce Shared
economy
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Aurora Relational
Database
Service
(RDS)
DynamoDB DocumentDB Timestream
Neptune
ElastiCache Quantum
Ledger
Database
(QLDB)
Keyspaces
AWS purpose-built databases
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Bookstore example
https://github.com/aws-samples/aws-bookstore-demo-app
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Bookstore example
https://github.com/aws-samples/aws-bookstore-demo-app
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Bookstore example
https://github.com/aws-samples/aws-bookstore-demo-app
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Write
Capacity
Units
/
sec
Super Bowl
In 2017
Peak Consumed Capacity
Provisioned Capacity
Global-Scale Events: Elastic is the New Normal
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Millisecond variance
Consistent low latency
Many millions of requests per second per table
High request volume
Performance at any scale
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build high-performance, globally
distributed applications
Low-latency reads and writes
to locally available tables
Multi-Region redundancy
and resiliency and 99.999% availability
Multi-active writes from any Region
Easy to set up and no application
rewrites required
Global tables provide apps with multi-Region replication
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fully managed,
highly available cache
for DynamoDB
Even faster—microsecond latency
Scales to millions of read requests
per second
API compatible
Your applications
DAX
DynamoDB
DynamoDB Accelerator (DAX) adds read cache
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Fully managed, cloud-native NoSQL database service
• Designed for mission-critical OLTP use cases
• Where you know access patterns
• Operational database that provides:
• Extreme scale with horizontal scaling
• Consistent performance at any scale
• High availability and reliability with zero downtime
• Global availability and cross-region replication
• Full serverless experience
• Integration with AWS Lambda and other AWS services
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How DynamoDB helps reduce cost
Pay-per-request
Pay-per-GB storage
Separation of reads,
writes and storage
Scale-to-zero
Features to optimize
cost
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How DynamoDB helps reduce operations
No instances
No maintenance windows
No query processor
No version upgrades
Automatic scaling
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DynamoDB Trends
Write intensive
• IoT / Monitoring
• User activity logging
• Tracking
• Step count
• Chatting
Consistent latency
• Ad
• Session store
• User profile
• Purchase history or
product details
No Ops
• DevOps
• Global service
• No versions
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Disney+ launched in November 2019 and delivers
its extensive library of digital content directly to
the homes of over 60.5 million subscribers, and
DynamoDB is one of the technologies that
supports this global footprint.
Disney+ chose DynamoDB to help with:
• Utilizing multi-Region replication with single-digit
latency to shift traffic without experiencing data
issues
• Adding another AWS Region in global tables to
launch into new countries, providing low latency
• Scaling Recommendations and Bookmarks with
little to no operational overhead
• Having the ability to switch back and forth
between on-demand and provisioned capacity
modes when entering new Regions
Billions of bookmarks ingested a day over Amazon
Kinesis and into Amazon DynamoDB.
—Attilio Giue
Director of Content Discovery, Disney+
“
“
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Snap tackles massive-scale spikes
Migrated its Snapchat Stories from a legacy cloud
database to DynamoDB to help:
Mitigate risk
• This is now “one of the most stable systems at
Snapchat.” –Dave Killian, Snap Infrastructure
Engineering Lead
Reduce cost
• Eliminated millions of dollars of over-
provisioning cost per year compared to the
legacy system
Tackle scale
• New Year’s Eve is the app’s largest spike of the
year and DynamoDB gracefully
served the drastic increase in traffic
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Profile, match, and swipe data
25 TB data, 20 billion matches,
190 countries
Migrated from MongoDB to
DynamoDB with 60 percent cost
savings
DynamoDB helps us achieve greater developer
efficiency…at a lower cost.
—Jun-young Kwak
Tinder
“
“
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lyft chose DynamoDB:
To handle massive scale and bursts gracefully:
• In more than 200 cities, more than 14
million rides per month, 8 times traffic
during peak hours
For mission-critical transactional data:
• The GPS location of all rides is tracked in the
ride location-tracking system
To handle rapid growth cycles with a small team:
• Deployed location-tracking system on
DynamoDB
DynamoDB is so simple to scale out. We only have
two knobs. One for reads and one for writes.
—Chris Lambert
CTO, Lyft
“
“
Automotive
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost Optimization
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
내 워크로드의 특성을 파악
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Cost Explorer에서 내 비용 구조를 살펴보기
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-cost-optimization.html
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
비용 최적화 포인트
용량 모드 스토리지 모드
사용 최적화
스키마 디자인
액세스 패턴
예약 용량
(Reserved
capacity)
사용 후 최적화
용량 스토리지 빌링
예)
WriteCapacityUnit-Hrs
ReadCapacityUnit-Hrs
예)
TimedStorage-ByteHrs
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DATA ROADSHOW 2023
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark.
Thank you!
1 sur 27

Contenu connexe

Tendances(20)

Similaire à Amazon DynamoDB - Use Cases and Cost Optimization - 발표자: 이혁, DynamoDB Specialist SA, WWSO, AWS ::: AWS Data Roadshow 2023(20)

What's New with Amazon DynamoDBWhat's New with Amazon DynamoDB
What's New with Amazon DynamoDB
Amazon Web Services874 vues
Databases - Choosing the right Database on AWSDatabases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWS
Amazon Web Services2.3K vues
AwsAws
Aws
mahes3231646 vues

Plus de Amazon Web Services Korea(13)

AWS Modern Infra with Storage Roadshow 2023 - Day 2AWS Modern Infra with Storage Roadshow 2023 - Day 2
AWS Modern Infra with Storage Roadshow 2023 - Day 2
Amazon Web Services Korea169 vues
AWS Modern Infra with Storage Roadshow 2023 - Day 1AWS Modern Infra with Storage Roadshow 2023 - Day 1
AWS Modern Infra with Storage Roadshow 2023 - Day 1
Amazon Web Services Korea102 vues

Amazon DynamoDB - Use Cases and Cost Optimization - 발표자: 이혁, DynamoDB Specialist SA, WWSO, AWS ::: AWS Data Roadshow 2023

  • 1. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Hyuk Lee DynamoDB SA, AWS Amazon DynamoDB - Use Cases and Cost Optimization
  • 2. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda • Use Cases • Cost optimization
  • 3. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use Cases
  • 4. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dec 2004: Database scalability challenges Oct 2007: Dynamo paper published Jan 2012: DynamoDB general availability Q3 2016: DynamoDB leader in Gartner MQ, Forrester Wave Today: Tier 0 service powering most of Amazon The Amazon NoSQL journey
  • 5. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Characteristics of internet-scale apps Users 1 million+ Data volume TB, PB, EB Locality Global Performance Microsecond latency Request rate Millions per second Access Mobile, IoT, devices Scale Up and down Economics Pay as you go Developer access Instant API access Online gaming Social media Media streaming E-commerce Shared economy
  • 6. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Aurora Relational Database Service (RDS) DynamoDB DocumentDB Timestream Neptune ElastiCache Quantum Ledger Database (QLDB) Keyspaces AWS purpose-built databases
  • 7. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Bookstore example https://github.com/aws-samples/aws-bookstore-demo-app
  • 8. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Bookstore example https://github.com/aws-samples/aws-bookstore-demo-app
  • 9. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Bookstore example https://github.com/aws-samples/aws-bookstore-demo-app
  • 10. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Write Capacity Units / sec Super Bowl In 2017 Peak Consumed Capacity Provisioned Capacity Global-Scale Events: Elastic is the New Normal
  • 11. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Millisecond variance Consistent low latency Many millions of requests per second per table High request volume Performance at any scale
  • 12. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Build high-performance, globally distributed applications Low-latency reads and writes to locally available tables Multi-Region redundancy and resiliency and 99.999% availability Multi-active writes from any Region Easy to set up and no application rewrites required Global tables provide apps with multi-Region replication
  • 13. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Fully managed, highly available cache for DynamoDB Even faster—microsecond latency Scales to millions of read requests per second API compatible Your applications DAX DynamoDB DynamoDB Accelerator (DAX) adds read cache
  • 14. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Fully managed, cloud-native NoSQL database service • Designed for mission-critical OLTP use cases • Where you know access patterns • Operational database that provides: • Extreme scale with horizontal scaling • Consistent performance at any scale • High availability and reliability with zero downtime • Global availability and cross-region replication • Full serverless experience • Integration with AWS Lambda and other AWS services
  • 15. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. How DynamoDB helps reduce cost Pay-per-request Pay-per-GB storage Separation of reads, writes and storage Scale-to-zero Features to optimize cost
  • 16. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. How DynamoDB helps reduce operations No instances No maintenance windows No query processor No version upgrades Automatic scaling
  • 17. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. DynamoDB Trends Write intensive • IoT / Monitoring • User activity logging • Tracking • Step count • Chatting Consistent latency • Ad • Session store • User profile • Purchase history or product details No Ops • DevOps • Global service • No versions
  • 18. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Disney+ launched in November 2019 and delivers its extensive library of digital content directly to the homes of over 60.5 million subscribers, and DynamoDB is one of the technologies that supports this global footprint. Disney+ chose DynamoDB to help with: • Utilizing multi-Region replication with single-digit latency to shift traffic without experiencing data issues • Adding another AWS Region in global tables to launch into new countries, providing low latency • Scaling Recommendations and Bookmarks with little to no operational overhead • Having the ability to switch back and forth between on-demand and provisioned capacity modes when entering new Regions Billions of bookmarks ingested a day over Amazon Kinesis and into Amazon DynamoDB. —Attilio Giue Director of Content Discovery, Disney+ “ “
  • 19. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Snap tackles massive-scale spikes Migrated its Snapchat Stories from a legacy cloud database to DynamoDB to help: Mitigate risk • This is now “one of the most stable systems at Snapchat.” –Dave Killian, Snap Infrastructure Engineering Lead Reduce cost • Eliminated millions of dollars of over- provisioning cost per year compared to the legacy system Tackle scale • New Year’s Eve is the app’s largest spike of the year and DynamoDB gracefully served the drastic increase in traffic
  • 20. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Profile, match, and swipe data 25 TB data, 20 billion matches, 190 countries Migrated from MongoDB to DynamoDB with 60 percent cost savings DynamoDB helps us achieve greater developer efficiency…at a lower cost. —Jun-young Kwak Tinder “ “
  • 21. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lyft chose DynamoDB: To handle massive scale and bursts gracefully: • In more than 200 cities, more than 14 million rides per month, 8 times traffic during peak hours For mission-critical transactional data: • The GPS location of all rides is tracked in the ride location-tracking system To handle rapid growth cycles with a small team: • Deployed location-tracking system on DynamoDB DynamoDB is so simple to scale out. We only have two knobs. One for reads and one for writes. —Chris Lambert CTO, Lyft “ “ Automotive
  • 22. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cost Optimization
  • 23. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 내 워크로드의 특성을 파악
  • 24. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Cost Explorer에서 내 비용 구조를 살펴보기 https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-cost-optimization.html
  • 25. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 비용 최적화 포인트 용량 모드 스토리지 모드 사용 최적화 스키마 디자인 액세스 패턴 예약 용량 (Reserved capacity) 사용 후 최적화 용량 스토리지 빌링 예) WriteCapacityUnit-Hrs ReadCapacityUnit-Hrs 예) TimedStorage-ByteHrs
  • 26. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 27. AWS DATA ROADSHOW 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. Thank you!