incubator-seata
incubator-seata copied to clipboard
feature: add single server rale limit
- [ ] 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