Async requests & reactive responses with php-fpm

By Holger Woltersdorf

Elevator Pitch

How do you execute and manage PHP code asynchronously? cURL, shell_exec() or with pthreads? All you need is built right into and with PHP. Learn how to use php-fpm pools for managed asynchronous PHP processes.

Description

There are many approaches to execute PHP sub-tasks asynchronously or to parallelise PHP execution. While some solutions require extra extensions, individual PHP builds or a lot of process control management, this talk will show you how to configure and use the built-in PHP FastCGI Process Manager (php-fpm) to execute requests asynchronously in an isolated, tunable process pool and eventually handle their responses in a reactive way.

Notes

This talk was given on PHP user group meetups in Prague, CZ and Dresden, DE.