我正在尝试使用 Google App Engine 实现 pubsub 消息传递。我希望能够存储对其他服务器的回调,然后在新数据可用时向它们发送新数据。
我环顾四周,但除了自己实现之外似乎无法想出任何办法。我见过 pubsubhubbub: https://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide 但我希望能够存储查询参数。例如,Xmpp xep 60 包括使用附加数据(称为选项)配置订阅的功能。
App Engine 中的 XMPP 服务似乎没有 pubsub 扩展。
正在管理我们自己的收件人列表: https://groups.google.com/forum/#!topic/google-appengine/CaBcX0EWO00 似乎是唯一的选择?
App Engine 似乎在考虑使用以下设备的情况下实现: JavaScript channel : https://developers.google.com/appengine/docs/python/channel/
设备的 CloudBackendMessaging: https://developers.google.com/cloud/samples/mbs/pubsub_messaging
请您参考如下方法:
有一个Limited Preview for Google Cloud Pub/Sub随着它的成熟,这将是需要注意的事情。
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.
