Best approach for scalable PHP-based chat system (based on AJAX)

I am creating a chat system for a company and I wonder what is the best way to create a system?

The current setup we have is a Nginx HTTP server with PHP and Memcacheq (as a message queue that adds chat messages to the user's own queue). Then we poll the Nginx server (via a Comet style request) and request a message queue for updates.

Is it good to use a message queue, such as Memcacheq, to ​​handle a chat system that has both user and public chat, or is it best to just stick to MySQL?

Thank!

+3
source share
4 answers

Memcache , ( , ). ( ) , Memcache ( ), . memcache ( ) mysql php. , , PHP mysql, ( memcache PHP).

, memcache . . http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/

+3

, Memcacheq , MySQL.

+1

Memcacheq - , -. php mysql, mysql. Memcacheq , , , .

php-, mysql . - .

Memcacheq .

+1

: http://pushmodule.slact.net/. Nginx , php- HTTP- .

0
source

Source: https://habr.com/ru/post/1737649/


All Articles