-
nginx unit, swool, Roadrunner, octane - 라라벨을 초당 5천번 이상으로Laravel 2021. 3. 20. 10:55
라라벨, PHP의 경우 빠른 처리를 못한다는 이야기가 근거 없이(?) 논의되고 있는데
swool이나 roadrunner를 사용하면 라라벨에서 대용량 처리가 가능해집니다..
Swoole와 RoadRunner는 CPU 코어 수를 기반으로 여러 Worker 프로세스를 Fork(분기)시켜
PHP를 보다 효율적으로 실행할 수 있는 코루틴(coroutine)을 사용합니다.
Swoole/RoadRunner를 사용하면 메모리에 올려진 바이트코드를 사용해
오버해드를 최소화 할 수 있는 OPcache와 함께 PHP 앱의 startup 효율성을 높일 수 있습니다.
프레임워크의 startup 시간을 제거하면서 무거운 HTTP 워크로드가 많은 어플리케이션에 많은 개선 효과가 있습니다.
nginx unit
NGINX Unit: Laravel
Laravel To run apps based on the Laravel framework using Unit: Install Unit with a PHP language module.Install and configure Laravel’s prerequisites.Install Laravel’s core files.Create a Laravel project. For our purposes, the path is /path/to/app/:$ cd
unit.nginx.org
swool
PHP Coroutine Fiber Async Programming Framework | Swoole PHP
Build high-performance, scalable, concurrent TCP, UDP, Unix Socket, HTTP, WebSocket services with PHP without too much knowledge about non-blocking I/O programming and low-level Linux kernel with fiber and coroutines.
www.swoole.co.uk
Roadrunner
RoadRunner : a high-performance PHP application server
RoadRunner is a high-performance PHP application server, load-balancer, and process manager written in Golang.
roadrunner.dev
Laravel Octane - Swool, Roadrunner를 라라벨에서 편하게 쓰게 해주는 도구
https://laravel-news.com/laravel-octane
Laravel Octane
Taylor Otwell gave Laracon Online 2021 attendees a first glimpse of Laravel Octane. Here's everything we learned from his demo.
laravel-news.com
artisan octane:start --workers=8 --server=roadrunner
반응형'Laravel' 카테고리의 다른 글
php.ini의 위치 (0) 2021.04.09 Roadrunner - PHP를 위한 초고성능 웹서버 (0) 2021.03.20 mail server - smtp (0) 2021.02.02 현존하는 라라벨 게시판 및 관련된 개발들 (0) 2021.01.22 라라벨 관련 사이트들 (0) 2021.01.20