DEV Community

Asanka Boteju
Asanka Boteju

Posted on

1

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.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay