Firebase跟踪/限制用户请求量 [英] Firebase tracking/limiting of user request volume

查看:85
本文介绍了Firebase跟踪/限制用户请求量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个SaaS Firebase应用程序,用户可以在其中创建和拥有文档",匿名用户可以通过REST API频繁访问这些文档(每月数以万计).

我想通过为用户分配每月配额的配额(每月请求数量或每月向其拥有的文档传输的数据量)来分摊用户的访问成本.他们可以订阅付费计划以增加此配额.

是否可以通过Firebase以这种方式跟踪/限制用户访问?

解决方案

不能完全确定firebase是否具有针对该功能的api(我浏览时看不到任何东西)-是否有关于堆栈溢出的答案的firebase代表? >

这似乎表明没有任何地方可以让您安全地运行,而无需通过服务器代理请求. https://www.quora.com/Is -Firebase一个安全的服务,为什么或为什么不

I am creating a SaaS Firebase application in which users create and own "documents" which may be accessed frequently (in the range of tens or hundreds of thousands of times per month) by anonymous users via the REST API.

I'd like to pass along the cost of access to users by allocating them a quota in either number of requests per month or volume of data transfer per month to the documents they own. They could subscribe to a paid plan to increase this quota.

Is it possible to track/cap user access in this way with Firebase?

解决方案

Not totally sure if firebase has an api for that (Didn't see anything as I looked through) - any firebase reps with answers on stack overflow?

This seems to suggest there is nothing in place which would let you run securely without proxying requests through a server. https://www.quora.com/Is-Firebase-a-secure-service-Why-or-why-not

这篇关于Firebase跟踪/限制用户请求量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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