Best approach for a scalable PHP (AJAX based) chat system
        Posted  
        
            by Simon
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Simon
        
        
        
        Published on 2010-03-19T07:24:03Z
        Indexed on 
            2010/03/19
            8:11 UTC
        
        
        Read the original article
        Hit count: 335
        
Hi,
I'm building a chat system for a company and I'm wondering as to what the best way to build the system would be?
The current setup we have is a Nginx HTTP Server with PHP and Memcacheq (as a message queue that appends the chat messages to the user's own queue). We then poll the Nginx server (through a Comet style request) and query the message queue for updates.
Is it a good idea to use a message queue such as Memcacheq to handle a chat system that has both user-to-user and site-wide chat or is it best to just stick to MySQL?
Thanks!
© Stack Overflow or respective owner