In this video I share with you how I am rate limiting my API in Go. Rate limiters are a must if you want to protect your back-end from layer 7 DDoS attacks and keep your API secure.
📌 Resources
- Very good article on rate limiting algorithms: https://konghq.com/blog/engineering/how-to-design-a-scalable-rate-limiting-algorithm
- Go Fixed Window: https://github.com/mennanov/limiters
- Go "official" rate limit package: https://pkg.go.dev/golang.org/x/time/rate
- Uber rate limiter: https://github.com/uber-go/ratelimit
👉 Join the private community to level up as software engineer: https://selfmadeengineer.com
📢 Checkout the FREE Discord channel
https://discord.com/invite/3JhkwjQHjc
🙋🏼♂️ Socials:
X: https://x.com/tiago_taquelim_
Github: https://github.com/sikozonpc
Thanks for watching!
00:00:00 Why to Rate Limit?
00:02:36 How it works
00:07:40 Distributed Systems
00:08:14 Different types of rate limiters
00:13:37 Code Overview
#go #golang