Back to Vol 17, Issue 1

PHP Architect · Vol 17, Issue 1 · January 2018

Don't Wait; Generate!

by Ian Littman

Generators introduce sanity to the world of asynchronous, concurrent execution within a single process. In this article, we'll look at what generators are, how they show up in PHP, and how they make concurrency a bit more sane compared to callback and promise alternatives. Then, we'll see what a PHP application looks like when built on top of a generator-based framework instead of the typical "run one process per request and block on I/O" approach.

The full article is in PHP Architect Vol 17, Issue 1. Subscribe to read it and every new issue.

Subscribe
Ian Littman

About the author

Ian Littman

When he isn't building or maintaining web applications (usually APIs) for a variety of contract clients or helping organize AustinPHP, Ian's probably at, or biking to or from, one of Austin, Texas's 24-hour coffee shops, or opining some aspect of transportation infrastructure.

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →