/goworkerpool

Golang Worker Pool Implementation

Primary LanguageGo

Go Worker Pool Implementation Example

This follows the principle: "Do not communicate by sharing memory; instead, share memory by communicating."

https://golang.org/doc/effective_go.html

Commands:

Test:

go run main.go go test -bench=.

With Debug:

export DEBUG=true

References:

https://medium.com/smsjunk/handling-1-million-requests-per-minute-with-golang-f70ac505fcaa

https://medium.com/coinmonks/visually-understanding-worker-pool-48a83b7fc1f5

https://medium.com/@j.d.livni/write-a-go-worker-pool-in-15-minutes-c9b42f640923