This document discusses scaling MQTT to support millions of clients. It outlines challenges in scaling MQTT including huge numbers of TCP connections, security overhead from TLS, statefulness of MQTT sessions, and high availability requirements. It then presents a scalable MQTT reference architecture using HiveMQ clustering to address these challenges by enabling linear scalability, high availability, and elimination of single points of failure through a masterless broker cluster architecture.