Home
Sign Up
Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
golang 有什么比较方便好用的限流器轮子
kylezb
·
Feb 22, 2023
· 2507 views
This topic created in 1356 days ago, the information mentioned may be changed or developed.
目前只找到这个
https://github.com/didip/tollbooth
还有其他的轮子吗? 另外,自己实现一个方便吗?
轮子
限流器
Golang
方便
3 replies
•
2023-02-22 10:55:10 +08:00
ryan961
Feb 22, 2023
1
https://github.com/go-kratos/aegis/tree/main/ratelimit/bbr
https://github.com/cloudwego/kitex/tree/develop/pkg/limiter
harmless
Feb 22, 2023 via iPhone
2
2
官方有限流器实现吧
golang.org/x/time/rate
还有
golang.org/x/sync/semaphore
自己包一下就行了
kylezb
OP
Feb 22, 2023
3
@
ryalu
@
harmless
谢谢,发现了这个,改改就能用了
[Go 中基于 IP 地址的 HTTP 限流
https://studygolang.com/articles/25121
]
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2895 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 00:47
·
PVG 08:47
·
LAX 16:47
·
JFK 19:47
♥ Do have faith in what you're doing.
❯