Answer the question
In order to leave comments, you need to log in
Queues, processes, tasks / tasks - what and when to use?
For the first time, I faced the task of launching programs remotely, in a certain order, at a certain interval. Prior to that, not only had I never worked with queue, messages, etc., but I didn’t even really know what it was. However, I still don't understand, that's why I created this question.
In general, an approximate goal is to have pre-created tasks on the server (actually, ordinary functions), and to be able to programmatically create / delete them through the GUI interface (ie, via API).
My stack is Node, so I chose the Bull library.
And everything works there like this:
a queue is created >> a process is created >> a task is created
const loadBalancerQueue = new Queue('loadbalancer')
loadBalancerQueue.process('requestProfile', 100, requestProfile)
loadBalancerQueue.add('jobA', data, opts)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question