Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
My App resubscribes whenever there is a connection loss.
I fear this causes a lot of traffic.
Is all data resend on every subscription?
And how can I monitor this traffic?
(I tried Kadira but could not find a traffic amount tab)
To avoid this kind of traffic, you should try iron-router and manage subscriptions for every template/page. This way you subscribe only to data client needs and also in case of reconnect, the usage is no different from refreshing or changing page.
In case you have a one-page app, you should publish only an amount of data user can process at the moment and increase it in case he needs more.
Kadira Debug is really good for monitoring your app, you can monitor query response time, query rate, memory usage etc. Even if that's not exactly what you're looking for, that's for sure a good place to start to see how your app connects with your db.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
This post was edited and submitted for review yesterday and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
We have a 550,000+ row, 5 column, 12 meg "Google Sheets" document we are trying to import and sync into Firebase RTDB.
Firebase says" Read-only and non-real-time mode activated in the data viewer to improve browser performance. Select a key with fewer records to edit or view in real time."
Our backend dev has implemented a code for realtime database sync. But he is saying that due to a Firebase limitation, realtime sync is not working efficiently because of heavy load of the data.
Our dev has tried to sync for (just) 100k entries and it was not working that efficiently over 100k**+** entries.
The spreadsheet use case is for users to search (custom widget for search) one of the column fields and then present another column to the user. This is a key function of the mobile app we hope to launch soon.
What is a good way to reduce the load?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am currently working on an app which will be used to send important messages as fast as possible to multiple people.
I found out that there is such a thing like firebase with which it is possible to send messages from a custom server to iOS and android devices.
But I need a solid and secure solution and firebase is therefore only my plan b. I would prefer a custom solution.
How can I achieve that a message will be sent to a client without firebase? I do not want the client to check for a new message every x seconds. That would be a waste of data. The triggering must come from the server. Can this be achieved using the observer pattern?
Firebase is a online datebase. If you try to choose a db for your app, you can choose insted MongoDB, which have a online version of db.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am making a web game. When certain time is reached, a new round should begin. Therefore, a firestore document should be changed at the time. I implemented this by calling a cloud function locally, counting timer on the client with the local time. However if the client closes the connection, the cloud function cannot be launched. How could I solve this problem?
Thank you.
I found out that google cloud scheduler functions has evolved to cloud tasks. I think this would perfectly match my circumstances. Having a look at the documentation.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I couldn't find any documentation on best practices with Firestore snapshot listeners when the app enters the background, should they be removed (and re-enabled when the app enters the foreground)? Or is it perfectly fine practice to leave them listening when the app is in the background? And if the app is in the background long enough, does Firebase ever kill them?
If you want to leave the listener added, you should be aware know that it could continue to consume resources while the user isn't using the app. Eventually the OS will shut off the app's ability to do networking, and kill the app process.
For Android, if you won't want the listener to trigger after the user leaves the app, you should remove it during onStop, which signals that the fragment or activity is no longer seen by the user. So, you will probably want to use onStart to resume the listen when the user comes back.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
So I want to host a personal website that is created on Angular which uses Node.JS and I wanted find a good place to host it.
I was thinking of using Firebase but I don't understand what it means by
100 simultaneous connection (realtime database)
10 GB/month download (realtime database)
10 GB/month bandwidth (cloud firestore)
document writes,reads, and deletes (cloud firestore)
10 GB/month transferred (hosting)
Also, I want to know from the community if this is enough for a personal website? I already have a custom domain.
Firebase Info
It all depends on the amount of traffic to your website, if you're not expecting hundreds of visitors a day then this is definitely enough, that's if your website even uses a database, it means it can accept 100 connections (more simply 100 people) connecting to it at the same time.
In short; this is enough for a personal website.