<الـ APIs والربط class="bcard-title" lang="en" dir="ltr">
API Rate Limiting: Token Buckets, Sliding Windows, and Fair Usage
الـ APIs والربط>
Rate limiting done well is an algorithm (token bucket vs sliding window vs fixed window) plus a contract: 429 with Retry-After. A token bucket implemented and tested from scratch, then Laravel's throttle hit with real requests until it pushed back.