From the course: MongoDB Essential Training

Self-hosted vs. managed MongoDB - MongoDB Tutorial

From the course: MongoDB Essential Training

Self-hosted vs. managed MongoDB

- [Instructor] Welcome to the MongoDB Essentials Course. In this section, we'll install MongoDB, but first, you have to decide where you're going to install MongoDB. And the question you should ask yourself is whether you want to manage the deployment yourself or whether you would prefer a hosted solution. So let's talk about both options. If you choose to deploy MongoDB on your own resources, there are some responsibilities that come with that. The first one is that you need to select and maintain appropriately performant hardware, either locally or in the cloud, and then you need to ensure high availability of that hardware. Think about running nodes on their own hardware in different data centers or with different cloud providers to maximize this. Then, you need to think about security for your infrastructure and for your deployment, and you need to think about monitoring your deployment and being able to recover from failures, ideally automatically. You also need to think about managing and monitoring backups and ensure this is tested frequently. MongoDB also does release new versions every now and then, so you'd also have to manage version upgrades. And if your application grows and your database requirements grow, then you also have to think about scaling the deployment by adding more resources or more nodes, so you need to be able to do that. If you're going to go down this road, I suggest you have a look at MongoDB Agent. MongoDB Agent is a service that helps you perform automation, backup, and monitoring for your self-hosted deployment. However, you can also go with hosted MongoDB Solutions. If you would prefer to outsource the tasks I just mentioned, there are multiple service providers that offer MongoDB as a service. For this course, you can choose any deployment option locally or in the cloud. If you deploy MongoDB in the cloud, you need to make note of the connection string, which looks something like this. Regardless of the deployment option you choose, you will need to install the MongoDB Shell and the MongoDB Database Tools on your machine for this course. We'll install all three, MongoDB, the MongoDB Shell, and the MongoDB Tools in the next few videos.

Contents