Firestore writes failing with "8 RESOURCE_EXHAUSTED" errors

453 views
Skip to first unread message

Sam Stern

unread,
May 1, 2023, 9:09:56 AM5/1/23
to Firebase Google Group
In our cloud functions (using the Node.js Admin SDK) we just saw a cluster of failed Firestore writes with this error message:

Error: 8 RESOURCE_EXHAUSTED: This project has exceeded their maximum request_rate/bandwidth/doucment_rate for writes, please retry with exponential backoff. To learn more about limits, see 'Maximum writes per second per database' under 'Usage and limits' section of the support documentation

However there's no mention of "Maximum writes per second per database" so I am not sure what limit was violated or how to adjust our code to be below it:
https://firebase.google.com/docs/firestore/quotas#writes_and_transactions

What is the maximum writes per second per Firestore database?

Thanks,
Sam

Bogdan Ciuca

unread,
May 2, 2023, 9:26:25 PM5/2/23
to Firebase Google Group
There used to be a 10000 writes per second per database hard limit, but that has been removed in October. However, there are still two other limits that you might've reached:

1. Maximum write rate to a document (1 per second, hard limit)
2. Maximum write rate to a collection in which documents contain sequential values in an indexed field (500 per second, soft limit)
Reply all
Reply to author
Forward
0 new messages