MongoDB Atlas Serverless
Serverless has been quickly gaining traction over the past few years. Serverless computing doesn’t mean that there is no server anywhere—it means that the server infrastructure is completely transparent to the application developer. The cloud infrastructure abstracts any required servers away from the developer.
The developer can write code that executes directly and can access storage and computing resources without the need to think as much about scaling or storage needs.
Connecting to a serverless instance is the same as connecting to a MongoDB Atlas replica set, such as the MongoDB URL.
Serverless computing’s major advantage is that we only pay for the resources that we are using. This can result in cost savings when we have a highly variable load, a load with short bursts, or otherwise cannot fully utilize our servers for most of the time.
Serverless instances are in preview mode as of the time of writing this book (summer...