Skip to content
Back to skills

Rabbitmq Queues

ASecurity

Use RabbitMQ reliably: durable exchanges, explicit acks, prefetch limits, dead-letter queues and confirms

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentbackend

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill rabbitmq-queues --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rabbitmq Queues?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rabbitmq Queues
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-rabbitmq-queues/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-rabbitmq-queues)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Use RabbitMQ reliably: durable exchanges, explicit acks, prefetch limits, dead-letter queues and confirms
profile: standard
tags: rabbitmq, amqp, messaging, backend
---

# RabbitMQ queues

Use when configuring AMQP exchanges, bindings, producers, or consumers with RabbitMQ.

## Topology and durability
- Declare exchanges and queues as `durable: true` and publish persistent messages (`persistent: true` / `deliveryMode: 2`) when broker restarts must not drop jobs.
- Bind queues through explicit direct, topic, or fanout exchanges instead of coupling publishers directly to default queue names whenever multiple consumers may subscribe later.
- Configure explicit dead-letter exchanges (`x-dead-letter-exchange`) and queue TTL/length bounds so poisoned messages never fill broker memory unboundedly.

## Producer reliability
- Enable **Publisher Confirms** (`confirmChannel` + `waitForConfirms`) for critical events rather than fire-and-forget writes, and reuse long-lived connections/channels cleanly (open channels per worker task, not per message).
- Reconnect cleanly with jittered backoff and re-assert topology on channel/connection close errors.

## Consumer correctness
- Never use `noAck: true` for work that cannot be lost. Call `basicAck` only after persistence succeeds, and `basicNack(..., requeue: false)` on malformed messages so they route to the DLQ instead of hot-looping.
- Always set `basicQos(prefetch)` (`10–50`, or `1` for heavy jobs) so fast prefetch does not starve sibling consumers or OOM a worker; keep handlers idempotent.

## Verify
Integration tests verifying publisher confirms, `prefetch` backpressure, negative-ack routing to the DLQ, and idempotent duplicate delivery handling.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.