Cloudflare Workers closes HTTP gap with inbound TCP and gRPC support
Cloudflare has introduced private beta support for inbound TCP and bidirectional gRPC streaming within its Workers platform. These features allow developers to route non-HTTP traffic through Cloudflare's global edge network to containers, targeting low-latency use cases like voice AI.
Key Takeaways
- New connect() handler allows Workers to accept inbound TCP sockets via Spectrum ingress
- Full-duplex bidirectional gRPC support enabled for Cloudflare Containers using any language
- Automatic protocol translation converts gRPC-web code into native gRPC for external communication
- Workers can now serve as backends for mobile apps using native gRPC libraries like grpc-swift-2
- Durable Objects can now hold persistent TCP connection state for edge-based orchestration
Why It Matters
By supporting inbound TCP, Cloudflare removes the long-standing 'HTTP-only' limitation of its serverless platform, effectively repositioning Workers as a general-purpose networking layer rather than just a web proxy. For the streaming industry, this enables the deployment of low-latency signaling, real-time metadata exchange, and voice-driven interfaces directly at the edge without the overhead of standard HTTP. The integration with Cloudflare Containers allows legacy gRPC services to run globally with minimal refactoring. Watch for the public transition of these features, which will signal Cloudflare’s readiness to compete more directly with traditional cloud providers for stateful, non-web workloads.
Additional Context
The introduction of inbound TCP follows a multi-year effort to expand the Workers networking stack. Cloudflare first introduced outbound TCP support in May 2023, primarily to allow serverless functions to connect directly to relational and NoSQL databases that lack HTTP-native drivers. Per InfoQ (May 2023), this was a critical step in making Workers viable for full-stack applications that require persistent database connections. The new inbound capability completes this loop, allowing Workers to act as both a client and a server for any socket-based protocol. Strategically, the move toward gRPC aligns with Cloudflare's broader 'Agents Week' initiative in August 2026, which focuses on providing the primitives required for autonomous AI agents. Cloudflare Containers, launched in public beta in June 2025, serves as the heavy-compute counterpart to lightweight Workers. According to internal reporting and external analysis from dev.to (June 2025), Containers were designed for workloads like video processing and machine learning that require a full Linux environment, but they previously lacked the direct ingress flexibility now provided by the new socket handlers. By integrating these networking features with Spectrum—Cloudflare's existing Layer 4 proxy—the company is leveraging established security infrastructure to protect non-HTTP traffic. Per Cloudflare (July 2026), Spectrum handles DDoS protection at the network edge, which will now apply to inbound gRPC traffic routed to Workers. This architecture effectively provides a programmable WAF for gRPC, allowing developers to inspect or mutate binary traffic before it reaches origin servers.
Read full article at blog.cloudflare.com
Enjoy our coverage?
Add StreamingMeme as a preferred source on Google to see more of our streaming news at the top of your Search results.
Add as preferred source