mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-12 18:16:20 +02:00
Multiple connected clients polling simultaneously caused stampede on upstream APIs (53 concurrent RSS MISS, 5 concurrent OpenSky requests for same bbox). Wraps upstream fetches in a Promise stored in an in-flight Map — concurrent requests for the same key await the single in-flight fetch and get served from cache with X-Cache: DEDUP.