Publishing
Configuring subscriptions through Amazon SQS queues is done with the ToSqsQueue()
extension method shown in the example below:
cs
var host = await Host.CreateDefaultBuilder()
.UseWolverine(opts =>
{
opts.UseAmazonSqsTransport();
opts.PublishMessage<Message1>()
.ToSqsQueue("outbound1")
// Increase the outgoing message throughput, but at the cost
// of strict ordering
.MessageBatchMaxDegreeOfParallelism(Environment.ProcessorCount);
opts.PublishMessage<Message2>()
.ToSqsQueue("outbound2").ConfigureQueueCreation(request =>
{
request.Attributes[QueueAttributeName.MaximumMessageSize] = "1024";
});
}).StartAsync();