educative.io

How many ports are available in a web socket server?

how many ports are available in a web socket server? for example, in WhatsApp system design, how many web socket servers would be needed for 2B users?

Hi Ritika,

The formula for calculating the number of WebSocket servers required is:

total number of concurrent connections/connections per server.

As discussed in the lesson, WhatsApp handles around 10 million connections on a single server. If we assume that we have 2B concurrent connections, the estimation would be:

2B/10M = 200 servers

Based on this calculation, we would need approximately 200 servers to handle the current load of 2B concurrent connections.

Thank you.