Перейти к содержимому

GopherCon UK 2019: Eran Yanay - Going Infinite: Handling 1 Million Websocket Connections in Go

GopherCon UK

0:00 / 0:00

GopherCon UK 2019: Eran Yanay - Going Infinite: Handling 1 Million Websocket Connections in Go

21 110 просмотров · 6 лет назад
GopherCon UK
18,4 тыс. подписчиков
21 110 просмотров · 6 лет назад
Go HTTP server provides great scalability, allocating a goroutine per connection, and reusing the efficient multiplexing and scheduling of the Go runtime. While this technique is almost ideal for most scenarios, it comes with limited scale for websockets apps due to high memory consumption. In this talk, we will show how we’ve implemented our own event loop mechanism to overcome those limitations and efficiently manage millions of concurrent connections while minimizing resource utilization.