Skip to content
Back to skills

Public Rabbitmq Expert Base

ASecurity

RabbitMQ 知识基座。覆盖 Exchange Types、Queue & Routing、Durability、Dead Letter、Confirmations。供 devlab-rabbitmq-usage 通过 extends 继承。

  • 21 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 4, 2026
ai-agentsrailsgitdocumentation

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add seed-forge/harness-ai-kit --skill public-rabbitmq-expert-base --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Public Rabbitmq Expert Base?

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

Security grade badge for Public Rabbitmq Expert Base
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/seed-forge-public-rabbitmq-expert-base/badge)](https://www.skillsdirectory.com/skills/seed-forge-public-rabbitmq-expert-base)

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
---
name: public-rabbitmq-expert-base
description: RabbitMQ 知识基座。覆盖 Exchange Types、Queue & Routing、Durability、Dead Letter、Confirmations。供 devlab-rabbitmq-usage 通过 extends 继承。
---

# RabbitMQ Knowledge Base

> **Source**: Adapted from [mindrally/skills](https://github.com/mindrally/skills) (rabbitmq-development) and RabbitMQ official documentation.

## Exchange Types
| Type | Routing | Use for |
|------|---------|---------|
| Direct | Exact routing key match | Point-to-point, RPC |
| Topic | Wildcard pattern (`*.info`, `#`) | Flexible pub/sub |
| Fanout | Ignore routing key, broadcast to all bound queues | Broadcast notifications |
| Headers | Match on message headers (not routing key) | Complex routing rules |

- Default exchange (empty name): direct routing by queue name. Convenient but not recommended for production.
- Always declare exchanges explicitly; don't rely on auto-created exchanges.

## Queue & Routing
- Declare queues with `durable=true` for persistence across broker restarts.
- Bind queues to exchanges with routing keys.
- Use `x-message-ttl` for message expiration.
- Use `x-max-length` to cap queue size (drop or dead-letter oldest).
- Prefetch count (`basic_qos`): limit unacknowledged messages per consumer.

## Durability & Reliability
- `durable=true` on queue + `persistent` delivery mode on message = survive broker restart.
- Publisher confirms: `confirm_select()` → broker acknowledges message receipt.
- Consumer acknowledgments: `basic_ack` (success) / `basic_nack` (failure, requeue or dead-letter).
- Never use `auto_ack=true` in production (message loss on consumer crash).

## Dead Letter Exchange (DLX)
- Messages are dead-lettered when: rejected (`basic_nack` with requeue=false), TTL expired, or queue length exceeded.
- Configure with `x-dead-letter-exchange` and `x-dead-letter-routing-key` on the source queue.
- Use DLX for retry queues, error handling, and audit trails.
- Pattern: main queue → DLX → retry queue (with TTL) → main queue.

## Connection & Channel
- One connection per application; multiple channels per connection.
- Channels are lightweight; connections are expensive (TCP + AMQP handshake).
- Use connection pooling for multi-threaded applications.
- Set `heartbeat` interval (default 60s) to detect dead connections.

## Common Patterns
- **Work queue**: multiple consumers, round-robin dispatch, prefetch=1 for fair dispatch.
- **Pub/Sub**: fanout exchange, each subscriber has own queue.
- **RPC**: direct exchange, correlation_id + reply_to for request/response.
- **Delay/Retry**: DLX + TTL queue for delayed message processing.

## Guardrails
- Always use publisher confirms and consumer acknowledgments.
- Never use `auto_ack=true` in production.
- Always declare queues and exchanges explicitly.
- Set prefetch count to prevent consumer overload.
- Monitor queue depth and consumer lag.

Files in this skill

  • CHANGELOG.md686 B
  • SKILL.md2.8 KB
  • USAGE.md887 B
  • skill.json1.4 KB

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.

Comments

Loading comments…

Newsletter

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