Skip to content

Sample showing how to use direct exchanges with routing keys on RabbitMQ

Notifications You must be signed in to change notification settings

MassTransit/Sample-Direct

Repository files navigation

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:

docker compose scale client=5

About

Sample showing how to use direct exchanges with routing keys on RabbitMQ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages