Skip to content
wade.one

wade.one

wade womersley – york based software engineer

  • Home
  • 2023
  • March
  • 26
  • MongoDB vs DocumentDB

MongoDB vs DocumentDB

Posted on March 26, 2023March 26, 2023 By Wade
Programming, Software Engineer

I’ve been working on a new as-fast-as-possible platform for a specific situation I can’t go in to right now but I wanted to use MongoDB, however, I needed to reduce costs and use AWS so I wanted to use DocumentDB and needed to compare. Sadly DocumentDB does not cover 100% of MongoDB. Here’s the comparison:

Firstly, MongoDB has a more flexible data model that allows for easier and faster data retrieval. MongoDB uses a document-based data model, which makes it easy to store and retrieve complex data structures. On the other hand, DocumentDB is based on a table-based data model, which can make it more challenging to store and retrieve complex data.

Secondly, MongoDB offers better scalability and availability features. MongoDB has a sharding feature that allows you to scale your database horizontally by adding more nodes to your cluster. This feature makes it easier to handle large amounts of data and high traffic loads. Additionally, MongoDB offers better failover capabilities, which means that in the event of a node failure, the database can automatically failover to a replica node, ensuring that your data is always available.

Thirdly, MongoDB has a larger community and ecosystem, which means that it has more support and resources available to developers and administrators. The MongoDB community is active and vibrant, with many resources available online, including documentation, tutorials, and forums. The ecosystem also includes many third-party tools and integrations that can help you extend the capabilities of your database.

Fourthly, there is, at best, a 64% compatibility layer between the two platforms. You need to be able to develop locally but you cannot do that 100% with DocumentDB.

Lastly, MongoDB offers a more cost-effective solution than DocumentDB. MongoDB is an open-source database, which means that it is free to use and comes with a flexible licensing model that allows you to use it in commercial applications without incurring additional costs. On the other hand, DocumentDB is a proprietary database that requires a paid subscription, which can add up to significant costs over time.

In conclusion, while both MongoDB and DocumentDB have their strengths and weaknesses, I believe that MongoDB is a better choice for many applications due to its flexible data model, scalability and availability features, large community and ecosystem, and cost-effectiveness.

So there you go, you can use DocumentDB from AWS with their compatibility layer but it really is not enough.

Share:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Reddit (Opens in new window) Reddit

Related

Comments

comments

Post navigation

❮ Previous Post: PHP 8.2 vs 7.4
Next Post: Expanding on performance of Redis vs MongoDB for a push/pull system ❯

You may also like

AI
Google Bard – PHP developer viewpoint
March 26, 2023
Software Engineer
Years later, starting to blog
March 26, 2023
Programming
#PHPUK2010 Part 2 (MySQL stuff)
February 26, 2010
Programming
Using Amazon EC2 with C# .net
October 15, 2012
  • AI
  • artificial intelligence
  • Ego-centric
  • Events
  • Films
  • Food
  • Gaming
  • Gym
  • Hardware
  • Holidays
  • News
  • PHP
  • Programming
  • Random Stuff
  • Reviews
  • Science
  • SEO
  • Software
  • Software Engineer
  • Support
  • Uncategorized
  • Work

Copyright © 2025 wade.one.

Theme: Oceanly News Dark by ScriptsTown