实验开发服务器组件时使用哪种 XMPP 服务器

发布于 2024-07-26 18:40:15 字数 178 浏览 2 评论 0原文

我想尝试使用 XEP-0114:Jabber 组件协议 开发 XMPP 服务器组件。

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

I want to try developing an XMPP server component using XEP-0114: Jabber Component Protocol.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

天冷不及心凉 2024-08-02 18:40:15

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

我可以抛出一些个人看法,但是……我可能大错特错!

您真正要寻找的是推荐哪些用于组件开发。 所有服务器都支持组件协议,因此您真正需要的只是与服务器的套接字连接和一些帮助例程,以使消息解析等重复性工作变得更容易。

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

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

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

如果您熟悉 Python 并且想要快速构建原型,请使用 Wokkel

我认为文档对于任何一个库来说都不是很好(虽然还没有看过它们!)但这不应该是一个巨大的负担。 您真正需要的只是一本关于 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.

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

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

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

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.

薄暮涼年 2024-08-02 18:40:15

对于易于使用的测试服务器,我喜欢 openfire。 良好的说明、易于挂接的组件以及良好的管理 Web 界面。 调试更多的是日志文件上的“tail -f”,有点java风格。

我曾在专业场合使用过XCP,但这实际上是用于商业用途。 它运行良好,但如果这不是您的目标部署,那么就不值得付出努力。 我不确定你是否可以再单独购买。

我尝试使用 ejabberd 但很快就放弃了。 我发现设置和管理的文档很糟糕。 配置文件不是自我描述的,并且 ejabberd 站点上没有很好的说明。 它甚至可以在早上煎鸡蛋当早餐,但我无法在分配给它的时间里完成安装。

For an easy-to-use testing server I like openfire. Good instructions, easy to hook in components, and a good web interface for administration. Debugging is more of a "tail -f" on the logfiles, slightly java-ish.

I've used XCP professionally, but that's really for commercial use. It works well but if that's not your target deployment it's not worth the effort. I'm not sure if you can buy it separately any more.

I tried using ejabberd and I gave up quickly. I found the documentation for setup and administration awful. The config files are not self describing and there's no good walk through on the ejabberd site. It may be able to even fry my eggs in the morning for breakfast, but I couldn't get past install with the time I'd allotted to it.

云淡风轻 2024-08-02 18:40:15

对于 Openfire,有一个叫做 Whack 的东西,它是一个用于创建服务器的 Java 库组件(XEP-0114)。

由于通信是通过套接字进行的,因此我认为相同的代码应该适用于任何设计良好的 XMPP 服务器(例如 ejabberd)。 不过,我只用 Openfire 测试过,效果很好。

For Openfire, there is something called Whack, which is a Java library for creating server components (XEP-0114).

Since the communication is over sockets, I presume the same code should work for any well designed XMPP server (such as ejabberd). However, I have only tested it with Openfire and it works quite well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文