rocketmq-auth 0.9.0

Unofficial Rust implementation of Apache RocketMQ
Documentation

The Rust Implementation of Apache RocketMQ auth

Overview

This module is mainly the implementation of the Apache RocketMQ auth, containing all the functionalities of the Java version rocketmq-auth.

Benchmarks

Run focused authentication and authorization hot-path benchmarks with:

cargo bench -p rocketmq-auth --bench auth_hot_path_bench

The benchmark covers remoting signature calculation, white remote address matching, ACL policy matching, and stateful authentication/authorization cache hits.

For CI or local regression gating, first verify the benchmark target compiles:

cargo test -p rocketmq-auth --benches --no-run

When collecting a baseline, run the benchmark on an otherwise idle machine and keep the generated Criterion report under target/criterion/auth_*. Compare future changes against the same toolchain and hardware; auth hot-path regressions should be investigated before merging changes that touch signing, whitelist matching, ACL policy matching, or stateful cache keys.