即时通讯服务器类似于哪种语言

发布于 2024-10-08 10:21:44 字数 52 浏览 0 评论 0原文

我想运行跨平台 XMPP Instant Messenger。我应该选择什么服务器端语言?

I want to run Cross-Platform XMPP Instant Messenger. What Server-Side language should I choose?

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

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

发布评论

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

评论(2

飘逸的'云 2024-10-15 10:21:44

还有使用 Lua 的 http://prosody.im/。他们的使命宣言:

Prosody 是一个用 Lua 编写的用于 Jabber/XMPP 的现代灵活通信服务器。它的目标是易于设置和配置,并且节省资源。对于开发人员来说,它的目标是易于扩展并提供一个灵活的系统,可以在其上快速开发附加功能或构建新协议的原型。

Prosody 根据 MIT/X11 许可获得许可。

There's also http://prosody.im/ which uses Lua. Their mission statement:

Prosody is a modern flexible communications server for Jabber/XMPP written in Lua. It aims to be easy to set up and configure, and light on resources. For developers it aims to be easy to extend and give a flexible system on which to rapidly develop added functionality, or prototype new protocols.

Prosody is licensed under the permissive MIT/X11 license.

只有影子陪我不离不弃 2024-10-15 10:21:44

如果您想使用 XMPP 服务器,请查看 Ejabberd(用 Erlang 编写)或者 Tigase(用 Java 编写)

如果您想创建自己的,请使用:

  • Twisted Matrix,一个用于开发异步应用程序的 Python 框架
  • Erlang ,一种在设计时考虑到并发性的函数式语言。
  • Java 与 NIO 异步库

根据您希望与 XMPP 规范的接近程度,C++ 可能是一个选择,但这将是相当具有挑战性的,因为有相当多的逻辑需要实现:-)

如果您想优化速度,识别应用程序的瓶颈,并研究用 C 语言编写特定部分(XML 解析或字符串处理)。

If you want to use a XMPP server, take a look at Ejabberd(written in Erlang) or maybe Tigase(written in Java)

If you want to create your own, use:

  • Twisted Matrix, a Python framework to develop asynchronous applications
  • Erlang, a functional language designed with concurrency in mind.
  • Java with the NIO asynchronous library

Depending on how close to the XMPP spec you want to be, C++ might be an option but it will be quite challenging, as there is a fair amount of logic to implement :-)

If you want to optimize for speed, identify the bottlenecks of your application, and look into writing specific parts in C(XML parsing or string handling).

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