XMPP / Jabber vs Redis Pub / Sub for real-time chat server

I built a simple chat server with Node.js and Redis Pub / Sub, acani- node on GitHub . It is working fine. A few more things remained, but I understood (in my head) how to do them. But now I am considering using an XMPP server.

Features:

  • One-to-One Messaging (Unicast)
  • Bulk (multicast) messaging, that is, one user sends the same message to 1000 users.
  • Custom group messages (e.g. Beluga)
  • Hierarchical chats (PSub / Pub), for example, if you send a message to a hockey chat room, it will also go to the gym
  • Photo and video messages (TODO)
  • Any other interesting features ...

In addition, I know that I can deploy the Node.js Joyent Node server , and I have a Redis server with Redis To Go .

I think I will follow the principle

+5
source share
1 answer

I would recommend you follow YAGNI.

If you do not expect a large increase, new features or, as a rule, high scaling to enter the game.

Another use case for XMPP might be if you want your main code not to depend on a specific database (redis).

+4
source

All Articles