RockteMQ-AI commented on issue #1445:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/1445#issuecomment-5236482707

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The N+1 query problem in `listConsumerGroups()` is a valid performance 
concern. Calling `enrichGroupWithConnectionInfo()` for every group results in 
2N admin API calls, which scales poorly for clusters with many consumer groups.
   
   **Root Cause:** `enrichGroupWithConnectionInfo()` makes 2 blocking admin 
calls per group (`examineConsumerConnectionInfo` + `examineConsumeStats`) 
without batching or parallelism.
   **Impact:** For 100 groups → 200 sequential admin calls, potentially timing 
out the HTTP request.
   **Severity:** High — directly affects dashboard usability at scale.
   
   **Suggested fix:** Batch the admin calls or use parallel execution (e.g., 
`CompletableFuture`) to reduce latency from O(N) to O(1) round-trips.
   
   ---
   *Automated evaluation by github-manager*


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to