kainxspirits / laravel-pubsub-queue

A Laravel queue driver for Google PubSub.
MIT License
45 stars 36 forks source link

Allow consuming multiple subs #47

Closed rytisder closed 9 months ago

rytisder commented 3 years ago

MVP Solution 🤖 ❗

Simple wrapper command will allow consuming multiple subs. Currently, the package can only consume one sub via queue:work command (--queue does not change sub), because it's a static variable defined in config. 😞

Ideally, consuming and publishing should be decoupled and customizable, but we have what we have 😄 🚀 Agile and MVP FTW 📈

OPVL commented 3 years ago

So if I'm understanding this correctly, your changes would allow multiple subscribers to be utilised through your command that subsequently works multiple queues? eg: $:> artisan pubsub:consume product-stock-sub && artisan pubsub:consume product-data-sub

would spin up 2 separate queues at the same time that have different subs set?