DevOps | Cloud | Analytics | Open Source | Programming





AWS DynamoDB vs MongoDB Differences



In this post , we will explore AWS DynamoDB vs MongoDB Differences. Both are very popular No Sql databases with lots of features. However we need to understand the differences in terms of their functionality so as to pick one appropriately. The details been explained in the video and the notes are given below.  

1. Managed or Self-Managed:

DynamoDB is from AWS Ecosystem. DynamoDB is a fully managed AWS service. Server update, patch update, SSD replacement , hardware provisioning etc. all are managed by AWS. MongoDB is Open Source and can be deployed anywhere. MongoDB is self-managed . But also available as fully managed with MongoDB Atlas(Database as a Service).

2. Security:

DynamoDB provides out of the box security through AWS Identity and Access Management (IAM) . Requests can be routed through a secured and authorized API gateway. MongoDB does not provide out of the box security.  

3. Database Structure:

DynamoDB uses tables, items and attributes as the core components. Table --> Collection of items ---> Collection of attributes.   MongoDB uses JSON-like documents which are schema-free. Comprises of Collection , Key, Value and Document In MongoDB, collections of documents does not need predefined structure. MongoDB is comparable to a Traditional RDBMS system Collections (MongoDB) =~ Tables(RDBMS)  

4. Use of Index:

DynamoDB uses primary keys & secondary indexes. In DynamoDB, you can create secondary index like in RDBMS. But DynamoDB does not have a query optimizer - hence secondary index is only used when querying or scanning. DynamoDB indexes are immutable.   MongoDB: Indexes are preferred and if an index is not present, every document within the collection is searched to select the documents requested by the query. This exercise slows down the read process. MongoDB supports mutable indexes - this allows the structure of document to be changed dynamically.  

5. Programming Language:

DynamoDB is written in Java . It supports programming languages like - Java, JavaScript, Swift, Node.js, .NET, PHP, Python etc.   MongoDB is written in C++. It supports programming languages like - C, C++, Go, Groovy, Java, JavaScript, Perl, PHP, PowerShell, Python, R, Ruby, Scala etc.  

6. Data Type & Size Restriction:

DynamoDB has limited support for data types. Items are restricted to 400 KB and if exceeded AWS charges do apply significantly.   MongoDB supports document size up to 16MB.  

7. Industry Use:

DynamoDB is used in the gaming & IoT industry.   MongoDB is used in Real-time analytics, mobile apps, CMS system and IoT applications. Good for scalability and caching.  

8. Freedom & Application Lock-In:

DynamoDB has vendor lock-in as it is within AWS ecosystem. Not ideal for modifications and multi cloud approach.   MongoDB is open-source - so does not have vendor lock-in.  

9. Data Aggregation and Analysis:

In DynamoDB data analysis or aggregation might require usage of other AWS services - this might incur cost and latency.   MongoDB facilitates querying, analysis and aggregation of data in many ways without additional cost thereby supporting various performance metrics , optimization and tuning.    

