D
D
ds00lon2015-10-27 02:05:59
PHP
ds00lon, 2015-10-27 02:05:59

How are sockets in PHP different from the same sockets in Nodejs?

Explain with an example of a chat without touching the database.

  1. The features of resource consumption by these two languages ​​in the implementation of the chat are interesting.
  2. The maximum time for maintaining one socket connection is interesting, because in php there are time limits for the script to work.
  3. It is interesting how a chat in these two languages ​​will consume resources when the number of couples chatting is 100 couples, 500 couples, 1500 couples.
  4. And maybe something else is worth understanding about which I don’t even suspect when implementing a chat in PHP.

PS: Chat is a symbol taken for example and ease of explanation.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nirvimel, 2015-10-27
@nirvimel

PHP is built to die - this article contains the answers to all your questions.

N
Nicholas, 2015-10-27
@ACCNCC

Websockets only on nodejs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question