duhenglucky commented on PR #4446:
URL: https://github.com/apache/rocketmq/pull/4446#issuecomment-1153608848

   > adding
   
   
   
   > @dongeforever This pull intends to keep RPCHooks as it is. Third-party 
implementations will continue to work as expected. Internally, RPCHooks will be 
wrapped to Handler, which will have better-defined APIs and deliver neat and 
clear semantics.
   > 
   > Further, we hope new plugins are developed on top of the new interface, 
bringing them fewer doubts during their development at error handling, logic 
control, etc.
   > 
   > In addition, this PR solves other closely related defects: on the 
server-side, post-hooks will get executed when ctx.writeAndFlush is used, as is 
also pointed out by @duhenglucky on the client-side, post-hooks are executed 
for the async code path;
   
   A very good change, not only optimizes RPCHook, but also solves the problem 
that the post method is not called in asynchronous mode, but compatibility is 
still the biggest bottom line, many developers will implement their own Hook in 
the process of adapting to their own business .


-- 
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