且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

XMPP for PHP(怎么做)

更新时间:2023-12-03 19:39:04

祝大家新年快乐,

XMPP,是处理通知问题的最常用方法,但您可以使用较轻的方法(技术)来处理您的问题,即 Pushlets,并且可以肯定前面的链接不是唯一的.Pushlets 区域基于 servlet 的机制,其中数据从服务器端直接推送到客户端浏览器内的(动态)HTML 页面.这允许服务器定期更新网页.并且肯定比 XMPP 轻得多.

XMPP, is the most common way with dealing with notifying problems, but yet you can use a less heavy approach (Technique) to deal with your problem which is Pushlets, and for sure the previous link is not the only one. Pushlets area servlet-based mechanism where data is pushed directly from server-side to (Dynamic) HTML pages within a client-browser. This allows a web page to be periodically updated by the server. and sure it's much lighter than XMPP.

你也可以像在这里中一样将它与Java服务器端一起使用,这会给你一些新的想法.

you can also use it with Java server side like in Here, which will give you some new ideas.

无论如何,如果您有一个拥有大量用户的 Web 应用程序,那么您必须三思而后行.并确保 XMPP 为您提供针对许多请求的许多控制功能.当 pushlet 足以进行广播时.

anyways, if you have a web application which has a lot of users you have to think twice then. and make sure that XMPP gives you a lot of controlling features over many requests. When pushlet is good enough to do your broadcasting.

希望能帮到你.