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.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

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

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay