How many WebSocket connections can a $6 server hold? 99,770, and memory is the wall

DEV Community·6 points·remdore·10 days ago·dev.to

A plain Node WebSocket server on one shared vCPU held 99,770 live connections. Holding them cost 0-1% CPU; the real cost was 6.6KB of system memory each, half of it invisible to the process. The comfortable number is around 80,000.

Read the full article at dev.to →

Related stories

Related topics