How do I implement a write rate limit in Cloud Firestore security rules? : <p>I have an app that uses the Firebase SDK to directly talk to <a href="https://firebase.google.com/docs/firestore" rel="noreferrer">Cloud Firestore</a> 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.</p>

<p>How can I make sure a user can only write say once every few seconds, without having to write any server-side code.</p>
