gpt4 book ai didi

ios - 对于 PubNub iOS SDK 4.0,在不打开流 Controller 的情况下,客户端可以订阅的最大 channel 数?

转载 作者:行者123 更新时间:2023-12-04 19:31:14 24 4
gpt4 key购买 nike

对于 PubNub iOS SDK 4.0,在不打开流 Controller 的情况下,客户端可以订阅的最大 channel 数?我似乎找不到明确的答案。在 PubNub 自己的文档和知识库中,提到了数字 10、20、50 和 100。目前尚不清楚这些数字是否需要打开 Stream Controller。

我了解通过使用流 Controller 附加组件下的 channel 组,最大值为 20,000 (2,000 * 10 = 20,000)。

最佳答案

PubNub iOS SDK 4.0 Multiplex vs Channel Group vs Wildcard

对于 PubNub iOS SDK 4.0,就多路复用而言,SDK 实际上最多支持大约 50 个 channel 。您可以进一步增加此数字,但设备性能会受到影响。最好利用核心的 channel 组功能PubNub Stream Controller产品。 Stream Controller 包括以下 channel 订阅增强功能。

通配符订阅

最大可寻址 channel :(无限制)

PubNub 还支持 Wildcard Subscriptions using a Hierarchical dot notation .今天在 PubNub 中,您可以订阅 channel "a.b.*" 并在 a.b 下面的任何 channel 接收消息。您可以发布到 channel "a.b.c" 并在您的通配符订阅中接收消息。请注意,层次结构支持的最大深度目前为。例如 "a.b.*" 很好,但 "a.b.c.*" 不受支持。

channel 组

最大可寻址 channel :( 2,000 ✕ 10 = 20,000 )

使用 PubNub channel 组动态控制设备的数据流馈送。您可以远程控制设备订阅了哪些流,并从 channel 列表中动态添加删除 channel 。您最多可以多路订阅 10 个 channel 组,每个 channel 组最多可以包含 2,000 个 channel 。

复用

最大可寻址 channel :( ~100 )

您可以通过订阅通配符 channel channel 组Presence Event Stream Channels 等组合来复用您的连接。建议将多路复用 channel 保持在 50 以下以获得最佳设备性能。

关于ios - 对于 PubNub iOS SDK 4.0,在不打开流 Controller 的情况下,客户端可以订阅的最大 channel 数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31332549/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com