gpt4 book ai didi

android - 澄清 Firebase 连接

转载 作者:IT老高 更新时间:2023-10-28 13:23:10 28 4
gpt4 key购买 nike

我对 Firebase 定价模型有点困惑,特别关注的是连接或更准确地说是并发连接。

让我们举一个名为 FanZONE 的 iOS 移动应用示例:

用户将在足球比赛期间创建群组。他们会对实际游戏进行评论,评论会立即显示在每个成员的屏幕上。

这种情况是否意味着参与评论/查看的每个用户都算作一个连接?
那么,如果一个群中有 100 位用户积极关注屏幕并时不时发表评论,那么每 90 分钟有 100 个连接吗?
那些在后台拥有应用程序并且应用程序每 5 分钟检查一次分数的用户呢?这种连接也是 90 分钟长还是每 5 分钟只有一小部分时间?

最佳答案

除了 Mike P 的出色回答之外,这里还有一些关于同一主题的其他讨论,这些讨论可能会很有见地。

来自 Firebase pricing page :

What is a Connection?

A connection is an open network connection to our servers. It's a measure of the number of users that are using your app or site simultaneously. This isn't the same as (and is usually a lot lower than) the total number of visitors to your site or the total number of users of your app. In our experience, 1 concurrent corresponds to roughly 1,400 monthly visits.

Our Development Firebase has a hard limit on the number of connections allowed. All of the paid Firebases, however, are “burstable”, which means usage is not capped and instead you are billed for any overages. We measure connections for paid plans based on the 95th percentile of usage during the month.

来自 this mailing list discussion ,作者:Andrew Lee(Firebase 创始人):

I strongly recommend you not worry about it unless you're actually bumping up against our limits...most developers vastly overestimate the number of concurrent users they will have. A good rule of thumb is 1 concurrent = 1000 monthly visits for the typical website. For mobile, the ratio between installs and concurrents is sometimes even higher (though it varies considerably depending on your use case). Our plans are quite generous when it comes to concurrent users. As a data point -- our own website could operate comfortably on the "free" Firebase plan most days. In fact, more than 99.5% of all of Firebases never hit the 50 concurrent limit.

So, long story short, if you're working on a hobby project, you will almost certainly not hit our free tier 50-concurrent limit. If you're a business or a larger app, I hope you will find our $49 / month plan more cost-effective than spending engineering time to figure out when to goOnline / goOffline to minimize that number.

At the very high end (huge Enterprise apps with 10k+ concurrents) we do offer custom pricing that has a lower per-concurrent rate.

在 SO:How the Connection is calculated in Firebase 上的用户基准测试和连接测试

关于 SO 的另一个类似问题:How are concurrent connections calculated

关于android - 澄清 Firebase 连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21070095/

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