Agent Wealth HubFree public resources
中文 EN العربية

Back to catalog / Integrations

Durable Objects: model state services around coordination boundaries

Choose object granularity, storage, routing, alarms, and persistent connections.

Skills

Read the Durable Objects overview, API, best practices, authorization, and relevant examples. Confirm the task needs per-entity coordination; use Workers for stateless requests. Model one object per coordination atom, route deterministically with `getByName()`, and use SQLite migrations with `new_sqlite_classes`. Reserve `blockConcurrencyWhile()` for constructor initialization, persist before caching, and avoid awaits between related writes. Test RPC, alarms, and WebSockets with Vitest; review compatibility date and migration impact before any deployment.

Permissions

Prerequisites

Permissions

Limitations

Retrieve current DO API and authorization docs; avoid stateless/high-fanout use; review migration tags and data scope.

Pinned upstream source

https://github.com/cloudflare/skills/blob/53395984c3ea1925d00fce03b266112302f050e6/skills/durable-objects/SKILL.md

Repository
cloudflare/skills
File path
skills/durable-objects/SKILL.md
Pinned commit
53395984c3ea1925d00fce03b266112302f050e6
Source checked
2026-10-14 · Reviewed against the pinned upstream source

Repository metrics

These values describe the upstream repository, not popularity or likes for an individual skill or playbook.

Stars
Not collected
Forks
Not collected
Observed at
Not collected

No metrics snapshot is available yet.

License: Apache-2.0

Compatible tools

Durable Objects API · Wrangler migrations · Cloudflare Vitest integration

View skill directory

Main topic

Turn ecommerce campaign materials into a reviewable weekly brief

Related resources