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.
- Navigate to AmazonMQ section in your AWS console.
- Choose the **RabbitMQ **option
- 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.
- 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.
Click Next, Next and Complete the process and that will create the Broker for you. Broker creation process could take upto 10 - 15 minutes.
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.
- Go into the details of the newly created queue named demo-queue and now you can publish message to the queue.
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.