Cloudflare Durable Objects Knowledge Patch

•
24
•

Guides the design, configuration, migration, and testing of SQLite-backed Cloudflare Durable Objects with up-to-date best practices.

The Cloudflare Durable Objects Knowledge Patch bridges the gap between static LLM training data and modern Cloudflare developer platform capabilities. It delivers actionable, current architectural patterns for building distributed stateful applications using Durable Objects, covering declarative exports, SQLite storage backends, SQL transactions, WebSocket hibernation, placement jurisdictions, alarms, and Vitest integration testing. Whether you are executing zero-downtime class renames, orchestrating stateful WebSocket connections, or managing point-in-time recovery (PITR), this skill ensures your code adheres to Cloudflare's latest runtime semantics and operational best practices.

主要功能

01Declarative exports and migration strategies for zero-downtime renames and transfers
02Vitest testing strategies for storage isolation, eviction simulation, and alarm triggers
03Architectural guidance for SQLite storage, SQL cursors, and transaction callbacks
04Identity, residency jurisdictions, and placement hint configuration
0524 GitHub stars
06WebSocket hibernation patterns including attachments, auto-responses, and state limits

使用场景

01Implementing scalable, real-time multiplayer or chat applications with WebSocket hibernation
02Configuring automated integration tests for stateful Cloudflare Workers using Vitest
03Migrating legacy KV-backed Durable Object namespaces to modern SQLite storage models