a year ago
Hey guys,
If I host my Node.js API on Railway, is it serverless or not?
The reason I’m asking, is because I use MongoDB Atlas where connections are expensive.
MongoDB has built in connection pooling, but when I host my backend on for example Vercel serverless functions, then the MongoDB connection pooling doesn’t work, because the functions gets opened and closed all the time.
2 Replies
a year ago
Update: Found the answer at the bottom of the docs, Railway is not serverless: https://docs.railway.app/maturity/philosophy#is-railway-serverless
a year ago
We support App Sleeping that is the "equivalent" of serverless on Railway. If there is no network traffic activity for a certain period of time, your service will be slept and incur zero usage costs.