liveBook · Manning

Event transformation

As explained in Event Processing in Action

Event transformation is an operation that changes an event or its representation.

Event transformation creates output events based on one or more input events. It can change an event’s representation, add information through enrichment, or remove information through projection. Transformation is an intermediary capability in an event processing network, alongside filtering and pattern detection. section 8.2 section 2.2.3 section 1.4.4

A transformation is stateless when each input event is processed independently and each output is derived from one input. It is stateful when an output may be derived from multiple input events. Agents can also be classified by their numbers of input and output streams. section 8.2

Transformation can take several forms:

  • Enrichment adds information; projection removes information. section 2.2.3
  • Split turns one incoming event into multiple events, each containing a subset of the original information. section 2.2.3
  • Aggregate derives events from a stream, typically using more than one input event; for example, an output may contain a running total. section 2.2.3
  • Compose joins two input streams by matching or correlating events from them. section 8.5
Figure 8.5. Classification of the different types of Transformation agents. The triangles represent event instances; the arrows show the number of input and output streams for each type.

The classification diagram compares transformation agents by state and by the number of input and output streams. section 8.2

Enriching a delivery request

A Fast Flower Delivery transformation adds a location attribute to a Delivery Request event. One implementation expresses this enrichment in Apama MonitorScript. section 8.4

Transformation can address event payload attributes as well as header attributes. XSLT can derive output events in many transformation agents, while event processing products may use different languages and programming styles. section 8.2 section 8.5 section 8.4

How Event Processing in Action covers it

How deep it goes
Explains stateless and stateful agents and their logical structure, including header attributes, while touching on event validation.
Examples
Illustrates enrichment with a delivery request’s location attribute and aggregation with a running total.
What you can do after
Evaluate and understand transformation choices by their statefulness, stream counts, and effects on event information.
How it connects
Connects transformation to event streams, filtering, pattern detection, enrichment, projection, aggregation, and correlation.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Event Processing in Action. The section links point to the parts of the book it draws on.