Firebase Functions: cold start and idle times [closed] - firebase

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
We are using Cloud Functions for Firebase as a backend for our JavaScript application. We want to communicate to one of our customers a somewhat deterministic behavior of our API endpoints. Is there any information available on timings regarding cold starts and instance shutdowns?
How long does it take until an idle instance is shut down?
How many users do they need to have during a specified amount of time so that they do not encounter too many cold starts?

This is not published information, and the implementation details may change at any time.

Related

Does Killing entire app state or restarting it cancels Firestore pending write? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I need to cancel a firestore write process on 60-second timeout, it is not possible to cancel a pending write in firestore, so I'm thinking about killing the app state or restarting it entirely, is that going to work?
If disk persistence is enabled (as it is by default on Android and iOS devices) the pending writes are persisted to disk, and will survive app restarts.

How should I make a game master using firestore and firebase cloud functions? [closed]

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.

Can I use ElasticSearch/Algolia on my spark plan? Or do I need to upgrade? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am a student writing a webapp using Firebase as backend and hosting. The $25/mo is too costly for me. My webapp requires text search functionality.
If you want to call a third party web service you need to enable billing (as discussed here:
Cloud Functions for Firebase - Billing account not configured)
You could however opt for the Blaze plan which is billed on a pay-as-you-go basis, instead of the fixed price flame plan. The cost will remain at $0 if you remain within the quotas specified in the spark plan.
You can also set spending limits and budget alerts in case you are afraid of going over budget.

Firebase Cloud System sending recurring messages? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Is there any possibility in Firebase Cloud System to configure messages to be sended for example in a 10 minutes basis without using an external server?
Cron jobs are possible with Firebase Cloud Functions. But you'll have to integrate it with Google App Engine ( at least for now, anyway ).
Check out this blog post by Abe Haskins of the Firebase team.
This should help you too.

Google Analytics visits counter decreasing [closed]

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 9 years ago.
Improve this question
A week ago my page had 1500 visits, now the counter shows 1000. I have another website using Google Analytics and the counter for that one also decreased from 500 visits this month to 400.
Is there a cause for this or is it that Google Analytics is not a good service? Is there other free web statistics service I could use?
Yeah, I had that same problem too with Google. Web statistics are meant to be reliable, otherwise, what's the point in having them?
A counter that freezes or decreases visits number defeats the purpose of having statistics at all and it's a sign of a bad service.
Not all is lost, here is a list of other web statistics services: http://www.hongkiat.com/blog/google-analytics-alternatives/
most of them offer a free trial or service, but it would be interesting to know which free service it is know for its reliability, not the huge amount of features they offer most users wont find useful.

Resources