Google App Engin的Pubsub

2024-10-17 00:20:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试用googleappengine实现pubsub消息传递。我希望能够将回调存储到其他服务器,然后在可用时向它们发送新数据。在

我已经仔细研究过了,但除了自己实现它,似乎什么都想不出来。我看过pubsubhubbub: https://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide 但我希望能够存储查询参数。例如,xmppxep60包括使用附加数据(称为选项)配置订阅的功能。在

应用引擎中的XMPP服务似乎没有pubsub扩展名。在

正在管理我们自己的收件人列表: https://groups.google.com/forum/#!topic/google-appengine/CaBcX0EWO00 似乎是唯一的选择?在

App Engine似乎在实现时考虑了使用以下设备的设备: javascript频道: https://developers.google.com/appengine/docs/python/channel/

设备的CloudBackendMessaging: https://developers.google.com/cloud/samples/mbs/pubsub_messaging


Tags: 数据https服务器com参数googlewikicode
2条回答

{1}会有一个成熟的东西。在

Google Cloud Pub/Sub is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a “topic” and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications.

AppEngine上没有来自客户端的持久连接(即侦听套接字),因此在它上实现实时推送系统是非常不可能的。在

如您所知,您可以使用channelsapi(解决push-to-browsers)和特定于移动设备的推送系统(GCMAPNS)来接近。在

如果你想要一个通用的系统,我推荐一个基于套接字的系统,很像PubNub。您应该研究一下Compute Engine,它允许这样的功能。在

相关问题 更多 >