On Friday, 27 December 2019 16:30:48 UTC, Bruno Albuquerque wrote:
>
> This might be useful too you, in any case:
>
> https://git.bug-br.org.br/bga/workerpool
>
>
I think the point from Bryan Mills' video is, "worker pool" is something of 
an anti-pattern in go.  goroutines are so cheap that you might as well 
start a goroutine for each piece of work you have to do, and let it 
terminate when that piece of work is done.

Apart from the startup cost, the other reason for having a "worker pool" is 
to limit the number of concurrent tasks being executed, and there are 
better ways of doing that in go (also shown in the video).

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f840beee-748f-42b6-809f-4c7505208aee%40googlegroups.com.

Reply via email to