Skip to content

Add possibility to create additional worker for own transports #108

@Wysselbie

Description

@Wysselbie

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions