Back to Devoured - May 06, 2026
DEVOURED
How OpenAI delivers low-latency voice AI at scale

How OpenAI delivers low-latency voice AI at scale

DevOps
OpenAI split its WebRTC infrastructure into lightweight relay and stateful transceiver layers to collapse the public UDP surface from one port per session to a fixed handful while enabling Kubernetes deployment.
What: OpenAI rearchitected its real-time voice infrastructure by separating packet routing (relay layer) from protocol termination (transceiver services). The relay forwards traffic based on routing metadata embedded in ICE username fragments. This reduced public UDP ports from one per session to a small fixed set, enabled Kubernetes deployment, and deployed global relay points to reduce first-hop latency.
Why it matters: This signals how real-time AI services are hitting infrastructure limits that force cloud-native rearchitecture. The one-port-per-session model doesn't scale on Kubernetes, and geographic relay distribution shows latency optimization is now critical for voice AI competitiveness.
Deep dive
  • OpenAI's original WebRTC architecture required one public UDP port per voice session, incompatible with Kubernetes port allocation
  • New design splits packet routing (relay) from WebRTC protocol handling (transceiver) into separate services
  • Relay layer is lightweight and stateless, forwarding packets based on routing metadata in ICE username fragments
  • Transceiver services handle the stateful WebRTC protocol termination and media processing
  • Public UDP surface collapsed from thousands of ports to a fixed small number, enabling standard Kubernetes deployment
  • Global relay ingress points deployed to reduce first-hop latency by letting packets enter OpenAI's network closer to users
  • Architecture enables horizontal scaling of both relay and transceiver layers independently
  • Design prioritizes sub-second latency critical for natural voice conversation
  • Shows infrastructure evolution path for real-time AI services at scale
Decoder
  • WebRTC: Web Real-Time Communication protocol for peer-to-peer audio/video streaming in browsers, using UDP for low latency
  • ICE username fragment: Part of the Interactive Connectivity Establishment protocol's session identifier, here repurposed to carry routing metadata
  • Relay vs transceiver: Relay is a lightweight packet forwarder (layer 3/4), transceiver terminates the full WebRTC protocol stack and handles media encoding
  • Kubernetes port allocation: Kubernetes assigns ports from a range to services; the one-port-per-session model exhausts this range quickly at scale
Original article

OpenAI rearchitected its WebRTC infrastructure to handle real-time voice AI at scale by splitting packet routing from protocol termination, using a lightweight relay layer that forwards traffic to stateful transceiver services based on routing metadata embedded in ICE username fragments. The new split relay-plus-transceiver design reduced the public UDP surface to a small fixed number of ports (instead of one per session), enabled deployment on Kubernetes, and allowed global relay ingress points that reduced first-hop latency by letting packets enter OpenAI's network closer to users.

Explore all 66 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi