10 Delving into Database as a Service

 

This chapter covers

  • Mastering MongoDB Atlas’s Database as a Service
  • Differentiating M0 and Flex Atlas clusters
  • Comprehending dedicated M10+ Atlas clusters
  • Scaling Atlas cluster and storage with autoscaling
  • Going multicloud with Atlas multicloud and region clusters

In part 1 of this book, I intentionally avoided MongoDB server administration problems to focus on Atlas, a managed Database as a Service (DBaaS). Atlas handles most MongoDB administrative tasks, simplifying database operations and allowing developers to concentrate on application development. It automates critical functions such as deployment, scaling, upgrades, and backups to ensure optimal performance and security. Its features include real-time analytics, comprehensive monitoring, and performance optimization.

Atlas offers various cluster options: M0 for beginners, Flex for development and testing, M10 and M20 for development, and M30+ for production, all with support for replica sets and sharded deployments. It allows automatic adjustments of cluster tiers and storage.

In Atlas, you can select your desired cluster tier, which determines the memory, storage, virtual CPUs (vCPUs), and input/output operations per second (IOPS) specifications for each data-bearing server in the cluster. You can also automatically scale your cluster tier, storage capacity, or both in response to cluster use.

10.1 Shared M0 and Flex clusters

10.2 Dedicated clusters

10.2.1 Atlas clusters for low-traffic applications

10.2.2 Atlas clusters for high-traffic applications

10.2.3 Autoscaling clusters and storage

10.2.4 Customizing Atlas cluster storage

10.3 Atlas Global Clusters

10.4 Going multiregion with workload isolation

10.4.1 Adding electable nodes for high availability

10.4.2 Adding read-only nodes for local reads

10.4.3 Using analytics nodes for workload isolation

10.5 Using predefined replica set tags for querying

10.5.1 Routing queries to analytics nodes

10.5.2 Isolating normal application secondary reads from analytics nodes

10.6 Understanding the Atlas custom Write Concerns