[rabbitmq-discuss] RabbitMQ with Socket Server
alexgentle at sify.com
Tue Sep 15 02:09:54 BST 2009
>Alex, you haven't explained why your app can only send a specific
>binary stream to a socket - for intents and purposes AMQP is no more
>than a *stream* of binary data.
I am not sure. It's not a specific binary stream, it can be any binary data.
But, this binary data can't be interpreted by RabbitMQ unless I put another
middle layer to translate this into call to RabbitMQ.
>I don't know how the network event notification works in iPhone OS 3.x
>(i.e. I don't know whether you get it to pre-empt the phone's kernel).
Actually it's not related to iPhone. I was mentioning about polling
mechanism in RabbitMQ. Meaning that, RabbitMQ doesn't inform the user when
he gets the message. User has to check every few seconds to see if there is
anything in his queue. So, iPhone app (OR any application for that matter)
needs to constantly check RabbitMQ to see if there is any message. That's
going to cost lot of bandwidth when I port the app to mobile devices.
Thank you for all the answers.
On Mon, Sep 14, 2009 at 4:12 PM, Ben Hood <0x6e6562 at gmail.com> wrote:
> On Mon, Sep 14, 2009 at 8:15 PM, Alex Gentle <alexgentle at sify.com> wrote:
> > Ben, Socket server is just relaying data back and forth. It's essential
> > use socket server, because of the way entire application is set up. My
> > iPhone app has chat inside in addition to couple of other photo sharing
> > features. The idea is to use RabbitMq for iPhone chat app to send/receive
> > messages.
> > Because the socket server accepts only binary data, I am not sure how do
> > send/receive messages to RabbitMQ server. Without socket server in the
> > picture, it works like a charm, iPhone can send message to RabbitMQ and
> > receive the responses. But, due to the constraints I have, the message
> > to go thru socket server.
> Alex, you haven't explained why your app can only send a specific
> binary stream to a socket - for intents and purposes AMQP is no more
> than a *stream* of binary data.
> > another possible problem is that iPhone app has to keep on checking
> > for any messages available. This will be a real problem, if I port iPhone
> > app into a mobile app because of bandwidth it's going to consume.
> I don't know how the network event notification works in iPhone OS 3.x
> (i.e. I don't know whether you get it to pre-empt the phone's kernel).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss