Solving invisible scaling issues with Serverless and MongoDBby@adnanrahic
1,566 reads

Solving invisible scaling issues with Serverless and MongoDB

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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.

Company Mentioned

Mention Thumbnail
featured image - Solving invisible scaling issues with Serverless and MongoDB
Adnan Rahić HackerNoon profile picture

@adnanrahic

Adnan Rahić


Receive Stories from @adnanrahic

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa