Banking example

The below banking example enriches events using the linked contextual data and metrics

Objective

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.

Review the Anatomy of enrichment to understand how an enricher is build.

Initialisation and pre-processing stage

  1. Import company reference data at startup using a parquet file.

  2. Deploy metrics definition to Metrics engine. Company quote metrics are calculated after 1 minute using a three minute tumbling window.

  3. Group processing by company nasdaq symbol field.

Stream processing

  1. Save events in to the quotes internal in-memory database every 5 seconds and recreates non-unique index.

  2. Enrichment happens:

    1. Add company_info to the event using a query with the event symbol field as the look up value.

    2. Add company quote metrics using the BidMovingAverage metrics family and the event symbol value.

  3. Publish aggregated view of company quote metrics along with basic company information.

Expected output

The previous example generates the following output, in this case a "|" separatedCSV.

Last updated

Was this helpful?