Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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