Multiple chat rooms - multiplexing?

458 views
Skip to first unread message

StigFærch

unread,
Aug 2, 2012, 3:20:51 AM8/2/12
to soc...@googlegroups.com
Hi,

I'm planning onan app where the user should be able to create its own chatroom (or you could call it gamerooms - but same same).
There could eventually be thousands of chatrooms.
Each chatroom will have unique attributes like topic, rules, max number of participants and so on.

So my questions is, if multiplexing like described here:
is the way to go?

Of course, I'm first thinking scalability...

/Stig

AD

unread,
Aug 2, 2012, 12:19:54 PM8/2/12
to stigf...@gmail.com, soc...@googlegroups.com
I would suggest going with a custom data payload to manage subscriptions.  Then let the sockjs server decide who to send messages to.  I think ultimately handling this in the application layer vs sockjs multiplexing is more flexible

-A

StigFærch

unread,
Aug 2, 2012, 4:42:50 PM8/2/12
to soc...@googlegroups.com
AD>
Flexible, yes.
How about performance?
/Stig

AD

unread,
Aug 2, 2012, 5:03:16 PM8/2/12
to stigf...@gmail.com, soc...@googlegroups.com
depends on your requirements and the architecture I guess.  Where and how you resolve the subscriptions would likely be done outside of sockjs anyway so its less of a sockjs issue.  If you need dynamic subscriptions then multiplex wont work very well i dont think.

-AD
Reply all
Reply to author
Forward
0 new messages