assume a node js file should work with USERS Objects which contains a list of user object. each user is a json object with 20-30 property in it.
And also there are 10,000 users connecting to server simultaneously.
and 2000 of these users are chatting. So for each message:
- server should look to this
USERSglobal object. - search in 10.000 users and also search in 30 property of specific user for some reason. permission and etc. [ or may be connect to mysql ]
- and finally emit to that specific user.
with All these steps and process. node js will slow down? or even go down?!
and finally how many simultaneous connect can nodejs handle ?