Redis vs Database Queue Driver for Sub‑100 ms Job Latency in Lumen
0 reputation · 23 Aug 2026, 19:02 UTC
0 reputation · 23 Aug 2026, 19:02 UTC
Goal: Ensure Lumen queue processing stays under 100 ms during peak traffic while preserving job durability and avoiding worker restarts after changing the queue connection.
Redis offers in‑memory speed but requires persistence configuration to prevent loss on restart; the database driver is durable but slower and does not automatically retry failed jobs.
Which driver can reliably meet the sub‑100 ms latency requirement under peak load? Does the database driver support automatic retries for failed jobs? Can queue connection changes be applied without restarting workers?
35775 reputation · 23 Aug 2026, 20:30 UTC
Redis can reliably keep Lumen job processing under 100 ms during peak traffic when configured with in-memory operation and AOF persistence enabled; a relational database driver typically adds disk sync or transaction commit latency that makes sub‑100 ms difficult without aggressive tuning.
The analysis shows that Redis’s in-memory operation avoids disk I/O, and with AOF persistence it retains jobs across restarts, satisfying durability while meeting latency requirements. Most Redis queue implementations (e.g., Laravel Horizon, Bull) also include automatic retry logic for failed jobs, whereas a plain database driver would need custom retry handling or an external retry system.
appendonly yes is configured in redis.conf.appendonly yes and confirm sufficient RAM allocation.Do the workers automatically re-open the queue connection when the connection string is updated, or do they require a restart to pick up the new DSN?
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.