Banking example
The below banking example enriches events using the linked contextual data and metrics
Last updated
Was this helpful?
The below banking example enriches events using the linked contextual data and metrics
Last updated
Was this helpful?
The below examples aims to showcase how an existing stream pipeline can be enriched with contextual data.
We will apply a query named company_info
to look up data and enrich simultaneously the company quote using the function BidMovingAverage
.
Import company reference data at startup using a parquet file.
Deploy metrics definition to Metrics engine. Company quote metrics are calculated after 1 minute using a three minute tumbling window.
Group processing by company nasdaq symbol
field.
Save events in to the quotes internal in-memory database every 5 seconds and recreates non-unique index.
Enrichment happens:
Add company_info
to the event using a query with the event symbol field as the look up value.
Add company quote metrics using the BidMovingAverage
metrics family and the event symbol value.
Publish aggregated view of company quote metrics along with basic company information.
The previous example generates the following output, in this case a "|" separatedCSV
.