Design microservices for Cloud Run that require high-throughput, lowest-latency internal communication. Which protocol and configuration should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable HTTP/2 on Cloud Run and implement gRPC between microservices; use streaming gRPC for large payloads..
Why this is the answer
For high-throughput, low-latency internal communication between microservices on Cloud Run, gRPC over HTTP/2 is the optimal choice. gRPC uses Protocol Buffers for efficient serialization, leading to smaller message sizes and faster transmission compared to JSON/XML used in REST or SOAP. HTTP/2, which gRPC leverages, offers multiplexing and header compression, further reducing latency. Streaming gRPC is ideal for large payloads as it allows continuous data transfer without waiting for the entire message to be buffered. RESTful HTTP services are generally less performant than gRPC for internal communication due to their text-based nature and typically larger message sizes. SOAP is an older, more verbose protocol, making it unsuitable for high-performance scenarios. Pagination and database indexing are data retrieval optimizations, not communication protocols, and don't directly address inter-service communication latency.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed