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
2
votes
0 answers

Firebase equalto more than one value

How to combine multiple values inside one equalTo() method? I mean that i want to return the places which is in Egypt or USA for example So i want it this way ref.orderByChild("country").equalTO("Egypt OR USA"); but it doesn't work like that I…
2
votes
0 answers

Closed - Firebase Admin SDK, Firebase Framework SDK and Firebase Queue SDK

After a couple of day I found that: Javascript Firebase SDK should be used on client side. Javascript Firebase Admin SDK should be used on server side with Node.js. Javascript Firebase Queue SDK should be used on server side to distribute background…
user5696333
2
votes
1 answer

My Firebase Queue doesn't do anything after I changed to Firebase 3

I started using Firebase a couple of weeks ago, and had Firebase Queue running on my node.js server code. Clients could push messages to queue/tasks, and the server would resolve them. I cannot replicate this after Firebase has changed to version 3,…
2
votes
0 answers

Firebase Queue multiple Specs on one queue both get executed or the wrong one gets picked

I have a Firebase queue and two specs, on the same queue and from the client I am making a push on the queue with the start state as only read_write_start, either both my specs gets executed by default or the wrong spec gets executed i.e. the…
1
vote
0 answers

Firebase Queue Priority

I'm new to using firebase-queue for my project and was wondering if there is a way to process data based on an attribute such as priority. Here is a sample of my data structure. queue tasks -L6PGTHyZFbM4eBM66Zt -priority : 1 …
1
vote
1 answer

When Firebase query removes Observer with handle, other observers are not called

I'm monitoring the state of some data from several UIViewControllers. When the UIViewController deinit happens, I delete the specific observer with the handle. Now I noticed that after removing query observer from one UIViewController, in the future…
1
vote
0 answers

Firebase; RangeError: Maximum call stack size exceeded

Hi I have tried all solutions provided for this error including using .once('value') instead of .on('value'). I have however not been able to solve it. My code[shown below] runs for some time around 2-3 days then crashes with the error…
1
vote
0 answers

How is Cloud Functions for Firebase different from GAE?

I am using Firebase in my App in Nodejs. I have JS API which takes imprints of website users(kind of Google Analytics) and from there it updates Data in Firebase and event Listeners binded in Nodejs compute the analytics. Problem: Currently, App is…
1
vote
2 answers

Set user properties as firebase-admin

I have following character creation flow for the game and use firebase-admin on the server to validate data, one issue I came across is figuring out how to add user property on the server, so here is the idea: authenticated user sends character…
Ilja
  • 44,142
  • 92
  • 275
  • 498
1
vote
1 answer

What is the use case of firebase-queue sanitize?

I am experimenting with firebase-queue. I saw the option for sanitizing. It's described in the doc as sanitize - specifies whether the data object passed to the processing function is sanitized of internal keys reserved for use by the queue. …
Jek
  • 5,546
  • 9
  • 37
  • 67
1
vote
1 answer

firebase-queue, there is a delay in the rate at which the worker receives task

I push 100 tasks to the queue on the client side like this. var ref = firebase.database().ref('queue/tasks'); for(var i = 0;i<100;i++){ ref.push({'foo': 'bar',i:i}) }; At the server, my worker looks like this var queue = new Queue(ref,…
Pankaj
  • 2,538
  • 3
  • 26
  • 39
1
vote
1 answer

current user on firebase queue

I want to know which user pushed the task on the firebase queue in my worker code. I can push the userId in the task, but that is not secure, any other user can push other user's userId. Is there a way I can access the user who pushed the task in…
Pankaj
  • 2,538
  • 3
  • 26
  • 39
1
vote
1 answer

Node GeoFire memory leak?

I have what appears to be some very basic firebase + firebase-queue + GeoFire code running on Node which appears to result in a memory leak, but I'm not convinced that I'm not screwing something up somewhere. 'use strict'; if…
brainbolt
  • 616
  • 1
  • 10
  • 24
1
vote
1 answer

App Engine Node flexible instance constantly running

I have several Firebase-Queue NodeJS instances running in my project on App Engine. The instances seems to be constantly running, producing errors after trying a GET…
Chris
  • 7,830
  • 6
  • 38
  • 72
1
vote
2 answers

Updating client after processing task in queue

A Firebase client can add a task to a queue like so: var tasks = db.ref('quote-request-queue/tasks'); tasks.push({'need': 'quote for customer'}); This task represents a request to get a price quote for an item. On the backend, a Firebase-queue…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817