shihuili1218 opened a new issue, #3883:
URL: https://github.com/apache/shenyu/issues/3883

   ### Volunteer help
   
   When plugin parameters change, the common logic should be initialized and 
should not be computed each time a request is processed.
   
   e.g. When using LoadBalance, Divide、Dubbo、Http plugin needs to calculate the 
weight for each request. To calculate the weight, you should only need to 
calculate it once when the configuration changes.
   
   I don't know much about Shenyu yet, and I don't know if there is similar 
situation in other places. If this optimization is necessary and there are 
others that need to be optimized, please supplement, I can finish it together.
   
   My thoughts are as follows:
   In `CommonPluginDataSubscriber#onSelectorSubscribe`, sending the update or 
delete events, performs initialization logic in the corresponding plugin.


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