Hi,

I'd like to implement batch processing in go. There should be a goroutine
for reading input and several worker goroutines for processing the input in
chunks. The workers may not finish  processing the chunks in the same order
as they are in the input. But the processing results should be output in
the same order as the chunks in the input.

I see a number of resources that are relevant to the above goal. But I am
not sure what is the best solution in terms of how easy the code is and how
much less performance overhead there is. Does anyone have any advice on the
best solution to this problem? Thanks.

P.S., here is one webpage, but it does not allow multiple workers.

https://blog.drkaka.com/batch-get-from-golangs-buffered-channel-9638573f0c6e
-- 
Regards,
Peng

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to