xmpp/jabber 用于交友网站聊天?

发布于 2024-12-17 12:43:10 字数 264 浏览 3 评论 0原文

我们正在向约会网站添加文本聊天功能,我正在考虑使用 xmpp - 特别是服务器端的 ejabberd,并且我们将实现一个 ajax 客户端。

我想听听具有良好 xmpp 经验的人的意见 - 它在架构上是否适合在约会网站上聊天?在约会网站上的聊天中,任何人都可以与任何人一对一聊天 - 他们不必在您的“朋友”列表中。此外,我们不想要聊天室 - 只有一对一的聊天。

或者 xmpp 更适合这样的模式:有人必须将您添加到他们的朋友列表中,然后您才能与他们联系?

提前致谢。

we're in the process of adding text chat to our dating site and I'm considering using xmpp - specifically ejabberd on the server side, and we will be implementing an ajax client.

i'd like to hear from someone with good xmpp experience - is it architecturally suitable for chat on a dating site ? in chat on a dating site anybody can chat one-on-one with anybody - they don't have to be on your 'friends' list. Also we do not want a chat room - only one-on-one chat.

Or is xmpp more suitable for the model where someone has to add you to their friends list before you can with them ?

thanks in advance.

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

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

发布评论

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

评论(1

子栖 2024-12-24 12:43:10

XMPP 应该适合你。 Ejabberd,根据您拥有的并发用户数量,应该是一个很好的起点。考虑在 HTML 客户端中使用 BOSH 库,例如 Strope.js。如果您使用该库,您将需要一份使用 JavaScript 和 jQuery 进行专业 XMPP 编程,其中包含所有示例您需要的代码。

您不需要有状态订阅就可以在用户之间发送聊天消息,除非是在 GoogleTalk 等特定服务器实现中。减少在线状态订阅数量也将大大增加您可以同时处理的用户数量。

XMPP should work fine for you. Ejabberd, depending on the number of concurrent users you have, should be a fine starting point. Consider using a BOSH library like Strophe.js in your HTML client. If you use that library, you'll want a copy of Professional XMPP Programming with JavaScript and jQuery, which has examples of all of the code you'll need.

You do NOT need to have presence subscriptions in place to send chat messages between users, except in specific server implementations like GoogleTalk. Reducing the number of presence subscriptions will also drastically increase the number of users you can handle concurrently.

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