Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Discover which user is stressing firestore usage

Is there any way to discover which user is spamming requests on my firestore set up in order to remove them.

The scenario is that a user can make a certain request many times, which it will lead me to hit my daily limit.

I have access to both the client and the firebase, so it it better to do a client approach or use firebase rules/functions approach?

Thanks a lot

like image 765
Nick Pampoukidis Avatar asked Aug 31 '25 17:08

Nick Pampoukidis


1 Answers

The only mechanisms to monitor usage of Firestore are shown in the documentation. There is no provided mechanism to track per-user access, unless you implement that yourself somehow.

Read quotas cannot be implemented fully by security rules. You will definitely need a backend to track that access on your own, and force users to use that backend instead of providing direct client access.

like image 159
Doug Stevenson Avatar answered Sep 02 '25 23:09

Doug Stevenson