Stateful Operators

Keyed state, operator state, TTL — the running total that outlives the record that changed it

State is a local key/value store partitioned with the stream. GatewayMeter keeps an open-request record per request and a running dollar total per tenant. Requests that never complete leave state behind forever; you bound it with TTL and a cleanup timer.

Estimated time: 75 minutes

Stuck on something? The AI tutor sees this lecture—just ask.

Loading reading material...