top | item 39914048 (no title) dasubhajit | 1 year ago a minimal rate limiting package for Golang microservice. small weekend project. feedback and stars will be appreciated. discuss order hn newest citrin_ru|1 year ago To avoid race conditions with concurrent requests better to use Redis Lua. See this example: https://gist.github.com/ptarjan/e38f45f2dfe601419ca3af937fff... pquerna|1 year ago For this general pattern implemented in Golang, check out redis_rate: https://github.com/ductone/redis_rateThis fork also implements Redis Client Pipelining to check multiple limits at the same time, and Concurrency Limits. maerF0x0|1 year ago Good for you doing a thing! Please understand the community is likely very wary of single maintainer, weekend project, high risk dependencies right now. candiddevmike|1 year ago There aren't any tests...?If folks are looking for a serious rate limiting package for Go, limiter is a good start: https://github.com/ulule/limiter yau8edq12i|1 year ago I'm sure that the people needing a "serious" solution would realize that a weekend project is probably not that. load replies (1)
citrin_ru|1 year ago To avoid race conditions with concurrent requests better to use Redis Lua. See this example: https://gist.github.com/ptarjan/e38f45f2dfe601419ca3af937fff... pquerna|1 year ago For this general pattern implemented in Golang, check out redis_rate: https://github.com/ductone/redis_rateThis fork also implements Redis Client Pipelining to check multiple limits at the same time, and Concurrency Limits.
pquerna|1 year ago For this general pattern implemented in Golang, check out redis_rate: https://github.com/ductone/redis_rateThis fork also implements Redis Client Pipelining to check multiple limits at the same time, and Concurrency Limits.
maerF0x0|1 year ago Good for you doing a thing! Please understand the community is likely very wary of single maintainer, weekend project, high risk dependencies right now.
candiddevmike|1 year ago There aren't any tests...?If folks are looking for a serious rate limiting package for Go, limiter is a good start: https://github.com/ulule/limiter yau8edq12i|1 year ago I'm sure that the people needing a "serious" solution would realize that a weekend project is probably not that. load replies (1)
yau8edq12i|1 year ago I'm sure that the people needing a "serious" solution would realize that a weekend project is probably not that. load replies (1)
citrin_ru|1 year ago
pquerna|1 year ago
This fork also implements Redis Client Pipelining to check multiple limits at the same time, and Concurrency Limits.
maerF0x0|1 year ago
candiddevmike|1 year ago
If folks are looking for a serious rate limiting package for Go, limiter is a good start: https://github.com/ulule/limiter
yau8edq12i|1 year ago