给所有用户的 GCM 消息(无主题)

GCM message to all users (without topics)

我有以下困境:

现在我的问题是:
我怎样才能使这个批处理和发送过程真正有效?有没有已经做好的解决方案,最好在node.js?

谢谢,
塞巴斯蒂安

您可以使用 XMPP,而不是 HTTP。

与 google says 相比,它对 HTTP 的资源占用更少:

The asynchronous nature of XMPP allows you to send more messages with fewer resources.

您还可以为每个应用程序(发件人 ID)建立 1000 个同步连接:

For each sender ID, GCM allows 1000 connections in parallel.

还有一个 node-xmpp 解决方案可用于此。