Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2019 (4)
20082026
  1. …<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)
  2. …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.
  3. > 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
  4. 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…