One Publisher Two Subscribers

Now we will see how topics support the fan-out pattern. Select the bottom right terminal, and start another receiver by running the command below, note this is the same command as before.

java -jar ./bin/amazon-mq-client.jar -url $url -mode receiver -type topic -destination demo.topicA

You should now see messages being received by both receivers (bottom left window, and bottom right). You should see that the messages going to each receiver are the same. This is expected behavior from the pub-sub pattern when using topics.