AlgoViz

Microservice communication

medium 35 min

Microservices work together over the network, so every link between two of them is a design decision: a call that waits for an answer, or a message that does not.

Where it shows up

The same pattern appears across everyday software.

  • Online shops

    Payment is asked for at once, because the buyer waits. Confirmation mail, stock reports and recommendations follow from events.

  • Travel bookings

    A trip with a flight, a hotel and a car is the classic saga: if the car is not available, the hotel and then the flight are cancelled.

  • gRPC

    Its designers wrote that it grew from Stubby, the single remote call system Google had used to connect its many services for over a decade.

  • Istio

    Announced by Google, IBM and Lyft in 2017 as a uniform way to connect, secure, manage and monitor microservices, in a layer beside the code.

  • Food delivery apps

    The phone app and the restaurant tablet need different answers from the same services, so each often has its own backend.

  • Banks

    Moving money between systems uses steps with reversals rather than one large transaction, and the booking appears as pending in between.