Too Long; Didn't Read
The rise of serverless architectures and back-end-as-a-service providers allows developers to scale database connections without creating heavy loads. Serverless developers use a technique called connection pooling to only create the database connection on the first function call and re-use it for every consecutive call. This gives us a time frame of 15 to 20 minutes where our database connection is active and ready to be used without suffering any performance loss. Using Lambda with MongoDB Stitch, you can see the pattern is very similar to that of a traditional server.