Skip to content

Commit 5d8cf21

Browse files
committed
Arbitrary Bindings doc in readme
1 parent ed583f0 commit 5d8cf21

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,21 @@ Be aware that queues providers are responsible for the proper calls to `setDeque
522522
(not `ConsumerInterface`). In case service providing queues implements `DequeuerAwareInterface`, a call to
523523
`setDequeuer` is added to the definition of the service with a `DequeuerInterface` currently being a `MultipleConsumer`.
524524

525+
### Arbitrary Bindings ###
526+
527+
You may find that your application has a complex workflow and you you need to have arbitrary binding. Arbitrary
528+
binding scenarios might include exchange to exchange bindings via `destination_is_exchange` property.
529+
530+
```yaml
531+
bindings:
532+
- {exchange: foo, destination: bar, routing_key: 'baz.*' }
533+
- {exchange: foo1, destination: foo, routing_key: 'baz.*' destination_is_exchange: true}
534+
```
535+
536+
The rabbitmq:setup-fabric command will declare exchanges and queues as defined in your producer, consumer
537+
and multi consumer configurations before it creates your arbitrary bindings. However, the rabbitmq:setup-fabric will
538+
*NOT* declare addition queues and exchanges defined in the bindings. It's up to you to make sure exchanges/queues are declared.
539+
525540
### Dynamic Consumers ###
526541

527542
Sometimes you have to change the consumer's configuration on the fly.

0 commit comments

Comments
 (0)