Sometimes, our use of PHP grows beyond the typical request/response cycle of dynamic page generation. Unfortunately, the threaded nature of PHP - and the stateless nature of the server - betrays any efforts to expand our utilization of the server. Image processing, video rendering, APNS (Apple Push Notification Service) integration - any of these can easily take longer than is reasonable for a simple page request. Enter tools like message and job queues that empower daemonized PHP workers to handle data processing in the background. Yet further tools enable long-running event loops and asynchronous Promise-driven operations. PHP isn't multi-threaded, but that doesn't mean you're limited to a single-thread paradigm. I will demonstrate various use cases necessitating asynchronous operations, then delve into the code and the tools that make these systems work. Every attendee will leave armed with new ways to think about the management of large data jobs in PHP and an understanding of the tools they can use to make it happen.

Comments

Please login to leave a comment

Speaker was very knowledgeable and passionate about the topic

Great talk covering multiple methods of task management including the Gearman job queue, message queues like RabbitMQ, and the pthreads extension, and when to use them independently or together.

TJ Draper at 15:53 on 7 Feb 2020

A lot of good information about queues and background tasks.

Claude B. at 11:02 on 8 Feb 2020

Great speaker! Great talk!

Miril Terolli at 19:28 on 9 Feb 2020

Eric, as always a great talk with a lot of value on it.
Thank you!