在Firebase中达到100个并发连接的限制后,何时允许新的连接? [英] When are new connections allowed after limit of 100 concurrent connection is reached in firebase?

查看:232
本文介绍了在Firebase中达到100个并发连接的限制后,何时允许新的连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据网站,他们在免费计划中有100个并发连接的限制,但是当第101个连接尝试连接时,它被拒绝了,所以当新的连接被允许的时候?



例如:用户不得不等待一段时间,或者只要一个连接关闭,另一个连接就可以连接。

解决方案

如果一个现有的连接消失,下一个连接将被允许。

所以如果你有一个聊天应用程序,在聊天室中有100个活跃用户,下一个用户将无法加入,并且Firebase客户端在尝试时将引发错误(LIMIT_EXCEEDED)。如果其中一个活跃用户离开(断开,关闭他们的浏览器选项卡等),下一个用户将被允许连接。


According to the website they have a limit of 100 concurrent connections in the free plan but when 101th connection tries to connect it is refused, so when the new connections are allowed?

For example : do the users have to wait for certain time period or as soon as one connection is closed ,the other is given the chance to connect.

解决方案

If one of the existing connections disappears, the next incoming connection will be allowed.

So if you have a chat application and there are 100 active users in the chat room, the next user won't be able to join and the Firebase client will throw an error (LIMIT_EXCEEDED) when they try. If one of the active users leaves (disconnects, closes their browser tab, etc), the next user will be allowed to connect.

这篇关于在Firebase中达到100个并发连接的限制后,何时允许新的连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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