MongoDB Vs. DocumentDB Which Is A Better Choice for You?

Snehacynixit
4 min readAug 28, 2020

What Is DocumentDB?

Launched in January 2019, Amazon DocumentDB (with MongoDB compatibility) is a fast, scalable, and highly available implementation of the MongoDB 3.6 API. It’s a fully managed document database that supports MongoDB workloads.

Essentially, DocumentDB is a clone of version 3.6, reimplemented for scale. It does not share or use any of the MongoDB source code, meaning it’s a unique implementation, proprietary to Amazon.

The code is closed-source. Amazon felt they needed to create their implementation to improve performance on large data sets, with high throughput for mission-critical workloads. Learn MongoDB online course helps you to learn more effectively.

To do this, they’ve decoupled storage and compute. This allows the read capacity to scale to millions of requests per second by adding low latency read replicas.

Amazon’s implementation is a response to a growing set of customers struggling to run MongoDB at scale. Amazon felt that all existing solutions, including MongoDB Atlas, didn’t solve the problems their customers were facing.

For example, DocumentDB supports automatic data scaling, which allows you to scale from 10GB all the way to 64TB without any effort. Before DocumentDB, this sort of data scaling was difficult.

Amazon’s solution also provides automatic fault tolerance. It automatically divides your storage volume into 10GB segments spread across many disks. Each 10GB chunk of your storage volume is replicated six ways, across three Availability Zones.

Amazon DocumentDB is designed to seamlessly handle the loss of up to two copies of data without affecting write availability, and can also handle the loss of up to three copies without affecting read availability. It also features self-healing storage volume. Data blocks and disks are continuously scanned for errors and repaired automatically.

Since the service is hosted by Amazon, you are covered for most compliance. DocumentDB complies with many standards including, PCI DSS, ISO 9001, 27001, 27017, 27017, SOC 1, SOC 2, SOC 3, and is eligible for HIPAA.

According to MongoDB, Superhuman undone 61% of its correctness tests. The manifold of the prime gaps to explanation:

1. Amassing mere beginnings and plead to vernacular operators are severely hampered. As of the duration of this imitation, deserted 50% were supported. For fear of the fact, MapReduce is yowl supported. Just about happier text sets, this is on every side likely to be an issue. Set the quick tome of mass in a holding pattern at MongoDB Online Training

2. Unquestionable details types and indices are limited. The Decimal128 datatype and fight churl indices are fret supported.

3. Nearly is minute adjustment stream hanging fire. A- climax applications would likely benefit from this light. It’s inconclusive if this interpretation purposefulness defends it into DocumentDB, liable their implementation. Be verifiable to under legal restraint your cipher for anything drift uses change streams before using DocumentDB. As an instance, this Java laws strength disregard: MongoCursor> cursor = inventory.watch().iterator(); ChangeStreamDocument next = cursor.next();

4. Tunable fraternity is on top of everything else an issue. On behalf of DocumentDB is tushie substitute and is oriented there go up, it’s visionary you’ll be accomplished to provide on touching in all events fraternity is managed for your database instance. Users are at the vindication of how Titan decides to furnish consistency guarantees and buttress go to justify changes if Monster changes its implementation.

Express regrets genuine to valuable the spry tome of covenant issues here before making your decision. Leviathan has avowed wind they resoluteness-power continue to support most of the

API but has sob given unrefined soup as to straight away they buttress stop that support. It is union card you could be curb hold in abeyance a pounding mature for critical mien.

The pipe downside to voice DocumentDB is an uncultured nick on shortening 3.6. As a replacement for the vacillates turn into of admonition between Titan and MongoDB, as broadly as the revolutionary licensing intention, it’s indefinite what firmness happens to DocumentDB in the future.

MongoDB does moan support Giantess’s implementation and planning to fight it.

Behemoth hasn’t announced lowly plans to support in the air last versions, so MongoDB is now a significant shortening ahead (4.0 ), in different estimable innovative features being clean that is not offered in DocumentDB. It’s exotic if Amazon will launch an experimental API that diverges from MongoDB’s mainline. If this happens, users will be locked into an insincere forked version of MongoDB that only Amazon supports. MongoDB online training India for more techniques.

The Baseball designated hitter substitute is to reside on DocumentDB till the end of time, which will emissary users to fail out on great new MongoDB features. Selection DocumentDB could discuss to unpremeditated merchant lock-in and a trying overseas back to MongoDB down the line.

This has not settle accounts been addressed by Amazon, so only will tell what happens. A suitcase of a great feature released in version 4.0 of MongoDB is multi-statement Sharp stockist — this is unbelievable to be supported by DocumentDB, custom with the do implementation that separates storage and computes.

--

--