Cloud & Edge
Cloudflare Workers vs. Traditional Cloud: When Moving to the Edge Actually Makes Sense
Edge computing gets pitched as a universal upgrade — faster, cheaper, simpler. In practice, it's a genuine improvement for some workloads and a poor fit for others. Having migrated production systems from AWS to Cloudflare Workers, here's the honest version of when it's worth it.
Where the edge genuinely wins
The clearest case for Workers is request-response logic that doesn't need heavy, long-running compute: API routing and transformation, authentication checks, A/B test logic, personalization, and content delivery. These run in a V8 isolate that starts in milliseconds, deployed automatically to hundreds of locations, so a user in Mumbai and a user in Toronto both hit a nearby edge node instead of one regional origin server.
The cost model helps too. Traditional cloud compute often runs 24/7 whether or not it's serving traffic, while Workers bill per request and per CPU-millisecond actually used. For workloads with spiky or unpredictable traffic, that difference compounds.
Where it's the wrong tool
Workers are not a good fit for long-running background jobs, heavy CPU-bound processing (video encoding, large batch data transforms), or workloads that need a traditional relational database with complex joins and transactions at scale. D1 and Durable Objects cover a real range of state needs, but they are not a drop-in replacement for a mature Postgres deployment handling complex reporting queries.
The honest framing: edge compute is excellent for the parts of your system that sit between the user and your data, and less suited to the heavy lifting that happens deep inside it.
A migration pattern that actually works
Rewriting an entire application for the edge in one attempt is the highest-risk path. A more reliable sequence:
- Move the API gateway first. Auth, rate limiting, and routing logic are usually stateless enough to migrate early and immediately reduce latency for every downstream request.
- Migrate read-heavy, cacheable endpoints next. These benefit most from edge caching and carry the lowest risk if something needs to be rolled back.
- Leave stateful, transaction-heavy logic on the origin until there's a clear reason to move it — and when you do, evaluate D1 or Durable Objects against your actual consistency requirements, not just their availability.
What this actually saves you
In migrations we've run, the measurable wins have consistently been: lower latency for geographically distributed users, reduced idle infrastructure cost, and fewer moving parts to patch and monitor compared to managing EC2 instances, load balancers, and auto-scaling groups directly. The trade-off is a genuine shift in how you think about state — which is why this is an architecture decision, not just a hosting change.
If you're evaluating whether an edge migration makes sense for your system, it's worth mapping your actual traffic patterns and state requirements before committing either way.
Working on something similar?
Stellar Forge builds exactly the kind of systems discussed above — get in touch if you'd like a second opinion or a hands-on build partner.
Start a project