Laravel queue listeners on multiple machines on the same queue

Viewed 1958

I currently have a multi-server Laravel setup. I have multiple servers that are load balanced and share a database.

Each instance is also running a queue listener. I want to be able to dispatch two types of jobs:

  1. A job that is only run once (e.g send email, update a model, etc)
  2. A job that is run on ALL queue listeners (e.g delete a file from the filesystem)

The first I think is quite simple to implement, but unsure how to go about implementing the second one. Any ideas?

1 Answers
Related