You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: harden gateway against Riot API deprecations and operational failures
- Replace deprecated summoner-v4/by-name with composite by-riot-id
(Account-V1 → PUUID → Summoner-V4); old route returns 410 Gone
- Retry 5xx with exponential backoff (0/100ms/500ms) before tripping
circuit breaker, absorbing transient Riot instability
- Isolate circuit breaker per (region, endpoint) so match failures
don't block summoner lookups in the same region
- Fix app rate limiter to be a single global instance — per-region
limiters allowed N×limit burst with a single API key
- Cap L1 cache with LRU eviction (hashicorp/golang-lru, default 10k)
to prevent OOM under bulk scraping workloads
- Cache 404s in L1 with short TTL to stop repeated misses from
hammering the Riot API on invalid/deleted resources
- Enforce aud claim in JWT validation to prevent user-facing tokens
from authenticating as internal services
- Inject version/commit/builtAt into /health via ldflags
- Add X-Request-ID middleware for cross-service log correlation
0 commit comments