I need a cloud function to be called, then writes something to the database and then call another cloud function after, say 30 seconds, and then make some more updates to the databse.
I know firebase discourages setInterval this because it hangs up the server. though I’m not clear if moralis charges by time?
I could also execute a job every second that would get a query for every record that matches a certain timestamp + 30 seconds…
but this sounds wasteful too.
Or is it? What’s the best way?
I don’t want to depend on the client to have to trigger the cloud functions…