mohafiz's avatar

Where to consume rabbitmq messages

I am working on a microservices project, am using rabbitmq with this package https://github.com/ssi-anik/amqp. Currently I can publish messages to various queues, but don't know exactly where I should put the code that is responsible for consuming those messages. The code is clear for me but the problem is where to put it. Any help would be appreciated.

0 likes
3 replies
mohafiz's avatar

Thanks, it's helpful. Unfortunately I still can't figure out where to put the code for consuming messages such that it continuously checking for new messages and not blocking the rest of code.

Please or to participate in this conversation.