1
0
mirror of https://github.com/balkian/mqtt-poc.git synced 2024-12-21 20:38:13 +00:00
Proof of concept using different MQTT brokers
Go to file
J. Fernando Sánchez a1e0d0b4b0 First commit
2018-02-22 17:38:21 +01:00
golang First commit 2018-02-22 17:38:21 +01:00
python-broker First commit 2018-02-22 17:38:21 +01:00
python-clients First commit 2018-02-22 17:38:21 +01:00
docker-compose.yml First commit 2018-02-22 17:38:21 +01:00
mosquitto.conf First commit 2018-02-22 17:38:21 +01:00
README.md First commit 2018-02-22 17:38:21 +01:00

Testing three different MQTT brokers: mosquitto, hbmqtt (python) and volantmq (go).

The compose file sets up the three brokers, and two clients (a producer and a consumer).

Setup

To launch the three brokers, run:

docker-compose up mosquitto pybroker gobroker

The brokers can be configured to use different brokers with the MQTT_HOST environment variable (see below).

Mosquitto

docker-compose run -e MQTT_HOST=mosquitto consumer
docker-compose run -e MQTT_HOST=mosquitto producer

HBMQTT (python)

This broker is using BoltDB (an embedded key-value store) for persistence.

docker-compose run -e MQTT_HOST=pybroker consumer
docker-compose run -e MQTT_HOST=pybroker producer

VolantMQ (Go)

docker-compose run -e MQTT_HOST=gobroker consumer
docker-compose run -e MQTT_HOST=gobroker producer