Tollbooth
Limiter
Tollbooth | Limiter | |
---|---|---|
3 | 2 | |
2,585 | 1,948 | |
- | 2.3% | |
0.0 | 5.2 | |
2 months ago | 8 months ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Tollbooth
- Rate limiting in Go microservice based app
-
Limit Max Number of Requests Per Hour with `didip/tollbooth`
I'm new to rate limiting and want to use `https://github.com/didip/tollbooth` to limit HTTP requests.I also read the Token Algorithm page on Wikipedia.
-
Code review
Basically it's a thin http proxy utilizing tollbooth to do rate limiting.
Limiter
-
Goralim – A rate limiting package for Go to handle distributed workloads
Fun weekend project but definitely not production-ready (no tests, no error handling, etc.). If readers are looking for something production-ready to use, consider https://github.com/go-redis/redis_rate (which implements GCRA/leaky bucket), or https://github.com/ulule/limiter (which uses a much simpler algorithm, but has good middleware).
What are some alternatives?
mux - A powerful HTTP router and URL matcher for building Go web servers with 🦍
Beego - beego is an open-source, high-performance web framework for the Go programming language.
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
easy-middleware - easy-middleware is a lightweight json middleware stack for Go >= 1.7.
Iris - The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket:
formjson - Go net/http handler to transparently manage posted JSON
Echo - High performance, minimalist Go web framework
GoSwagger - Swagger 2.0 implementation for go
XFF - A Golang Middleware to handle X-Forwarded-For Header