Add real-time features

Last updated Apr 24, 2026 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

Was this helpful?

YesNo

On this page

Add real-time features - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/use-cases/web-apps/real-time/#page","headline":"Add real-time features","description":"Build interactive applications with WebSockets, real-time collaboration, and live updates.","url":"https://developers.cloudflare.com/use-cases/web-apps/real-time/","inLanguage":"en","image":"https://developers.cloudflare.com/use-cases/web-apps/real-time/og.png?v=b6cfac389bf6117a","dateModified":"2026-04-24","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Protect your web application from attacks, bots, and abuse. title: Secure your application image: https://developers.cloudflare.com/use-cases/web-apps/security/og.png?v=b9d7243e637eb7b6


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/use-cases/llms.txt
Use this file to discover all available pages before exploring further.