node.js - Backend server software for facebook-like chat with PHP/MySQL/JS? -


i developed facebook-like chat in php , javascript. it's plugin forum software. i'm using (short) polling receive new messages, i'd try better, sockets.

what recommend kind of chat (available on every site, private chat, group chat..) : websockets, node.js socket.io, ejabberd...

facebook-like chat

from personal experience there no socket library available php. 1 wants have socket library have fallback mechanisms if native socket support not available. 2 suggestions me :

  1. switch node.js + socket.io solution, discard php.
  2. have nodejs + socket.io chat system running separate server along php. put haproxy in front of webserver. divert socket request node.js , other request php. in way able use goodies of both node.js , php.

i had similar situation , using option 2 :).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -