You have a microservice architecture with multiple services (e.g., User Service, Order Service, Payment Service). How would you handle communication between these services, and what patterns (e.g., synchronous vs. asynchronous) would you use?

Choosing a communication pattern between microservices means deciding, per interaction, whether a service needs an immediate synchronous response or can rely on decoupled asynchronous messaging.

Key Points

Example

When a user places an order, the Order Service might call the Payment Service synchronously to confirm the charge succeeded before returning a response, then publish an asynchronous event that the Notification Service consumes to send a confirmation email.

Interview Tip

A concise interview answer is

I'd use synchronous REST calls for the parts of the flow the user is directly waiting on, like payment confirmation, and asynchronous messaging via Kafka or RabbitMQ for everything else, such as notifications or inventory updates, so those services stay decoupled and the whole system is more resilient to partial failures.

Last updated: 16 July 2026

Previous question: What would you use for application resilience in microservices?

Next question: In a microservice architecture, how would you ensure data consistency when multiple services need to update shared data? Discuss strategies like distributed transactions or eventual consistency.

More Microservices - Level II interview questions

All Microservices - Level II questions