本页还没有译文
本页 39 段还没译成日本語,下面显示的是英文原文。Cloudflare Durable Objects
还没翻译译自英文(developers.cloudflare.com)本页 39 段都还没译
Create AI agents, collaborative applications, real-time interactions like chat, and more without needing to coordinate state, have separate storage, or manage infrastructure.
Available on Free and Paid plans
Durable Objects provide a building block for stateful applications and distributed systems.
Use Durable Objects to build applications that need coordination among multiple clients, like collaborative editing tools, interactive chat, multiplayer games, live notifications, and deep distributed systems, without requiring you to build serialization and coordination primitives on your own.
Note
SQLite-backed Durable Objects are now available on the Workers Free plan with these limits.
SQLite storage and corresponding Storage API methods like sql.exec have moved from beta to general availability. New Durable Object classes should use wrangler configuration for SQLite storage.
What are Durable Objects?
A Durable Object is a special kind of Cloudflare Worker which uniquely combines compute with storage. Like a Worker, a Durable Object is automatically provisioned geographically close to where it is first requested, starts up quickly when needed, and shuts down when idle. You can have millions of them around the world. However, unlike regular Workers:
- Each Durable Object has a globally-unique name, which allows you to send requests to a specific object from anywhere in the world. Thus, a Durable Object can be used to coordinate between multiple clients who need to work together.
- Each Durable Object has some durable storage attached. Since this storage lives together with the object, it is strongly consistent yet fast to access.
Therefore, Durable Objects enable stateful serverless applications.
For more information, refer to the full What are Durable Objects? page.
Features
Learn how Durable Objects coordinate connections among multiple clients or events.
Learn how Durable Objects provide transactional, strongly consistent, and serializable storage.
Learn how WebSocket Hibernation allows you to manage the connections of multiple clients at scale.
Learn how to use alarms to trigger a Durable Object and perform compute in the future at customizable intervals.
Related products
Cloudflare Workers provides a serverless execution environment that allows you to create new applications or augment existing ones without configuring or maintaining infrastructure.
D1 is Cloudflare's SQL-based native serverless database. Create a database by importing data or defining your tables and writing your queries within a Worker or through the API.
Cloudflare R2 Storage allows developers to store large amounts of unstructured data without the costly egress bandwidth fees associated with typical cloud storage services.
More resources
Learn about Durable Objects limits.
Learn about Durable Objects pricing.
Learn more about storage and database options you can build with Workers.
Connect with the Workers community on Discord to ask questions, show what you are building, and discuss the platform with other developers.
Follow @CloudflareDev on Twitter to learn about product announcements, and what is new in Cloudflare Developer Platform.