Skip to content

Add Durable objects Component#6785

Open
bachiitter wants to merge 10 commits into
anomalyco:devfrom
bachiitter:durable-objects
Open

Add Durable objects Component#6785
bachiitter wants to merge 10 commits into
anomalyco:devfrom
bachiitter:durable-objects

Conversation

@bachiitter
Copy link
Copy Markdown
Contributor

@bachiitter bachiitter commented Apr 20, 2026

closes #6730

@vimtor vimtor self-assigned this Apr 20, 2026
@bachiitter bachiitter marked this pull request as ready for review May 20, 2026 11:56
@bachiitter bachiitter closed this May 22, 2026
@bachiitter bachiitter reopened this May 22, 2026
@beeirl
Copy link
Copy Markdown

beeirl commented May 25, 2026

@vimtor can we get this reviewed please

@DJDANNY123
Copy link
Copy Markdown

I've had a look at this MR and it's nice, it solves my biggest pain point with durable objects which is managing migrations.
I don't think it handles binding a single durable object namespace to multiple workers, which links should probably support if we make it an independent resource that can be associated with multiple other resources.

Worker 1 (host)

bindings: {
  name: "COUNTER",
  type: "durable_object_namespace",
  className: "CounterObject",
}
migrations: {
  newTag: "v1",
  newSqliteClasses: ["CounterObject"]
}

Worker 2 (consumer), no migrations

bindings: {
  name: "COUNTER",
  type: "durable_object_namespace",
  className: "CounterObject",
// I don't think this would be populated by linking the durable object, but could be overridden with a transform
  scriptName: "Worker1ScriptName", 
}

I'd still be in favour of this being merged in it's current state, as for most people this will solve headaches, and binding a single durable object namespace to multiple workers is probably fairly niche.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Cloudflare Durable Objects

4 participants