programmers continue to use "old language" in the "legacy system" to slowly improve.Of course, the financial system needs the "infrastructure" that they rely on to communicate and call each other, to provide the industry with"High concurrency, Easy expansion"Product, which seems to be the strength of Erlang.I've heard of "Erlang entering the financial system", which is probably the case.More specific (not very understanding):because Erlang has seven advantages, it facilitates the development of
C # Use RabbitMQ,1. Description
In the enterprise application system field, communication, integration and integration between different systems will be faced, especially when facing heterogeneous systems, such distributed calls and communication become more and more important. Second, the system usually has many places that do not have high real-time requirements but are time-consuming, such as sending text messages, email reminders, updating the art
need to be performed are very time consuming;
There is integration between heterogeneous systems;
It is generally possible to consider introducing Message Queuing. In the first case, Message Queuing is often selected to handle long-performing tasks. The incoming message queue becomes a buffer for message processing. The asynchronous communication mechanism introduced by Message Queuing allows both the sender and the receiver to continue executing the following code without waiting for
need to be performed are very time consuming;
There is integration between heterogeneous systems;
It is generally possible to consider introducing Message Queuing. In the first case, Message Queuing is often selected to handle long-performing tasks. The incoming message queue becomes a buffer for message processing. The asynchronous communication mechanism introduced by Message Queuing allows both the sender and the receiver to continue executing the following code without waiting for
RABBITMQ is a complete, reusable enterprise messaging system based on AMQP. He follows the Mozilla Public License open source agreement.
1, install rabbitmq,php extension
# yum Install PHP-PECL-AMQP rabbitmq-server epel-release
2, start
#/etc/init.d/rabbitmq-server Start
If you want to change what configuration, a
1, apt-get install Rabbitmq-server2. New Admin userRabbitmqctl Add_user Admin AdminRabbitmqctl set_user_tags Admin Administrator3, the installation of RABBITMQ monitoring management plug-in RABBITMQ management, plug-in Rabbitmq_management start successfully after the Web page can be
need to be performed are very time consuming;
There is integration between heterogeneous systems;
It is generally possible to consider introducing Message Queuing. In the first case, Message Queuing is often selected to handle long-performing tasks. The incoming message queue becomes a buffer for message processing. The asynchronous communication mechanism introduced by Message Queuing allows both the sender and the receiver to continue executing the following code without waiting for
initialization is done with the above configuration, and we can send messages using Rabbittemplate and rabbitadmin. This configuration is more complex 5 if you want to listen for RABBITMQ messages as well . Rabbitannotationdrivenconfiguration
This class is introduced in this class of rabbitautoconfiguration, which creates a bean that listens for message-related messages. Let's analyze this class in detail. 5.1. How to construct a class:
Incoming
need to be performed are very time consuming;
There is integration between heterogeneous systems;
It is generally possible to consider introducing Message Queuing. In the first case, Message Queuing is often selected to handle long-performing tasks. The incoming message queue becomes a buffer for message processing. The asynchronous communication mechanism introduced by Message Queuing allows both the sender and the receiver to continue executing the following code without waiting for
message Agent tool in RABBITMQ, as well as in the. NET, how to use RABBITMQ.An environment constructionFirst, because RABBITMQ is written using Erlang and needs to run on the Erlang runtime environment, you need to install the Erlang Runtime environment before installing RABBITMQ server, and you can download the installation files for the corresponding platform
, [{loopback_users, [Guest,guest]}}].User ManagementRABBITMQ server is mainly managed by Rabbitmqctl and rabbimq-plugins two tools, the following are some common functions.1). Server Startup and shutdownStart: rabbitmq-server–detachedClose: Rabbitmqctl stopIf there are multiple instances of a single machine, add –n after rabbitmqctlh to specify the name2). Plugin ManagementTo open a plugin: rabbitmq-plugins
post office, when you send mail sent to the mailbox, you can be sure that the postman will send the mail to the person who needs to receive the mail, will not send the wrong. In this analogy, RABBITMQ is a mailbox, and it can be understood as the post office and the postman, who are responsible for sending messages out and for receiving information.The main difference between the RABBITMQ and the post offi
Deploy the RabbitMQ service in CentOS 7GuideMQ is called Message Queue. MQ is a communication method for applications. Applications communicate by reading and writing messages in and out of the queue (for Application Data) without dedicated connections. Message transmission refers to the communication between programs by sending data in messages, rather than by directly calling each other. Direct calls are usually used for such remote process calls. Q
server\rabbitmq_server-3.2.3\sbin>)
View the list of users
Rabbitmqctl.bat list_users
Add Users
Rabbitmqctl.bat Add_user [username] [Password]
Delete User
Rabbitmqctl.bat Delete_user [Username]
Modify User Password
Rabbitmqctl.bat Change_password [username] [NewPassword]
Set up roles
Rabbitmqctl.bat set_user_tags [username] [Tag1],[tag2] ...Currently there are several tags,1) Super Admin (Administrator)You can access the admi
understood, the general meaning is to create good news, and then use the Publisher component to send messages, and this message by "Order record" to act as, when responding to this controller, Naturally, the Publisher component sends this event, which is eventually heard and processed by the listener that specifically listens to the event, and the following run up, postman simulates the method of requesting the controller as follows:
The above effect shows that the entire sending message and
Rabbitmq_managementStart Rabbitmq-service.bat as an administrator after installation is completeRabbitmq-service.bat stopRabbitmq-service.bat InstallRabbitmq-service.bat start4: Browser access localhost:55672 default account: Guest Password: Guest5. The rabbit also comes with a monitoring function.CMD into the sbin directory, type rabbitmq-plugins enable rabbitm
High Availability of rabbitmq Clusters
Rabbitmq is developed using Erlang and clusters are very convenient. Because Erlang is a distributed language, it does not support Server Load balancer itself.
The rabbit mode can be divided into the following three modes: single mode, normal mode, and image mode.
Single Mode: the simplest mode, not the cluster mode.
There is nothing to say.
Normal Mode: the default cl
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.