News for hackers. Stuff that matters.
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?
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".
Re:Tollbooth: HTTP rate limiter middleware in Go by didip on Friday May 22, 2015 @12:24PM (#9589291)
Four startups ago, I did a simpler one in Nginx using embedded Lua and Redis. It can definitely be done, but writing it in Go is easier, and funner :D