Search⌘ K

Definition

Learn to define asynchronous microservices by exploring their key characteristics—how they handle requests without waiting for responses or avoid inter-service communication during processing. Understand practical examples in e-commerce settings that illustrate asynchronous communication patterns, enabling you to grasp the role of decoupling and resilience in microservice architectures.

Asynchronous microservices are different from synchronous microservices, which are covered in depth in Chapter 9.

A microservice is synchronous if it makes a request to other microservices while processing requests and waits for the result.

The logic to handle a request in the microservice might therefore not depend on the result of a request to a different microservice.

So, a definition of asynchronous microservices would be:

A microservice is asynchronous if:
(a) It does not make a request to other microservices while processing requests. OR
(b) It makes ...