things are heating up in the computers fandom
Conversation
at this rate, prepare for apocalypse by friday
1
2
it's happening
read image description
ALT
read image description
ALT
1
3
This Tweet was deleted by the Tweet author. Learn more
The number of connections is inherently limited by the memory required for each.
There's a reason for these connections limits in pretty much any serious server software including web servers like nginx. Dropping new connections is better than everything getting screwed up.
1
It has to be configured based on the memory available to the server and the memory required for each connection.
Go servers use a goroutine for each connection or request which is quite memory hungry compared to a highly optimized approach. Limit has to be lower than nginx, etc.
As an example:
nginx.org/en/docs/ngx_co
The alternative is that it maxes out the number of file descriptors or memory and starts having problems across the whole server including existing connections.
Presumably TikTok does have it configured reasonably and is just overloaded.

