PHP Architect · Vol 17, Issue 9 · September 2018
Education Station: Producer-Consumer Programming
by Edward Barnard
Producer-consumer programming is an excellent technique for offloading work from your main application. You can scale resources to meet increased demand. You can smooth out spikes by placing your backlog in a queue. You can set aside long-running tasks such as thumbnail generation. We’ll develop a simple CakePHP application that produces and consumes via a free CloudAMQP (RabbitMQ) account. Although we use CakePHP, the principles are universal to any modern PHP framework.
The full article is in PHP Architect Vol 17, Issue 9. Subscribe to read it and every new issue.