CreateRabbitMqBindings¶
Creates RabbitMQ bindings between exchanges and queues or between exchanges by using the configured binding definitions.
What It Does¶
Creates RabbitMQ bindings through the AMQP connection defined in the probe configuration.
This is useful when the scenario needs to wire exchanges to queues or exchanges before traffic starts flowing.
YAML Example¶
Sessions:
- Name: ProbeSession
Probes:
- Name: CreateRabbitMqBindingsProbe
Probe: CreateRabbitMqBindings
ProbeConfiguration:
UseGlobalDict: true
Host: rabbitmq.local
Port: 5672
Username: guest
Password: guest
VirtualHost: /
Bindings:
- SourceName: orders.exchange
DestinationName: orders.queue
BindingType: ExchangeToQueue
RoutingKey: orders.created
What This Configuration Does¶
This probe creates one binding from orders.exchange to orders.queue using the routing key orders.created.
After it runs, messages published to the exchange with that routing key can be routed into the queue.
Global Dictionary Behavior¶
With UseGlobalDict: true, missing broker connection fields are first resolved from RabbitMq/AmqpDefaults, and missing Bindings can then be resolved from RabbitMq/Recovery/Bindings when a paired delete probe saved recovery state earlier in the same execution and session.
Any key that is present locally still wins, even when the local value is false, 0, an empty string, or an empty collection. This makes the probe useful when you want to recreate bindings after deleting and later restoring a topology slice. When UseGlobalDict is false, the probe ignores both aliases and keeps the current local-only behavior.