Moving k8s communication to gRPC
Mar 20, 2021Alex Fattouche

Summary
This post details Cloudflare's migration of internal service-to-service communication from REST to gRPC within their Kubernetes environment. It highlights the benefits of gRPC for microservice architecture, including improved performance through protobuf serialization and HTTP/2 multiplexing, enhanced developer usability by abstracting network calls into function calls, and better security through Kubernetes NetworkPolicies. The post also discusses the challenges faced with REST and Kafka for large data transfers like DNS zones and how gRPC addresses these.
More from the Data Infrastructure & Analytics trail
- Introducing Cloudflare Basin: an open, serverless data platform, now generally available
- Introducing the Billable Usage API: programmatic cost visibility for Cloudflare
- Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402
- How we built Cloudflare's data platform and an AI agent on top of it
- Iran's Internet is partially restored, Cloudflare Radar data shows