← knowledge.oriz.in

Data APIs — Open-Meteo (weather) + Alpha Vantage (finance)

decision decisionsarchitecturedata-apiweatherfinanceopen-meteoalpha-vantage

Data APIs — Open-Meteo (weather) + Alpha Vantage (finance)

Decision

The family adopts two read-only external data APIs:

Both are fronted by the umbrella Hono Worker at api.oriz.in. Browsers never call them directly — every request goes through Worker routes that apply Workers KV caching per the CF Worker quota mitigation playbook:

Surface TTL Why this TTL
Weather forecast 1 hour Forecasts update every ~3h upstream; 1h is fresh enough for UI, cuts load 60×
Weather historical 24 hours Historical data is immutable; 24h TTL is conservative
Finance EOD 24 hours End-of-day data is immutable post-close; 24h covers the trading day
Finance intraday 5 minutes Intraday data needs freshness, 5m balances UX vs the 25/day cap

Why

Implications

Architecture

Volume budget

Geocoding NOT in this decision

Geocoding stays deferred — separate decision, separate concept file. None of the 11 sites need address ? coordinate translation today. CF-IPCountry header covers every current geo-routing need.

What we don't do

Cross-refs