-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Improvement
Additional array in existing/new property in the Store spec, that launches an additional worker for specified transport: bin/console messenger:consume order_export mails.
Reason
In some projects transports are added to change priorities of messages or scale respective workers up for those specific messages.
Some have Symfony configs like this:
framework:
messenger:
transports:
async: '%env(MESSENGER_TRANSPORT_DSN)%'
mails: '%env(MESSENGER_TRANSPORT_MAILS_DSN)%'
order_export: '%env(MESSENGER_TRANSPORT_ORDER_DATA_DSN)%'
routing:
'Symfony\Component\Mailer\Messenger\SendEmailMessage': mails
'AcmeIntegrations\OrderExport\Messenger\BulkOrderExportMessage': order_export
Information
It would be enough for an MVP to set replicas to 1.
Definition of Done
StoreSpec is extended by a new array or object field, that lets the operator create one Deployment/ReplicaSet/StoreExec for every configuration in that new array/object. This new resource executes a bin/console messenger:consume <TRANSPORTS> with respectively given transports.