Hi Ben,<br><br>It'll be a custom RabbitMQ module - as far as I've seen, the spec doesn't specify anything like this (though I could be completely wrong on that).<br><br>Paul.<br><br><div class="gmail_quote">On Thu, Aug 6, 2009 at 9:42 PM, Ben Browitt <span dir="ltr"><<a href="mailto:ben.browitt@gmail.com">ben.browitt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Paul,<br><br>That is interesting for two reasons. First because I might actually understand a bit of AMQP and second<br>
because you are addressing this issue. <br><br>Will it be part of the AMQP spec or a custom RabbitMQ module?<br>
Maybe I can hack something until you'll release this functionality.<br><br>And yes, I'll be interested to know when it is available for early testing.<br><br>Thanks,<br><font color="#888888">Ben</font><div><div></div>
<div class="h5"><br><br><div class="gmail_quote">On Thu, Aug 6, 2009 at 10:52 PM, Paul Jones <span dir="ltr"><<a href="mailto:pauljones23@gmail.com" target="_blank">pauljones23@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Ben,<br><br>The model does certainly work best in situations where consumers and producers have little need to know of each other.<br>
<br>We are, however, currently experimenting with some presence functionality. This was originally prototyped quite a while ago, and it is currently being reworked to be remove a number of issues that previously prevented it being made mainstream. This functionality creates an exchange that will receive information about when queues, exchanges and bindings are created and deleted - this may help in your case by letting you see when a user subscribes or unsubscribes from another user's exchange.<br>
<br>It is still under fairly heavy development at the moment, but I can let you know when it reaches a state where it might be useful to look at.<br><br>Paul.<br><br><div class="gmail_quote"><div><div></div><div>
On Thu, Aug 6, 2009 at 3:32 PM, Ben Browitt <span dir="ltr"><<a href="mailto:ben.browitt@gmail.com" target="_blank">ben.browitt@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div><div dir="ltr"><div>Hi,</div>
<div> </div>
<div>I'm trying to understand how AMQP and RabbitMQ works by building a simple chat.</div>
<div>From reading the AMQP specs I get the impression that it's best usage is when someone publish content to an exchange</div>
<div>and someone else bind his queue to this exchange to get updates. This model works very well for publish-subscribe</div>
<div>and to finance systems but chat could be different. I read the xmpp gateway docs and have some questions.</div>
<div> </div>
<div>In a chat we want to be able to get presence from users on our friend-list, send them messages</div>
<div>and send subscription request and messages to users not yet on our friend-list.</div>
<div> </div>
<div>One possibility is that each user will have an exchange and a queue with binding to his own exchange.</div>
<div>When user1 wants to send a message to user2 he send it directly to the exchange of user2.</div>
<div>There is a problem with presence updates. If user1 changes his presence, he'll have to sends the update </div>
<div>to the exchange of all the users on his friend-list. With this design we move the logic to the client rather then use the AMQP features. </div>
<div> </div>
<div>Another option is that when a user logs in he'll create a binding to the exchanges of all the users on his friend-list.</div>
<div>When user1 want to send a private message or a presence update to user2 he'll send it to his own exchange and it'll be directed to user2. The problem with this design is that users without mutual presence subscription can't send private message to each other and can't send subscription requests.</div>
<div> </div>
<div>Can you please share your thoughts on the two options and maybe other design options?</div>
<div> </div>
<div>Thanks</div></div>
<br></div></div>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br>