Fly.io scale-to-zero versus the predictability of VPS
Fly.io offers a pay-as-you-go model with 36 global locations, while traditional VPS providers like Hetzner offer fixed monthly costs between $3 and $5. Choosing between edge containers and standard servers depends on whether a workload requires scale-to-zero capabilities or predictable billing.
Fly.io uses a pay-as-you-go pricing model that bills compute by the second and volume storage by the gigabyte each month. A shared-cpu-1x instance with 256MB of RAM costs $2.19 per month, while a performance-4x instance with 8GB of RAM costs $132.01 per month. Performance-6x instances with 12GB of RAM cost $198.01 per month, and performance-8x instances with 16GB of RAM cost $264.01 per month. Stopped machines cost $0.15 per GB for the rootfs. This variable pricing model creates different financial risks than a traditional VPS. A Hetzner VPS costs between $3 and $5 per month, and a DigitalOcean Droplet costs between $4 and $6 per month. These fixed prices prevent the surprise bills that some Fly.io users report regarding bandwidth and storage. You know that variable pricing looks good for small apps, but it can punish unexpected scaling. Fly.io provides a global edge network with 36 locations, but the pay-as-you-go pricing model for compute and bandwidth can lead to unexpected expenses if your application traffic spikes or if you miscalculate your monthly egress requirements. Bandwidth in North America and Europe costs $0.02 per GB, but egress in Asia Pacific, Oceania, or South America costs $0.04 per GB. Egress in Africa and India costs $0.12 per GB. Snapshots cost $0.08 per GB per month, and dedicated IPv4 addresses cost $2.00 per month. Volumes cost $0.15 per GB per month. Database storage is $0.28 per GB, with a maximum of 1,000 GB per cluster. CPU usage is measured at $0.0385 per CPU-hour, and memory usage is $0.021875 per GB-hour.
| Feature | Fly.io | VPS |
|---|---|---|
| Deployment Model | Containers at edge locations | Single or multi-region servers |
| Pricing Structure | Usage-based | Fixed monthly cost |
| Global Distribution | Built-in (36 regions) | Manual multi-server setup |
| Scaling | Auto start/stop of Machines | Manual or scripted scaling |
| Cold Starts | Yes (scale-to-zero) | No (always running) |
| SSH Access | Limited (to containers) | Full root access |
| Persistent Storage | Volumes (extra cost) | Included in plan |
Infrastructure ownership and deployment complexity
Deployment workflows differ between edge platforms and standard servers. Fly.io deploys containers to Firecracker micro-VMs using the flyctl CLI and fly.toml configuration. This approach requires learning specific Fly.io commands and managing the distinction between Machines and Apps. In contrast, a standard VPS provides full root access and uses standard Linux commands that work on any provider. Fly.io’s architecture is built for stateless apps. Running something that needs persistent storage, like an AI assistant with memory, requires additional configuration and costs for volumes. A $4 VPS or a Raspberry Pi often works better for these persistent workloads. Encore differs from Fly.io because it provisions infrastructure directly into your own AWS or GCP account. Fly.io manages everything on its own network, which creates moderate vendor lock-in. Local development on Fly.io involves running Docker containers or proxying to remote Fly databases, whereas Encore automatically provisions local PostgreSQL, Pub/Sub emulation, and cron scheduling. For security, Fly.io provides SOC 2 Type II compliance and HIPAA with a pre-signed BAA. Every computer is a Firecracker micro-VM with no shared kernel. Connectors broker logins and API keys at the gateway so the agent uses them without ever holding them. You can also lock any computer to an allowlist of hosts to secure workloads. Private networking exists between everything by default.
Scaling workloads and the future of serverless
The choice between providers depends on the specific workload requirements for latency and persistence. Fly.io maintains servers in 36 locations to provide low latency for real-time games and global APIs. This scale-to-zero capability means you pay nothing when the app is idle. However, many developers find Fly.io’s learning curve steep because it uses its own CLI and deployment concepts. AWS Lambda now includes microVM orchestration to support stateful agent execution and multi-step orchestration through durable functions. AWS provides Graviton5 powered T9g burstable instances for microservices and small databases. In competitive benchmarks, AWS saves 13% on Compute compared to other providers, but Oracle saves 64% to 69% on Compute. DigitalOcean saves 21% to 31% on Compute when matched against AWS. Google saves 19% on Compute, and Alibaba saves 15% to 26% on Compute. AWS saves 18% on serverless compared to Cloudflare. Object storage costs for AWS are 35% to 100% lower than Cloudflare. Does the ease of a single deploy command outweigh the cost of managed services?