Closed hhxsv5 closed 6 years ago
Using Laravel+Laravel-s+swoole in production,works fantastic,super fast.
Hmm, did you lobby for votes somewhere? You received quite a few votes within about 4-5 minutes timespan.
This book might help
Not lobby, I just share this link into my social circle. @taylorotwell
There were only 5 rules...
sorry for this, I will open new issue.
@taylorotwell I have read many articles which tells that Swoole
makes php projects faster. I have tried swooletw/laravel-swoole
package with laravel. But I don't know why it had not worked for me. So, I believe laravel should have officially support for Swoole.
@hkp22 there's many aspect/issue in async/swool. for example consider following snippet from laravel source code:
if (! is_null($this->user)) {
return $this->user;
}
its look like pretty normal but in async/swool its fatal problem!
Although these problems solved in swooletw/laravel-swoole
package, but many laravel packages dosn't work by default because of above issue.
Other problems like Global var and static also exists.
in brief, there's a lot of work to compatible laravel ecosystem with async/swool . and I think it's unlikely that this will happen.
more info at laravel-swoole Q&A
@SadeghPM @hkp22 Swoole
is the server of resident memory type, different from Nginx+PHP-FPM
. This feature makes Laravel
faster, but another problem, need programmer to maintain the global/singleton/static variables about request context
.
How to make Laravel faster