[rabbitmq-discuss] RabbitMQ with Socket Server
alexgentle at sify.com
Mon Sep 14 20:15:32 BST 2009
Ben, Socket server is just relaying data back and forth. It's essential to
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
Because the socket server accepts only binary data, I am not sure how do I
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 has
to go thru socket server.
another possible problem is that iPhone app has to keep on checking RabbitMQ
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.
On Thu, Sep 10, 2009 at 11:38 PM, Ben Hood <0x6e6562 at gmail.com> wrote:
> On 10 Sep 2009, at 20:52, Alex Gentle <alexgentle at sify.com> wrote:
> I have the following situation. I am thinking of using RabbitMQ for chat
>> inside my iPhone application. iPhone application is connected to the server
>> thru socket server. The socket server passes the information from iPhone to
>> the server and vice versa. I am not sure how could I make this communication
>> path works – iPhone -> Socket Server -> RabbitMQ server. I understand that
>> I can connect the client directly to RabbitMQ server using client library
>> you provided. I am not sure how could I pass the message thru socket server.
>> Socket server basically accepts the incoming message from iPhone and route
>> the message to appropriate server based on header information in the
>> incoming message. It does the same thing when a server wants to communicate
>> to the client thru socket server. Socket server accepts only binary data.
>> Is it a overkill to use RabbitMQ for this purpose? If I use XMPP like
>> ejabbberd, I would still have the same issue of routing the message thru
>> socket server. Any help is much appreciated. Thanks!
> I don't understand your intention. What problem are you actually trying to
> solve? Are you trying to write an iPhone app that can send and receive
> messages to and from RabbitMQ? I don't understand what this socket server is
> doing apart from relaying data to either Rabbit or ejabberd.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss