Skip to content

Send messages or publish events to multiple destinations? #123

Open
@ashovlin

Description

@ashovlin

Describe the feature

Currently for configuration like the following:

services.AddAWSMessageBus(builder =>
{
    bus.AddSQSPublisher<ChatMessage>("https://sqs.us-east-1.amazonaws.com/012345678910/QueueA");
    bus.AddSQSPublisher<ChatMessage>("https://sqs.us-east-1.amazonaws.com/012345678910/QueueB" );
});

When sending a ChatMessage, the framework will send it to QueueA because it happened to be registered first.

https://github.com/awslabs/aws-dotnet-messaging/blob/db7703ff5eb4a17c7450ee55713b41c7cac2fc4a/src/AWS.Messaging/Configuration/MessageConfiguration.cs#L21


We're looking feedback on:

  1. Should sending a message or publishing a event to multiple destinations be supported? For the above example, the message would be published to both QueueA and QueueB?
  2. Alternatively if not supported, should configuration like the above be disallowed via an exception at startup? Or perhaps at least a LogWarning explaining the precedence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions