DynamoDB Provisioned vs OnDemand Capacity?

  Рет қаралды 16,025

Be A Better Dev

Be A Better Dev

Күн бұрын

In this video, I tell you the difference between Provisioned and OnDemand capacity in DynamoDB. I also describe some common usage patterns and when it makes sense to use one over the other.
Looking to get hands on experience building on AWS with a REAL project? Check out my course - The AWS Learning Accelerator! courses.beabetterdev.com/cour...
📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚
Clean Code - amzn.to/37T7xdP
Clean Architecture - amzn.to/3sCEGCe
Head First Design Patterns - amzn.to/37WXAMy
Domain Driver Design - amzn.to/3aWSW2W
Code Complete - amzn.to/3ksQDrB
The Pragmatic Programmer - amzn.to/3uH4kaQ
Algorithms - amzn.to/3syvyP5
Working Effectively with Legacy Code - amzn.to/3kvMza7
Refactoring - amzn.to/3r6FQ8U
🎙 MY RECORDING EQUIPMENT 🎙
Shure SM58 Microphone - amzn.to/3r5Hrf9
Behringer UM2 Audio Interface - amzn.to/2MuEllM
XLR Cable - amzn.to/3uGyZFx
Acoustic Sound Absorbing Foam Panels - amzn.to/3ktIrY6
Desk Microphone Mount - amzn.to/3qXMVIO
Logitech C920s Webcam - amzn.to/303zGu9
Fujilm XS10 Camera - amzn.to/3uGa30E
Fujifilm XF 35mm F2 Lens - amzn.to/3rentPe
Neewer 2 Piece Studio Lights - amzn.to/3uyoa8p
💻 MY DESKTOP EQUIPMENT 💻
Dell 34 inch Ultrawide Monitor - amzn.to/2NJwph6
Autonomous ErgoChair 2 - bit.ly/2YzomEm
Autonomous SmartDesk 2 Standing Desk - bit.ly/2YzomEm
MX Master 3 Productivity Mouse - amzn.to/3aYwKVZ
Das Keyboard Prime 13 MX Brown Mechanical- amzn.to/3uH6VBF
Veikk A15 Drawing Tablet - amzn.to/3uBRWsN
📚 References:
My DynamoDB Playlist - • AWS DynamoDB Guides - ...
Getting started with AWS: • Introduction to AWS | ...
☁Topics covered include:
DynamoDB Capacity
DynamoDB Limits
DynamoDB Provisioned Limits
DynamoDB RCU WCU
DynamoDB Autoscaling
DynamoDB Provisioned Capacity
DynamoDB On Demand Capacity
🌎 Find me here:
Twitter - / beabetterdevv
Instagram - / beabetterdevv
Patreon - Donations help fund additional content - / beabetterdev
#AWS
#Serverless
#NoSQL
#DynamoDB

