Merge #689 (adsbdb rate limit and cache ceiling) onto current main

This commit is contained in:
Said Turksever committed 2026-11-23 01:20:39 +00:00
commit 48ef645d65
11 files changed
+571 -26

No files matched your search

+19
View File
@@ -4350,6 +4350,25 @@ The existing aircraft normalizer is separately available through the portable
`gods-eye-view/sources/adsb-lol` export. Provider URLs, local credentials, cache
policy, fallback behavior, response shapes and rendering remain unchanged.
### ADSBDB enrichment bounds
`/api/adsbdb` admits 720 requests/minute per client address
(`GEV_RATELIMIT_ADSBDB_PER_MIN`; `0` disables), with a global backstop of three
times that; a refused request answers 429 with `Retry-After` and reaches
neither the cache nor api.adsbdb.com. Each browser enrichment queue drips at
most 300/minute and one tab runs two (Flights and Local ADS-B), so an ordinary
session never meets the limit. When a lookup is refused anyway, both queues
make that key askable again after the refusal's retry-after rather than
treating the 429 as an answer.
Both enrichment caches hold at most 20,000 entries each, dropping the
least-recently-written first, and entries past their 24-hour TTL are discarded
when `.gev-cache/adsbdb.json` is read back. A cache file above 16 MB is skipped
rather than parsed. An evicted key costs one upstream request the next time it
is asked for; cached answers are otherwise unchanged.
Updated: October 23, 2026
## Control names for assistive technology
Scope, Bloom, Sharpen and location search have explicit accessible names.