RSS 和 ATOM 如何通知客户端更新?长轮询或轮询或其他什么? [英] How RSS and ATOM inform client about updates? long polling or polling or something else?

查看:85
本文介绍了RSS 和 ATOM 如何通知客户端更新?长轮询或轮询或其他什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到 RSS 和 ATOM 是基于 HTTP 的,使用 XML 格式.那么如果 HTTP 不支持连接,RSS 或 Atom 阅读器如何获知内容更新呢?他们是否需要定期轮询服务器?我有兴趣在实时 Web 应用程序中使用它,但我听说轮询无法扩展".

I read that RSS and ATOM are HTTP-based using XML format. So how an RSS or Atom reader get informed about content updates if HTTP doesn't support connections? Do they need to poll the server periodically? I'm interested in using it in a real time web application but I heard that "polling doesn't scale".

推荐答案

这很相似 这个问题.请在那里阅读我的回答.

This is pretty similar to this question. Please read my answer there.

目前没有针对 RSS 提要的长轮询.您正在寻找的技术是 PubSubHubbub :它将允许提要发布者推送您内容可用时.

There is no currently long polling for RSS feeds. The technology you're looking for is PubSubHubbub : it will allow the feed publisher to push you the content when it's available.

这篇关于RSS 和 ATOM 如何通知客户端更新?长轮询或轮询或其他什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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