Cloudflare's support for WebSockets has evolved from an initial offering for Enterprise customers to general availability for all plans, with resources allocated based on plan level. This expansion aims to enable a wider range of real-time applications, such as chat, games, and collaborative editing, by providing a persistent, bidirectional communication channel that significantly reduces latency and HTTP header overhead compared to polling solutions. The underlying infrastructure has been scaled to handle the unique connection profiles of WebSockets, including addressing challenges with ephemeral port exhaustion and connection tuple limitations through techniques like SO_REUSEADDR and expanded ephemeral port ranges.
All Cloudflare trails