🎯 Goal of the next phase¶
You will:
- Understand Exchange → Queue → Binding
- Send a message without writing code
- Visually see messages flow in RabbitMQ UI
This builds the mental model before code.
✅ STEP 1: Open RabbitMQ UI¶
👉 http://127.0.0.1:15672 Login:
✅ STEP 2: Create an Exchange¶
- Go to Exchanges tab
- Click Add a new exchange
- Fill:
| Field | Value |
|---|---|
| Name | order_exchange |
| Type | direct |
| Durable | ✅ |
| Auto delete | ❌ |
| Internal | ❌ |
- Click Add exchange
📌 Why direct?
Exact routing → easiest to understand first.
✅ STEP 3: Create a Queue¶
- Go to Queues and Streams
- Click Add a new queue
- Fill:
| Field | Value |
|---|---|
| Name | order_queue |
| Durable | ✅ |
| Auto delete | ❌ |
| Exclusive | ❌ |
- Click Add queue
✅ STEP 4: Bind Exchange → Queue¶
- Open
order_exchange - Scroll to Bindings
- Under Add binding from this exchange
- Fill:
| Field | Value |
|---|---|
| To queue | order_queue |
| Routing key | order.created |
- Click Bind
📌 This means:
✅ STEP 5: Publish a Test Message (UI)¶
- Open Exchanges → order_exchange
- Scroll to Publish message
- Fill:
| Field | Value |
|---|---|
| Routing key | order.created |
| Payload | { "orderId": 1, "item": "Laptop" } |
| Payload encoding | string |
- Click Publish message
✅ STEP 6: Verify Message in Queue¶
- Go to Queues
- Click order_queue
You should see:
🎉 Message is safely stored in queue
✅ STEP 7: Consume Message from UI (simulate consumer)¶
- Inside order_queue
- Scroll to Get messages
-
Set:
-
Messages:
1 - Ack mode:
Manual ack - Click Get message(s)
You’ll see your message body.
🧠 What you just learned (important)¶
| Concept | You did |
|---|---|
| Exchange | Created |
| Queue | Created |
| Binding | Connected |
| Routing key | Used |
| Producer | UI publish |
| Consumer | UI get |
| Ack | Manual |
This is exactly how real systems work, just without code.