Cloudflare Workers and Containers now support inbound TCP connections and gRPC | The Cloudflare Blog
Cloudflare WorkersとContainersのInbound TCP/gRPC対応について。
Workers Runtimeにconnect(socket)ハンドラを追加し、Spectrum経由のTCPソケットをWorkerで受け取れる。
Durable ObjectsからContainersのTCPポートへ転送し、Container上のgRPCサーバで双方向ストリーミングを扱える。
@connectrpc/connectとgRPC-web変換により、WorkerだけでUnary/Server StreamingのgRPC APIを扱える。