Lab - Sender Load Balancing

Run the following commands in two separate terminals to start 2 senders connecting to NoB1 and NoB2.

Type the following command in the top left terminal.

java -jar ./bin/amazon-mq-client.jar -url $mesh1url -mode sender -type queue -destination workshop.queueA -name Sender-1

Type the following command in the top right terminal.

java -jar ./bin/amazon-mq-client.jar -url $mesh2url -mode sender -type queue -destination workshop.queueA -name Sender-2

Run the following command to start one receiver in the bottom left terminal connecting to NoB3.

java -jar ./bin/amazon-mq-client.jar -url $mesh3url -mode receiver -type queue -destination workshop.queueA 

This is a simple demonstration to have two senders on two brokers and one receivers on a different broker. Essentially you send messages to any brokers, and the messages can still be read from a different brokers. Try stopping and starting the senders to see how the reciever reacts. Make sure the senders and receivers running for the next exercise.