Home > Enterprise >  Firestore snapshot listener limit per client. Does a single client encompass all instances of the ap
Firestore snapshot listener limit per client. Does a single client encompass all instances of the ap

Time:03-18

Firebase defines in their best-practices page that each client should not use more than a 100 snapshot document listeners for performance reasons.

This may come off as a really silly question, but what do they mean with "Client"? Are all instances of the app running on a browser (multiple tabs) considered a single "Client" or is each tab considered it own "Client"?

[Link for reference] https://firebase.google.com/docs/firestore/best-practices#:~:text=For best performance, snapshot listeners,may be happening too frequently.&text=Keep the number of snapshot listeners per client under 100.

CodePudding user response:

I think each tab is considered a independent client. Listeners are used to be placed in frontend, every tab can run it's own code executing the listener object.

  • Related