尝试开发服务器组件的 XMPP 服务器 [英] Which XMPP server to experiment developing a server component

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

问题描述

我想尝试使用 XEP-0114:Jabber 组件协议.

您推荐哪个服务器,为什么?我指的是易于开发、社区支持、文档、示例等.

Which server do you recommend and why? I'm talking about ease of development, community support, documentation, examples, etc.

推荐答案

这是一个很难回答的问题,因为我怀疑是否有许多开发人员参与了跨多个 XMPP 项目和语言的开发.

That's a hard question to answer, because I doubt there are many developers involved in developing across multiple XMPP projects and languages.

我可以抛出一些个人看法,但......我可能会偏离基地!

I can throw out a few personal perceptions but... I could be off-base!

您真正要寻找的是哪些图书馆建议用于组件开发.所有的服务器都支持组件协议,所以你真正需要的只是一个到服务器的套接字连接和一些帮助程序,以简化消息解析等重复性工作.

What you're really looking for is which libraries would be recommended for component development. All the servers support the component protocol, so all you really need is a socket connection to the server and some helper routines to make the repetitive stuff like message parsing easier.

如果您需要更紧密的集成,服务器可能很重要.

Where the server might matter is if you need tighter integration.

例如,如果您希望组件以与 Ejabberd 相同的方式缩放,那么您可能需要使用 exmpp.

For example if you want your component to scale the same way as Ejabberd then you'll probably want to use exmpp.

如果您需要将组件与 Openfire 一起部署到仅限 Java 的企业中,那么您可能需要使用 smack.

If you need to deploy your component alongside Openfire into Java only enterprises, then you'll probably want to use smack.

如果您熟悉 Python 并想快速制作原型,请使用 Wokkel.

If you are familiar with Python and want to prototype quickly use Wokkel.

我不认为文档对任何图书馆都有好处(虽然我还没有看过所有的图书馆!)但这不应该是一个巨大的负担.您真正需要的只是一本关于 XMPP 协议如何工作的好书,然后是库中的一些示例代码从那里继续前进相当容易.

I don't think documentation is going to be great for any of the libraries (haven't looked at them all though!) but that shouldn't be a huge burden. All you really need a good book on how the XMPP protocol works and then some sample code from the library and it's fairly easy to move on from there.

这篇关于尝试开发服务器组件的 XMPP 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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