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
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
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?