XMMP服务器设置 [英] XMMP Server Setup

查看:123
本文介绍了XMMP服务器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须利用XMPP与现有用户及其消息(SQL表)一起使用实时聊天功能

I have to utilize live chat capabilities using XMPP with existing users and their messages (SQL Tables)

将所有用户及其消息移植到XMPP的最佳方法是什么服务器?

What is the best way port all users and their message onto XMPP server ?

我可以将现有用户和消息连接到XMPP服务器吗?

Can I connect my existing users and messages to XMPP server ?

有哪些替代方案可以实时实施?在现有数据(用户和消息)上聊天?

What are alternatives for implementing live chat on existing data (users and messages ) ?

推荐答案

有两种方法可以遵循:

1)部署自己的XMPP服务器,例如:

1) Deploy your own XMPP server, for example:

  • ejabberd
  • Openfire
  • Tigase

还有很多其他

这里的主要缺点是需要部署,支付托管费,监控并保持s的正常运行时间自己犯错,这不是最佳选择。

The main drawback here is that you need to deploy, pay hosting fee, monitor, keep up-time of the server by yourself which is not optimal.

2)使用就绪的Cloud Messaging平台。
在野外也有很多示例,例如Twillio,ConnectyCube,Layer等。

2) Use ready to go Cloud Messaging platforms. There are also many example in the wild, e.g Twillio, ConnectyCube, Layer etc.

我可以举一个例子:在我的一些移动&我使用的 ConnectyCube 消息传递和视频调用云后端是>提供消息传递功能,用户群,推送通知,视频通话,聊天机器人。

I can give you an example: in some of my mobile & web projects I used ConnectyCube Messaging and Video calling cloud back-end which provides messaging capabilities, user base, push notifications, video calling, chat bots.

因此,在这样的平台上,您无需关心服务器托管,服务器监视器,服务器正常运行时间以及其他与服务器相关的内容,而只需考虑应用程序中需要的API 。通常,此类平台提供免费计划以及您拥有数据的专用企业解决方案(例如,数据部署在您自己的AWS账户上)。因此强烈推荐。

So with such platforms you do no care about server hosting, server monitor, server up-time and others server related stuff, you just you the APIs you need in your app. Mostly such platforms provide FREE plans along with dedicated Enterprise solutions where you own your data (it is deployed on your own AWS account for example). So highly recommended.

关于用户的迁移-如果您决定部署自己的XMPP服务器(第1点),则需要学习他们的文档并了解他们的数据库结构,所以您编写迁移脚本。

Regarding migration of your users - if you decided to deploy own XMPP server (point #1) then you need to learn their doc and understand their DB structure, so then you write a migration script.

如果您决定使用云消息传递平台(第2点),则可以联系他们的支持人员并要求他们进行用户导入,因此您需要为他们提供一些json / csv文件给您的用户。

If you decided to use cloud messaging platforms (point #2) then you can contact their support and ask them to do Users import, so you need to provide them some json/csv files with your users.

这篇关于XMMP服务器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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