DEV Community

Asanka Boteju
Asanka Boteju

Posted on

Steps for Creating a Simple Amazon MQ Instance in AWS Console and Publishing Messages to it.

In this article I am going to describe how you can get started with AmazonMQ in AWS. AmazonMQ offers two favors of Message Brokers, ActiveMQ and RabbitMQ flavors for you to choose from depending on your use case.

In this article we will be focusing mainly on RabbitMQ as a message broker.

Lets begin...

  1. Navigate to AmazonMQ section in your AWS console.

Image description

  1. Choose the **RabbitMQ **option

Image description

  1. Select Non-Cluster mode since this is for the article. For production use case you might want to use cluster mode or non-cluster mode depending on the business problem you are trying to solve.

Image description

  1. Specify the Broker name, select the broker instance size and the username and password that you will use to log into the RabbitMQ instance later.

Image description

  1. Click Next, Next and Complete the process and that will create the Broker for you. Broker creation process could take upto 10 - 15 minutes.

  2. Once the Broker is created and up and running. go to Broker details page's Connection section and copy the RabbitMQ web console URL.

Navigate to the RabbitMQ web console URL in a browser window and login using the credentials you gave during the Broker creation.
Once successfully logged into to RabbitMQ console. Navigate to Queues section and create a new queue names demo-queue.

Image description

  1. Go into the details of the newly created queue named demo-queue and now you can publish message to the queue.

Image description

When you create and integrate the subscribers to the message queue then they will receive and process messages as and when you publish messages.

In the next article I will cover how you can integrate the AmazonMQ's RabbitMQ blocker with Serverless Lambda functions and how you can manage credentials in a secure manner.

Top comments (0)