Build a counter using Durable Objects and Workers with RPC methods.
Examples
Explore the following examples for Durable Objects.
Build a rate limiter using Durable Objects and Workers.
Build a WebSocket server using Durable Objects and Workers.
Build a WebSocket server with WebSocket Hibernation
Build a WebSocket server using WebSocket Hibernation on Durable Objects and Workers.
Durable Object in-memory state
Create a Durable Object that stores the last location it was accessed from in-memory.
Use the Durable Objects Alarms API to implement a Time To Live (TTL) for Durable Object instances.
Write tests for Durable Objects.
Use RpcTarget class to handle Durable Object metadata
Access the name from within a Durable Object using RpcTarget.
Use the Durable Objects Alarms API to batch requests to a Durable Object.
Use Workers KV from Durable Objects
Read and write to/from KV within a Durable Object
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark