-
Book Overview & Buying
-
Table Of Contents
Machine Learning in Microservices
By :
The ABC-Monolith function request flow has already been identified and shown in Figure 1.3. We will now see how this flow is going to work in the ABC-MSA.
In the ABC-MSA, the sagas are programmed and configured in the centralized orchestrator. The orchestrator will initiate separate API calls to each service in the saga, in either a synchronous or asynchronous fashion, depending on the defined workflow, and wait for a response from each API call to determine what other API call(s) to initiate next and how.
The following diagram shows how the workflow would be in the ABC-MSA. Please note that all API calls in our scenario are being initiated from the orchestrator. As you can see from the sequence number, there are some API calls initiated in parallel, and in some other cases, the orchestrator decides the next course of action based on the response it receives from a previously executed service.
Figure 2.8: The ABC-MSA workflow
...
Change the font size
Change margin width
Change background colour