Using a Backup Broker Python Scripts @stevecope
Using a Backup Broker Python Scripts  @stevecope
Uploaded July 2025 | Updated November 2026, 3 hours ago
In this video tutorial I demo several python scripts that improve message delivery in a very easy and cost effective broker by using 2 MQTT brokers.
The first script uses a standby broker in the event that it cannot connect to the main or primary broker.
The other two scripts will send to the primary broker and switch to the standby in the event the primary fails they also utilise a queue to hold messages in the event that both brokers fail.
There is also a demo receive script that you can use to verify that all messages are received in the correct order.
This video is based on the project tutorial on the website .
steves-internet-guide.com/python-mqtt-client-backup-broker
demo scripts
buymeacoffee.com/steveh5u/e/231054
Using a Backup Broker Python Scriptstasmota control node redMQTT-SN broker and GatewayRunning Mosquitto on Docker -part2Node-Red Variables (Context data)- Part 2Using the Node-Red Template Node with Mustache FormattingThingsBoard- Create Devices Manually and Using Bulk ImportNode-Red -Store and Retrieve JSON Data from a SQLite DatabaseWorking with Binary Data and  Buffers In Node and Node-RedSubnetting and Subnet Masks ExplainedHow to Encode, Send and Receive JSON Data Using the Python MQTT ClientTasmota Device Network  Monitor And Control MQTT and node-red Project -Video2
Steve Cope |

Using a Backup Broker Python Scripts

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER