Rate Limiting APIs: Algorithms, Headers, and Implementation Patterns