We're working on an application that uses the new firebase cloud functions. What currently is happening is that a transaction is put in the queue node. And then the function removes that node and puts it in the correct node. This has been implemented because of the ability to work offline. Our current problem is the speed of the function. The function itself takes about 400ms, so that's alright. B