Run Laravel faster, Run Laravel at extreme speeds.
Typically we run PHP behind web servers like Nginx. And whole code is booted at every request. And it's all good.
No worries about memory leak etc.
downside is, every aspect of Laravel framework has to be booted again on *every request*.
Framework overhead that we need to do all this on every request. 100 of millions of requests can be handled per month with Laravel.
Boot framework and keep it memory to avoid all this.
There are tools already available like @php_swoole , RoadRunner. But it doesn't offer co-routines like Swoole. Swoole does require us to install extension in order to use it.
Some gotchas to run your PHP like this.
Config changes, static properties on classes will leak into next incoming requests.
But we also run our Laravel apps like this, but in Queues, in background. We are not scared of it. We have memory leaks in Queue workers.
So we can use the same thing in Web layer, possibly using Laravel Octane.
Laravel will introduce first-party package thing to support running on Swoole or RoadRunner etc
Offer a single unified package to run Larvael on things like @php_swoole and RoadRunner.