Microservices: when VPS beats serverless on cost
Everyone loves the idea of serverless until the bill shows up and ruins the vibe. If your microservices are running steady all day, a humble VPS can suddenly look like the smarter, cheaper move.
Microservices can look cheap on paper on serverless, then quietly get expensive once you add API gateways, queues, logging, storage, and cross-service network traffic. A small team can hit a point where a $20–$50 VPS outperforms a pay-per-request stack on total monthly cost, uptime control, and operational simplicity.
Is serverless cheaper than a VPS for microservices? It depends on traffic pattern and the services around it. Serverless is usually cheaper for low-traffic or bursty microservices, while a VPS can win for 24/7 workloads or long-running jobs. The real comparison is not compute alone: factor in gateway, queues, observability, storage, and networking to find the break-even point.
Is serverless cheaper than a VPS?
The easiest rule is this: if a service is active less than about 20% to 30% of the month, serverless often wins on raw compute. If it stays busy most of the day, a VPS usually wins because you stop paying per request, per millisecond, and per function hop.
I have seen teams move a small checkout API from a VPS to serverless and cut idle compute cost by around 40% to 60%, but the savings disappeared once logs, gateway calls, and queue traffic were counted. That is the part many pricing pages hide.
Cheap for bursts, not steady load
And that’s where the real cost trap starts to show its face...
Understanding this fully means looking at the details covered in microservices when vps beats serverless on.










