Opening a room for each user is the right decision, which I usually recommend as a way by which you can easily contact individual users in messages with the server.
Numbers are stored in the Python data structure in memory, so they are expensive only because they use a little memory. I did not estimate the quantity per user, but it is probably just a few bytes on top of the room name.
The namespace is used to multiplex several different connections into one physical channel. If you just have one connection, just use the same namespace for everything. You should use several namespaces if, for example, there are two client applications on your page (for example, angular apps), each of which has its own set of event handlers. In addition, there is no reason to use more than one namespace.
Hope this helps.
source share