Coroutines, Promises and Event Loops, Oh My! Following the Asynchronous Brick Road with PHP

Simon Frost


In this talk, I’ll discuss how to apply asynchronous programming techniques to solve common problems in Magento.

After a quick introduction to the basics of asynchronous programming, I’ll show you how frameworks like ReactPHP and AmPHP can take PHP beyond the traditional ‘run the script, execute some code and die’ paradigm and demonstrate some novel and unique ways that asynchronous programming can be used in your Magento store.

Finally I’ll conclude with a real-world example of how I used these techniques in a Magento 2 project to improve the performance of an API integration responsible for importing two million custom prices every day!

Asynchronous programming will change the way you think about developing applications and make you look at PHP again through fresh eyes.

About Simon

Simon Frost is a two-time Magento certified Senior Backend Magento Engineer and a Zend Certified PHP Engineer. He started building websites in the days of <font> tags, when Netscape Navigator was still a thing. He has over a decades’ worth of experience working with PHP, six of them working with Magento. He has worked with different sized agencies from SMEs to multi-national corporates, developing projects ranging from small brochureware sites to large API integrations with leading ERP and CRM systems responsible for importing millions of records per day.

He currently develops Magento 2 integrations and developer tools at Magium Commerce, a UK-based agency which concentrates solely on Magento. He also presents frequent talks at his local Magento York Meet Up and can be found answering questions from the Magento community on Magento Stack Exchange under the moniker ‘ProcessEight’. Perfect! He lives in York and runs marathons to relax.

Back to all Speakers