hangc0276 opened a new pull request #11141:
URL: https://github.com/apache/pulsar/pull/11141


   ### Motivation
   In current `isExceedMaximumMessageSize` implementation, it get topic policy 
and compare maxMessageSize value.
   However, for each message to publish, it should call 
isExceedMaximumMessageSize once, which cost too much resources.
   
   ### Modifiction
   1. add `maxMessageSizeCheckIntervalInSeconds` parameter to control 
maxMessageSize refresh frequency
   2. reduce getTopicPolicies call frequency to reduce resources cost.
   3. add test to cover this case.


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