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

Comments are closed.

Lee Pelser at 12:13 on 23 Oct 2019

This talk was very informative. Enjoyed the comparison between the different libraries/applications

Nathan Pelton at 12:50 on 23 Oct 2019

It was cool to see the different async options available in PHP and how they’re used.

Speaker was great. Topic was great. Fast pace that could have used more then 60 minutes for all the content. The speaker really delivered.

Fantastic overview of the concepts surrounding asynchronous programming and how — and, perhaps more importantly, *when* — we can use them in PHP.

Jim Wigginton at 21:01 on 23 Oct 2019

Loved the talk! A few thoughts:

https://en.wikipedia.org/wiki/Dining_philosophers_problem might be a good example to give to discuss the problems of managing threads. Like having threads do their own independent things is easy enough but things can get really tricky when you want the threads to start talking to one another.

Also, https://www.swoole.co.uk/ might be something you might be interested in.

Of course, you did manage to speak for most of the allotted time so maybe adding additional topics isn't such a great idea lol

Tim Gallagher at 21:41 on 24 Oct 2019

Learned quite a bit. Loved finding out about P threads