Hi Matthias,<div><br></div><div>This looks interesting, however how can I allow a user to use a specific exchange only ?</div><div><br></div><div>Let&#39;s say we have an exchange:</div><div><br></div><div>- exchange_main</div>
<div><br></div><div>Then 3 exchanges bound to it:</div><div>- exchange1 : bound to exchange_main with &quot;site1&quot;.#</div><div>- exchange2 : bound to exchange_main with &quot;site2&quot;.#</div><div>- exchange3 : bound to exchange_main with &quot;site3&quot;.#</div>
<div><br></div><div>then how can I allow :</div><div>-user1 to create queue bound to exchange1 only</div><div>-user2 to create queue bound to exchange2 only</div><div>-user3 to create queue bound to exchange3 only</div><div>
<br></div><div>Cheers,</div><div>Fabine<br><br><div class="gmail_quote">On 7 January 2011 14:44, Matthias Radestock <span dir="ltr">&lt;<a href="mailto:matthias@rabbitmq.com">matthias@rabbitmq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Fab,<div class="im"><br>
<br>
underattack7 wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That&#39;s not that easy as the routing key has the format:<br>
<br>
site.user.param1.param2.param3<br>
<br>
and different users are interested in different things, for example : &quot;site1&quot;.&quot;toto&quot;.#, �&quot;site2&quot;.#, &quot;site1&quot;.&quot;toto&quot;.&quot;paramtoto&quot;.# .....<br>
<br>
so we cannot really create all the queue in advance.<br>
</blockquote>
<br></div>
Are you saying that there are constraints on what users can bind to but they may only be interested in a *subset* of that?<br>
<br>
In which case create an internal topic exchange per user and bind that with all their *allowed* bindings to the main exchange. Users can then create queues and bind them to their internal exchange for stuff they are interested in.<br>

<br>
See <a href="http://www.rabbitmq.com/extensions.html#exchange-bindings" target="_blank">http://www.rabbitmq.com/extensions.html#exchange-bindings</a><br>
<br>
Regards,<br><font color="#888888">
<br>
Matthias.<br>
</font></blockquote></div><br></div>