Hacker News new | ask | show | jobs
by inlined 3392 days ago
No. All events are asynchronous. This use case is best simulated by having clients post to a queue. Cloud functions then either discards or applies writes in that queue.
1 comments

You should add this technique to the docs! It makes you realize that the Cloud Functions feature is a lot more powerful than you might initially think.
A lot of people use the Firebase Queue library for this:

https://github.com/firebase/firebase-queue