Friday, March 4, 2022

[FIXED] Use cakePHP and ReactPHP combination, is this possible?

Issue

Is it possible to run cakePHP application and reactPHP as its web-server? I heard a huge performance gain by using reactPHP. However, I have not seen anyone have leverage on existing matured PHP framework such as cake.


Solution

Yes, it's possible.

We've implemented a Bridge for PHP-PM (based on ReactPHP) here https://github.com/CakeDC/cakephp-phppm

The plugin manages the bootstrapping and handling of an application request, and some experimental benchmarks proved that, in specific applications, it would provide a substantial performance boost (2x requests/second).



Answered By - steinkel

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.