Open
Description
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.
We're looking feedback on:
- 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
andQueueB
? - 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.