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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -