spring-amqp

Configures Spring AMQP messaging with RabbitTemplate, @RabbitListener, retries, and DLQ handling.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/ririnto/sinon --skill spring-amqp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-amqp
Source: https://github.com/ririnto/sinon/tree/main/plugins/spring/skills/spring-amqp
Command: npx skills add https://github.com/ririnto/sinon --skill spring-amqp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Facilitates building robust Spring AMQP messaging components by providing patterns for producers, consumers, and reliable delivery, including topology management, message conversion, retry, and dead-letter handling.

Core Features & Use Cases

  • Producer/Consumer wiring: Use RabbitTemplate and @RabbitListener to implement common messaging flows with queue/exchange topology.
  • Reliability patterns: Dead-lettering, retries, and error handling are codified to reduce manual wiring.
  • Observability and testing: Guidance on testing strategies, metrics, and broker configuration for multi-broker setups.
  • Use Case: When integrating with Spring AMQP in a microservice to publish events and consume messages with safe retry and DLQ handling.

Quick Start

Configure your Spring Boot app with spring-boot-starter-amqp and implement a producer with RabbitTemplate and a listener with @RabbitListener to publish and receive messages.

Frequently Asked Questions about spring-amqp

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

FAQPage Schema
How do I configure a dead-letter queue in Spring AMQP?

Configure dead-letter queues in Spring AMQP by defining topology contracts that route failed messages to DLQs. The framework codifies reliable retry and error handling boundaries to reduce manual wiring for safe message delivery.

What is the best way to implement a request-reply pattern with RabbitTemplate?

RabbitTemplate supports request-reply patterns in Spring AMQP messaging by using a deterministic converter strategy. This ensures coherent contracts between producers and consumers during synchronous messaging flows.

How do I set up a multi-broker RabbitMQ configuration in Spring AMQP?

Set up multi-broker RabbitMQ configurations in Spring AMQP using explicit broker settings. This approach enforces a deterministic converter strategy and stable queue and exchange contracts across multiple distinct broker instances.

How do @RabbitListener annotations handle retries and message conversion?

@RabbitListener handles retries and message conversion by applying a deterministic converter strategy and codified retry patterns. This establishes clear failure handling boundaries for consumers processing messages from queues.

Can I use Spring AMQP for simple publish and subscribe messaging?

Yes, Spring AMQP supports simple publish and subscribe messaging scenarios. You can use RabbitTemplate for producing events and @RabbitListener for consuming them, wired through stable queue and exchange topology contracts.

Why are my Spring AMQP message converters failing during broker configuration?

Spring AMQP message converters fail during broker configuration if the deterministic converter strategy is not properly enforced. Ensure your queue and exchange contracts are stable and explicitly defined to maintain clear failure handling boundaries.