You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "bxfjb (via GitHub)" <gi...@apache.org> on 2026/07/23 11:22:13 UTC

[I] [Enhancement] Benchmark support grpc [rocketmq]

bxfjb opened a new issue, #10654:
URL: https://github.com/apache/rocketmq/issues/10654

   ### Before Creating the Enhancement Request
   
   - [x] I have confirmed that this should be classified as an enhancement rather than a bug/feature.
   
   
   ### Summary
   
   Benchmark support grpc client.
   
   ### Motivation
   
   Currently benchmark doesn't support grpc client.
   
   ### Describe the Solution You'd Like
   
   Implement grpc benchmark with Java SDK, support print stats and shutdown also.
   
   ### Describe Alternatives You've Considered
   
   Nothing special
   
   ### Additional Context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Enhancement] Benchmark support grpc [rocketmq]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #10654:
URL: https://github.com/apache/rocketmq/issues/10654#issuecomment-5058201552

   **Issue Evaluation**
   
   Category: `type/enhancement` | Status: **Evaluated — Feasible**
   
   This enhancement is feasible and well-scoped. The gRPC Java client SDK (`rocketmq-client-java`) is already version-managed in the root `pom.xml` but not yet a dependency of the `example` module. Adding gRPC benchmark classes is straightforward.
   
   **Scope:**
   - `example/pom.xml` — add `rocketmq-client-java` dependency
   - New `GrpcProducer.java`, `GrpcConsumer.java` in `example/.../benchmark/`
   - New `grpcproducer.sh`, `grpcconsumer.sh` in `distribution/benchmark/`
   - `distribution/benchmark/shutdown.sh` — add cases for new process names
   
   **Key Design Note:** The gRPC client API differs fundamentally from the Remoting-based client (different entry points, message types, async patterns, and ack model). **Recommendation: create parallel benchmark classes** (mirrors existing pattern where `BatchProducer` and `TransactionProducer` are independent classes), rather than an abstraction layer.
   
   **Compatibility:** No breaking changes — all additions, existing Remoting benchmarks untouched.
   
   **Stats reuse:** `StatsBenchmarkProducer`/`StatsBenchmarkConsumer` inner classes use `LongAdder`/`AtomicLong` with no client-specific dependencies — can be reused directly.
   
   **Shutdown:** The gRPC client supports graceful disconnect via `NotifyClientTermination` RPC. New classes should register `Runtime.getRuntime().addShutdownHook(...)` for proper cleanup.
   
   ---
   *Automated evaluation by github-manager-bot*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org