在Android的聊天用的RabbitMQ [英] using rabbitmq in android for chat

查看:2425
本文介绍了在Android的聊天用的RabbitMQ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经在Android中实现RabbitMQ的聊天。但的RabbitMQ的Java客户端就是力量hungry.is良好的RabbitMQ为Android聊天?我们使用直接交换个人排队人数和个人路由键。什么是最好的设计模式,一对一的聊天在RabbitMQ的。 而且方法来减少电池的使用

We have implemented rabbitmq chat in android. but java client of rabbitmq is power hungry.is rabbitmq good for android chat?. we have used direct exchange individual queue for persons and individual routing keys. what is the best design pattern for one to one chat in rabbitmq. and also ways to reduce battery usage

推荐答案

我不认为使用的RabbitMQ直接用于开发一个聊天是更好的解决方案。

I don't think that use RabbitMQ directly for developing a chat is the better solution.

有其他的解决方案,更多的光线,请阅读<一个href="http://stackoverflow.com/questions/23012153/native-app-to-server-communication/23029003#23029003">post有关MQTT。

There are other solution more light please read this post about MQTT.

另一种标准的解决方案是使用 XMPP 协议(例如的WhatsUp使用自定义的XMPP)。

Another standard solution is use XMPP protocol (for example whatsup uses a custom XMPP).

我们做了一些测试,我们还对电池消耗的一些问题。

We made some test and we also had some problem about battery consuming.

顺便说一句,你可以混合技术,混合的RabbitMQ作为后端和一些其他的服务器(XMPP,MQTT)的前端。

BTW, you can mix the technologies, mixing RabbitMQ as back-end and some other server (XMPP,MQTT) as front-end.

阅读这篇帖子有关MQTT。

Read this post about the MQTT.

使用Facebook的Messenger的MQTT

MQTT used by Facebook Messenger

修改

我想补充一点,后 MQTT与XMPP应该选择?

EDIT2

请阅读也和的这个官方的RabbitMQ组

Please read also this and this on the official rabbitmq-group

这篇关于在Android的聊天用的RabbitMQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