Skip to content

Define strategy for Message Handling Components when several handlers for same QualifiedName are subscribed #3733

@MateuszNaKodach

Description

@MateuszNaKodach

Enhancement Description

Define what should happen (or should it be checked on boot time?) if someone define many handlers for same Command/Query/Event in the HandlingComponent.
The SimpleCommandBus and SimpleQueryBus throw a DuplicateCommandHandlerSubscriptionException and DuplicateQueryHandlerSubscriptionException respectively at this moment. Perhaps the message handling components should too?

Current Behaviour

Now it's possible and there is no exception.

Wanted Behaviour

To be defined.

Possible Workarounds

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority 2: ShouldHigh priority. Ideally, these issues are part of the release they’re assigned to.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions