// features
Everything at the edge.
Load balancers and API gateways deployed as Cloudflare Workers. No servers, no proxy — traffic never touches EdgeBalancer.
// load balancer
Seven strategies. One Worker.
Pick the strategy that fits the workload. Switch anytime — updates use Worker Versions with automatic rollback.
Round Robin
Edge-local rotating cursor. Even distribution, no config needed.
Weighted Round Robin
Weighted random selection. Bigger origins get proportionally more traffic.
IP Hash
Stable origin from cf-connecting-ip. Same client lands on same origin.
Cookie Sticky
First request assigns an origin; affinity held by an httpOnly cookie.
Weighted Cookie Sticky
Weighted first assignment, then cookie affinity for stateful workloads.
Failover
Ordered retry. Advances to the next origin on 5xx or connection failure.
Geo Steering
Match by colo → country → continent, then fallback rotation.
Health Checks
Periodic origin checks. Unhealthy origins are skipped automatically.
Pause & Resume
Pause to maintenance or paused Worker; resume with one click.
Multiple Origins
Weighted origins with per-origin geo, fallback and failure settings.
Path Routing
Priority-based path rules route /api/* or /admin/* to specific origins.
Rate Limiting
Per-path requests-per-minute limits enforced directly at the edge.
Smart Placement
Cloudflare Smart Placement or pinned region for optimal latency.
Health checks, origins, path routing, rate limits and placement are configured per load balancer and run entirely on the edge.Explore strategies →
// api gateway
Full gateway. Still a Worker.
Path-based routing, auth, CORS, caching, canary, IP rules, mocks and rate limiting — all enforced at the edge before traffic hits your origins.
Path Routing
Prefix-based routing with priorities. /api/*, /admin/*, /* each to its own origin.
JWT HS256 Auth
Verify Bearer tokens at the edge. Unauthenticated requests are rejected instantly.
CORS Control
Per-route CORS: allowed origins, methods, headers and credentials at the edge.
Header Transforms
Add, override or strip request and response headers per route.
Edge Caching
Cache GET responses at the edge with per-route TTL. Cache hits never reach origins.
Canary Releases
Route a percentage of traffic to a canary origin. Weighted split with stable hashing.
IP Allow / Deny
Per-route allowlists and denylists. Block or permit CIDR ranges at the edge.
Mock Responses
Return static JSON directly from the edge. Ideal for staging and contract mocks.
Rate Limiting
Per-route requests-per-minute enforcement. 429 when the budget is exhausted.
Every gateway feature runs inside your Cloudflare Worker. EdgeBalancer is only the control plane.See pricing →