允许的 APNS 持久连接数是多少? [英] What is the number of persistent connections to APNS allowed?

查看:38
本文介绍了允许的 APNS 持久连接数是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写服务器端代码来为我的应用程序发送推送通知.根据 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.

推荐答案

不知道你是否会得到一个准确的答案. 像 APNS 一样庞大而动态的系统是,Apple 应该对这样的数字含糊其辞;它给了他们随意改变它的自由.我发现了类似的含糊不清 这里.

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.

  • From this discussion it appears a rule of thumb is 15 connections max

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

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

这篇关于允许的 APNS 持久连接数是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