Cloudflare Ships Experimental workerd Clustering, Letting Durable Objects Run as a Self-Hosted Multi-Machine Cluster
Cloudflare's open-source workerd runtime can now form a multi-machine cluster on a developer's own infrastructure, backed by an object storage bucket instead of a consensus service.
Editor's Note ·
- Correction:
- The article's closing paragraph quotes a GitHub release note dated November 24, 2026 reading "Retry cluster bucket requests whose connection fails before the answer," attributed to the project's GitHub page. That text does not appear in the cited GitHub source (github.com/cloudflare/workerd), which shows no release notes, commit history, or November 2026 dates. This quoted claim could not be verified and should be disregarded.
- Correction:
- The article states that KV and Queues are cluster-compatible, only requiring an older Cap'n Proto configuration format, based on the Cloudflare changelog's table. However, workerd's own documentation (the limitations page and the cluster guide at workerd.dev) states plainly that "KV and Queues do not work in a cluster yet," listing cluster support for them as an upcoming, not current, feature; the GitHub README likewise lists both as "single-instance only." As of this release, KV and Queues do not work in a workerd cluster.
Overview
Cloudflare has released an experimental clustering mode for workerd, the open-source runtime that powers Cloudflare Workers, letting developers run Workers and Durable Objects across several machines on their own infrastructure instead of on Cloudflare’s network. According to a Cloudflare changelog post dated December 3, 2026, “Until now, workerd was primarily for local development because it ran as a single instance and stored data only on a local disk. Now several workerd instances can form one cluster that shares an object storage bucket.”
The release follows through on a plan Cloudflare and the Deno team announced in October, when Deno’s team joined Cloudflare and said they would merge celld — Deno creator Ryan Dahl’s self-hosted Durable Objects project — into workerd to make self-hosting “a first-class supported way to build and run apps using the Workers programming model,” as that plan was described at the time.
How the clustering works
Per the changelog, the mechanism is bucket-backed: “Point multiple workerd instances at an object storage bucket that supports conditional writes — such as Cloudflare R2, Amazon S3, or Google Cloud Storage. workerd persists each Durable Object SQLite database in the bucket and uses conditional writes to choose one leader for each object, with no consensus service.” The workerd documentation specifies that the bucket “must be an s3:// store with conditional writes, such as Cloudflare R2 or Amazon S3, or a gs:// Google Cloud Storage bucket,” and explicitly notes that “workerd does not support Azure Blob Storage.”
Routing and failover are handled without a separate control plane: “Any instance can accept a request for any object and forward it to the object’s leader. To add capacity, start another instance against the same bucket. When an instance stops or fails, another instance takes over its objects without losing acknowledged writes,” the changelog states. Developers can run clusters standalone with npx workerd serve or in containers; every workerd release publishes a docker.io/cloudflare/workerd image for linux/amd64 and linux/arm64, according to the changelog.
The release also expands what workerd can run on its own. The changelog notes that “previously, workerd natively supported only Workers and Durable Objects,” requiring Miniflare and Wrangler for projects using D1, Workflows, and other services, but “now more of the Cloudflare stack is built into the single workerd binary,” with D1, R2, Workflows, Cron Triggers, Static Assets, and the Cache API joining as experimental, cluster-compatible services. KV and Queues are also listed as cluster-compatible in the changelog’s table, but only through an older configuration format: the changelog adds that “in a cluster, KV and Queues still need a Cap’n Proto configuration, config.capnp; wrangler.json support is coming soon.”
What it’s for, and what it isn’t
Cloudflare frames the feature around four use cases: running workloads “inside your VPC, Kubernetes cluster, or on-premises hardware” to meet data-residency limits; giving stateful AI agents a Durable Object with SQLite memory that persists to the bucket even as idle agents are evicted from memory; backing real-time apps such as chat rooms or collaborative documents with a dedicated SQLite database per room, “without a shared database or message broker”; and building coordination primitives such as locks, counters, and job schedulers, according to the changelog.
The feature ships with explicit limits. The workerd limitations page states plainly that “clusters are experimental, and every instance needs —experimental,” and that “a cluster runs one application” since “workerd has no account service, multi-tenant scheduler, or managed ingress.” Write performance is bounded by the backing store: “each write waits for an upload to the bucket, so write latency is at least the bucket’s latency,” and instances do not replicate writes to each other directly. There is no automatic rebalancing — “workerd does not move objects to balance load” — and recovery has a gap: “a crashed instance’s objects are unavailable until its lease expires,” with the documentation noting that “SIGINT (Ctrl-C) stops an instance as a crash does.” When an object moves to a new instance, any open WebSocket connections to it close and clients must reconnect, per the same page.
Security is scoped narrowly as well. The changelog states that “a cluster is meant to run a single application whose code you trust. workerd is not a hardened sandbox,” and the limitations page adds that “cluster traffic is not encrypted, so the network must keep it confidential.” Cloudflare describes the release as a starting point rather than a finished product, writing in the changelog: “We’re just getting started with workerd clustering; the purpose of this experimental release is to gather feedback. Please open issues in github.com/cloudflare/workerd as you encounter them.”
Cluster-related changes had already begun appearing in workerd’s release history before the public announcement. The project’s GitHub release notes record a change on November 24, 2026 — roughly a week and a half before the December 3 changelog post — reading “Retry cluster bucket requests whose connection fails before the answer,” indicating the clustering groundwork was landing in daily builds ahead of the formal unveiling.