panjf2000 / ants

🐜🐜🐜 ants is the most powerful and reliable pooling solution for Go.
https://ants.andypan.me/
MIT License
12.69k stars 1.36k forks source link

About the performace when using ants in websocket #126

Open gitmko0 opened 3 years ago

gitmko0 commented 3 years ago

Will websocket be written with ants be more performant than using solutions such as gobwas or fastws

With reference to go routines being used in websocket here https://www.freecodecamp.org/news/million-websockets-and-go-cc58418460bb/ and also here: https://github.com/dgrr/fastws/

I havent tried yet but do you think ants with websocket will be faster and more performant than them for high number of connections? e.g. 1M to 10M connections using ants for websocket.

panjf2000 commented 3 years ago

Please don't put the description in the issue title directly, which makes the issue title tedious.

Figure out the difference between title and description and put them in the right place separately.

mi4tin commented 3 years ago

websocket is not good use ant