Re:Tollbooth: HTTP rate limiter middleware in Go
by lordlarm on Friday May 22, 2015 @11:40AM
(#9588955)
Serious question: why would you not use HAProxy, nginx or similar software which arguably are more battle tested in this domain?
[ Parent
| on HN ]
Re:Tollbooth: HTTP rate limiter middleware in Go
by jamescun on Friday May 22, 2015 @11:49AM
(#9589007)
For general rate limiting, yes HAProxy or Nginx make more sense.
Having different rate limits for different endpoints becomes unmanageable in HAProxy/Nginx; and having different rate limits say across different plans or users is all but impossible.
Re:Tollbooth: HTTP rate limiter middleware in Go
by Thaxll on Friday May 22, 2015 @11:44AM
(#9588972)
You can do that when the HTTP call is simple, when you need some logic in the rate limitation ( auth, login ect... ) it's impossible.
Re:Tollbooth: HTTP rate limiter middleware in Go
by brightball on Friday May 22, 2015 @03:54PM
(#9590594)
The best reason I can imagine is so that it can all be wrapped in your portable Go binary. Because of the portability aspect, there are a lot of use cases for Go similar to Java where there is an incentive to do everything "in Go".