避免对 Heroku 和 Google App Engine 等服务进行轮询?

发布于 2024-08-23 09:25:44 字数 89 浏览 6 评论 0 原文

我不认为有办法做到这一点,但我想我想看看人们使用什么解决方法来避免对 Heroku 和/或 GAE 进行轮询。

您如何从这些应用程序中实时发送通知?

I do not think there's a way to do this but I thought I'd ask to see what workarounds people are using to avoid polling on Heroku and/or GAE.

How are you sending out notifications in somewhat real-time from these apps?

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

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

发布评论

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

评论(3

夜雨飘雪 2024-08-30 09:25:44

GAE 可以使用以下其中一项来通知另一个系统:

  • xmpp
  • urlfetch 到回调 url
    • 喜欢 pubsubhubbub
  • 发送电子邮件

GAE can use one of the following to notify another system:

  • xmpp
  • urlfetch to a callback url
    • like to pubsubhubbub
  • send email
对岸观火 2024-08-30 09:25:44

使用 Heroku 的新 Cedar 堆栈,您可以进行长轮询。

有一个链接到一些 长轮询示例代码位于此处。

With Heroku's new Cedar stack you can do long polling.

There's a link to some long polling example code here.

三五鸿雁 2024-08-30 09:25:44

正如 @dar 提到的,您可以使用 PubSubHubbub 进行实时通知,无需轮询。 Nick Johnson 有一个关于使用现有的优秀教程 PubSubHubbub 服务器,甚至在您的应用程序中包含一个服务器。

这将使您可以实时发布提要并订阅它们,而无需轮询。

As @dar mentions, you can use PubSubHubbub to do realtime notification without polling. Nick Johnson has an excellent tutorial on using an existing PubSubHubbub server, or even including a server with your application.

This will let you publish feeds and subscribe to them in realtime without polling.

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