The Orchestration pattern coordinates a multi-step business process by having a central orchestrator explicitly direct each participating microservice, which is well suited to workflows with clear sequential dependencies.
In an online travel booking system, an orchestrator coordinates flight, hotel, and car rental bookings: it first calls the flight service to reserve a seat, then the hotel service to secure a room, and finally the car rental service, ensuring each step completes (or is compensated) before moving to the next.
// Travel booking orchestrator
public BookingResult book(TripRequest req) {
String flightId = null, hotelId = null;
try {
flightId = flightService.reserve(req.flight());
hotelId = hotelService.reserve(req.hotel());
String carId = carService.reserve(req.car());
paymentService.charge(req.customerId(), req.total());
return BookingResult.confirmed(flightId, hotelId, carId);
} catch (BookingException e) {
if (hotelId != null) hotelService.cancel(hotelId);
if (flightId != null) flightService.cancel(flightId);
return BookingResult.failed(e.getMessage());
}
}A concise interview answer is
A travel booking system is a classic example — an orchestrator directs the flight, hotel, and car rental services in sequence for each booking, keeping the whole multi-step process centrally coordinated and making it straightforward to add compensating actions if, say, the car rental step fails after the flight and hotel are already booked.
Last updated: 1 November 2026
Previous question: What are the advantages and disadvantages of using an orchestrator in microservices?
Next question: What is the Strangler pattern, and how is it used to migrate monolithic applications to microservices?