Setting up MongoDB
At the highest level, MongoDB organizes databases in projects, and within a project, you have one or more clusters with one or more databases. During the signing up for MongoDB in the Chapter 3, Setting Up the Development and Runtime Environment, we’ve already created a free cluster for our microservices application.
To set up MongoDB, we’ll start with the option to create a paid cluster. In the consecutive sections we’ll create a database user and set up MongoDB for Django.
Optional: creating a paid cluster for production databases
A free cluster is fine for a learning project like ours, but you’ll need a paid serverless or dedicated cluster for a production database. If you want a production cluster, take these steps to create one:
- Click Database from the left menu.
- Click + Create.
* The Create New Cluster page opens.
From here, you have two choices:
- Serverless: pay per operation with a fixed amount per 1M reads.
- Dedicated...