How to transfer progress in the background of RabbitMQ?

There is a system designed as follows: a master and slave server (Java + Spring). The master distributes tasks among the slaves. Interaction takes place using the message server RabbitMQ. So, how best to organize the transfer of progress (or any other message) from the slave to the master during execution of the task (without cluttering up the code)?
July 9th 19 at 11:28

Find more questions by tags JavamultithreadingRabbitMQSpring