Announcing Apache BifroMQ 4.0.1-incubating
Apache BifroMQ 4.0.1-incubating is now available. This maintenance release improves MQTT protocol handling, message routing, and resource cleanup. It also lets operators add common labels to metrics and control how individual listeners handle forwarded client addresses. Java 17 remains the runtime baseline.
MQTT delivery and cluster behavior
- MQTT protocol handling. MQTT 5 clients receive the correct
Maximum QoSvalue inCONNACK, and retransmittedPUBLISHpackets carry the correctDUPflag. The broker now applies packet-size limits to the entire encoded packet and cleans up delivery state for oversized outbound messages. - Session delivery. QoS 1 retries now account for partial acknowledgements. Outbound QoS 0 messages no longer extend a client's keepalive deadline, and a session replaced by a newer connection can no longer remove the replacement's registration.
- Routing and backpressure. The distribution service keeps routing metadata current when subscriptions change and scans for stale routes in bounded batches. The inbox service improves message fetching during concurrent session updates and retries send-buffer confirmations that were rejected under load.
What to check before upgrading
Upgrades from 4.0.0-incubating retain data and inter-cluster RPC compatibility. Review these settings before restarting nodes. Cluster upgrade guide
- Plugin selection. When
authProviderFQN,resourceThrottlerFQN, orsettingProviderFQNis omitted, BifroMQ picks the first available implementation in fully qualified class name order. If implementations are available and an explicit class name matches none of them, startup fails. Configure and verify a productionAuthProvider. The bundledDemoAuthProviderallows connections without a production authentication check when its webhook is absent. Build custom plugins against the BifroMQ version you deploy. Auth provider guide - Metrics labels. Use
metricsTagsinstandalone.ymlto add labels such asregionanddeploymentto metrics emitted by a process. If your dashboards or alerts rely on the globalenvlabel, setmetricsTags.envto the value previously used forclusterConfig.env. Selected cluster metrics now carryclusterEnv. Configuration reference - Proxy and load balancer settings. Review the MQTT listener settings for PROXY protocol and forwarded client addresses on deployments behind a proxy or load balancer. These settings can be configured per listener. Release notes
Download 4.0.1-incubating
The release includes a source archive and a convenience binary archive with Unix and Windows startup scripts. On Windows, extract the binary archive and run bin\standalone.bat start. The apache/bifromq:4.0.1-incubating Docker tag is available for both linux/amd64 and linux/arm64. Release artifacts · Verification instructions
Thank you to everyone who contributed code, reviewed changes, tested the release, or voted on it. Full release notes and acknowledgements