OGeek|极客世界-中国程序员成长平台

标题: android - google-cloud-messaging 的性能 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 15:57
标题: android - google-cloud-messaging 的性能

我们正在构建一个应用服务器,用于通过 GCM 连接服务器向 android 和 ios 客户端发送推送通知。我们的计划是使用 HTTP 接口(interface)与 GCM 连接,因为我们只需要下游消息传递。你能告诉我 GCM 的 HTTP 接口(interface)性能如何吗?我正在寻找某种性能数据,例如 GCM 每秒可以支持多少条推送通知消息?我检查了 GCM 网站,但找不到这个。请帮助指导我从哪里可以获得这些数据?



Best Answer-推荐答案


根据官方Google回答

The rate limit exception code indicates that you are sending messages from a backend server too frequently. To ensure a stable service, there is a per minute / per device app upper limit on the number of messages that can be sent from a backend server. This limit is set high so most well behaving apps should not be affected, all apps should however be prepared to receive this error code.

他们没有指定“实际限制”,但他们确实说这个限制设置得很高,所以大多数表现良好的应用程序不应该受到影响只要你不疯狂地向单个设备发送垃圾邮件无论你发送什么,你都应该没问题。

但请注意,您可能会受到限制并延迟消息

关于android - google-cloud-messaging 的性能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36656226/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4