How to post a command in Rabbit MQ that uses a Header Exchange with parameters? #2491
leonErhard
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi @leonErhard. You can configure Brighter to use the Headers exchange when you setup the public void ConfigureServices(IServiceCollection services)
{
services.AddBrighter(...)
.UseExternalBus(new RmqProducerRegistryFactory(
new RmqMessagingGatewayConnection
{
Name = "MyCommandConnection",
AmpqUri = new AmqpUriSpecification(
new Uri("amqp://guest:guest@localhost:5672")
connectionRetryCount: 5,
retryWaitInMilliseconds: 250,
circuitBreakerTimeInMilliseconds = 30000
),
Exchange = new Exchange("paramore.brighter.exchange", type: ExchangeType.Headers, durable: true, supportDelay: true),
DeadLetterExchange = new Exchange("paramore.brighter.exchange.dlq", durable: true, supportDelay: false),
Heartbeat = 15,
PersistMessages = true
},
... //publication, see below
).Create()
} Hope this helps! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was reading the docs about how to configure and post commands with External Brokers like RabbitMQ, but I notice there's no content about how to configure and send messages in an Header Exchange that has parameters to use the correct queue. How can I Post a command in a Header Exchange with parameters ?
Beta Was this translation helpful? Give feedback.
All reactions