Skip to content

Comments

perf: Use asyncio.gather for concurrent API fetches in briefing and tonight#7

Merged
Orinks merged 1 commit intomainfrom
perf/concurrent-api-fetches
Feb 16, 2026
Merged

perf: Use asyncio.gather for concurrent API fetches in briefing and tonight#7
Orinks merged 1 commit intomainfrom
perf/concurrent-api-fetches

Conversation

@Orinks
Copy link
Owner

@Orinks Orinks commented Feb 14, 2026

Closes #6

Replaces sequential API calls with asyncio.gather(return_exceptions=True) in both DailyBriefing.get_briefing() and TonightSummary.get_summary().

All 7 (briefing) and 6 (tonight) independent data sources now fetch concurrently, reducing total latency from the sum of all calls to the duration of the slowest one.

Error handling preserved: each failed source is logged and skipped, same as before.

Tests: All 307 existing tests pass.

…onight

Replaces sequential API calls with asyncio.gather(return_exceptions=True)
in both DailyBriefing.get_briefing() and TonightSummary.get_summary().

All 7 (briefing) and 6 (tonight) independent data sources now fetch
concurrently, reducing total latency from the sum of all calls to the
duration of the slowest one.

Error handling preserved: each failed source is logged and skipped,
same as before.

Closes #6
@Orinks Orinks merged commit 709626e into main Feb 16, 2026
9 checks passed
@Orinks Orinks deleted the perf/concurrent-api-fetches branch February 16, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: Use asyncio.gather for concurrent API fetches in briefing and tonight modules

1 participant