[rabbitmq-discuss] Client connect/disconnect events on the server side

Miguel Morales therevoltingx at gmail.com
Mon Mar 14 19:53:03 GMT 2011


Well I haven't researched this, but it's something that I need to implement
in the near future.
Basically, I have a public broker which clients (android devices in my case)
connect and disconnect.  When they log-in it would be considered that they
are 'active' if they log-out it would be considered that they are

This is important because other clients need to know information about
'active' clients.

I haven't done much research into it because I'm avoiding it until I get
closer to release it to the real world.

I am indeed interested in network connects/disconnects, but I would also
need to know the username of the client that just logged in.
(for example, if the client suddenly disconnects I need to set their status
to 'inactive' in my global database.)

Other than that, I think my best choice would be to bind to the
amq.rabbitmq.log exchange (didn't know about it before) and parse the log
However, that seems a bit brittle for me (might change between versions),
but it would work well.

Thanks for your suggestions, it might help the original poster as well.

On Mon, Mar 14, 2011 at 12:43 PM, Matthias Radestock
<matthias at rabbitmq.com>wrote:

> Miguel,
> On 14/03/11 19:27, Miguel Morales wrote:
>> I too would be interested in this.  Not sure if anything like this
>> exists but basically it could be some sort of callback mechanism where
>> we are notified of when a client has connected/disconnected to the broker.
> What do you need this for?
> And what information would have to be passed to such a callback?
> If you are just interested in network-level connect/disconnect events then
> a simple TCP proxy could give you that information.
> Or you could do some live processing of rabbit's log files, which, amongst
> other things, contain all connect/disconnect events. Or you could get the
> log events over AMQP by binding to the amq.rabbitmq.log topic exchange.
> Regards,
> Matthias.

~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110314/982b41ad/attachment.htm>

More information about the rabbitmq-discuss mailing list