I'm considering moving from my own ejabberd servers (XMPP) to Pusher or Pubnub (Pusher preferably). And I was wondering what the best way to re-create the roster functionality using this technology is.
Each user has a variable number of people to which's presence he is subscribed and with whom he can chat.
I can think of two ways of doing that but I don't know which is the best.
I can either subscribe to the presence of each user individually or put all users in one room and listen to all presence.
However if the number of users reaches thousands I can imagine that it would not be a viable solution.
What do you think ?