实时限制
我们的集群支持百万级并发连接和消息吞吐量,适合生产环境的工作负载。
🌐 Our cluster supports millions of concurrent connections and message throughput for production workloads.
升级你的计划以提高额度。即使没有使用上限,或者使用企业计划,仍然会有一些限制以保护预算。所有限制都可以按项目进行配置。如果你需要提高额度,请联系支持。
🌐 Upgrade your plan to increase your limits. Without a spend cap, or on an Enterprise plan, some limits are still in place to protect budgets. All limits are configurable per project. Contact support if you need your limits increased.
计划限制 #
🌐 Limits by plan
| 免费 | 专业版 | 专业版(无花费上限) | 团队版 | 企业版 | |
|---|---|---|---|---|---|
| 并发连接数 | 200 | 500 | 10,000 | 10,000 | 10,000+ |
| 每秒消息数 | 100 | 500 | 2,500 | 2,500 | 2,500+ |
| 每秒通道加入数 | 100 | 500 | 2,500 | 2,500 | 2,500+ |
| 每个连接的通道数 | 100 | 100 | 100 | 100 | 100+ |
| 每个对象的存在键 | 10 | 10 | 10 | 10 | 10+ |
| 每秒在线消息数 | 20 | 50 | 1,000 | 1,000 | 1,000+ |
| 每位客户每30秒的出席调用次数 | 5 | 5 | 5 | 5 | 5 |
| 广播有效负载大小 | 256 KB | 3,000 KB | 3,000 KB | 3,000 KB | 3,000+ KB |
| Postgres 更改有效负载大小(阅读更多) | 1,024 KB | 1,024 KB | 1,024 KB | 1,024 KB | 1,024+ KB |
| 直播回放保留时间 (了解更多) | 72 小时 | 72 小时 | 72 小时 | 72 小时 | 72 小时 |
| 按请求重播消息 | 25 | 25 | 25 | 25 | 25 |
除了免费和专业计划,你还可以通过联系支持自定义你的限制。
🌐 Beyond the Free and Pro Plan you can customize your limits by contacting support.
限制错误 #
🌐 Limit errors
当你超过限制时,后台日志和 WebSocket 连接中的客户端消息都会出现错误。
🌐 When you exceed a limit, errors will appear in the backend logs and client-side messages in the WebSocket connection.
- 日志:在你的项目控制面板中查看实时日志。
- WebSocket 错误:使用浏览器的开发者工具查找 WebSocket 发起请求,并查看各条消息。
实时检查器
你可以使用 实时检查器 来重现错误,并将这些连接详情分享给 Supabase 支持团队。
🌐 You can use the Realtime Inspector to reproduce an error and share those connection details with Supabase support.
某些限制可能会导致通道加入被拒绝。实时通信将以以下其中一条 WebSocket 消息进行回复:
too_many_channels#
单个连接加入的通道太多了。
🌐 Too many channels currently joined for a single connection.
too_many_connections#
一个项目的总并发连接太多了。
🌐 Too many total concurrent connections for a project.
too_many_joins#
每秒加入通道次数太多。
🌐 Too many Channel joins per second.
tenant_events#
如果你的项目每秒生成的消息过多,连接会被断开。当消息吞吐量降到你的计划限制以下时,supabase-js 会自动重新连接。event 是发送到客户端或从客户端发送的 WebSocket 消息。
🌐 Connections will be disconnected if your project is generating too many messages per second. supabase-js will reconnect automatically when the message throughput decreases below your plan limit. An event is a WebSocket message delivered to, or sent from a client.
Postgres 改变了有效负载限制 #
🌐 Postgres changes payload limit
当达到这个限制时,new 和 old 记录的负载只会包含值大小小于或等于64字节的字段。
🌐 When this limit is reached, the new and old record payloads only include the fields with a value size of less than or equal to 64 bytes.