gRPC and Service-to-Service Communication Questions

Efficient inter-service communication using RPC-style contracts: gRPC, Protocol Buffers, and HTTP/2 transport. Covers unary and streaming modes (server, client, bidirectional), flow control, backpressure and cancellation, protobuf schema evolution and field compatibility (reserved field numbers, oneof, unknown fields), binary serialization trade-offs versus JSON/REST, deadlines and timeout propagation, status codes, retries on idempotent calls, interceptors and metadata, long-lived streams behind proxies and load balancers, gRPC-web and gateway exposure, upload and chat contract design, phased migration from REST, and choosing a transport for internal versus public-facing traffic. Excludes REST resource design, GraphQL, mTLS and mesh security, service discovery infrastructure, and broker-based messaging, which are covered elsewhere.

HardSystem Design
30 practiced

A team is considering gRPC server streaming to push real-time notifications to mobile apps and server clients. What would you evaluate before committing: how long-lived streams behave behind proxies and load balancers, how the design scales to millions of concurrent clients, what you do when a stream is unavailable, and how you guarantee delivery to a client that was offline?

HardSystem Design
34 practiced

Your organization runs internal services on JSON/REST and wants to move to gRPC, but some teams resist. How would you decide whether it is worth it, and how would you migrate in phases while keeping polyglot clients working, preserving compatibility, observability, and measuring the real gain against the cost?

MediumTechnical
28 practiced

A platform has internal services that call each other at high volume and also exposes endpoints to third-party clients. Where would you use gRPC, where REST/JSON, and where an asynchronous message-based interface? Explain how latency, throughput, failure behavior and schema versioning affect each choice.

MediumTechnical
34 practiced

You are choosing how latency-sensitive microservices inside one data center should call each other. Would you pick gRPC over HTTP/2 with protobuf, or REST with JSON, and what would you weigh to decide? Where would the gap not matter?

HardSystem Design
46 practiced

Your internal services speak gRPC, and a web app in the browser needs to call them. Design how you would expose them, and explain what browsers cannot do natively, what the translation layer costs, and what you would do about streaming and legacy browsers.

That is every published gRPC and Service-to-Service Communication question for Cloud Architect so far. Browse the other topics in this category, or practice this one interactively.