Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase update DB at regular intervals

I am developing an app using Firebase. As per my requirement, I have to reset the entries in Firebase DB at some regular intervals (for example, every 12 hours, I have to reset the existing entries in Firebase).

Is there any way to do this? Also I don't want to do this in App side.
Is it possible to integrate Google App Engine with Firebase? If yes, please provide any useful links.

Thanks in advance.

like image 654
Yogesh Mv Avatar asked Aug 24 '26 18:08

Yogesh Mv


1 Answers

You can definitely do this. I did something similar in a project of mine that copies data from a third party into a database periodically.

The basic steps to get set up can be found here. Basically:

  1. Set up an app engine instance (it can even be your in Firebase project, backed by a GCP project)
  2. Use the Firebase server SDK to implement a servlet that does what you want.
  3. Set up a repeating cron job to invoke it as often as needed.
like image 186
Doug Stevenson Avatar answered Aug 27 '26 07:08

Doug Stevenson



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!