PHP Architect · Vol 23, Issue 10 · October 2024
Job Queue
The Back Office building blocks (Command, Job, Model, table) use Laravel Jobs, which, in turn, use queue request tables. Here, we are setting up a minimal configuration with Liquibase table management, queue request table, Laravel job, and Laravel Command to dispatch that job. We explicitly use a "boilerplate" approach that allows you to quickly focus on what's specific to the job/process in question. Finally, we show the "dispatch self" technique, allowing the job to iterate through extended input.
The full article is in PHP Architect Vol 23, Issue 10. Subscribe to read it and every new issue.