Build stateful, coordinated applications on Cloudflare's edge using Durable Objects.
Search: blockConcurrencyWhile, idFromName, getByName, setAlarm, sql.exec
| Coordination | Chat rooms, multiplayer games, collaborative docs | | Strong consistency | Inventory, booking systems, turn-based games | | Per-entity storage | Multi-tenant SaaS, per-user data | | Persistent connections | WebSockets, real-time notifications | | Scheduled work per entity | Subscription renewals, game timeouts |
Cloudflare Durable オブジェクトを作成してレビューします。ステートフルな調整 (チャット ルーム、マルチプレイヤー ゲーム、予約システム) を構築する場合、RPC メソッド、SQLite ストレージ、アラーム、WebSocket を実装する場合、またはベスト プラクティスのために DO コードをレビューする場合に使用します。 Workers の統合、Wrangler 構成、Vitest を使用したテストについて説明します。 ソース: elithrar/dotfiles。