Closed Sho0terInfo closed 5 years ago
Can you provide a bit more information about underlying application?
Also, have you tried integrations where you don’t need to covert from one request format to another?
Also, have you tried integrations where you don’t need to covert from one request format to another?
I dont know how to use laravel with pure psr7 request.
Can you provide a bit more information about underlying application?
Its hello-world-like application without any orm modelso or somethink heavy. All time wokrer use less then 16 mb RAM. But first requests TTFB takes near 2ms and during the test its up to 200ms without load.
That is odd. Can you try one of the following integrations: https://packagist.org/packages/avto-dev/roadrunner-laravel https://packagist.org/packages/cubekode/roadrunner-laravel https://packagist.org/packages/hunternnm/laravel-roadrunner https://packagist.org/packages/updg/roadrunner-laravel
There is definitely something withing "terminate".
That is odd. Can you try one of the following integrations: https://packagist.org/packages/avto-dev/roadrunner-laravel https://packagist.org/packages/cubekode/roadrunner-laravel https://packagist.org/packages/hunternnm/laravel-roadrunner https://packagist.org/packages/updg/roadrunner-laravel
There is definitely something withing "terminate".
SO, final solution. Its no RR issue, but... Laravel has some introduction features, like needs to reload Session and Auth service providers for reload its state. I have some Service Providers (like determinate current request language) wich needs to reload. In this service provider I am definening some view composers. AND problem here. In each request service provider add view comporsers wich NOT REPLACE and with each next request Template Endinge do more callbacks for each composed view. Its cause linear perfomance degradation. Be careful with long-life services :)
Requests per second: 761.20 [#/sec] (mean) Time per request: 7.962 [ms] (mean) Time per request: 1.990 [ms] (mean, across all concurrent requests)
I think, RR not ready for production use with Laravel
i7-7700k 64 GB DDR4 Debian