Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 420 Bytes

README.md

File metadata and controls

4 lines (3 loc) · 420 Bytes

Batch Worker

This simple go program will create [N] workers, add integers to a channel, batch those integers until reaching batchSize then process() the work.

I wrote this for cases where you might want to batch units of work when using an iterator without making the code complex. The real world example I used it for was when processing data and wanted to batch up my Solr documents into the /update endpoint.