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
- Microservices at the Edge
- Event-Driven Architectures
- Geolocation & Localization
- Durable Objects & Stateful Coordination