java – App on Kubernetes pod don’t receive message from RabbitMQ after pod restart
I have a problem: I have an instance of an application deployed on a Kubernetes cluster, let’s call it “Application1”, which communicates with another application, let’s call it “Application2”, through a RabbitMQ queue. “Application1” sends a message to “Application2” with data for certain calculations. When “Application2” finishes the calculations, it sends a message with the result back to “Application1”, but at that time “Application1” had just restarted. After “Application1” is back up, it does not retrieve the message from the queue, and after the calculation timeout, it receives a “FAILED” status.
The similar situation occurs when I have multiple pods of “Application1”. After one of the pods restarts, another pod should retrieve the message from the queue, but it does not happen.
Any ideas for solutions?
Read more here: Source link
