Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

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.

About

Batch items written to a channel and have multiple workers process those from a channel

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages