RabbitMQ
AMQP message broker with the management UI enabled.
- queue
- messaging
Guide: Connect to a database from outside
Run it
briq_run({
recipe: "rabbitmq",
params: {
"version": "4",
"size": "small",
"diskGb": 1
},
wait: true
})curl -X POST https://api.briq.cloud/v1/briqs \
-H "Authorization: Bearer $BRIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipe": "rabbitmq",
"params": {
"version": "4",
"size": "small",
"diskGb": 1
},
"wait": true
}'
# → { "briqs": [{ "id": "bq_…", … }], "outputs": { "AMQP_URL": "…" }, … }
# ... when done, for each briq id
curl -X DELETE https://api.briq.cloud/v1/briqs/<id> \
-H "Authorization: Bearer $BRIQ_API_KEY"Parameters
| Name | Type | Options | Default |
|---|---|---|---|
| version | enum | 3.13, 4 | "4" |
| size | enum | nano, small, medium, large | "small" |
| diskGb | number | — | 1 |
Outputs
Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.
- AMQP_URL
- amqp://app:<RABBITMQ_PASSWORD>@rabbitmq.<stack>.internal:5672
- RABBITMQ_MANAGEMENT
- http://rabbitmq.<stack>.internal:15672
- RABBITMQ_USER
- app
- RABBITMQ_PASSWORD
- <RABBITMQ_PASSWORD>
What it runs
| Briq | Image | Ports | Size | Volume |
|---|---|---|---|---|
| rabbitmq | rabbitmq:4-management-alpine | 5672, 15672 | small | 1 GB at /var/lib/rabbitmq |
When to use it
- Your services speak AMQP (Celery, MassTransit, amqplib, Spring AMQP) and need real acks, prefetch and dead-lettering.
- You want the management UI or HTTP API to inspect queues during a test.
Tips
- Boot takes 30 to 60 seconds on
small;briq_runwaits for it. - Declare exchanges and queues from code, so tests see what production sees.
- Inspect queues:
briq_execwith["rabbitmqctl", "list_queues", "name", "messages"]. - Workers outside briq:
briq_exposeport 5672 withprotocol: "amqp"gives anamqps://URL. See Connect to a database from outside. - Management UI for a human:
briq_run({ recipe: "rabbitmq", expose: "private" }). - Long queues: messages that outgrow memory go to the volume, which starts small; pass
diskGbfor more. Set it when the briq is created, and it counts toward your plan's disk.