incubator-seata icon indicating copy to clipboard operation
incubator-seata copied to clipboard

feature: add single server rale limit

Open xjlgod opened this issue 6 months ago • 1 comments

  • [ ] I have registered the PR changes.

Ⅰ. Describe what this PR did

Support flow limiting control for a single server:

  • Flow limiting components: Select Bucket4j components to implement flow limit control.
  • Processing flow limit control: Process flow limiting at the top level in DefaultCordinator, and perform flow limiting checks in the onRequest method. Only GlobalBegin request will be limited.
  • Transaction end identity: All transaction ends need to be able to correctly identify flow limit control and throw corresponding exceptions.
  • Metrics: Use a new metrics record events when current limiting is triggered

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

xjlgod avatar Aug 14 '24 13:08 xjlgod