RabbitMQ message queue begun

RabbitMQ

    • What is? Messaging middleware
    • The role? Decoupling module for distributed project
    • usage?
      1. Create a queue
      2. Create a message and set the factory (producer additional step: creating a message)
      3. Create a connection channel
      4. Statement queue
      5. Manufacturer: send a message to close the channel, and then close the connection; Consumer: listen queue
    • Switch type? Fanout, routing complementary header, topics

 

Experience

  1. In rabbitmq source, and I only see four types of switches, and did not see the so-called Six operating modes, I do not know who defined forget to six working modes it.
  2. When routing key in the production or consumption of the end-side binding once is enough. Binding only the production side, the first production line after the end of the consumer can receive the message.
  3. RabbitMQ can integrate with springboot

 

Guess you like

Origin www.cnblogs.com/nimoc/p/11429753.html