Skip to content

Kashish1994/rabbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

rabbit

Dead-letter-queue-example

RabbitMQ integration made easy with Spring-boot AMQP.

Build & Run Consumer & Producer-      


a.) mvn clean package spring-boot:repackage     
b.) java -jar -Dserver.port={port} /target/{jarFileName}     

Note - Default port is 8080. Please change it in any one app.

Queues -
a.) sms (Receives messaged for processing)
b.) sms-dead-letter-queue (Contains messages rejected by sms queue, will be persisted in RMQ until the messages are purged explicitly)

Features -
1.) Setup Dead Letter Queue and exchange to monitor unprocessed or failed messages.
2.) Messages those were not processed in queue(sms) will end up in Queue name (sms-dead-letter.queue).
3.) Easy MQ connection factory , retry message logic, setup max attempts for a particular message.

Message Request = http://localhost:8080/push/sms?message=Hello-Rabbit

Invalid Message Request = http://localhost:8080/push/sms?message=RAD (This message must end up in sms-dead-letter-queue)

About

Dead-letter-queue-example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages