aws-sdk-java-v2-messaging

Automate AWS SQS and SNS messaging for Java applications.

322|37|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-messaging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-sdk-java-v2-messaging
Source: https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/skills/aws-java/aws-sdk-java-v2-messaging
Command: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-messaging

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill covers AWS Messaging patterns (SQS and SNS) with Java 2.x, including queues, topics, publishing, subscriptions, and Spring Boot integration.

Core Features & Use Cases

  • SQS queue management and message processing
  • SNS topic creation and publishing
  • Dead-letter queues, FIFO queues, and pub/sub patterns
  • Spring Boot integration

Quick Start

Create a queue/topic, publish a message, and set up a basic consumer.

Frequently Asked Questions about aws-sdk-java-v2-messaging

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

FAQPage Schema
How do I send and receive messages with AWS SQS in Java?

SQS messaging in Java uses the AWS SDK v2 to create queues, send messages to them, and poll for incoming messages. Set up a client, create or reference a queue, use SendMessageRequest to publish and ReceiveMessageRequest to consume, then process or delete messages from the queue.

What's the difference between SQS and SNS, and when do I use each?

SQS is a queue for point-to-point messaging where consumers pull messages; SNS is a pub-sub service where publishers push to multiple subscribers simultaneously. Use SQS for task queues and guaranteed delivery; use SNS for event broadcasting to many endpoints.

Can I use FIFO queues with SQS in Java, and what do they do?

FIFO queues guarantee message ordering and exactly-once delivery in SQS. Java applications configure FIFO by creating queues with .FifoQueue(true) and providing a MessageDeduplicationId and MessageGroupId for each message to prevent duplicates and maintain sequence.

How do I integrate AWS messaging with Spring Boot?

Spring Boot integration with SQS and SNS uses spring-cloud-aws or direct SDK v2 configuration. Configure credentials and endpoints in application properties, inject SqsClient or SnsClient beans, and use them in service classes to send, receive, or publish messages.

What are dead-letter queues and how do I set them up in Java?

Dead-letter queues (DLQs) capture messages that fail processing after a set number of retries. In Java, create a separate queue for failed messages and configure the main queue's RedrivePolicy to point to the DLQ, then monitor and handle problematic messages separately.

How do I test SQS and SNS messaging locally in Java?

Test messaging locally using LocalStack or Testcontainers, which provide containerized AWS services. Point your Java client to the local endpoint, create test queues and topics, and verify send, receive, and publish operations without hitting live AWS.