I hope I can explain it quite well. I am working on creating a PHP library to handle ajax requests through PHP in an object oriented way. I'm currently thinking about how to implement a long survey, but I'm interested in something.
Apache cannot handle the fact that multiple connections open very well. The per-request flow model makes Apache extremely inefficient for long polling. Using a server, such as nginx and lighttpd, handles these streams much better, so in the library I plan to implement various functions optimized for specific servers accessible from a single function call. In the case of Apache, which, as it turns out, has a huge market share for PHP applications, I need a better solution.
Is there a way to place an incoming hold / pause request and continue processing other requests until I can reactivate it?
I'm not sure if this makes sense, or I'm even on the right track. What is the possible solution that SO recommends for long polling in PHP on an Apache server?
php apache long-polling
Jeremy harris
source share