rabbitmq - Can I use RPCClient with fanout exchange? -
i'm new rabbitmq , needs advice.
i have situation need broadcast message , wait response in timely fashion. in other words, broadcast message expects response within timeout period subscribing consumers. it's straightforward direct exchange. can use rpcclient wait response. how work fanout exchange? know how many subscriber wait for? or return after first response?
if create fanout exchange , pass in when creating rpcclient object. implement own consumer , and consumer consumer same exchange , sender send same reply-to queue. work?
please advise. thanks!
yes work. rpc pattern (if exclude direct reply to) not bound direct exchange. can apply pattern fanout exchange.
instead of waiting one reply, wait expected replies or until timout reached.
the knowledge of expected replies , fanout exchange antinomic. rely on timeout.
Comments
Post a Comment