Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase - Cloud Functions : Always running functions

I am new on firebase cloud functions. I would like to ask a question about always running or self-triggering functions. How can we handle these things? How can we implement always running functions or self-triggering?

like image 626
E.T.Tuna Avatar asked Oct 29 '25 07:10

E.T.Tuna


1 Answers

Google Cloud Functions are snippets of code that run in response to events that happen somewhere else. Some example events:

  • a HTTPS URL is accessed, either from application code, or in some other way
  • a User account is created on Firebase Authentication
  • a node is written in the Firebase Realtime Database
  • a message is sent to a Cloud PubSub topic

There is no concept on a forever-running function on Cloud Functions (nor on other, similar Functions-as-a-Service offerings), although it's definitely possible to create a function that gets triggered every minute or so (like a cron job).

like image 141
Frank van Puffelen Avatar answered Nov 01 '25 12:11

Frank van Puffelen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!