Skip to content

Integrate Cloudflare Durable Objects for Rate Limiting, WebSockets, and Deduplication #1290

@jaypatrick

Description

@jaypatrick

Implement Cloudflare Durable Objects in the Worker runtime:

  • Replace rate limiting KV logic with DO (atomic increments, strong consistency per-API-key or per-IP)
  • Prototype WebSocket hibernation for long-lived connections
  • Optional: Use DO for in-flight compile job deduplication or session presence tracking

Reference: https://hono.dev/examples/cloudflare-durable-objects/

Metadata

Metadata

Assignees

Labels

cloudflareCloudflare Workers / CDNenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions