Skip to content

refactor: streamline local aggregation design#20

Merged
bassosimone merged 1 commit intomainfrom
refactor/getdata
Nov 17, 2025
Merged

refactor: streamline local aggregation design#20
bassosimone merged 1 commit intomainfrom
refactor/getdata

Conversation

@bassosimone
Copy link
Collaborator

Extracted provider-specific data loading into separate methods (_get_mlab_data, etc.) with get_data() acting as orchestrator that glues provider data together at access time.

This "separate pipelines, aggregate at access" approach scales well incrementally (Phase 3 just adds _get_cloudflare_data() and _get_ookla_data() calls) and is cheap since data is small regardless of time window.

Added design note documenting rationale and left TODO about partial data policy (should M-Lab be required while Cloudflare/Ookla optional?).

What started as a tiny TODO documenting a hack became a documented feature about how we're evolving the pipeline. Nice!

Extracted provider-specific data loading into separate methods
(_get_mlab_data, etc.) with get_data() acting as orchestrator that
glues provider data together at access time.

This "separate pipelines, aggregate at access" approach scales well
incrementally (Phase 3 just adds _get_cloudflare_data() and
_get_ookla_data() calls) and is cheap since data is small regardless
of time window.

Added design note documenting rationale and left TODO about partial
data policy (should M-Lab be required while Cloudflare/Ookla optional?).

What started as a tiny TODO documenting a hack became a documented
feature about how we're evolving the pipeline. Nice!
@bassosimone bassosimone merged commit 014e0a5 into main Nov 17, 2025
4 checks passed
@bassosimone bassosimone deleted the refactor/getdata branch November 17, 2025 20:22
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.

1 participant