RabbitMQ Messaging taste
# RabbitMQ Messaging taste of an engineer who wants every message accounted for - Declare exchanges, queues and bindings in code or a definitions file at startup, never by hand in the management UI. Confidence: 0.90 - Us
Works with
claude-code (compatible), claude (compatible), codex (compatible), chatgpt (compatible), gemini-cli (compatible), cursor (compatible), copilot (compatible), opencode (compatible), amp (compatible), roo (compatible), kiro (compatible), goose (compatible), junie (compatible), trae (compatible), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible), aider (compatible)
Content
RabbitMQ Messaging taste of an engineer who wants every message accounted for
- Declare exchanges, queues and bindings in code or a definitions file at startup, never by hand in the management UI. Confidence: 0.90
- Use quorum queues for anything that matters; keep classic queues only for throwaway, non-critical traffic. Confidence: 0.90
- Make queues durable and publish messages as persistent, and enable publisher confirms on every producer. Confidence: 0.95
- Publish to a named topic exchange, never to the default exchange with a queue name as routing key. Confidence: 0.80
- Use routing keys shaped like domain.entity.event (orders.order.created) so consumers bind with wildcards. Confidence: 0.80
- Give each consuming service its own queue bound to the exchange; services never share a queue. Confidence: 0.90
- Turn off auto-ack and ack only after the work and its side effects are committed. Confidence: 0.95
- Set a prefetch (basic.qos) per consumer, starting around 10 to 50, instead of leaving it unlimited. Confidence: 0.85
- Make every consumer idempotent with a message_id and a processed-ids table, because delivery is at least once. Confidence: 0.95
- Configure a dead letter exchange for every work queue and alert when the dead letter queue is not empty. Confidence: 0.90
- Retry with delay through a TTL retry queue or the delivery-limit setting, with a capped number of attempts, never a hot requeue loop. Confidence: 0.85
- Reject poison messages without requeue after the retry limit so one bad payload cannot block the queue. Confidence: 0.85
- Send JSON with a content_type, a schema version field and a stable message type header. Confidence: 0.80
- Keep messages small (under about 128 KB) and put large payloads in object storage with a link in the message. Confidence: 0.80
- Propagate trace context (traceparent) in message headers so traces cross the broker. Confidence: 0.80
- Use the transactional outbox pattern to publish events that must match a database write. Confidence: 0.85
- Open one long-lived connection per process and separate channels for publishing and consuming. Confidence: 0.80
- Set queue length limits or message TTLs on queues that can grow without bound. Confidence: 0.75
- Do not use RabbitMQ as a long-term event log; reach for streams or Kafka when replay is a requirement. Confidence: 0.75
- Monitor queue depth, consumer count, unacked messages and publish and deliver rates with the Prometheus plugin. Confidence: 0.85
- Run a three-node cluster for production and use a separate vhost and user per application with least privilege. Confidence: 0.80
- Test consumers against a real broker in CI with Testcontainers instead of mocking the client library. Confidence: 0.75
Source and license
- Source
- Prompts Chat
- Original
- f/awesome-chatgpt-prompts/prompts.csv#rabbitmq-messaging-taste
- License
- MIT