https://github.com/masstransit/sample-direct
Sample showing how to use direct exchanges with routing keys on RabbitMQ
https://github.com/masstransit/sample-direct
direct-exchanges rabbitmq
Last synced: 12 months ago
JSON representation
Sample showing how to use direct exchanges with routing keys on RabbitMQ
- Host: GitHub
- URL: https://github.com/masstransit/sample-direct
- Owner: MassTransit
- Created: 2019-08-08T18:04:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T00:58:40.000Z (over 2 years ago)
- Last Synced: 2025-03-23T06:11:41.816Z (about 1 year ago)
- Topics: direct-exchanges, rabbitmq
- Language: C#
- Size: 10.7 KB
- Stars: 34
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RabbitMQ Direct Exchange Sample
This sample includes a server which listens for node events and publishes a simple message to the client using the routing key for that node.
The key take away is the approach to define a specific exchange name for the published message contract, and the publish topology which must be configured to ensure messages are routed via the direct exchange by routing key.
## Scaling the Clients
To see how additional direct exchanges are created, scale the client up:
```sh
docker compose scale client=5
```