DEV Community

Discussion on: Task queues and why do we need them.

Collapse
 
sarbikbetal profile image
Sarbik Betal • Edited

Yes Andrei you can think of it that way, if you look closely you will notice there are two kinds of data flow happening here, one is the actual task and other is the event. Different kinds of events are emitted related to the task (task queued, task succeeded, task failed, task stalled. etc). So the server acts as the publisher of the actual task and consumer of those task events that are published by the worker. Hope it helps clear your doubt 😄.

Collapse
 
anduser96 profile image
Andrei Gatej

Makes perfect sense! Thank you very much