The free plan has a limit of 100 connections. Now, if I buy the Blaze plan, I exceed the free connection limit, but not storage, or downloads, will they charge me something? because in the characteristics of this plan it says that it has 200,000 simultaneous connections, but you do not have to pay, instead in storage and downloads if necessary.
Could you get me out of doubt, please?
Thank you
firebase here
When you upgrade to the paid plan on your Firebase project, you are only charged for the storage and bandwidth for Realtime Database. There is no charge for the number of concurrent users.
So it is possible to upgrade to the paid plan, get many more concurrent users, and not pay anything.
Related
I'm developing an android app that relies on realtime notifications using Firebase FCM.
I know that there are many limitations for upstream messaging using FCM, but I don't know if some sort of limitations exists for downstream messages (e.g. the number of requests per day)
Thank's in advance for the replies.
The use of Firebase Cloud Messaging is free and unlimited. There is no documented limit to the number of messages you can send per day.
There are limits in place to prevent abuse of the service, but those are not documented. If you think you are hitting such a limit and have a valid use-case, reach out to Firebase support for personalized help in troubleshooting.
I know about the Auth API quotas from Firebase Docs.
And I want to know what happens when these quotas are exceeded?
Do I get charged more money?
Or does the Auth functionality stop until the limit is over?
In Firebase, if you use the "Free" or "Spark" plan, if you exceed any quota (Not only Auth), the functionality will not work until the limit is over. But if you use the "Pay As You Go" plan, you will get charged more money.
I am using firebase database in my Android app. The download limit for the database is 10 GB/month. If I upgraded my app to Blaze plan and made another database will each one of them will be able to download up to10 GB?
If I split the data between them will the data be able to be downloaded up to 20GB/month for free?
firebaser here
The free quota applies to a project, not to a database. Even if you switch to the Blaze plan and create multiple databases, only the first 10GB of outbound traffic will be free.
Multiple Database in Firebase is only available in Blaze plan. And in Blaze plan, there is no limit so no need to worry about the 10GB/month. See their Pricing page for more details.
Does Firebase Blaze plan have the spark plans free quota?
I want to use Firebase with google cloud platform, but would like to still have the hosting free limits. I don't care about the other services because I don't use them.
Update (2018-03-13): projects on the Blaze plan now get the same free quota that projects on the Spark plan get before you'll be billed for usage.
See the blog post announcing this change
Original answer below the fold.
Whether there is a free tier on the metered Blaze plan depends on the Firebase product you use.
Firebase Hosting and Firebase Database on the Blaze plan are charged from the first byte, there is no free tier. But for example Cloud Functions for Firebase and Cloud Storage for Firebase have the same free quota on the Blaze plan as the free tier in the Spark plan.
You can most easily see this by using the pricing calculator at the bottom of the Firebase pricing page.
Yes it includes free usage from Spark plan included.
https://firebase.google.com/pricing/
My app run in background. If app run in background, is still simultaneous connected with realtimeDB? Or if this app doesn't use realtimeDB for a while, does not count simultaneous connected?
If it's count anyway, can I only get 100,000 user?
Your app is connected to the realtimeDB as long as your listener is active. If you want to stop listening you need to remove the listener according to your needs and to the activity cycle.
For Android you can use this code in your onDestroy() method.
databaseReference.removeEventListener(valueEventListener);
Hope it helps.
I am answering your three part question in order..,
Firebase database library manages the connection to your database in the backend and this starts right away at the start of the app and this starts counting against your simultaneous connections and when this limit reaches the Max Connections limit of 100k any new connections will be dropped until the existing connections drop by either closing the app or app goes offline after a specified time-out or forcefully closing the DB connections by calling
FirebaseDatabase.getInstance().goOffline()
You can however know the whether a given client is connected or not by using the listener at FirebaseDatabase.getInstance().getReference(".info/connected") this however works locally and doesn't explicitly connect to FirebaseDatabase cloud instance., more can be read here
Once you implement the above connection listener you will see that the SDK manages this dynamically in a way that the connections disconnect automatically if there are no listeners attached and if no DB operations like .setValue() are made in the app in last 60 seconds.., but the presence of ValueEventListners will override this and will ensure continuous connectivity with the DB. again this can be overridden and the connection can be severed by explicitly calling FirebaseDatabase.getInstance().goOffline()
Coming to the Max Limit of 100k simultaneous users; as can be seen in Firebase Plans
There is a limit of 100,000 simultaneous connections per database on
the Flame and Blaze plans. See Pricing FAQ for more information.
If you cross this and for scaling you need to increase the limit, you can explicitly ask Google Firebase Team for the support and they will handle this on a case by case basis to ensure your app can scale as required when required..
What is a "simultaneous database connection"?
A simultaneous connection is equivalent to one mobile device, browser
tab, or server app connected to the database. Firebase imposes hard
limits on the number of simultaneous connections to your app's
database. These limits are in place to protect both Firebase and our
users from abuse.
The Spark plan limit is 100 and cannot be raised. The Flame and Blaze
plans have a limit of 100,000 simultaneous connections per database.
If you need more than 100,000 simultaneous connections, contact
Firebase support.
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 or add
more databases if needed.