What do you prefer to use Laravel Octane with and why?
- RoadRunner
- FrankenPHP
- PHP Swoole
Andrey Helldar
@AndreyHelldar
Creator of TheDragonCode, Cashbox Laravel and main developer at Laravel-Lang
β’ β’ 21 Posts β’ 42 Views
Franken I haven't explored yet, unlike RoadRunner. And that was superficial. As far as I understand, Laravel Octane raises several of its processes and each one runs by itself on its own CPU.
By the way, I've read the documentation now and yes, Octane also raises several Workers. By default, their number is equal to the number of CPUs.
But, to talk more in detail, I need to study this topic more. So that's where I'm stopping :)
Need to test how many requests per second a custom site can handle? Easy!
For example:
laravel new test --api --n
cd test
composer require pestphp/pest pestphp/pest-plugin-stressless --dev
vendor/bin/pest stress example.com/foo/bar --post='{"page": 2}' --duration=10 --concurrency=16
A quick and easy way to localize an application is to use the Laravel Lang ecosystem.
laravel-lang.com