justinwkUKM / BusTracker-UKM

UKM BUS TRAKER APPLICATION
3 stars 0 forks source link

Limited Firebase Simultaneous Connection #1

Open chunhoong opened 8 years ago

chunhoong commented 8 years ago

According to description in https://firebase.google.com/pricing/, we might have issue when more than 100 connections are made.

Consider Firebase practices port listening style, I assume the connection to database will be always on, instead of traditional http request which is:

  1. Open connection.
  2. Send http request.
  3. Receive http response.
  4. Close connection.

Thus once more than 100 users (I assume one user is listening to one connection), the rest wouldn't receive any data from Firebase server. Please clarify and let me know.

chunhoong commented 8 years ago

@SayChunKim please verify this.

SayChunKim commented 8 years ago

@rephchunhoong refered Firebase page here

Firebase imposes hard limits on the number of connections to your app's database at the same time. These limits are in place to protect both Firebase and our users from abuse.

The free plan limit is 100, and cannot be raised. The Flame and Blaze Plans have an initial limit of 10,000 simultaneous database connections. This is to prevent abuse and can be raised by contacting Firebase support with 24 hours notice.

This limit isn't the same as the total number of users of your app, because your users don't all connect at once. We encourage you to monitor your peak simultaneous database connections and upgrade if needed.

We're working hard to remove the initial 10,000 simultaneous connection cap on the Flame and Blaze plans.