I'm new to RabbitMQ and needs some advice.
I have a situation where I need to broadcast a message and then wait for a response in a timely fashion. In other words, the broadcast message expects a response within a timeout period from all subscribing consumers. It's straightforward with direct exchange. I can use a RPCClient to wait for the response. How does it work with fanout exchange? Would it know how many subscriber to wait for? Or would it return successfully after the first response?
If I create a fanout exchange and pass it in when creating the RPCClient object. Then implement my own consumer and and the consumer consumer from the same exchange and sender send to the same reply-to queue. Would it work?
Please advise. Thanks!