Questions tagged [firebase-queue]

The Firebase Queue is a fault-tolerant, multi-worker, multi-stage job pipeline built on the Firebase realtime database.

Queues can be used in your Firebase app to organize workers or perform background work like generating thumbnails of images, filtering message contents and censoring data, or fanning data out to multiple locations in your Firebase database.

Resources

Related tags

51 questions
8
votes
3 answers

Does Cloud Functions for Firebase make firebase-queue obsolete?

I have written some server-side code to use firebase-queue](https://github.com/firebase/firebase-queue) for scalability, however, with the release of Cloud Functions for Firebase (and its promise of automatic scalability), I am wondering if there is…
eyeezzi
  • 635
  • 7
  • 18
4
votes
2 answers

firebase queue - retries are not working?

Trying to figure out how to make retries work. this is how my FB queue looks : { "specs" : { "default_spec" : { "retries" : 3, "timeout" : 60000 } }, "tasks" : { } } and this is how I'm testing if retries work: const…
4
votes
2 answers

Multiple NodeJS Services/Modules on Google App Engine Flexible Environment

I'm struggling to figure out how to deploy multiple nodejs services on google app engine flexible. I'm using multiple nodejs classes with firebase-queue to process my tasks. Right now, i'm using my package.json to trigger starting everything at…
4
votes
0 answers

Node worker crashes with "FIREBASE WARNING"

I have a firebase-worker (https://github.com/firebase/firebase-queue) running on node. I have a big backlog of one particular task that the worker needs to do, but often times the task fails and then the worker simply stops with the below error…
4
votes
2 answers

Deploy only worker dyno to heroku (for firebase-queue)

I want to deploy a NodeJS server on a worker-only dyno on heroku. I've tried several approaches but I always get the error: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch My server does not need to serve…
Tielman Nieuwoudt
  • 903
  • 1
  • 12
  • 24
4
votes
0 answers

Use of numWorkers in firebase-queue

I am using firebase-queue in a mobile app to handle some server side work. In the firebase-queue documentation here, it says that we can specify an optional parameter numWorkers which specifies number of workers that can run simultaneously for the…
Varun Gupta
  • 2,870
  • 6
  • 33
  • 73
3
votes
0 answers

Firebase Android How To Get Query of Objects With Key List

I have a list of object keys that correspond to objects in my FB database. I want to retrieve all of those objects in an efficient way but I couldn't figure out how to query them. For now I am using this code. It's just a recursive method that…
Jared
  • 2,029
  • 5
  • 20
  • 39
3
votes
0 answers

Firebase queue - blocking and not-blocking between workers

The following is standard code, adding tasks to a queue, and then the worker pool will process the tasks. What I am confused about is what it means to have more than 1 worker in the queue, as I don't believe this code will start more than one…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
3
votes
0 answers

Firebase Queue Transaction Disconnect

I am using Firebase Queue on a Heroku nodejs server to perform some rather complex tasks. It works just fine except sometimes it throws the error: FIREBASE WARNING: transaction at queue/tasks/L5m5MTXLPHRfmaEeCLOjjkEjUIB3 failed: disconnect And when…
3
votes
2 answers

Return task results using firebase-queue

I am working on a mobile application using Firebase. In the mobile app, I need to register a user based on his/her mobile number similar to Whatsapp. I intend to use Nexmo to verify user's mobile number. There are two steps involved in verifying the…
Varun Gupta
  • 2,870
  • 6
  • 33
  • 73
2
votes
0 answers

Firebase onWrite cloud function does not run intermittently

I have been using firebase-queue for years to invoke jobs for years, but recently it started failing with transaction errors competing on resources, and had serious scaling issue. So I migrated firebase-queue to cloud function and it seemed to be…
2
votes
0 answers

Google Cloud Functions: How to stub firebase queue for Unit Tests?

//index.js const functions = require('firebase-functions'); var Queue = require('firebase-queue'); var specQueue = new Queue(); //test.js var assert = require('assert'); var sinon = require('sinon'); describe('test', function() { var Queue,…
user3240644
  • 2,211
  • 2
  • 24
  • 35
2
votes
1 answer

Firebase Swift query and client side fan out

I have been on this issue for over three days, i have research and came across other similar questions on SO which relates to my issue but those fix could not solve mine hence the reason am asking this question. I have a users, posts and…
2
votes
1 answer

Retry logic in Firebase Queue

I am using fire-base queue in my node.js application. I want to understand, if there is any way available so that a queue can retry and process remaining tasks in case error occurred while execution of any task.
Ruchika Sharma
  • 648
  • 1
  • 7
  • 23
2
votes
0 answers

Firebase optimisation for highly requested queue

A game based of firebase where every user push a request to play on the same waitingList so that a nodeJS server prepare a round game for every two waiting players separately. I am using Firebase JS v3 on nodeJS: var ref =…
1
2 3 4