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, function(data, progress, resolve, reject){
console.log(data);
resolve();
}
The issue is that to complete processing all the tasks, it takes about 60 seconds, which is way to slow. Is there any way my worker can receive the tasks faster. I want to use the queue for the my client to send a request to the server. But with the current speed of the queue, I will not be able to support many concurrent users. I am looking to support 50k concurrent users.