Workshop 3
summary
Shows a hands‑on CakePHP workshop that installs a zero‑dependency queue (hpq zero-dependency queue), adds its migrations and dashboard, and runs demo jobs: an email job (templated and plain text) and a 120s progress job that demonstrates auto‑retry, costs/unique flags and cron‑driven workers (start one job/min, jobs ~3 min). Then adds a workflow using state machine with XML handlers, baking commands/conditions, wiring transitions for file processing/publish and tying queue tasks to states. Examples run end‑to‑end though the presenter hits Docker permission and cache glitches.
AI-written summary · about
chapters (16)
- 0:00Introduction to workshop
- 1:03Why queues matter in modern apps
- 3:57Introducing the Queue plugin
- 6:05Setting up the Queue plugin
- 9:18Verifying Queue plugin installation
- 12:22Queue worker configuration and execution
- 17:45Real-world use cases for queues
- 19:31Building a contact form with queue
- 25:37Rewriting contact form to use queue
- 34:03File upload and background processing
- 35:24Advanced queue usage with workflows
- 48:40State machine fundamentals
- 57:23Setting up a state machine
- 1:06:26State machine workflow demo
- 1:26:24Integrating state machine with files
- 1:48:01Q&A and closing remarks
