Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加令牌桶乐观锁模式 #3131

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NewCareerGu
Copy link

Describe what this PR does / why we need it

添加令牌桶乐观锁模式

Does this pull request fix one issue?

NO

Describe how you did it

尝试另一种“准确的”tokenBucket,使用CAS方式更新currentTokenNum及nextProduceTime,解决并发问题.

Describe how to verify it

单元测试及性能测试

Special notes for reviews

1.无锁方式逻辑是否正确
2.性能较有所会有提升么
3.如何更准确的测试

@CLAassistant
Copy link

CLAassistant commented May 28, 2023

CLA assistant check
All committers have signed the CLA.

@sczyh30 sczyh30 requested a review from LearningGp May 28, 2023 08:23
@sczyh30 sczyh30 added the kind/enhancement Category issues or prs related to enhancement. label May 28, 2023
@sczyh30
Copy link
Member

sczyh30 commented May 30, 2023

Could you please re-sync with the master branch? We fixed a CI problem in the master branch.

@NewCareerGu
Copy link
Author

Could you please re-sync with the master branch? We fixed a CI problem in the master branch.

sure

@sczyh30 sczyh30 added the to-review To review label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Category issues or prs related to enhancement. to-review To review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants