允许的 APNS 持续连接数量是多少?

发布于 2025-01-01 23:50:31 字数 185 浏览 1 评论 0原文

我正在尝试编写服务器端代码来为我的应用程序发送推送通知。根据 Apple 的建议,我计划保留连接并根据需要发送推送通知。 Apple 还允许打开和保留多个并行连接以发送推送通知。 “您可以与同一网关或多个网关实例建立多个并行连接。” 为此,我想维护一个连接池。 我的问题是连接池的限制是什么,或者我可以维持与 APNS 的持久连接数量? 感谢您的预期帮助。

I am trying to write a server side code for sending push notifications for my applications. As per Apple recommendation, I am planning to retain the connection and send push notification as required.
Apple also allows opening and retaining multiple parallel connections for sending push notifications.
"You may establish multiple, parallel connections to the same gateway or to multiple gateway instances."
For this purpose I would like to maintain a connections pool.
My question is what is the limitation of connections pool, or the number of persistent connections with APNS can I maintain?
Thanks for anticipated help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不知道您是否能得到这个问题的准确答案。作为一个庞大且动态的系统,APNS 理应对这样一个数字保持模糊;它给了他们随意改变它的自由。我发现了类似的模糊性这里

  • 来自此讨论经验法则是最多 15 个连接

一个建议是建立一个开放式池,可以在其中创建新连接,直到它们开始被拒绝。只是一个想法。

Don't know if you're going to get a precise answer to this one. As large and dynamic a system as APNS is, it behooves Apple to be ambiguous about such a number; it gives them liberty to change it at will. I found a similar vagueness here.

One suggestion is to have an open-ended pool where new connections can be created until they start being refused. Just an idea.

浊酒尽余欢 2025-01-08 23:50:31

我同意@paislee,我认为你不会得到准确的数字。我同时打开 20 多个不同的连接,一切正常。

为了帮助您进行测试,请使用 TcpView,在这里可以看到每个打开的连接。

问候

I agree with @paislee, I don't think you'll get a precise number. I'm opening over 20 distinct connections simultaneously and there are ok.

In order to help you with your test, use TcpView, where it is possible to see every opened connection.

Regards

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文