Logo InterviewVault

Welcome back, Sujit Kumar Mishra

SKM

Revision Mode

Document technical questions and best-practice answers.

Cancel

Service-to-Service Communication

- In synchronous communication, how does one microservice call another?

In synchronous communication between microservices, one microservice sends a request (usually via HTTP or API call) to another microservice and waits for a response. The calling microservice cannot proceed until it receives the reply. This is similar to making a phone call and waiting for the other person to answer before continuing the conversation.


Example:

Microservice A needs user details, so it sends an HTTP request to Microservice B’s API endpoint. Microservice B processes the request and sends back the user details as a response. Microservice A waits for this reply before continuing its work.

Ready for commit