使用 AppEngine XMPP 进行客户端通知
我一直在寻找一种方法来告诉客户有关过期对象的信息,AppEngine 的 XMPP 实现似乎非常有趣,因为它具有可扩展性、应该可靠并且可以包含最多 100kb 的数据。
但据我了解,在客户可以收听消息之前,他应该拥有一个 Gmail 帐户。这是非常不切实际的。
是否有办法使临时只读 XMPP 帐户与此一起使用?
I've been looking for a way to tell clients about expired objects and AppEngine's XMPP implementation seems really interesting because it's scalable, should be reliable and can contain up to 100kb of data.
But as I understand it, before a client can listen to messages, he should have a gmail account. That's very impractical.
Is there maybe a way to make temporary readonly XMPP accounts to use with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
除非您正在谈论需要 GMAIL 帐户来创建 AppEngine 机器人...在这种情况下,是的,您需要有一个 Google 帐户。
Unless you are talking about the need for a GMAIL account to create an AppEngine robot... in which case YES you need to have a Google account.
在这种情况下,我将在示例中每 5 分钟执行一次 ajax 调用来检查它。
它很容易实现,并且可以最大限度地减少交换的数据(利用谷歌应用程序的“快速查询/响应”bonifications)。
问候。
In that situation, I would perform ajax calls every 5 minutes in example to check it.
It's easy to implement and the data exchanged can be reduced to the max (taking advantage of "fast query/response" bonifications of google-app).
Regards.
jldupont 对于第一点来说是正确的:任何 JID 都应该工作:)
对于第二点,唯一的选择可能是建立自己的服务器并允许匿名访问+临时帐户。
jldupont has it right for the first point : any JID should work :)
For the 2nd point, the only option is probably to set up your own server and allow anonymous access + temporary accounts.