eranyanay/1m-go-websockets
View on GitHub ↗ ★ 5,992 Go
handling 1M websockets connections in Go
6 mentions on Hacker News by 6 people: 2 stories, 4 comments · first 2019-02-13 · latest 2021-09-26
20082026
-
▲ 3
Handling 1M WebSockets connections in Go (2019)story by binwiederhier · 2021-09-26 · 0 comments
-
…<200 LOC that can handle 1m websocket connections from a laptop. There are 2 source files here. https://github.com/eranyanay/1m-go-websockets/tree/master/4_... Again as I opened with, these are my experiences. If Java and the future…
comment by DLA · 2020-05-12 · in Less is exponentially more (2012) -
…with a minimal amount of effort. What you call "dropping to this level" is 80 lines of code ( https://github.com/eranyanay/1m-go-websockets/blob/master/3_... ) and now you don't even have to write them yourself.
comment by kjksf · 2019-02-13 · in Handling 1M websocket connections in Go -
> Noticed they had to down to epoll: https://github.com/eranyanay/1m-go-websockets/blob/master/3_... . that seems a bit too low level. Agreed, I'd be quite curious how many libraries in the Go ecosystem they can't use as a result. Either…
comment by windlep · 2019-02-13 · in Handling 1M websocket connections in Go -
Very cool. Noticed they had to go down to epoll: https://github.com/eranyanay/1m-go-websockets/blob/master/3_... that seems a bit too low level. Why not spawn 1m goroutines is that not feasible? This also reminds me of Erlang VM handling…
comment by rdtsc · 2019-02-13 · in Handling 1M websocket connections in Go -
▲ 207
Handling 1M websocket connections in Gostory by 1nvalid · 2019-02-13 · 63 comments