News for hackers. Stuff that matters.
Re:Scaling your API with rate limiters by ben_jones on Thursday March 30, 2017 @06:49PM (#13999609)
Here is [1] the source code to a rate-limiting middleware written for the Caddy webserver if you're into reading Go code. Should be a good sample.

The whole thing is 27 unique files, 1068 lines of Go, according to cloc.

[1]: https://github.com/xuqingfeng/caddy-rate-limit/blob/master/c...

There are no comments on this comment yet.