
Rate-limit a code hosting platform's public API after authentication: one budget per user across all their tokens and a smaller one per anonymous IP, counted as a sliding window over a rolling hour, 429 before the handler runs, and a usage endpoint that reports limit, remaining and reset for free.
Stop SMS pumping on a messaging app's one-time-password login with two token buckets, per normalised phone number and per IP, that never spend or send on rejection and report the tighter bucket in limit headers with an exact Retry-After.
Move a photo app's failed-login counter into the shared database so five failures in fifteen minutes lock an account on every instance, a correct password clears it, restarts keep it, simultaneous guesses never slip past, and sign-in fails closed when the store is down.
Enforce a maps API's pricing plans across a cluster: per-key, per-route-group token buckets from the key's plan, IP limits for keyless calls, a rolling 24-hour geocoding quota, instant upgrades, shared atomic state that survives restarts, limit headers with Retry-After, and fail-closed 503 when the store is down.