Rate limiting in web apps: what to protect before picking a library
Rate limiting is not a dependency you drop into middleware and call it done. It's an abuse policy. Before you copy that snippet, you need to define what asset you're protecting, what abuse you're expecting, and what a false positive actually costs you.