0Pricing
Edge Computing with Cloudflare Workers & Deno · Lesson

Durable Objects & Stateful Coordination

Use Durable Objects to add strongly consistent, single-instance state and coordination to otherwise stateless edge architectures.

The Stateless Problem

Workers are stateless by design, each request may hit a different instance anywhere on Earth.

That is great for scale, but hard when you need:

  • A single source of truth
  • Coordination between many clients
  • Strong consistency, not eventual

Durable Objects solve exactly this.

What Is a Durable Object?

A Durable Object (DO) is a single, globally-addressable instance with its own private storage.

For a given object ID, all requests route to the same instance, giving you a consistent place to hold state.

All lessons in this course

  1. Microservices at the Edge
  2. Event-Driven Architectures
  3. Geolocation & Localization
  4. Durable Objects & Stateful Coordination
← Back to Edge Computing with Cloudflare Workers & Deno