Google Cloud Professional Cloud Developer — Question 324
You are designing a microservices architecture for a new application that will be deployed on Cloud Run. The application requires high-throughput communication between the internal microservices. You want to use the most effective, lowest latency communication protocol for this application. What should you do?
Answer options
- A. Configure the Cloud Run service to use HTTP/2. Implement gRPC for communication between the microservices. Use streaming gRPCs when a large amount of data has to be sent.
- B. Implement the microservices with the REST API communication protocol. Use Apigee with rate-limiting to provide the best QoS for high-priority services.
- C. Use SOAP to build the microservices API, and use XML as the data format for communication across the microservices. Define SOAP data contracts for each microservice.
- D. Use HTTP REST to communicate across the microservices. Implement pagination and add indexing to your database.
Correct answer: A
Explanation
The correct answer, A, is the best choice because it leverages HTTP/2 and gRPC, which offer lower latency and higher throughput ideal for microservices communication. Option B, while it mentions REST and Apigee, does not utilize the high-performance features of gRPC. Options C and D are outdated and less efficient methods for microservices communication compared to gRPC.