精选理由
Cloudflare 给 Workers 加了原生 TCP 入口,可以直接跑 gRPC 服务,不用再绕道别的协议了。
Cloudflare 宣布 Workers 和 Containers 通过 Spectrum 新增对入站 TCP 连接的支持。该功能允许直接套接字转发到 Durable Objects 和 Containers。开发者可以在 Workers 中运行全双工 gRPC 应用。同时支持自动将 gRPC 转换为 gRPC-web。
原文 · Cloudflare Blog
Cloudflare Workers and Containers now support inbound TCP connections and gRPC
Cloudflare Workers now support inbound TCP connections via Spectrum, allowing direct socket forwarding to Durable Objects and Containers. Developers can run full-duplex gRPC applications or leverage automatic gRPC-to-gRPC-web translation directly within Workers.