Use RabbitMQ to read status of a job

We have a Spring Batch app A that sends REST calls to other app B to get to know B’s Job status (job start time, job end time, etc). Sometimes, this REST over HTTP call returns 502 error which is hard to debug.

Instead of using REST, we are thinking of using RABBIT MQ (JMS asynchronous communication) where B can publish it’s job status on a Queue and then, A can read from this queue. This would avoid any 502’s as well.

Can someone please suggest the correct way to implement this, or point me to some good articles/documentations etc to implement this solution (Please don’t point me to generic articles like

Read more here: Source link