merlimat commented on pull request #7499:
URL: https://github.com/apache/pulsar/pull/7499#issuecomment-930645914


   > how do we train broker to adjust per-thread quotas dynamically?
   
   Most of rate limiting implementations are based on variations of 
Token-Bucket: https://en.wikipedia.org/wiki/Token_bucket 
   
   Eg: even in the per-namespace rate limiting we're doing it in distributed 
fashion. 
   
   In this case, the point is that each thread starts with a quota and if it's 
not used it will be up for grab by different threads. The main difference is 
that we don't have to pay for contention each time we try to send 1 message, 
rather the quotas are adjusted at discrete intervals.


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