![]() Meanwhile, it is flexible enough: almost any task can be implemented in many ways, starting with designing the application itself (although there is a minus here: some ways of solving a task can cause lots of problems ranging from the need to support abysmal code to performance declines and memory leaks).Ī lightweight version of Laravel, intended mainly for API implementation. Out of the box, it contains lots of functionality that solves almost any business needs in a reasonable time. Laravel is one of the most popular frameworks for PHP. So, I cobbled together a simple test bench with several web servers and did some load testing, the results of which I now share. But, first, PHP and NGINX Unit have already gone far ahead since its publication second, I was interested in performance for Laravel and Lumen. A search for relevant articles on the Internet yields few results: mostly quite old and uninformative articles on obscure websites and a 2019 article on Habr that does a similar comparison of several web servers for a Symfony-based application. When I suggest switching to NGINX Unit, a question naturally ensues, "How exactly is it better?". I myself have been working with NGINX Unit (+ Lumen) for a while, but I still see PHP-FPM being used in new projects quite often. What follows is a lot of graphs, configuration settings, and my personal conclusions which do not pretend to represent universal truth in any way. This article compares the performance of several different web servers for a Laravel-based application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |