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 |
Erstellen und überprüfen Sie langlebige Cloudflare-Objekte. Verwenden Sie es beim Aufbau einer zustandsbehafteten Koordination (Chatrooms, Multiplayer-Spiele, Buchungssysteme), beim Implementieren von RPC-Methoden, SQLite-Speicher, Alarmen, WebSockets oder beim Überprüfen von DO-Code auf Best Practices. Behandelt Workers-Integration, Wrangler-Konfiguration und Tests mit Vitest. Quelle: elithrar/dotfiles.