Assume that I use rest call to communicate in all parts
I found that most microservice architect is like below:
If there is a request need all of these services to compute the result.
The request path like below:
client-> Account Service -> Inventory Service ->Shipping Service
The path is long and complex. If there is error occur after Account Service, I need to do compensation by Saga pattern.
I want to ask that can I add a logic unit "A" on top of those services like below:
So that I can process all logic on this service. Those service only help the logic unit to query and phase the raw data. All complex logic do in the logic unit.