DEV Community

Salad Lam
Salad Lam

Posted on

About Spring AMQP

The discussion is based on following library

  • Spring Framework 6.1.8
  • Spring Boot 3.3.0
  • Spring AMQP 3.1.5

Components

Class Function
RabbitAdmin Exchange, queue and binding operation
Queue Represent definition of queue
RabbitConnectionDetails Connection information
RabbitConnectionFactoryBeanConfigurer Bean for configure connection factory
CachingConnectionFactoryConfigurer Bean for configure CachingConnectionFactory
CachingConnectionFactory Connection factory
RabbitTemplateConfigurer Bean for configure RabbitTemplate
RabbitTemplate Send and receive message
RabbitMessagingTemplate Send and receive in Spring Messaging

Auto-configuration class

Class org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration

Operation run in which thread

Send message to exchange by RabbitTemplate/RabbitMessagingTemplate

Current thread due to synchronous operation.

Receive message from queue by RabbitTemplate/RabbitMessagingTemplate

Current thread due to synchronous operation.

Queue consumer registered by RabbitListener annotation

Consumer under the thread name org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#X-X.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay