java-messaging-rabbitmq

Configure RabbitMQ queues with acknowledgements, retries, and dead-lettering for Java applications.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/HZeroxium/cursorkit --skill java-messaging-rabbitmq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-messaging-rabbitmq
Source: https://github.com/HZeroxium/cursorkit/tree/main/lib/skills/java-backend/java-messaging-rabbitmq
Command: npx skills add https://github.com/HZeroxium/cursorkit --skill java-messaging-rabbitmq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

RabbitMQ queue patterns with acknowledgements, retries, dead-lettering, and ordering constraints. Use when building job queues, async workers, or diagnosing requeue/poison issues.

Core Features & Use Cases

  • Ack/nack/reject, prefetch, worker reliability.
  • Retry strategies: immediate retry, delayed retry via TTL + DLX, poison message handling.
  • Dead-letter exchanges and error taxonomy.
  • Publisher confirms, ordering constraints, test harness guidance for unit and integration.
  • Ordering constraints and consumer concurrency policy.

Quick Start

Set up a durable RabbitMQ queue with proper ack handling, publisher confirms, and a DLQ, then wire in a retry strategy and test with a failing job.

Frequently Asked Questions about java-messaging-rabbitmq

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle poison messages in RabbitMQ with Java consumers?

Delayed retry in RabbitMQ is achieved using TTL combined with dead-letter exchanges. Messages are sent to a waiting queue with a per-message TTL, then dead-lettered back to the original queue for a second delivery attempt after the delay.

What is the best way to guarantee message ordering in RabbitMQ?

Message ordering in RabbitMQ is maintained by configuring consumer concurrency and prefetch control. Single-active consumers with a prefetch count of one ensure sequential processing, though this limits throughput compared to parallel worker queues.

How do publisher confirms work in RabbitMQ for reliable Java messaging?

Publisher confirms in RabbitMQ provide asynchronous acknowledgment from the broker to the producer. They ensure messages successfully reached the broker, enabling reliable messaging orchestration and preventing silent message loss during publish.

Why does my RabbitMQ consumer keep requeuing failed messages?

RabbitMQ consumers requeue failed messages when ack, nack, or reject handling is misconfigured without a dead-letter exchange. Implementing a retry strategy with DLX wiring and poison message handling stops infinite requeue loops.

Can I use prefetch control to improve async worker throughput in RabbitMQ?

Prefetch control in RabbitMQ limits unacknowledged deliveries per consumer, balancing load across async workers. Setting an appropriate prefetch count prevents consumers from being overwhelmed and optimizes worker reliability.