Posts Tagged #queues

Every article on the Techalyst blog tagged with #queues.

Fixing 'Duplicate entry for key failed_jobs_uuid_unique'

You spot this in your logs and it looks alarming. It reads like a database problem, but it is really a symptom of a queue misconfiguration. On...

3 mins read

Fair Queues: Balancing Job Processing Across Tenants in Laravel

Picture a multi tenant app with one shared queue. Most of the time it hums along. Then one tenant kicks off a bulk import and dispatches forty...

Laravel Queue Workers: How They Work

A queue worker sounds mysterious until you see what it actually is: a plain PHP process running in the background, pulling jobs out of storage...

4 mins read

Laravel Queues and Deployments

A queue worker is a long lived process that booted your application once and keeps it in memory. That is what makes it fast, and it is also wh...

3 mins read

Why Your Laravel Queue Workers Are Not Restarting

Restarting workers belongs in every deploy script, because workers run the code they booted with. The command is simple. But sometimes you run...

3 mins read

Why Your Queued Job Ran With Stale Data

A queued job is not normal code. It gets serialized, stored, shipped to another process, unserialized, and only then run, perhaps instantly, p...

4 mins read

Job Encryption in Laravel

When you dispatch a job, its payload is stored in plain, serialized text in your queue store. For most jobs that is fine. But if a job carries...

2 mins read

Conditionally Queueing Event Listeners in Laravel

Queued event listeners are great for moving slow work off the request. But there is an easy way to waste your queue: pushing a listener for ev...

3 mins read

Queue Job Batching in Laravel: How It Works

Job batching lets you dispatch a group of jobs to run in parallel across your workers, then run code when the whole group finishes or when one...

3 mins read

Running the Same Queued Job Multiple Times

Sometimes one job needs to run several times, spaced out, until a condition is met. The trick is a job that re-queues itself with release(). L...

3 mins read