Kubernetes, REST API and RabbitMQ (.NET)

I have a use case where I am using 2 pods (containers) running .NET Rest API. The rest API is developed by using SAGA pattern, therefore the http requests usually travels through the different microservices using RabbitMQ messages. Since pods share the same message queue name, it might happen that messages are accepted by different pods.

Q: Is there a way how to send response from pod that did not originaly received the http request message ? Is the http context required for response only in the original pod ? Can it somehow be shared ?

I already tried what I described above, but API is simply not sending response. Even though it succeeds, client ends up with the timeout.

Read more here: Source link