Skip to content

Apache BifroMQ-v4.0.1-incubating

Latest

Choose a tag to compare

@Gujiawei-Edinburgh Gujiawei-Edinburgh released this 28 Nov 13:57
· 1 commit to main since this release
82065f1

Apache BifroMQ 4.0.1-incubating is a maintenance release in the 4.0 series. Since 4.0.0-incubating, BifroMQ has received fixes to MQTT protocol handling, message routing, and resource cleanup, along with improvements to deployment and observability. Java 17 is the runtime baseline.

Downloads

Apache BifroMQ 4.0.1-incubating downloads

The convenience binary is distributed as a single .tar.gz archive with both Unix and Windows startup scripts. Windows users can extract the archive and use bin/standalone.bat.

The Docker image uses the same tag, apache/bifromq:4.0.1-incubating, for linux/amd64 and linux/arm64.

New Operational Capabilities

Plugin Loading and Selection

PluginManager now initializes during startup. When authProviderFQN, resourceThrottlerFQN, or settingProviderFQN is omitted, BifroMQ selects the first available implementation in fully qualified class name order. When implementations are available, a configured class name must match one of them for startup to succeed. With no implementation available, BifroMQ uses its built-in development fallback.

The bundled DemoAuthProvider uses a permissive development fallback when no webhook is configured. Production deployments should configure and verify a production AuthProvider.

Configurable Metrics Tags

metricsTags in standalone.yml adds common labels such as region and deployment to process metrics. Set metricsTags.env to your previous clusterConfig.env value if your dashboards depend on the global env label. Selected cluster metrics now carry a separate clusterEnv label.

Improvements in Architecture and Core Capabilities

  • Made forwarded client address handling configurable per listener for deployments behind proxies and load balancers.
  • Corrected the MQTT 5 Maximum QoS value in CONNACK and the DUP flag on retransmitted PUBLISH packets. MQTT 5 rejects Topic Alias 0, shared subscriptions honor their own tenant setting and require a non-empty filter, and UTF-8 validation accepts valid supplementary characters while rejecting unpaired surrogates.
  • Applied size limits to complete MQTT packets and fixed cleanup and delivery completion for oversized outbound messages. Corrected QoS 1 retries after partial acknowledgements and kept outbound QoS 0 traffic from extending the client's keepalive deadline.
  • Added Will publish authorization during CONNECT and preserved tenant and user IDs in MQTT 5 authentication rejections produced by the MQTT 3 fallback. A superseded session registration can no longer remove its replacement.
  • Aligned DistService route matching with storage key order, corrected results for missing local receivers and duplicate group routes, and kept routing metadata current after route changes. Stale routes are scanned continuously in bounded batches with adaptive pacing. The default delay bounds between queries are 0 and 32 seconds, and explicit settings still apply.
  • Improved InboxService fetch handling under concurrent session updates and backpressure, and scheduled delayed retries for send-buffer confirmations rejected under load. Improved base-kv mutation batching and closed obsolete mutation pipelines when routes change.
  • Aborted outstanding requests when RPC pipelines close and started the RPC server in MQTT-only deployments. Corrected HLC ordering when receiving a newer timestamp and fixed stale congestion estimates in base-scheduler.
  • Fixed resource and metric cleanup during executor shutdown and range changes, HTTP request and response buffer handling, and log archive cleanup on restart. The store-range API returns boundary keys as lowercase hexadecimal, and Prometheus scrapes return the expected Content-Type.

Build and Distribution

  • Updated managed dependencies including gRPC 1.82.4, Netty 4.1.140.Final, Protobuf 4.36.2, Bouncy Castle 1.87, Micrometer 1.17.2, and PF4J 3.16.1.
  • Updated the Maven Wrapper to use Maven 3.10.0, refreshed the plugin archetype, and switched test discovery to TestNG groups. The build-coverage profile includes integration tests.
  • Local Docker builds honor the selected platform and use the same default image name as the published image.

Apache Compliance Work

  • Added Apache Maven Wrapper attribution to the source LICENSE, updated NOTICE, and refreshed the licenses and notices for bundled binary dependencies.
  • Added SECURITY.md to document the deployment trust boundaries and the ASF process for reporting vulnerabilities privately. Security policy

Acknowledgements

@popduke @Gujiawei-Edinburgh @liaodn @ImDanXie @EverWang @pallavithegod @hubgeter @dddddkkkkk @ZHANGSHUNLIN @tinybad @MrlixiangWE @efegokdemir @RaphaelFakhri and 560341

Thanks to everyone who reviewed, tested, and voted on this release.

Disclaimer

Apache BifroMQ (Incubating) is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC.

Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.

While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.


Full changelog