You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create collaborative applications, real-time chat, multiplayer games and more without needing to coordinate state or manage infrastructure.
18
+
</Description>
17
19
20
+
<Plantype="paid" />
18
21
19
-
Create collaborative applications, real-time chat, multiplayer games and more without needing to coordinate state or manage infrastructure.
22
+
## What are Durable Objects?
20
23
24
+
Durable Objects are a part of the Cloudflare Workers serverless platform. A Durable Object is essentially a small server that can be addressed by a unique name and can keep state both in-memory and on-disk. Workers running anywhere on Cloudflare's network can send messages to a Durable Object by its name, and all messages addressed to the same name — from anywhere in the world — will find their way to the same Durable Object instance.
21
25
22
-
</Description>
26
+
Durable Objects are intended to be small and numerous. A single application can create billions of Durable Objects distributed across our global network. Cloudflare automatically decides [where a Durable Object should live](/durable-objects/reference/data-location/) based on where it is accessed, automatically starts it up as needed when requests arrive, and shuts it down when idle. A Durable Object has in-memory state while running and can also optionally store long-lived durable state. Since there is exactly one Durable Object for each name, a Durable Object can be used to coordinate between operations on the same logical object.
23
27
24
-
<Plantype="paid" />
28
+
## Utilize Durable Objects
25
29
26
30
Durable Objects provide a powerful compute API for coordinating multiple clients or users. Each Durable Object has private, transactional and strongly consistent storage attached.
27
31
32
+
They are especially good at real-time collaboration, but are not limited to this use case. They are general-purpose servers that can implement any logic you desire to serve requests. More generally, Durable Objects are a basic building block for distributed systems.
33
+
28
34
Use Durable Objects to build collaborative editing tools, interactive chat, multiplayer games and applications that need coordination among multiple clients, without requiring you to build serialization and coordination primitives on your own.
The new beta version of Durable Objects is available where each Durable Object has a private, embedded SQLite database. When deploying a new Durable Object class, users can [opt-in to a SQLite storage backend](/durable-objects/best-practices/access-durable-objects-storage/#sqlite-storage-backend) in order to access new [SQL API](/durable-objects/api/storage-api/#sqlexec) and [point-in-time-recovery API](/durable-objects/api/storage-api/#point-in-time-recovery), part of Durable Objects Storage API.
0 commit comments