It's very straightforward on HTTP call between microservices to propagate exception to caller/front-end.
But how to propagate exception on event-driven/message queue (ie. RabbitMQ) microservice to the caller/front-end?
It's very straightforward on HTTP call between microservices to propagate exception to caller/front-end.
But how to propagate exception on event-driven/message queue (ie. RabbitMQ) microservice to the caller/front-end?
I would recommend Cadence Workflow which is much more powerful solution for microservice orchestration and provides exception handling propagation across long running operations out of the box.
It offers a lot of other advantages over using queues for your use case.
See the presentation that goes over Cadence programming model.