Real-Time Communications Moves to the Network Edge

Real-time communication had its inflection point in March 2020. When offices emptied, the meeting rooms that once hosted in-person conversation moved online almost overnight. Eighteen months later, that shift has stuck — and the tools that carried organizations through it are only the beginning. The next wave of innovation will target remote and hybrid work, pushing past simple chat and video calls toward richer interactive applications.

Cloudflare is betting on that future. Today it announced a new suite of products under the Real-Time Communications umbrella, designed to help developers build the next generation of interactive, real-time applications. The first piece of that platform is now in closed beta: WebRTC Components.

Why Latency Constraints Change the Architecture

"Real time" in the context of communications means under 500 milliseconds — as fast as packets can traverse fiber networks. In practice, most audio and video applications rely on WebRTC, the set of open standards and browser APIs built for connecting, securing, and transferring media and data over UDP. WebRTC works directly in the browser, eliminating the need for custom clients.

But WebRTC was designed as a peer-to-peer technology, and peer-to-peer has practical limitations. Carrier-grade NAT, corporate firewalls, and mixed device and network environments make direct connections unreliable. And in a full-mesh setup, each participant's network connection gets saturated because it must receive streams from every other peer. Scaling beyond a handful of participants becomes extremely difficult as mobile devices, high-latency connections, and fast fiber all mix in the same call.

That's where TURN — Traversal Using Relays Around NAT — comes in. TURN servers relay traffic around NAT and firewall restrictions, providing a path for WebRTC connections that can't be established peer-to-peer. Hosting a TURN server on your own infrastructure means managing capacity and placement yourself, and getting it wrong directly degrades call quality for your users.

Real-Time Communications at Scale

Distributed TURN Infrastructure

WebRTC Components lets teams offload their centralized TURN servers to Cloudflare's global network. Cloudflare operates an anycast network spanning 250+ cities, which puts its edge within milliseconds of users across multiple geographies. When a client connects to Cloudflare's TURN service, it gets a strong connection to Cloudflare's network; from there, traffic routes over Cloudflare's private backbone to the other party in the call.

The distributed infrastructure approach solves several problems at once:

  • Scaling: Capacity grows automatically, and adding endpoints is an API call away rather than a hardware procurement and deployment exercise.
  • Connectivity: Users get low latency, low packet loss, and low jitter because they're always connecting to a nearby edge node rather than a centralized relay.
  • Security: The service sits behind Cloudflare's 100 Tbps network and DDoS mitigation, protecting WebRTC relays from attacks.
  • Policy control: IP and ASN-based access rules can be enforced in a few clicks.
Users trying to start a media session using WebRTC with centralized infrastructure over the public Internet.

For teams currently running their own WebRTC TURN servers, this offloads a significant piece of infrastructure management. For teams starting fresh, it removes the need to build out media server capacity, deploy infrastructure close to users, and protect it from attacks before they can even launch.

Beyond Relays: The Roadmap

Managed TURN is a critical building block for one-to-one and small group calling, but larger deployments get complicated quickly. Managing the quality of each media track, enforcing permissions for who can speak or broadcast in large events, and building signaling infrastructure with chat and interactivity on top of the media layer are all substantial undertakings.

Cloudflare is previewing where the platform is headed, with several areas of focus:

  • Developer-first APIs that abstract low-level infrastructure. The goal is to let developers think in terms of participants, rooms, and channels, without needing to manage ICE, peer connections, and media tracks directly.
  • Cloudflare for Teams integration. Organizational access policies would apply to real-time services, useful for remote company-wide meetings and town halls.
  • Flexible input and output. Plans call for broadcasting to traditional HTTP streaming clients and recording for on-demand playback via Stream Live, ingesting RTMP sources with Stream Connect, and support for emerging protocols such as WHIP.
  • Serverless event handling via Cloudflare Workers. Workers could trigger on participant events like join and leave, and Durable Objects with WebSockets could support stateful chat and collaboration features.

Joining the Beta

The closed beta for WebRTC Components is now accepting signups. Cloudflare is looking to partner with teams at the beginning of their real-time journeys, particularly those scaling existing one-to-one video and audio platforms beyond a few hundred or thousand concurrent users and willing to iterate closely with Cloudflare's engineering team.