What's the difference between DocumentDB and DynamoDB | which one should I use?

  Рет қаралды 12,712

Rahul Ahire

Rahul Ahire

Күн бұрын

In this video I have talked about the comparison between AWS DocumentDB and AWS DynamoDB. Which one better in particular circumstances and which one is better for your need.
------------------------------------------------------------------------
CORRECTION: at 07:24 I have said that the partition size of dynamoDB is around 4KB but actually I wanted to say that the max item size in dynamodb is 400 KB.
Please see the pinned comment by Kirk to get detailed and in-depth accurate analysis of what I want to say.
Rest of all, I assure what all I've said in the video about both of them is correct
BONUS: If you have heavy file and want to use dynamodb then you can link/point S3 files with dynamoDB
------------------------------------------------------------------------
Watch the indepth video comparison of DocumentDB and DynamoDB officially done by AWS: / 484071022
------------------------------------------------------------------------
Amazon DocumentDB (with MongoDB compatibility) pricing: aws.amazon.com...
Amazon DynamoDB pricing: aws.amazon.com...
------------------------------------------------------------------------
The whole journey of making facemash: • Making of Facemash | F...
Checkout the other videos of DevTalks: • DevTalks
If you have any suggestions, Queries or any though just leave it in comment and I'll be happy to get back to you
#NoSQL #DevTalks #AWS
FIND ME HERE:
facebook: / merahulahire
Instagram: / merahulahire
Twitter: / merahulahire
LinkedIn: / merahulahire

Пікірлер: 15
@NoSQLKnowHow
@NoSQLKnowHow 4 жыл бұрын
You do not lose the ability to query in DynamoDB as you say in the video. What you do in DynamoDB with data modeling is pre-computing the answers to your most accessed queries. Full querying takes time and resources and does not always scale well. Now if you do not know ahead of time the questions you will ask of your data AND you have to do these questions often in your workload, then yes you might need full querying like DocumentDB or a relational DB offers. For good or ill, “it depends” on the workload and the requirements. Take a look at Alex DeBrie and Rick Houlihan's AWS reInvent talks about DynamoDB data modeling for what I am talking about. If your use case needs aggregations and you do not need them completely real time, it is best to do those out of band with a lambda job, not run that query every single time a user needs it. Let's say you have the top 20 articles in a CMS. Which scales better? 1/ Running a query to compute the top 10 articles as voted by users. or have a Lambda job that does this once an hour and puts the content into DynamoDB as one item? The latter. Also, you call it the partition size in the video around 7:25, but I think you mean item size. The item size limit in DynamoDB is 400kb, but for the most part, you should not be putting static large objects into any database. It is not the best use of the most expensive and what should be one of the most performant components of your architecture. For example, let's say your app is delivering a list of recipes. If you can present to the user the title and description in 2 milliseconds, but fetching the JPEG from S3 takes an extra 20 milliseconds, big deal. Storing that image in S3 is so dramatically cheaper than storing it in any database, that is it not funny. You are not paying to store it in more expensive storage, replicate it in a more expensive manner, back it up, etc. etc. Leave the database for the critical data your users are interacting with when you they need it.
@RahulAhire
@RahulAhire 4 жыл бұрын
Thanks Kirk for going so deep. I've pinned your comment so that others could get benefit from it
@awsgurpreet
@awsgurpreet 4 жыл бұрын
Thank you for the great work Rahul
@ramum4684
@ramum4684 2 жыл бұрын
What is the use of Redshift, Athena, Glue, EMR and more service from AWS? which one is more wanted in the industry?
@RahulAhire
@RahulAhire 2 жыл бұрын
Each tool has its own place and there's no good tool. Each of them are analytics service which you can plug it to database or other stacks. Since I haven't worked extensively on it I can't say much about it.
@gurpreetgandhi1907
@gurpreetgandhi1907 3 жыл бұрын
Hey Rahul, do you know if we have any connectors from DocumentDB to AWS RDS? The whole purpose being data replication!
@RahulAhire
@RahulAhire 3 жыл бұрын
I don't have much knowledge about data migration. Maybe this helps aws.amazon.com/blogs/database/aws-database-migration-service-and-amazon-dynamodb-what-you-need-to-know/
@gurpreetgandhi1907
@gurpreetgandhi1907 3 жыл бұрын
@@RahulAhire Thanks for reply but this is not useful. What I need is data replication not data migration. Like Timescale provides for different sources.
@RahulAhire
@RahulAhire 3 жыл бұрын
@@gurpreetgandhi1907 I really haven't studied it much enough. So, I'm sorry I couldn't tell you anything about it
@gurpreetgandhi1907
@gurpreetgandhi1907 3 жыл бұрын
@@RahulAhire No Worries! I'm novice to AWS as much, just finding out tools. Thanks!
@gauravshetty1436
@gauravshetty1436 4 жыл бұрын
You haven't include ram utilization cost in documentdb which comes out to be over 200 dollars a month which becomes expensive
@RahulAhire
@RahulAhire 4 жыл бұрын
Oh yeah you're right documentDB atleast require $200 upfront cost monthly to get it running being an instance based service. Dynamodb seems flexible and cheap initially but if you have huge predictable workloads then scenario can get quite different Sorry I left to mention that. Thanks for reminding me
@basavrajningadali485
@basavrajningadali485 2 жыл бұрын
from where in pune
@RahulAhire
@RahulAhire 2 жыл бұрын
Wagholi
@basavrajningadali4919
@basavrajningadali4919 2 жыл бұрын
@@RahulAhire great! I from swarget
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 175 М.
AWS re:Invent 2021 - Which NoSQL database is right for you?
33:02
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 26 МЛН
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 48 МЛН
Just Give me my Money!
00:18
GL Show Russian
Рет қаралды 1,1 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 59 МЛН
MongoDB vs DynamoDB | DynamoDB vs MongoDB
12:01
Neeraj Garg
Рет қаралды 4,8 М.
Getting started with AWS DynamoDB in .NET
25:01
Nick Chapsas
Рет қаралды 22 М.
AWS DynamoDB Schema Design | How to choose the right key
12:15
Be A Better Dev
Рет қаралды 210 М.
AWS Aurora VS DynamoDB
38:39
Be A Better Dev
Рет қаралды 79 М.
Which Is Better? SQL vs NoSQL
9:43
Web Dev Simplified
Рет қаралды 287 М.
AWS DocumentDB Tutorial - Everything You Need to Know
22:04
NimbusDevOps
Рет қаралды 10 М.
What is NoSQL database
11:58
Hitesh Choudhary
Рет қаралды 118 М.
Here's what I know about DynamoDB
37:36
Web Dev Cody
Рет қаралды 8 М.
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 26 МЛН