Sitemap
Tharindu Chathuranga

Tharindu Chathuranga

Studding at SLIIT

MongoDB

2 min readMay 15, 2022

--

What is MongoDB:

MongoDB is a database that first appeared in the mid-2000s. MongoDB is a document database that was created with the goal of making application development and scaling as simple as possible. This is a cross-platform document-oriented database application that is open source. MongoDB employs different methods and documents such as JSON.

MongoDB offers field, range query, and regular-expression searches for ad hoc queries.

Press enter or click to view image in full size

MongoDB Features:

1. MongoDB offers field, range query, and regular-expression searches for ad hoc queries.

2. Indexing — Primary and secondary indices or indexes can be used to index fields in a MongoDB document.

3. Replication — MongoDB uses replica sets to provide high availability.

4. Load balancing — MongoDB uses sharding to scale horizontally.

5. Aggregation: Aggregation operations take data records and process them before returning the computed results.

Key Components of MongoDB Architecture

id

Collection

Cursor

Database

Document

Field

Get Tharindu Chathuranga’s stories in your inbox

Join Medium for free to get updates from this writer.

Why Should You Use MongoDB?

To increase the performance of MongoDB searches, indexes can be established.

With replica sets, MongoDB can achieve high availability.

MongoDB can be distributed across numerous servers, balancing load and/or replicating data to keep the system up and running in the event of hardware failure.

Mobile and web app development that is quick and flexible, as well as analytics based on database data.

IoT (internet of things). MongoDB (MongoDB) (MongoDB) (MongoDB) (MongoDB

Flexible Schema Join data from other collections Fast queries Powerful indexing and search Write huge datasets without errors

Advantages of MongoDB

MongoDB is a complete cloud-based application data platform.

Document schemas that are adaptable.

Data access that is widely supported and code-native.

A design that is adaptable to change.

Advanced analytics and querying.

Sharding allows for a simple horizontal scale-out.

Installation is simple.

Cost-effective.

Disadvantages of MongoDB

MongoDB doesn’t support transactions.

Language Support by MongoDB:

MongoDB now supports all popular programming languages, including C, C++, Rust, C#, Java, Node.js, Perl, PHP, Python, Ruby, Scala, Go, and Erlang, through official driver support.

Who makes use of MongoDB?

EA, Cisco, Shutterfly, Adobe, Ericsson, Craigslist, eBay, and Foursquare are just a few of the big websites and services that use MongoDB as their backend software.

--

--