O
O
Octoberfest2016-11-29 00:36:08
PHP
Octoberfest, 2016-11-29 00:36:08

What is better to choose ratchet php or socket.io?

Hello. I wrote the logic of interaction of my web server in php with a CRM system and third-party services. In view of the fact that these third-party services began to open the api of web sockets, this is especially important in telephony, the question arose of switching to sockets. But the question is what to choose. I need to listen to the socket channels of services (for example, a telephony service), receive events from there and give these events to subscribers who are in CRM.
What is better to choose in these conditions if I do not plan to rewrite the logic in php. If possible, tell me exactly how the transport will be organized in 2 directions. Read about elephant.io , about ZeroMQ... What to choose... Thanks for the answers.
PS the following chain is obtained:
User crm <--> server with logic <-- third-party services , where <-->/<-- = websocket

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Philipp, 2016-11-29
@zoonman

Since your project is already written in PHP, use Ratchet and ZeroMQ. KISS ;-)
If you need a completely enterprise, look towards RabbitMQ.
By the way, connectors to queues can be written in different languages, for example, ultra-fast sockets in Go-lang / Erlang for working with telephony and hanging out in CRM in PHP.

V
Vitaly, 2016-11-29
@vitali1995

As far as I know, the famous vk.com uses php for rendering pages and node.js for online services. These two technologies work great together, and what was given to me in php "by sweat and blood", node.js is done in no time - it is designed specifically for such tasks.

V
Vladimir Balin, 2016-12-08
@krocos

Swoole

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question