Medo Almouhtadi
Medo Almouhtadi

Reputation: 100

for each observe()/listen is equal to one concurrent connection?

Consider a chat system where one user is listening to multiple parent nodes within one chat conversation.

  1. Group title
  2. Group description
  3. Messages

Does observing/listening to the 3 above mean that it adds up to 3 connections on the 200k concurrency limit? I can't seem to understand the proper definition of a concurrent connection.

Upvotes: 0

Views: 64

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599071

Each app (strictly speaking: each FirebaseDatabase instance) keeps a single connection to the Firebase Realtime Database server, no many how many listeners it has open.

Also see the Firebase FAQ, which says this about it:

A simultaneous connection is equivalent to one mobile device, browser tab, or server app connected to the database.

Upvotes: 1

Related Questions