Skip to content

Skywatch.brief: parallelize composer fetches if latency exceeds 5s #10

Description

@jayrav13

Deferred from the Skywatch.brief MVP design.

The MVP composer fetches sequentially — METAR → WFO lookup → 8 independent fetches. If real-world brief latency exceeds ~5s, parallelize the 8 independent fetches with Ruby threads + Faraday. Ruby threading + IO is well-behaved here; the gating concern is keeping the cache layer thread-safe (it already uses a Mutex internally).

Acceptance: Skywatch.brief("KCDW") p95 stays under 3s on a typical network. No correctness changes — same envelope shape, same error handling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions