hardStudy question · answer published in RTOS interview questions, so no pointssystem-designestimationreal-time
Memory for a million sockets
A chat service must hold 1 million idle WebSocket connections. Each connection uses about 30 KB of server memory. Each server has 16 GB usable for connections. How many servers are needed at minimum?
Discussion 0
Join free to post in the discussion.
Related questions
- What a load balancer doesBackend Developer
- Serving images to far-away usersBackend Developer
- The cache-aside patternBackend Developer
- Scaling a read-heavy databaseBackend Developer
- Latency versus throughputBackend Developer
- Estimating requests per secondBackend Developer
- How much downtime 99.99% allowsBackend Developer
- Why keep app servers statelessBackend Developer