I have two separate message brokers set up in AWS which is AmazonMQ. I need a simple POC that publish messages to the message brokers and receive messages from broker using .net core application (it can be simple console application as well but written in .net core 2.1).
Task 1: One message should be simple message queue like "Hello World MQ" with Publish and Subscribe activities
Task 2: and another should be message with a file (jpg / pnd etc) to the message broker with Publish and Subscribe activities
Task 3: Another scenario would be if a particular message is published to a topic in first ActiveMQ, the same message should be relayed to the second ActiveMQ instance and vice versa.
Please comment the code