O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Queue workers

In the consolidated flow diagram, you might have noticed that we run four instances of docProcessor, indexProcessor, and indexAdder. The reason for this is that the tasks handled by these goroutines are embarrassingly parallel, that is, they can be run in parallel without side effects. This allows us to parallelize and process the documents at a faster pace.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required