Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB vs MongoDB Atlas

I am a new web developer and have some questions regarding MongoDB.

The site I am working on uses references that saved data locally with MongoDB. But after doing some research, I saw something called MongoDB Atlas, which saves data to a cloud. I guess my question is, if I were to host a website would it matter which one I chose to use? Or would I be restricted to Atlas? And why would someone pick one over the other?

like image 578
Spyridon Pallis Avatar asked Dec 27 '20 22:12

Spyridon Pallis


People also ask

Should I use MongoDB or MongoDB Atlas?

To Summarize: I would recommend MongoDB Atlas to every person/company who have a significant need in the NoSQL database and do not want to manage their infrastructure. Using MongoDB Atlas can significantly reduce your management time and cost, which saves valuable resources for other tasks.

Is MongoDB Atlas same as MongoDB?

MongoDB Atlas is a multi-cloud database service by the same people that build MongoDB. Atlas simplifies deploying and managing your databases while offering the versatility you need to build resilient and performant global applications on the cloud providers of your choice.

What is difference between MongoDB Atlas and MongoDB compass?

MongoDB Atlas belongs to "MongoDB Hosting" category of the tech stack, while MongoDB Compass can be primarily classified under "Database Tools". Some of the features offered by MongoDB Atlas are: Global clusters for world-class applications. Support for 60+ cloud regions across AWS, Azure, & GCP.

What is MongoDB and Atlas?

MongoDB Atlas is a fully-managed cloud database that handles all the complexity of deploying, managing, and healing your deployments on the cloud service provider of your choice (AWS , Azure, and GCP). MongoDB Atlas is the best way to deploy, run, and scale MongoDB in the cloud.

What is the difference between MongoDB Atlas and compass?

MongoDB Atlas belongs to "MongoDB Hosting" category of the tech stack, while MongoDB Compass can be primarily classified under "Database Tools". Global clusters for world-class applications.

What is Elasticsearch vs MongoDB Atlas search?

Elasticsearch vs MongoDB Atlas Search Atlas Search combines three systems - database, search engine, and sync mechanisms - into one to deliver application search experiences 30-50% faster.

Where is MongoDB data stored in Atlas?

All data from the MongoDB web application is automatically stored in the Atlas cloud. Being a JSON language optimizes the response time of a query, you can directly build a query logic from the same service

Does MongoDB store data in JSON?

MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding. What is MongoDB Atlas? MongoDB Atlas is a global cloud database service built and run by the team behind MongoDB.


Video Answer


1 Answers

MongoDb Atlas is a MongoDb server hosting provided by the same guys who make MongoDb (which means they typically know what they're doing). It's handy to use because everything is automatically configured for you, you get some dashboards, monitoring, backup, upgrades, etc. They have a free layer also (aka M0, it has some important restrictions though, read more at their site). As usual with Cloud offerings, they have good pricing for starters, but these can skyrocket if you're operating at significant scale.

If you choose to install MongoDb server "locally", you would need to configure the cluster yourself (althougth there are plenty of e.g. pre-configured MongoDb docker images out there), configure the backup, arrange monitoring, etc. A lot of work, if you want to do it properly.

Considering above, here is my advice...

Choose MongoDb Atlas when:

  1. You have a small personal project
  2. You're a startup and you believe that you will have tens of thousands users soon - Altas allows bootstrap things fast and for a relatively small cost
  3. You're a medium sized company, you're fine with MongoDb pricing, and you don't expect to grow too much

Choose manual installation of MongoDb when:

  1. You have a small single-server project that is not likely to grow into a multi-server deployment. You can run MongoDb docker in the same server - this is usually a bad practice in general, but it works fine for small workloads. I've used this setup (as part of Meteor Up deployment) and it worked fine with thousands of regular users (depends on your application's usage patterns though).
  2. You're a Unicorn-level startup or bigger
  3. You're building something for internal usage and have restriction of using cloud deployments
  4. Your main servers are not located in the cloud. MongoDb cannot batch requests, so it is very important that your MongoDb server is located in the same datacenter as the backend servers, otherwise latency will kill your performance
like image 136
Andrey Markeev Avatar answered Oct 23 '22 04:10

Andrey Markeev