PHP backend performance. Video from Badoo PHP Meetup # 3
Hello! Ready materials with Badoo PHP Meetup # 3, a traditional informal community meeting. Let me remind you, this time we discussed PHP backend performance problems and their solution in different companies.
The topic found an instant response among almost 200 guests - at each break the speakers were surrounded by a crowd with questions. The experiences were shared by Alexander Malashchitsky from Superjob, Pavel Murzakov pmurzakov from Badoo and Anton Shabovta zloyusr from Onliner, and Semyon Kataev from Avito and Mikhail Builov from Mamba also joined the panel discussion.
All materials - under the cut, useful viewing!
“Systematization of Optimization” - Alexander Malashchitsky, lead developer of the Platform team in Superjob
Alexander told how his team was looking for and found a systematic approach to finding and optimizing problem areas. He listed his mistakes and advised which metrics to consider in order to make the process effective.
Slides
“Fighting a shared-nothing model: PHP 7.4 preload, RoadRunner and others” - Pavel Murzakov, Badoo PHP Team Lead
A traditional PHP application (i.e., mod_php, php-fpm, etc.) executes all the code from scratch every time. This means that the entire bootstrap application happens again for each request. In the report, Pavel explained what resources were being spent on and told what to do to minimize the problem.
Slides
“When PHP performance is not enough. We port the code in C ”- Anton Shabovta zloyusr , enthusiast of asynchronous PHP (Onliner)
Anton described the protocol and implementation features of RoadRunner, described how he wrote a driver for PHP + RoadRunner in C. He compared the performance of PHP-FPM, RoadRunner and RoadRunner + C. And he was inspired by Badoo's corporate culture.
Slides
Panel discussion on performance
Representatives of Badoo, Avito and Mamba told how their companies solve the PHP performance problem: how the ecosystem is formed, which metrics are considered the main, how they choose between optimization and hardware and solve other problems.
Photos of the mitap are already on our Facebook and VKontakte . The entire mitap playlist is on the YouTube channel . Subscribe in order not to miss materials on the topic!
Come to our PHP chat , where the first announcements of events appear and interesting discussions arise. And subscribe to the Telegram channel .
That's all. Next time, we invite pkhshnikov to chat when it gets warmer. But if you wait too long and cold for spring, join the friendly Beer PHP Moscow community, they often gather and bask in pubs.