-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase-queue for Cloud Functions #115
Comments
@drtriumph @nicolasgarnier fyi |
another advantage is having a queue running on a local server that uses platform specific libraries that aren't supported on Cloud Functions |
I agree with this. Have ended up just doing my own implementation instead of using queue |
This is interesting to me. I've done a few projects with firebase now and really like firebase-queue. I recently learned about functions and am curious how I can use it similarly and in combination with pub/sub to eliminate a dependency on amqp. |
I am also interested in something like this and am sad to have not heard anything from the developers of this repository. |
@jaufgang I just released a trimmed down version of firebase queue: https://github.com/kaliberjs/firebase-queue It is a lot more lightweight, has less moving parts, no dependencies and a more modern approach (promises). I am not sure what would be needed to support Firebase Functions, but if you look at the code you will see that it is probably pretty doable. I personally have no experience with Firebase Functions, but I think if there is enough demand and interest we can pull something off. |
I am basing this issue on a question I came across on StackOverflow regarding whether or not cloud functions render firebase-queue obsolete, and my answer to that question. Also, I noticed that the Readme.md of this project has been changed to point developers away from this library in favour of cloud functions.
Firebase-queue provides much more than a way for tasks to listen to firebase and launch tasks. It provides a protocol for communication between parties assigning and and responding to task requests, coordinating retries of failed tasks, reporting progress, state and additional metadata, and task chaining.
I think it would be useful for Firebase to develop a firebase-functions-queue package that extends the firebase-functions package and allows you to write a firebase cloud function with the same signature as firebase-queue. Something like this:
This new package would work just like firebase-queue and use the same metadata and options, except it wouldn't need to deal with managing multiple worker processes since cloud functions already do this automatically and seamlessly.
This would have the following advantages:
The text was updated successfully, but these errors were encountered: