Files
worldmonitor/scripts
Elie Habib 20637d8b22 fix(relay): prevent Polymarket OOM via request deduplication (#513)
Concurrent Polymarket requests for the same cache key each fired
independent https.get() calls. With 12 categories × multiple clients,
740 requests piled up in 10s, all buffering response bodies → 4.1GB
heap → OOM crash on Railway.

Fix: in-flight promise map deduplicates concurrent requests to the
same cache key. 429/error responses are negative-cached for 30s to
prevent retry storms.
2026-02-28 12:58:20 +04:00
..