Going Infinite, handling 1 millions websockets connections in Go / Eran Yanay

  Рет қаралды 34,224

GopherCon Israel

GopherCon Israel

5 жыл бұрын

speakerdeck.com/gopherconil/e...
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 implement our own event loop mechanism to overcome those limitations and efficiently manage millions of concurrent connections while minimizing resource utilization. We will compare the memory footprint of a naive implementation, relying on the standard way to handle those connections with go-routines, and explore the difficulties of using epoll and select in pure go to efficiently schedule and maintain all those concurrent connections

Пікірлер: 20
@uziuzi3311
@uziuzi3311 4 жыл бұрын
Eran you are a legend, big thanks.
@_mansoor
@_mansoor 5 жыл бұрын
Awesome... Great demo's...
@AshwinVasani
@AshwinVasani 4 жыл бұрын
Great demo!!
@castmetal
@castmetal 2 жыл бұрын
Great demo! Thank you very much!
@KartikGola-qn2fk
@KartikGola-qn2fk Жыл бұрын
Good stuff! Thank you!
@user-bu2xf9iq2v
@user-bu2xf9iq2v 5 жыл бұрын
that is great!
@congnghia0609
@congnghia0609 3 жыл бұрын
Nice demo!!!...
@fasilk008
@fasilk008 4 жыл бұрын
Awesome
@phongluc2212
@phongluc2212 4 жыл бұрын
Hi sir. you are the best.
@deadlooop
@deadlooop 3 жыл бұрын
Cool 😎
@nguyenuchanh8701
@nguyenuchanh8701 3 жыл бұрын
@codenocode
@codenocode 3 ай бұрын
wow!
@vladirimus2689
@vladirimus2689 3 жыл бұрын
Meanwhile on Phoenix Live View..
@evans8245
@evans8245 3 жыл бұрын
anyone using his technique in production, how's your experience ?
@sumitlahiri209
@sumitlahiri209 3 жыл бұрын
I am using a similar approach on an EC2 in AWS for some 100K clients, it is a simple pub-sub model with multiple nodes.
@vinayakpurohit9773
@vinayakpurohit9773 Жыл бұрын
@@sumitlahiri209 hi Sumit, any idea about how to handle 100k clients in node js uwebsockets.js any help appreciated thanks
@evans8245
@evans8245 3 жыл бұрын
souuu.....anyone planning to compete with whatsApp's 3mil socket connections using his revelation ? XD
@eyadsalamin
@eyadsalamin 3 жыл бұрын
~20 years later “As you saw, using bio-quantum flip flops we were able to reduce the memory allocation of a million web socket connections to 1 bit, but this is too much memory for me and we need to optimize it further”🤖
@comedystuff655
@comedystuff655 3 жыл бұрын
go kit
@syedamjad1271
@syedamjad1271 3 жыл бұрын
Hi thanks for sharing the video.Will you please provide tutorial on Web socket go-client to play Quiz ( user Registration, Receive question, send answers).
From React To HTMX
40:01
ThePrimeTime
Рет қаралды 315 М.
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 38 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 11 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 20 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 21 МЛН
Master Go Programming With These Concurrency Patterns (in 40 minutes)
46:15
98% Cloud Cost Saved By Writing Our Own Database
21:45
ThePrimeTime
Рет қаралды 336 М.
Creating a Chat Server with async Rust and Tokio
53:44
Manning Publications
Рет қаралды 11 М.
Concurrency in Go
18:40
Jake Wright
Рет қаралды 611 М.
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 293 М.
How To Build A Chat And Data Feed With WebSockets In Golang?
20:45
37C3 -  Breaking "DRM" in Polish trains
1:01:46
media.ccc.de
Рет қаралды 433 М.
This Is The BEST Way To Structure Your GO Projects
11:08
Melkey
Рет қаралды 68 М.
GothamGo 2018 - Things in Go I Never Use by Mat Ryer
24:53
Nation Confrences
Рет қаралды 84 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН
Проверил, как вам?
0:58
Коннор
Рет қаралды 240 М.