Abstract

BifroMQ is a Java-based, high-performance, distributed MQTT broker with native multi-tenancy support, designed for large-scale connections and message delivery.

Proposal

BifroMQ is a high-performance MQTT broker designed to serve as a reliable middleware component across diverse application architectures. It prioritizes efficient performance and adaptable integration to meet a range of operational needs. The project offers the following core features:

  • Full support for MQTT 3.1/3.1.1/5.0 standards.
  • Built-in multi-tenancy support, providing workload isolation and efficient shared resource management.
  • Decentralized cluster architecture that operates without an external registry or discovery mechanism, reducing operational complexity.
  • Distributed subscription routing system enabling horizontal scalability.
  • Integrated distributed storage engine tailored for MQTT workloads, removing the need for external storage dependencies.
  • Supports Single Node, Standalone Cluster, and Independent Workload Cluster deployments for diverse use cases.

Background

BifroMQ is derived from the technical architecture developed by Baidu since 2017 for operating a multi-tenant MQTT-based cloud service. After years of practical application and refinement, the underlying technology was separated and open-sourced in July 2023 under the name "BifroMQ". It builds on this experience to deliver a reliable solution with native multi-tenancy support. For more details, visit:

Website: https://bifromq.io/

GitHub: https://github.com/bifromqio/bifromq

Rationale

MQTT is a widely adopted protocol for IoT applications, and its usage is expected to expand further with the growth of AI-driven workloads. As the core component in IoT architectures, the MQTT broker manages persistent connections, processes message flows, and ensures efficient distribution across devices and services. Its stability directly affects system reliability, responsiveness, and availability, making it a critical piece of infrastructure.

Challenges of Existing Open-Source MQTT Broker Implementations

  • Limited multi-tenancy: Most brokers require dedicated instances per tenant, increasing operational overhead.
  • Scalability limitations: Most cluster-enabled open-source brokers use full-node replication for subscription routing, limiting scale to single-node memory capacity.
  • Storage complexity: Existing Open-Source brokers either rely on external databases for state persistence, introducing workload impedance mismatches, or use basic local storage without cluster replication, limiting reliability.

Why BifroMQ?

BifroMQ addresses these challenges through: 

  • Native multi-tenancy: Isolates workloads within shared resources.
  • Decentralized clustering: Simplifies operations and boosts scalability.
  • Distributed subscription routing: Supports horizontal scaling without memory constraints.
  • Built-in distributed storage engine: Tailored for MQTT workloads, improving performance and reliability.
  • Extensibility: Provides robust plugin and integration

These features enable BifroMQ to deliver an efficient, scalable, and adaptable MQTT broker for real-time messaging needs.

Initial Goals

  • Build a diverse contributor community beyond the initial maintainers.
  • Migrate the codebase, issue tracking, documentation, and communication channels to Apache infrastructure.
  • Foster a varied ecosystem by attracting adopters, peripheral contributors, and developers of plugins and tools.

Current Status

Meritocracy

BifroMQ’s underlying technology was developed at Baidu under Hao Yu’s leadership, with contributions from a team of engineers over multiple years. In July 2023, Hao Yu initiated its open-sourcing and remains a core maintainer. Joining the ASF aims to draw more contributors to further its development.

Core Developers

  • Yu Hao(Active Maintainer)
  • Jiawei Gu(Active Maintainer)
  • Fei Ma
  • Yuan Zhong
  • Weitao Wang
  • Yue Zhang

We welcome additional contributors from diverse backgrounds to drive BifroMQ’s future development.

Known Risks

  • Trademark and domain ownership: The BifroMQ trademark (Registration No. 71623640) and the bifromq.io domain are currently held by Baidu, with plans to donate both to the ASF.
  • Contributor diversity: The project is maintained by a small team; growing community participation remains a primary objective.
  • Reliance on initial developers: Active mentoring efforts will be established to reduce dependency on founding members.
  • Codebase maturity: Although production-tested, additional validation and enhanced documentation are needed for wider adoption.

Documentation

Initial Source

External Dependencies

Dependencies

License

apache.commons.cli

Apache-2.0

apache.commons.collections

Apache-2.0

bouncycastle

MIT

caffeine

Apache-2.0

guice

Apache-2.0

grpc

Apache-2.0

guava

Apache-2.0

jackson

Apache-2.0

javax.annotation-api

CDDL + GPLv2 with classpath exception

javax.ws.rs-api

CDDL + GPLv2 with classpath exception

lombok

MIT

logback

EPL-1.0 / LGPL-2.1

micrometer

Apache-2.0

netty

Apache-2.0

pcollections

MIT

pf4j

Apache-2.0

protobuf-java

BSD-3-Clause

rocksdb

Apache-2.0 / GPL-2.0

rxjava3

Apache-2.0

slf4j

MIT

awaitility(For Test Only)

Apache-2.0

paho.mqtt(For Test Only)

EPL-2.0

mockito(For Test Only)

MIT

testng(For Test Only)

Apache-2.0

jmh(For Test Only)

GPLv2 with classpath exception

Required Resources

Mailing Lists

Git Repository

Issue Tracking

  • Continue using GitHub Issues for issue tracking and community engagement.

Infrastructure Needs

  • Maintain GitHub Actions for CI/CD automation.
  • Host website and documentation at apache.org.

Initial Committers

Sponsors

Champion

  • Willem Ning Jiang      ningjiang at apache.org

Nominated Mentors

  • Xiangdong Huang    hxd at apache.org
  • Sheng Wu    wusheng at apache.org
  • Penghui Li   penghui at apache.org
  • Christofer Dutz  cdutz at apache.org

  • Calvin Kirs  kirs at apache.org


  • No labels