Could anyone give me a quick overview of how that would work? Or what it would simplify? (Just curious!)
But the simplification is that you do not need to write any application code. I can very easily have certain routes or domains limited differently by updating the nginx config. Especially in a microservices world I am trying to avoid having to update N services to get all of them to be rate limited.
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...