A typical microservice system
The figure below illustrates how an e-commerce site built with microservices might handle a user’s request to add an item to their shopping cart. Six different microservices are involved in handling the request, and none of these microservices know anything about the internals of the others. Five have their own private data stores dedicated to serving only their purpose. Some of the handling happens synchronously in the context of the user request, and some happens asynchronously.
This is a typical microservice system. Requests are handled through the collaboration of several microservices, each with a single responsibility and each as independent of the others as possible. This book explores how to implement such a system and includes multiple complete examples in which you write your own microservices.
