Longpolling effect on the server

I am currently executing a longpolling script during a while (true) loop. PHP is set_time_limitset to 0. There is an Apache server with another nginx server connecting to the first. I pull text from a MySQL table through this longpolling script. I want to know if this process will interfere with server performance. If so, to what extent, if there are a large number of simultaneous users who pull data? Should I put nginx on top of php-fpm?

+4
source share
1 answer

Long polling has several notable properties on the server

  • , , -
  • ,
  • PHP- , PHP .
  • PHP
  • script ,

( , Apache MPM, MPM ), Nginx

  • Apache, ( ) Nginx
  • : apache-mod-php5, PHP-

- : ? Apache ( )? (, node)?

, , , Apache, , - , , - .

+1

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


All Articles