0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
A message broker is a middleman that allows different parts of the system to communicate without knowing about each other. Everyone is friends with the message broker, and the message broker is friends with everyone.
RabbitMQ is a popular open-source message broker that implements the AMQP protocol and I've personally been using it happily (well, mostly happily) for years. It's great because it's open-source, flexible, powerful, and (reasonably) easy to use. There are a few things we're going to use to interact with RabbitMQ:
Let's get Rabbit 3.13.0 (or higher) installed locally. For simplicity, we're going to use Docker If you're brand new to Docker, you might want to check out our Docker course first.
Run this command in a terminal to start RabbitMQ:
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.13-management
This will download and run the RabbitMQ server and ManagementUI until you kill it with Ctrl+C
, so you might want to do it in a separate terminal window.
The server itself is running on port 5672, but you won't interact with it in your browser, just through code. However, you can use the management UI in your browser. Open http://localhost:15672 and log in with the username guest
and password guest
.
If all is well, you should see that you have a single "Node" running in the "Overview" tab. You can shutdown the Docker container when you're done with ctrl+c
.
Run and submit the CLI tests using the Boot.dev CLI Tool while the docker container is still running.
The Boot.dev CLI requires you to be signed in to submit your solution!
Copy/paste one of the following commands into your terminal:
Run
bootdev run d61e0dc9-c622-499e-820c-a8e2deb84486
Submit
bootdev run d61e0dc9-c622-499e-820c-a8e2deb84486 -s
bootdev config base_url <url>
Run the CLI commands to test your solution.
basic authentication = guest:guest
.product_nameto be equal to
RabbitMQ
Using the Bootdev CLI
The Bootdev CLI is the only way to submit your solution for this type of lesson. We need to be able to run commands in your environment to verify your solution.
You can install it here. It's a Go program hosted on GitHub, so you'll need Go installed as well. Instructions are on the GitHub page.