serverless nestjs app
dynamic-reel
PROOP

a year ago

Hello,

I am running a nestJS App that is connected to a Mongo Service.
My NestJS app never enters Serverless (Sleep Mode). There is no Cron Job nor any service that periodically requests anything from Mongo. Why does my NestJS API not "fall asleep"?

3 Replies

dynamic-reel
PROOP

a year ago

Project ID: 74b97a44-2b52-47c2-bbbe-e6684aaf07e3


a year ago

the sleeping from serverless mode happens when theres no outgoing traffic from the service, so perhaps the constant connection to the mongodb instance (or anything else) is being counted as traffic and preventing sleep


dynamic-reel
PROOP

a year ago

I’m curious, when I bootstrap my app I establish a connection to mongo. But that is not considered to be a standing connection that prevents sleeping, or is it?


Loading...