
A given queue, always referred by its instantiation name ( my-first-queue in the example above ), can have many producers, many consumers, and many listeners. Const myFirstQueue = new Bull ( ' my-first-queue ' ) Ī queue instance can normally have 3 main different roles: A job producer, a job consumer or/and an events listener.Īlthough one given instance can be used for the 3 roles, normally the producer and consumer are divided into several instances.
