Hi friends! im working out in a project with this lib, we actually have some stable version with the main features we need, we're using local auth to keep sessions, and for example when we restart the server for any reason, update, etc, with a for each i search all the clients in DB that were active and restore it session the clients are stored in a clients = {} object, also the clientId is stored in mongo and they have a clientActive boolean field to verify if we need to reinitialize or not.
Now the problem is when we try to reinitialize existing clients, more than 11 clients at the same time the server crash, the server is on AWS on ubuntu, and the aim is to reach at least 500 clients at the same time sending and receiving messages.
the question is, anyone have some similar situation? i mean handling multiple clients at the same time? or maybe initializing a lot of clients at the same time?
We have some ideas like having in the production environment, lots of AWS instances like 10 - 20 wwebjs clients per instance, but before taking this decision i would like to have some refs about this issue
Sorry for the long book but I think that, despite the problem, it is an interesting topic on how that would be handled.