I implemented one simple rate limit on my own,
https://github.com/hfhbd/RateLimit.
BUT if you are using micro services with many instances, handling rate limits in your application is the wrong way! Instead you should use some load balancer/rate limit service, which focus on this feature and do it faster, use additionally keys to prevent DDoS from multiple IPs, terminates long TCP handshakes etc.