RabbitMQ
Jump to navigation
Jump to search
broker Publish-Subscribe multi-protocoles : AMPQ, MQTT, STOMP ... RabbitMQ offre un mecanisme d'extension par des plugins (Erlang, ...)
Installation
Télécharger https://www.rabbitmq.com/download.html et installer
Configuration
Fichier de configuration à mettre dans ./etc/rabbitmq/rabbitmq.config
[ {mnesia, [{dump_log_write_threshold, 1000}]}, {rabbit, [{tcp_listeners, [5673]}]}, {rabbitmq_amqp1_0, [ {default_user, "guest"}, {protocol_strict_mode, false}]}, {rabbitmq_mqtt, [ {allow_anonymous, true}, {subscription_ttl, 1800000}, {prefetch, 10}, {tcp_listeners, [1883]} ]} ].
Démarrage
./start.sh
Tester (avec les CLI Mosquitto#Command_lines)
BROKER=test.mosquitto.org BROKER=localhost mosquitto_sub -h $BROKER -d -t test/rabbitmq/temp
BROKER=localhost mosquitto_pub -h $BROKER -d -t test/rabbitmq/temp -m "20" mosquitto_pub -h $BROKER -d -t test/rabbitmq/temp -m "25"