亚马逊简单通知服务可以“推送”吗?向桌面客户端发送通知?

发布于 2025-01-08 05:23:04 字数 76 浏览 3 评论 0原文

Amazon Simple Notification Service 能否将通知“推送”到桌面客户端?这有可能成为真正的推送而无需轮询吗?

Can Amazon Simple Notification Service "push" notifications to a desktop client? It this possible as a true push without polling?

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

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

发布评论

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

评论(1

天涯离梦残月幽梦 2025-01-15 05:23:04

不,这还不是开箱即用的 - Amazon SNS 确实可以通过发布者向主题发送消息,主题又推送这些到端点 订阅了此主题Subscribe API 当前可用的协议有:

  • http -- 交付通过 HTTP POST https 传递 JSON 编码的消息
  • -- 通过 HTTPS POST 传递 JSON 编码的消息
  • email -- 通过 SMTP 传递消息
  • email-json -- 通过 SMTP 传递 JSON 编码的消息
  • sms -- 通过 SMS 传递消息[目前仅限于美国地区]
  • sqs -- 将 JSON 编码的消息传送到 Amazon SQS 队列

因此,目前向桌面客户端推送通知最接近的是电子邮件,尽管它通过将 HTTP 发布到相应的 Web 服务来构建自定义的应该相对容易,这反过来又可以促进 WebSocket或<一个href="http://growl.info/" rel="nofollow">咆哮等。

祝你好运!

No, this is not (yet) available out of the box - Amazon SNS indeed works by publishers sending messages to topics, which in turn push these to endpoints subscribed to this topic. The currently available protocols for the Subscribe API are:

  • http -- delivery of JSON-encoded message via HTTP POST
  • https --delivery of JSON-encoded message via HTTPS POST
  • email -- delivery of message via SMTP
  • email-json -- delivery of JSON-encoded message via SMTP
  • sms -- delivery of message via SMS [currently limited to the US region(s)]
  • sqs -- delivery of JSON-encoded message to an Amazon SQS queue

So the closest you currently have for push notifications to a desktop client is email, though it should be relatively easy to build custom ones by posting HTTP to a respective web service, which in turn could facilitate WebSocket or Growl etc.

Good luck!

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