Talk in English - US at WavePHP 2018
View Slides: https://www.dropbox.com/s/q459jferm9njh5h/Producer-Consumer-WavePHP.pdf?dl=0
Short URL: https://joind.in/talk/1b48c (QR-Code (opens in new window))
Producer/Consumer programming is a great 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.