Other Interesting Reads -


 aws dms mongodb to dynamodb ,aws dynamodb mongodb compatibility ,aws dynamodb vs mongodb ,aws dynamodb vs mongodb atlas ,aws mongodb dynamodb ,aws mongodb dynamodb 違い ,aws mongodb to dynamodb migration ,aws mongodb vs dynamodb cost ,mongodb aws dynamodb ,mongodb dynamodb aws backup ,mongodb dynamodb aws demo ,mongodb dynamodb aws docs ,mongodb dynamodb aws documentation ,mongodb dynamodb aws ec2 ,mongodb dynamodb aws endpoint ,mongodb dynamodb aws example ,mongodb dynamodb aws faq ,mongodb dynamodb aws github ,mongodb dynamodb aws glue ,mongodb dynamodb aws golang ,mongodb dynamodb aws guide ,mongodb dynamodb aws instance ,mongodb dynamodb aws interview questions ,mongodb dynamodb aws jar ,mongodb dynamodb aws java ,mongodb dynamodb aws javascript ,mongodb dynamodb aws jobs ,mongodb dynamodb aws json ,mongodb dynamodb aws key ,mongodb dynamodb aws kubernetes ,mongodb dynamodb aws lambda ,mongodb dynamodb aws news ,mongodb dynamodb aws nodejs ,mongodb dynamodb aws notes ,mongodb dynamodb aws oracle ,mongodb dynamodb aws performance ,mongodb dynamodb aws pricing ,mongodb dynamodb aws query ,mongodb dynamodb aws rds ,mongodb dynamodb aws redshift ,mongodb dynamodb aws request ,mongodb dynamodb aws resource ,mongodb dynamodb aws s3 ,mongodb dynamodb aws sdk ,mongodb dynamodb aws update ,mongodb dynamodb aws url ,mongodb dynamodb aws xcode ,mongodb dynamodb aws xml ,mongodb dynamodb aws yaml ,mongodb dynamodb aws zip ,mongodb to dynamodb aws ,aws dynamodb vs mongodb atlas ,aws mongodb vs dynamodb ,cassandra vs mongodb vs dynamodb ,cosmos db vs mongodb vs dynamodb ,dynamodb mongodb comparison ,dynamodb query vs mongodb query ,dynamodb vs mongodb benchmark ,dynamodb vs mongodb latency ,dynamodb vs mongodb performance ,dynamodb vs mongodb performance benchmark ,dynamodb vs mongodb vs documentdb ,dynamodb vs mongodb vs mysql ,dynamodb vs mongodb vs postgres ,dynamodb vs mongodb vs rds ,dynamodb vs mongodb vs redis ,firebase vs mongodb vs dynamodb ,mongodb atlas vs dynamodb ,mongodb atlas vs dynamodb cost ,mongodb atlas vs dynamodb pricing ,mongodb on ec2 vs dynamodb ,mongodb vs aws dynamodb ,mongodb vs couchdb vs dynamodb ,mongodb vs dynamodb ,mongodb vs dynamodb cost ,mongodb vs dynamodb costs ,mongodb vs dynamodb global ,mongodb vs dynamodb grid ,mongodb vs dynamodb group ,mongodb vs dynamodb header ,mongodb vs dynamodb java ,mongodb vs dynamodb jquery ,mongodb vs dynamodb json ,mongodb vs dynamodb kotlin ,mongodb vs dynamodb kubernetes ,mongodb vs dynamodb medium ,mongodb vs dynamodb nodejs ,mongodb vs dynamodb not working ,mongodb vs dynamodb null ,mongodb vs dynamodb performance ,mongodb vs dynamodb reddit ,mongodb vs dynamodb speed ,mongodb vs dynamodb stackoverflow ,mongodb vs dynamodb vs cassandra ,mongodb vs dynamodb vs documentdb ,mongodb vs dynamodb xml ,mongodb vs dynamodb xpath ,mongodb vs dynamodb xsd ,mongodb vs dynamodb yaml ,mongodb vs dynamodb zoho ,mongodb vs dynamodb zone ,pros and cons of mongodb vs dynamodb ,when to use mongodb vs dynamodb ,aws mongodb vs dynamodb ,difference between mongodb and dynamodb ,dynamodb mongodb comparison ,mongodb vs cassandra vs dynamodb ,mongodb vs dynamodb ,mongodb vs dynamodb difference api ,mongodb vs dynamodb difference aws ,mongodb vs dynamodb difference between ,mongodb vs dynamodb difference c# ,mongodb vs dynamodb difference case ,mongodb vs dynamodb difference database ,mongodb vs dynamodb difference date ,mongodb vs dynamodb difference difference ,mongodb vs dynamodb difference differences ,mongodb vs dynamodb difference file ,mongodb vs dynamodb difference framework ,mongodb vs dynamodb difference function ,mongodb vs dynamodb difference github ,mongodb vs dynamodb difference group ,mongodb vs dynamodb difference java ,mongodb vs dynamodb difference javascript ,mongodb vs dynamodb difference js ,mongodb vs dynamodb difference json ,mongodb vs dynamodb difference key ,mongodb vs dynamodb difference kotlin ,mongodb vs dynamodb difference kubernetes ,mongodb vs dynamodb difference limit ,mongodb vs dynamodb difference linux ,mongodb vs dynamodb difference list ,mongodb vs dynamodb difference lyrics ,mongodb vs dynamodb difference method ,mongodb vs dynamodb difference model ,mongodb vs dynamodb difference mysql ,mongodb vs dynamodb difference nodejs ,mongodb vs dynamodb difference note ,mongodb vs dynamodb difference null ,mongodb vs dynamodb difference of ,mongodb vs dynamodb difference oracle ,mongodb vs dynamodb difference pdf ,mongodb vs dynamodb difference performance ,mongodb vs dynamodb difference php ,mongodb vs dynamodb difference python ,mongodb vs dynamodb difference query ,mongodb vs dynamodb difference quora ,mongodb vs dynamodb difference table ,mongodb vs dynamodb difference update ,mongodb vs dynamodb difference version ,mongodb vs dynamodb difference view ,mongodb vs dynamodb difference xcode ,mongodb vs dynamodb difference xml ,mongodb vs dynamodb difference yaml ,mongodb vs dynamodb difference year ,mongodb vs dynamodb difference youtube ,mongodb vs dynamodb difference zero ,mongodb vs dynamodb difference zone ,mongodb vs dynamodb ,mongodb vs cassandra vs dynamodb ,mongodb vs dynamodb ,aws dynamodb mongodb ,aws dynamodb mongodb compatibility ,aws dynamodb vs mongodb atlas ,aws dynamodb mongodb ,aws mongodb vs dynamodb cost ,aws dms mongodb to dynamodb ,dynamodb and mongodb ,aws mongodb to dynamodb migration ,aws dynamodb to mongodb ,aws dynamodb vs mongodb ,dynamodb vs mongodb atlas ,aws mongodb vs dynamodb ,mongodb vs dynamodb cost ,aws dms mysql to dynamodb ,aws dms mongodb ,dms mongodb to dynamodb ,differentiate dynamodb and mongodb ,dynamodb mongodb compatibility ,dynamodb mongodb comparison ,dynamodb mongodb migration ,dynamodb mongodb node js ,dynamodb mongodb api ,dynamodb vs mongodb aws ,dynamodb vs mongodb benchmark ,difference between dynamodb and mongodb ,dynamodb vs mongodb cost ,dynamodb mongodb difference ,dynamodb mongodb driver ,dynamodb from mongodb ,dynamodb is mongodb ,dynamodb vs mongodb ,dynamodb vs mongodb latency ,dynamodb or mongodb ,dynamodb vs mongodb performance ,compare dynamodb and mongodb ,dynamodb vs mongodb reddit ,dynamodb vs mongodb speed ,dynamodb to mongodb ,dynamodb to mongodb migration ,dynamodb vs mongodb vs cassandra ,dynamodb vs mongodb performance benchmark ,dynamodb vs mongodb vs documentdb ,dynamodb vs mongodb vs redis ,dynamodb vs mongodb vs postgres ,dynamodb with mongodb ,dynamodb x mongodb ,mongodb to dynamodb migration ,migrate data from mongodb to dynamodb ,mongodb vs dynamodb vs cassandra ,mongodb vs dynamodb cost ,mongodb vs dynamodb stackoverflow ,mongodb vs dynamodb vs documentdb ,mongodb vs dynamodb reddit ,mongodb vs dynamodb speed ,mongodb vs aws dynamodb ,mongodb atlas vs dynamodb ,mongodb atlas vs dynamodb pricing ,mongodb atlas vs dynamodb cost ,dynamodb vs mongodb benchmark ,mongodb vs couchdb vs dynamodb ,cosmos db vs mongodb vs dynamodb ,mongodb on ec2 vs dynamodb ,firebase vs mongodb vs dynamodb ,mongodb vs dynamodb ,mongodb vs dynamodb performance ,dynamodb vs mongodb latency ,dynamodb vs mongodb vs postgres ,dynamodb query vs mongodb query ,dynamodb vs mongodb vs redis ,dynamodb vs mongodb vs rds ,when to use mongodb vs dynamodb ,dynamodb vs mongodb vs mysql ,mongodb vs cassandra vs dynamodb ,mongodb vs cassandra vs redis ,mongodb vs cassandra ,mongodb vs cassandra vs elasticsearch ,cassandra vs mongodb ,mongodb vs cassandra vs mysql ,mongodb vs dynamodb medium ,mongodb dynamodb ,dynamodb vs mongodb ,documentdb vs dynamodb ,dynamodb vs documentdb ,aws documentdb vs dynamodb ,amazon documentdb vs dynamodb ,amazon dynamodb vs mongodb ,aws dynamodb vs mongodb ,mongo vs dynamo ,aws dynamodb vs documentdb ,dynamo vs mongo ,mongodb atlas vs dynamodb ,difference between mongodb and dynamodb ,aws mongodb vs dynamodb ,difference between dynamodb and mongodb ,dynamodb vs mongodb atlas ,dynamodb vs mongodb performance ,dynamodb or mongodb ,aws dynamodb mongodb ,mongodb vs dynamodb performance ,mongodb or dynamodb ,mongodb to dynamodb migration ,cassandra vs mongodb vs dynamodb ,amazon dynamodb vs documentdb ,dynamodb vs mongodb vs cassandra ,documentdb dynamodb ,dynamodb vs mongodb pricing ,dynamodb to mongodb ,dynamodb vs cassandra vs mongodb ,dynamodb mongodb api ,mongodb vs dynamodb price ,mongodb vs dynamodb reddit ,mongodb atlas vs dynamodb pricing ,cosmos db vs mongodb vs dynamodb ,mongodb vs aws dynamodb ,dynamodb vs documentdb pricing ,difference between dynamodb and documentdb ,documentdb vs dynamodb pricing ,dynamodb and mongodb ,amazon dynamodb mongodb ,mongodb vs dynamodb cost ,mongodb and dynamodb ,difference between documentdb and dynamodb ,dynamodb vs mongodb cost ,dynamodb vs mongodb vs documentdb ,dynamodb vs mongodb performance benchmark ,dynamodb to mongodb migration ,mongodb vs dynamodb vs cassandra ,aws mongodb dynamodb ,is dynamodb mongodb ,aws mongodb vs dynamodb cost