RabbitMQ is an open-source implementation of AMQP (Advanced Message Queue) developed by erlang. The emergence of AMQP actually meets the needs of the masses. Although there are many public standards (such as cobar iiop or SOAP) in the world of synchronous messaging ), however, this is not the case in asynchronous message processing. Only large enterprises have some commercial implementations (such as Microsoft's MSMQ and IBM's Websphere MQ). Therefore, in, cisco, Redhat, iMatix, and others jointly developed the AMQP public standards.
RabbitMQ is a complete and reusable enterprise message system based on AMQP. By default, rabbitmq is used as the broker in django + celery.
Install
1. windows installation
Mainly for program testing.
Download and install erlang first, download address: http://www.erlang.org/download.html
Download and install rabbitmq after installation, download address: https://www.rabbitmq.com/install-windows.html
As with the installation steps of common programs, start the service in "rabbitmq server" in the start menu after the installation is complete.
2. ubuntu installation
Compile the source configuration file/etc/apt/sources. list and add the following content.
Deb http://www.rabbitmq.com/debian/ testing main
Add trusted public key
Wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
Sudo apt-key add rabbitmq-signing-key-public.asc
Install
Sudo apt-get update
Sudo apt-get install rabbitmq-server
Add username and password
By default, rabbitmq has a guest user, but it can only be accessed locally without a password. If rabbitmq is installed on other hosts, the user name and password must be used. The following command creates a user and a vhost.
Sudo rabbitmqctl add_user myuser mypassword
Sudo rabbitmqctl add_vhost myvhost
Sudo rabbitmqctl set_permissions-p myvhost myuser ".*"".*"".*"
You can use it after adding it. I am not familiar with this. django + celery + rabbitmq is enough for the time being.