Ajax轮询 [英] Ajax polling

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

问题描述

在项目我目前工作的,我们有必要制定一个网络聊天应用程序,而不是一个非常复杂的聊天,只是一种方式来连接两个人谈很具体的话题,我们不需要任何实物为两个用户中的一个认证,我们没有支持表情,头像,或者类似的东西。

In the project i am currently working on, we have the need to develop a web chat application, not a very complex chat, just a way to connect two people to talk about a very specific topic, we don't need any kind of authentication for one of the two users, we don't have to support emoticons, avatars, or stuff like that.

有些项目成员建议,我们可以通过BOSH使用XMPP,我说就是喜欢追赶的船的净鱼,并提出了一个更简单的方法,是一个简单的Ajax / MySQL的Web聊天,但我们担心性能,因为很多聊天的同时开放的不断轮询的砸在了服务器。

Some project members suggested that we could use XMPP through BOSH, I said that is like trying to catch a fish with a boat's net, and proposed a more simpler method, like a simple Ajax/MySQL web chat, but we're worried about the performance hit in the server because of the constant polling of many chats open at the same time.

有没有人做过这样的事情之前?你有什么建议?

Has anyone done something like this before? What would you recommend?

推荐答案

您可能还需要考虑的彗星

它用GTalk的,Meebo的,和许多等聊天应用程序。当我尝试用它在几年前,有没有很多图书馆或有关服务器架构的细节来实现它,但它看起来像有很多更多的东西出来了。

It's used by GTalk, Meebo, and many other chat applications. A few years ago when I was experimenting with it, there weren't very many libraries or details about server architecture to implement it, but it looks like there is a lot more stuff out now.

有一个看 cometd 项目的详细技术信息。

Have a look at the cometd project for more technical information.

这篇关于Ajax轮询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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