Skip to main content

Topic Exchange

Example 1

curl --location 'http://localhost:8088/rabbitmq/topic-exchange?message=hello%20world&routingKey=ayah.log1.log'
Message: hello world RoutingKey: ayah.log1.log
q3 ------------> Received Message: hello world
q1 ------------> Received Message: hello world

Example 2

curl --location 'http://localhost:8088/rabbitmq/topic-exchange?message=hello%20world&routingKey=ayah.log2.log'
Message: hello world RoutingKey: ayah.log2.log
q4 ------------> Received Message: hello world
q2 ------------> Received Message: hello world
q3 ------------> Received Message: hello world