The Choreography pattern coordinates microservices by having each service react to events published by others, without any central controller directing the workflow.
When an order is placed, the Order service publishes an OrderPlaced event; the Payment service reacts by charging the customer and publishing PaymentCompleted, which the Inventory service then reacts to by reserving stock, all without any of them calling each other directly or knowing about the full flow.
// Each service listens for the event before it and publishes its own result
// Payment service
@KafkaListener(topics = "order-placed", groupId = "payment-service")
public void charge(OrderPlaced e) {
payments.charge(e.orderId(), e.amount());
kafka.send("payment-completed", e.orderId(), new PaymentCompleted(e.orderId()));
}
// Inventory service
@KafkaListener(topics = "payment-completed", groupId = "inventory-service")
public void reserve(PaymentCompleted e) {
stock.reserve(e.orderId());
kafka.send("stock-reserved", e.orderId(), new StockReserved(e.orderId()));
}
// Shipping service
@KafkaListener(topics = "stock-reserved", groupId = "shipping-service")
public void ship(StockReserved e) {
shipments.create(e.orderId());
}A concise interview answer is
In choreography, each service reacts to events from other services and publishes its own events when it completes work, with no central coordinator directing the flow. It keeps services loosely coupled and easy to extend, but makes the overall business process harder to trace since it's spread across independent event handlers.
Last updated: 1 November 2026
Previous question: How does the Bulkhead pattern relate to resource isolation in microservices?
Next question: How does the Choreography pattern promote loose coupling between microservices?