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
1
vote
1 answer

Firebase transactions bug

Consider the following: function useCredits(userId, amount){ var userRef = firebase.database().ref().child('users').child(userId); userRef.transaction(function(user) { if (!user){ return user; } …
1
vote
0 answers

Efficiency of firebase queue when dealing with small simple tasks

I am trying to use firebase queue to create several workers to filter dirty words in my chat App. But I read the blog and found out that firebase queue will first store the data in firebase queue and then pick up the words to filter. Like the…
Mike Yang
  • 2,581
  • 3
  • 24
  • 27
1
vote
1 answer

How push a task with SpecId in firebase-queue with nodejs?

In the document example we can see : var Queue = require('firebase-queue'), Firebase = require('firebase'); var ref = new Firebase('https://.firebaseio.com'); var queueRef = ref.child('queue'); var messagesRef =…
Anthony
  • 3,989
  • 2
  • 30
  • 52
1
vote
0 answers

Security rules for firebase-queue for handing advanced authentication

I intend to use Firebase Queue to push tasks for registering a user using his/her mobile number like Whatsapp for a mobile application. I am using a third party service to verify a user's mobile number. The verification process is a two step…
Varun Gupta
  • 2,870
  • 6
  • 33
  • 73
0
votes
1 answer

Pushing a task with firebase-queue not working

I am trying to use the queuing module base on top of Firebase. I use the following code to push tasks import admin from "firebase-admin"; admin.initializeApp({ credential: admin.credential.cert(process.env.GOOGLE_APPLICATION_CREDENTIALS), …
0
votes
1 answer

What could cause a Swift/Firebase app to act up the first time it is installed and never again?

What doesn't work the first time?: The order in which database entries that I fetch displays I am running this 1st part In ViewDiDLoad let thisUserRef = Database.database().reference().child("users").child(uid) let myPeopleRef =…
0
votes
1 answer

How to show multiple image one after one by for loop from Firebase

I want to develop an app, Where it takes the string and convert it on word array which I already did. But the problem is when I use for loop and Firebase query to show Image from firebase storage one after one by thread.sleep(5000);.It's doesn't…
bijoy
  • 1
  • 1
0
votes
0 answers

How to use PubSub to get one message at time

I need my onPublish method (firebase side) to get only one message at time. My code is like this: Google Cloud (AppEngine): const pubsub = new PubSub({ projectId: config.project, }); const topicName =…
franmemo
  • 16
  • 1
  • 3
0
votes
1 answer

Restarting firebase queue when node process has crashed

I'm using firebase-queue for running some simple tasks. Suppose a task has been picked up by a worker and its state has been updated as in_progress. Now node crashes and the worker exists no more. The next time I restart node, how can I make sure…
Jophin Joseph
  • 2,864
  • 4
  • 27
  • 40
0
votes
0 answers

Firebase-Queue Graceful Shutdown on GCE

This is a design question about the handling of tasks during the shutdown of a firebase-queue based app running on Google Compute Engine. The use case I am working with is automatically scaling queue-workers depending on the load at any given time.…
0
votes
0 answers

How to query firebase on the last (x,y)?

I am listing an array based on the votes (orderByChild('up')) and like to divide them into pages (limitToLast(10*formData.page)). However, limitToLast() only takes one attribute rather then two, so for example if I am the page 10, I would have a…
Aero Wang
  • 8,382
  • 14
  • 63
  • 99
0
votes
0 answers

Firebase .indexOn dynamic keys iOS

I have the structure of cards, there is a request for a card, it appears the property interestedUsers, this property contains an array of models in which various properties are stored, including the user id who sent this request. I tried using query…
0
votes
1 answer

FATAL ERROR: Firebase Queue Issue, can't delete the node

I got a node named feeder for handling the firebase queue. Crazy thing is : I post the following payload to the feeder node but after adding several of them . I cannot delete the payload in the node. If I do delete then the payload in the feeder…
user3804063
  • 809
  • 1
  • 14
  • 32
0
votes
1 answer

Firebase queue delay - performance issues

I am using firebase-queue to handle some server side work. When a user registers, the server will process three tasks var customSpecs = { 'queue': { 'specs': { 'save_user_to_firebase': { 'in_progress_state':…
0
votes
0 answers

Firebase queue security rule issue

Expected behavior With the recommended firebase queue security rules, see https://github.com/firebase/firebase-queue/blob/master/docs/guide.md#queue-security, a set operation should not overwrite existing tasks in the queue. Actual behavior Existing…
slvn dev
  • 55
  • 2
  • 4