Cloudflare Workers and Containers Now Support Inbound TCP and gRPC

Cloudflare · 3 Aug 2026 · 2 min read

#cloudflare

Cloudflare has announced a major enhancement for its serverless platform: Workers and Containers can now accept inbound TCP connections via Spectrum. This moves beyond the traditional HTTP-only requests, opening up a new realm of possibilities for developers building real-time, stateful, or long-lived applications.

Previously, Workers were request-response oriented, but with this update, developers can handle raw TCP traffic directly within their code. This is particularly significant for Durable Objects and Containers, which can now act as full network endpoints.

Here are the concrete changes:

  • Inbound TCP via Spectrum: Workers and Containers can now bind to TCP ports, with Spectrum handling the ingress traffic. This is configured through the wrangler.toml or the Cloudflare Dashboard.
  • Direct socket forwarding: TCP sockets are forwarded directly to Durable Objects or Containers, enabling them to maintain persistent, full-duplex connections with clients.
  • Native gRPC support: Workers can now speak gRPC natively, allowing for efficient, binary-protocol communication between microservices or clients.
  • Automatic gRPC-to-gRPC-web translation: For browser-based clients, Cloudflare automatically translates gRPC traffic to gRPC-web, removing the need for a separate proxy or custom implementation.
  • Integration with existing features: This works with Cloudflare's Access and other security features, allowing you to protect your TCP-based services.

For developers, this is a game-changer. It means you can build and deploy real-time applications such as chat servers, multiplayer games, IoT data streams, or financial trading platforms—all on Cloudflare's edge. The ability to use gRPC natively also means better performance and lower latency compared to REST or HTTP/1.1, as it leverages HTTP/2 and binary framing. Plus, the automatic gRPC-web translation simplifies development for web clients, allowing you to focus on your business logic rather than protocol compatibility. This update significantly expands the scope of what's possible on Cloudflare Workers and marks a shift toward a more versatile edge computing platform.

Source: https://blog.cloudflare.com/grpc-workers/

Related

auto-curated · source linked above ← all news