The Thought Lab: Non-blocking I/O With PHP-MIO


The Thought Lab: Non-blocking I/O With PHP-MIO

When reading from or writing to a stream PHP usually blocks until the operation is complete, however, a stream’s blocking mode can be set such that operations on streams don’t block and instead return immediately. Used correctly this technique can vastly improve performance in networked applications. This comes at the price of increased complexity and some would argue a more confusing program flow.

Related Posts