Scaling to zero/sleep for databases
First of all I'm impressed with all of the new stuff added, this is awesome!
I have a question about "scaling to zero" feature, so apparently it sleeps when there is no network activity happening, specifically the out of the service.
What if this service is a database/long running worker that runs long running jobs, in the case the work takes more than 5 mins before any response and the app sleeps during some processing, so this makes app sleep feature not applicable for databases/workers right?
I think we should have the time before sleep configurable so I can make sure that it doesn't sleep in the middle of doing something.
Also one more suggestion is to have a configurable endpoint that railway can trigger before sleep and based on it it can cancel the sleep, just an idea.
3 Replies