(8)Spring Boot 与 RabbitMQ

A, the Spring AMQP Introduction   text

          The Spring AMQP project applies Spring ’s core concepts to the development of AMQP-based messaging solutions. It provides a "template" as a high-level abstraction for sending and receiving messages. It also provides support for message-driven POJOs through "listener containers". These libraries facilitate the management of AMQP resources and promote the use of dependency injection and declarative configuration. In all these cases, you will see similarities to JMS support in the Spring Framework.

The project includes two parts; spring-amqp is the basic abstraction , and spring-rabbit is the RabbitMQ implementation.

(1) Features

  • Listener container for asynchronous processing of inbound messages
  • RabbitTemplate for sending and receiving messages 
  • RabbitAdmin is used to automatically declare queues, exchanges and bindings

Second, Spring AMQP (RabbitMQ) Spring Boot automatic configuration

(1) RabbitMQ's message model

                         

Guess you like

Origin blog.csdn.net/qq_41893274/article/details/104860181