Introducing MongoDB and cloud-native databases
We already peeked into the cloud version of MongoDB in the Chapter 3, Setting Up the Development and Runtime Environment. There is also a community server version, which we can run on-premise (even in a Docker container). Still, we focus on the cloud version because it coheres nicely with our cloud-native microservices.
In the following sub-sections, we’ll look at cloud-native and NoSQL databases and why we would use them.
What are cloud-native databases?
Cloud-native databases are just what their naming implies: databases designed to run in cloud environments. So, instead of running a database on a local server, we connect to a remote cloud server through the internet.
Why use a cloud-native database?
This raises the question of why we would use a cloud-native database, and the answer to that lies in these benefits of cloud-native databases: