The most open rooms in socket.io

I am implementing a chat server using node.js, mongodb, socket.io and express. What I would like to know is there a limit on the maximum no. simultaneously open rooms for a multi-room socket.

Also, is there a maximum at no. users per number.

+6
source share
1 answer

Socket.io has no limitations and restrictions for how many users can be connected to the server, how many users are in a room, or how many rooms are there.

Your limitations are related to:

  • Software Implementation (Performance)
  • Network Logic Model: Event, Multithreaded, Single-Threaded
  • OS tuning: socket handlers and many other features
  • Equipment: CPU, RAM, Bandwidth (In \ Out), HDD / SSD (if there is a database / file cache (it can still be based on RAM)).

The order is important and usually tries to move from top to bottom, re-evaluating each point in advance, based on the requirements of your application. You must first install the OS.

+6
source

Source: https://habr.com/ru/post/924436/


All Articles