I want to ask a question that is related to architecture. This question was asked to me in an interview but i was unable to answer it and also could not find any convincing answers on the net.
The question was:- Suppose you have 4 microservices which are communicating with each other and the data flow works like this:-
Microservice 1 --> Microservice 2 --> Microservice 3 --> Microservice 4 --> Microservice 1
Now suppose there is an exception in microservice 3 how could you track back this exception and tell the microservice 1 that this was the exception and it occured from microservice 3.
Thanks in advance!