What a Global Forecast Engine Actually Produces
Frame the product as a deadline-driven scientific pipeline that feeds a read-heavy delivery layer, and separate it from a simple weather app.
A forecast is a deadline product
From the outside, a weather engine looks like an app that shows tomorrow's rain. Underneath, it is a scheduled scientific simulation with a hard publication deadline. Every six hours the system must take in tens of millions of raw observations, estimate the current state of the atmosphere, run a numerical model forward for up to 16 days, and publish the result before anyone needs it. If the run finishes late, the product is not merely slow. It is stale, and a stale forecast during a hurricane is worse than having no forecast at all.
That single fact drives most of the design. The write path is a batch-like pipeline with a fixed clock. The read path is a huge, cacheable API and tile service that must answer in milliseconds regardless of what the model is doing. Candidates who design this as a database with a REST layer on top miss the core problem. The hard part is the numerical core, and the second hard part is keeping the read path fast while a new forecast replaces the old one every few hours.
What the engine must output
The engine produces four kinds of product, and each one has a different consumer and a different tolerance for delay.
First, gridded forecast fields. These are the full model output: temperature, wind, pressure, humidity and precipitation on a latitude-longitude grid, at every level of the atmosphere, hour by hour. Meteorologists, energy traders, airlines and other forecast providers read these directly, usually as GRIB2 or NetCDF files.
Second, point and area forecasts. A mobile app asks for the forecast at 51.5 N, 0.1 W for the next 48 hours. The engine interpolates the gridded fields to that point, applies bias correction, and returns a small JSON document. This is the most frequent request type and must be served from a cache almost every time.
Third, map tiles. A web map asks for a raster or vector tile covering a small patch of the globe at a given zoom level and time step. Tiles are rendered once per forecast step and then served from a CDN.
Fourth, severe weather alerts. When an authorised agency issues a warning, the engine must match the warning polygon against subscribers and push the message within a minute. Alerting is not a forecast feature. It is a safety feature, and it has its own latency and correctness rules.
The inputs are files and streams, not device telemetry
The observation side is unusual. Data does not arrive from millions of small devices sending JSON every second. It arrives as a mix of large files and moderate streams. National meteorological services publish surface and upper-air observations in BUFR and GRIB2 through the WMO Information System, which is moving to WIS2 with MQTT-based notifications. Geostationary satellites such as GOES-R, Himawari and Meteosat Third Generation scan the full disk of the Earth every 10 minutes across 16 spectral bands. Radar networks such as the US NEXRAD network produce volume scans roughly every five minutes from around 160 sites. Polar-orbiting satellites deliver swaths several times per orbit, and aircraft report winds and temperatures through the Aircraft Meteorological Data Relay system.
Because of this shape, the ingress is a file and stream landing zone with checksums, provenance and retry, not a device gateway. Routing this data through a device-telemetry service would add a per-message cost that buys nothing here. The sources are few in number, large in size, and reliable enough to be pulled on a schedule.
The numbers that define the shape
A single global model state at 13 km resolution, with 137 vertical levels and 20 variables stored as 4-byte floats, is about 45 GB. Keeping that state for a 51-member ensemble means several terabytes per cycle before any output is written. Raw observations for a day are in the low terabytes, dominated by satellite radiances and radar. Output for a full cycle, after compression, is measured in terabytes. These are the figures the rest of this answer uses, and every one of them is worked out in the estimation sections.
The key design message for the interviewer is this. The system is a pipeline with a deadline, a very large numerical core, and a very high-volume read path that must never wait on the pipeline. Keep those three things separate in the architecture, and most of the later decisions follow.
Key Highlights
- •The engine is a deadline-driven batch pipeline feeding a read-heavy API and tile layer, and the pipeline deadline is the main design constraint.
- •Four products are served: gridded fields, point forecasts, map tiles and severe weather alerts, each with a different latency tolerance.
- •Observations arrive as BUFR, GRIB2, NetCDF and HDF5 files plus WMO WIS2 notifications, so the ingress is a file landing zone, not a device gateway.
- •A 13 km global state with 137 levels and 20 float variables is about 45 GB, which makes checkpointing and I/O a first-class concern.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "The first thing I want to pin down is the publish deadline, because that sets the budget for every stage."
- "Before I choose a database, I want to be clear that the numerical core dominates the compute bill."
- "I will treat the read path as a cache-first problem, since the model run and the reads have different clocks."