goroutine
how to limit goroutines use semaphore
https://bostonc.dev/blog/go-semaphore
https://gist.github.com/jboursiquot/ef53edb815fe18c8160dbe8504dd9d60
1 | var ( |
https://medium.com/deep-golang/5-go-concurrency-patterns-i-wish-id-picked-up-sooner-b1b7dae6d71e
https://medium.com/@ahamrouni/mastering-concurrency-in-go-from-goroutines-to-semaphores-123fdd150213
参考
https://github.com/eranyanay/1m-go-websockets
https://www.bomberbot.com/golang/scaling-to-a-million-websockets-with-go/
https://awesome-go.com/goroutines/
https://ofeng.org/posts/goroutine-pool/