Skip to content
Realtime

实时限制

我们的集群支持百万级并发连接和消息吞吐量,适合生产环境的工作负载。

🌐 Our cluster supports millions of concurrent connections and message throughput for production workloads.

计划限制 #

🌐 Limits by plan

免费专业版专业版(无花费上限)团队版企业版
并发连接数20050010,00010,00010,000+
每秒消息数1005002,5002,5002,500+
每秒通道加入数1005002,5002,5002,500+
每个连接的通道数100100100100100+
每个对象的存在键1010101010+
每秒在线消息数20501,0001,0001,000+
每位客户每30秒的出席调用次数55555
广播有效负载大小256 KB3,000 KB3,000 KB3,000 KB3,000+ KB
Postgres 更改有效负载大小(阅读更多1,024 KB1,024 KB1,024 KB1,024 KB1,024+ KB
直播回放保留时间 (了解更多)72 小时72 小时72 小时72 小时72 小时
按请求重播消息2525252525

除了免费和专业计划,你还可以通过联系支持自定义你的限制。

🌐 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 发起请求,并查看各条消息。

某些限制可能会导致通道加入被拒绝。实时通信将以以下其中一条 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

当达到这个限制时,newold 记录的负载只会包含值大小小于或等于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.