Blocking I/O process are born in PHP. Nevertheless, the concept of Async I/O are getting more and more mature and complete with the foundation of some Async I/O packages. From Generator in PHP 5.5 to Fiber in PHP 8.1, those features make original asynchronous style become a more synchronous way with the power of Coroutine.
Most of PHP developers used Generator only when they need to save memory resource while processing large amount of data. In this talk, we’re going to deep dive into Coroutine and learn more practical usages. We will also explore what Async I/O is and how Generator and Fiber are used in modern Async I/O projects. In the end, we will discuss some common issues when Async I/O are brought to our PHP projects.
About Albert Chen
Albert is a software architect, Laravel artisan and Swoole enthusiast in Taiwan. He’s always eager for modern web technologies and contributes to many open source projects.