Google Feed API V2 又名推送、Channel API 与 WebSocket

发布于 2024-09-26 02:31:05 字数 147 浏览 1 评论 0原文

有谁知道 feed v2 何时离开可信测试阶段? feed v2 的一些用例与 Google Channel API 重叠,因此我不太明白发布 feed v2 的意义,而不是完全切换到频道 API。这是因为向 Web Socket API 的过渡更加顺利吗?或者我错过了一些点:)

Does anybody knows when will feed v2 leave trusted tester stage?
There are some usecases of feed v2 that overlap with Google Channel API, so I don't quite get point of releasing feed v2, instead of switching to channel API entirely. Is this due to smoother transition towards Web Socket API ? or I miss some point :)

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

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

发布评论

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

评论(1

寒尘 2024-10-03 02:31:05

我没有任何关于 Feeds V2 何时离开可信测试人员的数据,但用例相当离散:

一般来说:

  • Feeds API 适用于当您需要来自您无法控制或想要控制的现有来源的实时数据时将消息传递给许许多多的客户端,其中一些可能正在使用 Feeds API 进行侦听,其中一些可能会静态检索数据,等等。

  • Channel API 适用于想要传递特定内容的应用程序向一位特定客户发送消息。 Channel API 可以用作 Feeds API 的部分的实现(尽管现在不是),但它不会包含它。

除此之外,使用 Channel API 的延迟通常会更低(本质上是因为它绑定到一个客户端)。

I don't have any data on when Feeds V2 will leave trusted tester, but the use cases are fairly discrete:

Generally:

  • Feeds API is for when you want realtime data from existing sources you don't control, or want to deliver messages to lots and lots of clients, some of whom may be listening using the Feeds API, some of whom may retrieve the data statically, etc.

  • Channel API is for applications that want to deliver particular messages to one specific client. The Channel API could be used as an implementation of a piece of the Feeds API (though it isn't, now) but it wouldn't encompass it.

Other than that, latency will generally be lower with the Channel API (at heart, because it's bound to one client).

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