Using RabbitMQ with Android and iOS apps

2,300 views
Skip to first unread message

Al Hennessey

unread,
Jun 7, 2015, 6:13:28 PM6/7/15
to rabbitm...@googlegroups.com
I am looking to use rabbitmq in google compute engine for my android and ios messaging and group chat app. However, i have been warned that rabbitmq might not be best for this as it is very power hungry and tends to drain battery life, i am wondering if this issue is true and how i can get around this?

Thanks

Michael Klishin

unread,
Jun 8, 2015, 2:59:19 AM6/8/15
to Al Hennessey, rabbitm...@googlegroups.com
We know of people who use it on both iOS and Android. If a specific client library
is "power hungry", you can try a different protocol: STOMP or MQTT.

All of them assume long-lived connections. I can't name anything that's particularly
CPU intensive in the Java client, for example. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Al Hennessey

unread,
Jun 8, 2015, 3:09:23 AM6/8/15
to rabbitm...@googlegroups.com
Thanks for the reply, is there a way to use AMQP server side for the backend and use MQTT for the client side?

Michael Klishin

unread,
Jun 8, 2015, 3:31:48 AM6/8/15
to Al Hennessey, rabbitm...@googlegroups.com
 On 8 June 2015 at 10:09:26, Al Hennessey (alhenn...@gmail.com) wrote:
> Thanks for the reply, is there a way to use AMQP server side for
> the backend and use MQTT for the client side?

Yes, if you understand how the plugin works (and your clients have predictable IDs):
http://www.rabbitmq.com/mqtt.html

It may be easier with STOMP, where you can several destination types and directly
refer to specific queues:
http://www.rabbitmq.com/stomp.html

Note that the claim that MQTT is "power efficient" is 99% marketing. MQTT is comparable
in on-the-wire efficiency with plenty of existing binary protocols. What matters is how power
efficient your specific client library.

Al Hennessey

unread,
Jun 8, 2015, 7:24:20 AM6/8/15
to rabbitm...@googlegroups.com
Thanks for your reply and help, one thing i was wondering was whether it was possible to incorporate rabbitmq with google cloud messaging, for example using rabbitmq to handle the messages backend and using google cloud messaging to handle the push notifications and frontend of the apps. This way there is never a permanent connection being held to the server which might help battery life. What do you think?

Michael Klishin

unread,
Jun 8, 2015, 5:45:16 PM6/8/15
to Al Hennessey, rabbitm...@googlegroups.com
We certainly have heard of people using RabbitMQ for their internal messaging
and delivering messages to devices over Apple Push Notification Service. 
Reply all
Reply to author
Forward
0 new messages