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

怎么限制速度 #1

Closed
shuyabin opened this issue May 28, 2020 · 2 comments
Closed

怎么限制速度 #1

shuyabin opened this issue May 28, 2020 · 2 comments

Comments

@shuyabin
Copy link

你好大佬,想咨询一下,如果我想限制一下传输速度我应该从哪方面入手?

@crabkun
Copy link
Owner

crabkun commented May 28, 2020

你好,可以了解一下令牌桶算法(Token Bucket),GO也有实现好的库可以使用
https://github.com/juju/ratelimit

@shuyabin
Copy link
Author

好的谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants