Skip to content

Add real-time features

Real-time features, such as live chat, collaborative editing, and multiplayer interactions, require persistent connections and strongly consistent state. Cloudflare Durable Objects maintain WebSocket connections and coordinate shared state, while Queues handle background event processing.

Solutions

Durable Objects

Stateful objects with strongly consistent storage and coordination. Learn more about Durable Objects.

  • WebSocket support - Maintain persistent connections and broadcast messages across clients in real time
  • Collaborative editing - Build multiplayer and co-editing experiences with strongly consistent shared state
  • Strong consistency - Coordinate state across many concurrent connections with transactional guarantees

Queues

Reliable message queuing and background processing for Workers. Learn more about Queues.

  • Event processing - Handle webhooks and background jobs reliably without blocking the main request path

Get started

  1. Durable Objects get started
  2. WebSocket connections with Durable Objects
  3. Queues get started