RockteMQ-AI commented on issue #589:
URL: 
https://github.com/apache/rocketmq-spring/issues/589#issuecomment-5431167034

   **Issue Evaluation**
   
   Category: `question` | Status: **Evaluated**
   
   The question is about why manually triggered message reconsumption does not 
go through `ConsumeMessageHook`.
   
   **Explanation:**
   `ConsumeMessageHook` is invoked by the consumer's 
`ConsumeMessageConcurrentlyService` / `ConsumeMessageOrderlyService` during the 
normal consumption pipeline. When messages are re-delivered via broker-side 
mechanisms (e.g., `sendMessageBack`), they re-enter the normal consumption 
pipeline and hooks are triggered.
   
   However, if you are manually triggering reconsumption through 
`ClientRemotingProcessor` or admin tools, the request bypasses the consumer's 
standard consumption pipeline, which is why `ConsumeMessageHook` is not invoked.
   
   **Suggestion:** If you need hooks to be triggered during manual 
reconsumption, consider using the consumer's `sendMessageBack` API instead of 
direct broker admin commands, as it goes through the proper consumption flow.
   
   ---
   *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