Comparison · Self-hosted vs Managed

Switchman vs Cloudflare Workers

Cloudflare Workers is $5/mo (Paid). Switchman is a self-hosted alternative at $0.99/mo. Here's when each makes sense.

Try Switchman Free Switchman overview
SwitchmanCloudflare Workers
HostingSelf-hosted, your infraManaged SaaS (cloud only)
Data locationYour server, your diskCloudflare Workers's cloud
Free tier3 routesPaid only
Pro pricing$0.99/mo$5/mo (Paid)
DependenciesNone (single binary + SQLite)N/A (managed)
Setup time~30 secondsAccount signup
DashboardBuilt-in at /uiCloud dashboard
LicenseBSL 1.1Proprietary SaaS
When to use Switchman

Pick Switchman when you want simplicity and ownership.

Switchman is a single Go binary with embedded SQLite. Install it with one command, and you are running in under a minute. Your data stays on your server.

curl -fsSL https://stockyard.dev/switchman/install.sh | sh
Install Switchman Switchman docs

Cloudflare Workers makes sense when you need more.

Cloudflare Workers run code at the edge in 300+ cities with millisecond cold starts. For edge computing and global traffic manipulation, Workers are unmatched. Switchman is a simpler self-hosted traffic router for A/B splitting and header-based routing on your own server.
The trade-off

The decision between Switchman and Cloudflare Workers usually comes down to one question: do you need the breadth of features that Cloudflare Workers offers, or would a focused tool that stays out of your way be a better fit? Cloudflare Workers has spent years building an ecosystem around traffic router. Switchman does one thing well and gives you complete control of the underlying data.

The operational difference is significant. Cloudflare Workers requires you to trust their infrastructure, their security practices, and their business continuity. Switchman requires you to run a process and keep the data directory backed up. If your server dies, restore the binary and the SQLite file to a new server. The entire recovery procedure fits in a single paragraph because there is nothing else involved.

Moving to Switchman

If you are currently using Cloudflare Workers and considering Switchman, start by running both in parallel. Install Switchman on a test server, point your workflow at it for a week, and compare the experience. Switchman's data directory is isolated — running a trial costs nothing beyond the compute. If Switchman does not fit, delete the binary and the data directory. There is nothing else to clean up.

FAQ
Is Switchman a Cloudflare Workers alternative?
Workers run code at the global edge. Switchman routes traffic on your server. Completely different architectures for different needs.
Does Switchman run at the edge?
No. Switchman runs on your server. For global edge routing, Cloudflare Workers or similar edge platforms are necessary.
Related

Switchman overview

Get started

Self-hosted traffic router in 30 seconds.

Single binary. Free to start. $0.99/mo for Pro.

Install Switchman All 150 tools for $29/mo →