Finish external HTTP client resilience: add shared aiohttp config, retry support, and update task status

This commit is contained in:
2026-04-09 22:01:11 +02:00
parent e1d741956e
commit 148756fb79
6 changed files with 185 additions and 21 deletions

View File

@@ -47,6 +47,7 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
### 5. Improve external HTTP client resilience
- Where found: `backend/app/startup.py`
- Goal: create `aiohttp.ClientSession()` with sensible global timeouts, connection limit settings, and optional retry policy for geo/blocklist API calls.
- Status: completed — configured shared aiohttp session with sensible timeouts, connection limits, and retry support for transient blocklist/geo failures.
- Possible traps and issues:
- Without timeouts, external lookups can hang request handling or background tasks.
- Connection limits must be chosen carefully to avoid underutilization or overload.