<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5">
&gt; Assuming that there is a known identifier for each game (database id, guid,<br>
&gt; or equivalent), what about using a single direct exchange, with the routing<br>
&gt; key being set to the game id each time. When a player connects, they<br>
&gt; subscribe to the exchange with all of the routing keys for the games that<br>
&gt; they are interested in.<br>
<br>
</div></div>Can you subscribe one queue to one exchange with multiple keys, or is<br>
the idea that each player would use one queue per game?<br>
<div class="im"></div></blockquote><div><br>The one queue can be bound to a single exchange with multiple routing keys; so each player would only need to have a single queue. Depending on how you access Rabbit, it might also be worth putting the routing key into the message body, just to make it a bit more accessible (since some apis don&#39;t provide the easiest access to the routing key).<br>
�</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
&gt; As far as scalability is concerned, using a direct exchange with many<br>
&gt; routing keys should hopefully be no worse than many fanout exchanges with no<br>
&gt; routing keys. If you&#39;re considering the clustering scenario, exchange<br>
&gt; information is replicated to all nodes - so it isn&#39;t like there is a single<br>
&gt; point that all messages need to go through.<br>
<br>
</div>Good to know. �I wasn&#39;t too worried about using one direct exchange,<br>
but using one topic exchange seemed like a bad idea.<br>
<div><div></div><div class="h5"></div></div></blockquote><div><br>Paul.</div></div>