Пікірлер: 35
@NoSQLKnowHow
@NoSQLKnowHow 4 жыл бұрын
A few things. 1/ Auto-scaling is on by default with provisioned capacity when you create your table in the console. 2/ Using auto-scaling will mostly eliminate the large red area that is unused wasted money. DynamoDB will actively watch and adjust the capacity up and down within the floor and ceiling you have set for it to run. If you do this, then there is VERY little waste for these predictable workloads like shown in the graph. 3/ On-demand is great when you have a very new workload and do not know yet what steady state traffic patterns look like. Run in on-demand for a while, learn your patters and then switch to provisioned. 4/ You can switch back and forth between the two modes. Let's say you normally run in provisioned mode, but there is a big event coming up and you do not know what capacity you will need. Switch the table to on-demand mode. When that event has passed, switch it back to provisioned mode. You can switch once every 24 hours.
@farzadb
@farzadb 4 жыл бұрын
Kirk Kirkconnell this is very useful, thanks for your comment.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Great comment kirk, thanks for adding.
@ThrivingInLife
@ThrivingInLife 4 жыл бұрын
Your videos provide a great way to understand aws products. Thank you, and keep them coming! =)
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks so much Jeff! Really appreciate your support.
@Hiroki-Takahashi
@Hiroki-Takahashi Жыл бұрын
I really hope that KZbin's algorithm will show your videos more often. I liked it.
@BeABetterDev
@BeABetterDev Жыл бұрын
Thank you so much!
@KleberJS
@KleberJS 2 жыл бұрын
Thank you for explanation. Now I get it much more about the difference between the Provisioned and OnDemand models. :)
@farzadb
@farzadb 4 жыл бұрын
Great Summary! Thanks :)
@higorsantoss
@higorsantoss 2 жыл бұрын
Very good explanation! thanks
@MASINALI
@MASINALI 4 жыл бұрын
Thank you for great explanation and good examples present in this video.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad you liked it!
@kineticBoss
@kineticBoss 3 жыл бұрын
Amazing explanation, please also make a video on setting up auto-scaling parameters.
@gonzalofernandez1
@gonzalofernandez1 3 жыл бұрын
Thanks for your clear explanation
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Glad it was helpful!
@vinodshalgar
@vinodshalgar 3 жыл бұрын
very nicely explained
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Vinod!
@namansharma4965
@namansharma4965 2 жыл бұрын
Thanks for great explanation
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome Naman!
@namansharma4965
@namansharma4965 2 жыл бұрын
@@BeABetterDev Once you get time, Please create Video on Cloud-formation Condition Functions :)
@Fernando1989mg
@Fernando1989mg 3 жыл бұрын
awesome!!!!
@ErronBarbeeYT
@ErronBarbeeYT 4 жыл бұрын
You're the man
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks Erron!
@ErronBarbeeYT
@ErronBarbeeYT 4 жыл бұрын
@@BeABetterDev All thanks to your efficient efforts
@reokyouma
@reokyouma 4 жыл бұрын
can I make on demand when putting in the DynamoDB and the on provision when getting data from the dynamodb?
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Hi Reo, Switching between the two usually takes a few minutes. If this delay is acceptable, then sure, you can switch between them anytime you want.
@3swayam
@3swayam 4 жыл бұрын
How does Local and global secondary index affect pricing of dynamoDB can you please explain?
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Hi Swayam. LSIs do not incur any additional charge. However GSIs certainly do, see this article for reference: blog.yugabyte.com/dynamodb-pricing-calculator-expensive-vs-alternatives/
@teebu
@teebu 3 жыл бұрын
How do they do on demand that can handle big spikes with no delay, but auto scaling is so slow?
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Hi Cat, good question! This isn't stated anywhere in the AWS documentation unfortunately (atleast that I've found). I suspect what they must do is have an excess amount of burst capacity provisioned for on-demand tables so that they can react to sudden bursts. I'd also expect they have a very aggressive autoscaling algorithm working behind the scenes to provision more resources. This is all just a suspicion, but hope it helps!
@catchroniclesbyanik
@catchroniclesbyanik 2 ай бұрын
Based on the formula of calculating number of partititoma, if I have a requirement of 3000 rcu and 1000 wcu, table needs to create 2 partitions. Assume data size is less than 10 GB. why do I need 2 partitions, since 1 partition is sufficient enough for this load ..??
@Fernando1989mg
@Fernando1989mg 3 жыл бұрын
I have some questions for you, suppose I have 10 RCUs, if I request 10 items from a table (10 documents), then will I have already consumed all my RCUs? If the answer is affirmative, I would like to put a casuistry, suppose that I have a website with three users consulted a list of products (the list has 10 products) at the same time, then would I be consuming 30 RCU? sorry if my questions are very basic, I am recently learning DynamoDB
@nitinkulkarni7942
@nitinkulkarni7942 2 жыл бұрын
To answer this correctly, you will need to tell us what is the size of each document? Are you reading all 10 documents/sec. Assuming the doc size is 4KB and you are reading all 10 records/sec then you are consuming 10 RCUS. If not then you are not.
@dbaorger
@dbaorger 2 жыл бұрын
On-demand you do may have throttling! In case the workload has a pike beyond the double... I am having this problem right now...
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Hi Roger, on demand can certainly have throttling. This is just the nature of auto scaling in general and not something particular to Dynamo DB.
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 169 М.
Improve DynamoDB Performance with DAX
20:25
Be A Better Dev
Рет қаралды 14 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 11 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 32 МЛН
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 67 МЛН
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 1,9 МЛН
AWS DynamoDB Schema Design | How to choose the right key
12:15
Be A Better Dev
Рет қаралды 206 М.
What is Lambda Throttling? (and how to fix it!) | AWS Feature Overview
12:03
What is AWS DynamoDB Autoscaling? | Optimize your usage!
12:47
Be A Better Dev
Рет қаралды 24 М.
AWS Aurora VS DynamoDB
38:39
Be A Better Dev
Рет қаралды 78 М.
MongoDB Explained in 10 Minutes | SQL vs NoSQL | Jumpstart
11:18
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,7 МЛН
How Pagination Works in DynamoDB
11:44
Be A Better Dev
Рет қаралды 20 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 11 МЛН