Request a demo
Home › Real-time context
Real-time context

Real-time context for real-time insights

Some answers must be live; some can be minutes old; some are built overnight. Each context declares which, and every answer says how fresh it is.

How an answer is served

Live, cached or refreshing, and always labelled

How a context answers: live, cached or refreshingEvery answer carries <code>as_of</code> and the context's freshness promise, whether it came from the cache, the stale window or a live query.Agent or appasks with paramsContextparams bound,caller's scope appliedResult cachekeyed by params, scope,masking and versionFresh: served at oncecache HIT, with its AgeStale window: servedone refresh runs behind itMiss: live queryread-only · timeout · row capAnswerrows + as_of+ freshness & SLAA load finishesbump the data versionolder answers retired
Every answer carries as_of and the context's freshness promise, whether it came from the cache, the stale window or a live query.
Freshness options

Pick per context, not per platform

ModeHow it worksGood for
LiveThe context runs against the source when called: bound values, statement timeout, row cap. Cache TTL 0.Open claims right now, today's orders, a queue an agent is working
Short TTLKept for the context's TTL; inside a stale window the old answer is returned at once while one refresh runs. Concurrent misses share one query.Dashboards opened by many people at nine o'clock; agents that ask the same thing in a loop
Nightly or scheduledHeavy 360 views, home pages and KPI tables are computed on a schedule and served instantly with the time they were built.Book-of-business 360, portfolio KPIs, loss development
StaticReference data that changes rarely, marked public or scoped like any other.Code lists, territories, product catalogs

as_of on every answer

The time the rows were read, plus the context's cadence and SLA, travel with every result over REST and MCP. An agent can say how fresh its answer is.

Cache keyed by everything that matters

Parameters (normalized), the caller's book and organization, whether masking applies, the row cap and the data version. Two callers who would see different rows never share an entry.

Retired when data lands

When a load finishes, bumping the data version makes every older cached answer unreachable at once, so the next call reads fresh rows.

Failures never cached

A refusal, a bad parameter, a timeout or a failure is never kept. An empty answer is kept briefly, since a loading table reads as empty.

Visible in headers

X-DataAPI-Cache says HIT, STALE or MISS and Age says how old a hit is. Admins can force a refresh.

Shared or local cache

An in-process cache, or a shared cache across workers and replicas. A cache outage falls back and never fails a query.

For real-time insights

Agents that know when the data was read

A real-time insight is only useful if the reader knows what moment it describes. Because as_of and freshness travel with the rows, an agent can tell an underwriter that the open-claims count is live while the loss-ratio trend is from last night's build, and a dashboard can show both on one page.

Real-time context: live queries, TTL caches and as_of →

A run with its as-of timeDemo data
A P&C context test run as an agent would see it: typed parameters in, typed columns out (premium and loss ratio as numbers), the insured contact masked, rows scoped to the caller's organization, served live with its as-of time

See your own context layer, on your data

Bring one source and three questions your agents or apps need answered. We will stand up governed contexts over them in your environment and connect an agent to them in a working session.

We reply within one business day. Next comes a 45-minute executive briefing for your CIO or CDO, then, if it fits, a 12-week Innovation POD in your environment.