gecche / laravel-multidomain

A Laravel extension for using a laravel application on a multi domain setting
MIT License
851 stars 107 forks source link

Supervisor work queue #86

Closed raulamoretti closed 2 years ago

raulamoretti commented 2 years ago

Hey guys,

Yours package is amazing! We have 25 domains run in a server, a small server. We have a elastic enviroment, but we have problems with queues, now we work with 3 queues by domain. Now we have a server with 25 * 3 queues running.

Someone has same problem? How unify queues and run job by domain?

Thanks!

Captura de Tela 2022-10-21 às 12 14 28
gecche commented 2 years ago

Hi, thanks for your feedback :)

I think that it is the normal behaviour of the package: you have N domains and so you have (N* 3) queue workers... I also have a production Laravel application with a lot of domains and queue workers... As pointed out in other issues, to my knowledge there is no way to "redirect" a job to a queue of another domain from within the Laravel App.

I think that if you have a server resource problem, the only thing you could do is to restructure your app, creating a second laravel application which only executes the queue jobs of the N domains of the main application communicating through an API. This is the only idea I thought.

Cheers

Giacomo