Posts marked with “message queues”
Domain-Driven Resolutions
Happy New Year from everyone at PHP Architect. We genuinely hope you had a wonderful holiday season and are ready to do great things in 2022. We also hope that we have a small part in making 2022 great for you.
Education Station: Background Queues
Web developers, especially PHP developers, have it easy. We write applications that take a web request, do some work, and return some sort of response. When we do our job properly, we return that request as fast as possible. According to HubSpot, the first four seconds of a page load are the most important. After […]
Education Station: Producer-Consumer Programming Techniques
This month we have a “cookbook” of producer-consumer programming examples. We work through a complete example of timing production web page loads. We then consider techniques for message versioning, funneling, and feature migration.
Education Station: Producer-Consumer Programming
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 […]
Background Processing & Concurrency With PHP
As our web applications grow in complexity we often find the need for background processing. Sending email blasts, transforming data sets, and other long-running tasks are not the kinds of things you want to do in a web request. In this article, we cover how to build long-running daemons and how to scale up our […]
Artisinal: Queue Monitoring
Laravel Horizon is a beautiful and code driven configured dashboard for your Redis queues. You can easily monitor throughput, job run times, as well as job failures. Horizon utilizes asynchronous process signals which means your project should be on PHP 7.1 or higher. You _are_ running PHP 7.1, right? Horizon keeps your worker configuration in one simple file, so it’s easy to share with your coworkers or teammates via version control.


