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 |
Crea e rivedi oggetti durevoli Cloudflare. Da utilizzare durante la creazione di un coordinamento con stato (chat room, giochi multiplayer, sistemi di prenotazione), l'implementazione di metodi RPC, archiviazione SQLite, allarmi, WebSocket o la revisione del codice DO per le migliori pratiche. Copre l'integrazione di Workers, la configurazione di Wrangler e i test con Vitest. Fonte: elithrar/dotfiles.