High-scale developers and Series A founders are experiencing significant costs with Cloudflare Workers for agentic backends, D1 queries, and Pages SSR. While the serverless model promises cost savings, cold starts, vendor lock-in, and high egress fees are becoming problematic. Businesses are facing substantial bills for data storage and egress, with Cloudflare's Workers Unbound incurring per-request charges. Furthermore, persistent AI agents or long-running tasks often hit Cloudflare's CPU and duration limits, even on paid plans.
The solution proposed is OpenWorkers, an open-source, Rust-powered runtime that enables running JavaScript in V8 isolates on self-hosted infrastructure. This provides the same developer experience as Cloudflare Workers but on affordable ARM VPS from Hetzner. Hetzner offers low-cost cloud servers suitable for this purpose, with options for both VPS and dedicated servers. Self-hosting with OpenWorkers eliminates cold starts as processes remain persistent, unlike multi-tenant serverless environments.
Porting existing Worker code to OpenWorkers is a rapid process due to API compatibility. Deployment involves cloning infrastructure, spinning up required services like PostgreSQL and NATS, and then deploying the Worker code. The cost savings are substantial; processing 10 million requests per month could cost thousands with Cloudflare Workers but only around $10 on a Hetzner ARM VPS, representing a nearly 99.8% reduction in infrastructure spend. By combining self-hosted stateful services with flexible cloud instances for stateless frontends, businesses can optimize costs. This approach, exemplified by OpenWorkers on Hetzner, offers a more cost-effective alternative to expensive serverless platforms, allowing for better control and significant margin reclamation.
dev.to
dev.to
Create attached notes ...
