DEV Community

loading...

Discussion on: Introducing Goblero: a Go Embedded Job Queue

Collapse
arpitgogia profile image
Arpit Gogia

Hi Adil, looks like a very interesting project..

I have a question, after registering a processor function, how does the job know which processor function to call?

Collapse
didil profile image
Adil H Author

Hi Arpit,
good question ! all the processors are treated equally and the internal goblero "dispatcher" just loops through the registered processors and tries to find one who is available when there is work to be done, then assigns the job to that processor and calls it's function