Laravel Queue Workers in Docker: Why They Die & How to Fix It
Stop Laravel queue workers crashing in Docker: Supervisor config, --max-time, --max-jobs, memory leaks, OOM kills, and Horizon vs queue:work.
Engineering blog
Deep dives and practical tutorials on queues, APIs, MySQL, AI integrations and scalable deployments — each one written from a system I actually shipped.
Latest Article
Definitive production guide: Supervisor configuration, --max-time, --max-jobs, memory leak prevention, OOM kills, and Horizon in Docker containers.
September 27, 2026 · 15 min read
Read articleStop Laravel queue workers crashing in Docker: Supervisor config, --max-time, --max-jobs, memory leaks, OOM kills, and Horizon vs queue:work.
How the Observer pattern works in Laravel, with a real audit-logging example and when to use observers instead of MySQL triggers.
Build production AI features in Laravel 13 with the first-party AI SDK and OpenRouter: agents, streaming, queuing, failover and tests.
Laravel defer() vs queues explained: execution order, memory, transaction gotchas, and exactly when to use each in Laravel 11, 12 and 13.
A complete Laravel Sanctum tutorial: install it, protect API routes, issue and revoke tokens, and handle SPA and mobile authentication.
Every meaningful Laravel 13 feature: PHP attributes, Cache::touch(), the Reverb database driver, passkeys, the AI SDK and how to upgrade.
Compare Laravel realtime options in 2026 — Reverb, Pusher, Soketi, Ably and FCM — on cost, latency, self-hosting and Echo support.
Stop Laravel queue workers leaking memory and restarting. Configure --max-time, --max-jobs, Supervisor and Horizon the right way.
Integrate OpenAI and OpenRouter into Laravel: streaming responses, token cost control, retries and production error handling.
What's new in Laravel 12.39: the @hasStack Blade directive, route filtering, and core performance improvements worth upgrading for.
A practical Laravel performance guide: caching strategy, queue tuning, Redis, eager loading and database query optimisation.
Fix N+1 queries, add the right composite indexes, read EXPLAIN output and stop full table scans in your Laravel Eloquent code.
Containerise a Laravel application with Docker and deploy it to Kubernetes with zero downtime, health checks and autoscaling.
Build secure, scalable Laravel REST APIs with Sanctum: versioning, Spatie permissions, rate limiting, validation and consistent errors.
A practical guide to MVCS in Laravel: keep controllers thin by moving business logic into dedicated, testable service classes.
Sanctum does not use JWT by default. Here is how its opaque database tokens differ from JWT, and which one your API should use.
PSR-12, PSR-4 and practical PHP coding standards that improve readability, code review and team velocity in real projects.