How do I implement a write rate limit in Cloud Firestore security rules?
问题 I have an app that uses the Firebase SDK to directly talk to Cloud Firestore from within the application. My code makes sure to only write data at reasonable intervals. But a malicious user might take the configuration data from my app, and use it to write an endless stream of data to my database. How can I make sure a user can only write say once every few seconds, without having to write any server-side code. 回答1: Every read or write operation to your database, is validated on Google's