简体   繁体   中英

Trigger cloud function on specific date and time firebase

I want to change a document value at a specific date time in firestore, I don't want to use a scheduleFunctions of firebase i think it is costly to see every minute or an hour to check. Is there any better option which will trigger right on the given time etc.??. And it should be one time not a periodic call using flutter web and firebase for it

You could use the Google Cloud Scheduler to hit a HTTP Cloud Function periodically but using scheduled functions is your best bet.

Firebase had a very generous free tier. You mentioned you are “checking” every couple minutes or hours. That sounds like you updating a document based on an event, in which case you can use PubSub or Firestore triggered cloud functions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM