In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to use MQ message queue middleware RabbitMQ, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
MQ message queuing Middleware-RabbitMQ
Message middleware is mainly used for decoupling between components, and the sender of the message does not need to know the existence of the message consumer, and vice versa.
1. Message Quene is an application-to-application communication method. One of the main means of asynchronous RPC. There is no need to call each other directly to communicate.
2. RabbitMQ (Open Source message Agent) is a MQ product that implements AMQP (application layer open standard advanced message queuing protocal provides unified messaging service) protocol.
3. Message producer Producer--- > message queue-> message consumer
4. Install the RabbitMQ:windows computer name in English and close the security software:
1) Erlang environment (programming language): opt_win64_17.3.exe
Http://www.erlang.org/download/otp_win64_17.3.exe
2) according to RabbitMQ service: rabbitmq-server-3.4.1.exe
5. Test after installation: open rabbitMQ command prompt
Enter rabbitmq-plugins enable rabbitmq_management to start the background service software, and enter 127.0.0.1 15672 in the browser, user name / password: guest/guest
6. Overview: displays message queue, node, path, port (AMQP port 5672, cluster port 25672, web management port 15672)
Connections:
Channels: data channel (persistent queues can be seen with a "D" on the management page and durable is true)
Exchanges: switch, type, you can add switch.
Click the Name of Exchange to go to the details page of Exchange, where you can Binding Exchange and Queue.
Test: after clicking into the switch, a column is Publish message. After sending it successfully, switch to Queues to see if you have received the message. Click on the ls queue to check, expand the Get message option, and click GetMessage (s) to get the message.
Test: https://blog.csdn.net/qq_41097820/article/details/88793329
Quenes: queu
Message
Ready: messages waiting for consumption in the queue
Unacked: the message in the queue waiting to be acknowledged (at this time the message has reached the consumer but has not been acknowledged)
Total: total number of messages in the queue
Admin: add users, etc., Tags refers to roles; add virtual host (associated with user access, acting as isolation. Each vhost is essentially a mini version of rabbitmq server, with its own queue, switch, binding and permission mechanism).
7. The smallest object in MQ: message = message descriptor + user data. The length of the queue definition restricts the length of the message. Queue: first-in, first-out FIFO, access to remote queues requires a "channel". Include relationships: messa
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.