liveBook · Manning

Event processing

As explained in Event Processing in Action

A computing approach in which events are processed through operations such as filtering, transformation, and pattern detection.

Event processing is computing that performs operations on events, including reading, creating, transforming, and deleting them. Its operations can filter events, change their form, or examine collections for patterns; these operations may produce new events. section 1.2.1

A situation is an event occurrence that might require a reaction. For example, noticing increased milk consumption might prompt someone to buy more milk. Computerized event processing similarly detects and reports situations so that people or applications can respond. section 1.1.2 section 1.2.2

Event-based programming uses events in applications, but it need not include explicit event processing operations. Separating processing logic from application logic allows that logic to change independently. Producers and consumers can also be decoupled: one producer’s events can be acted on by different applications without their knowing about one another. section 1.2.1

Monitoring patients and luggage

A patient-monitoring system can analyze measurement events and alert a nurse or physician when specified combinations occur within a time period. In luggage handling, RFID reader events can reveal that a bag is on the wrong cart or has not arrived at the aircraft. The latter illustrates an absence pattern: detecting that an expected event did not occur. section 1.1.3

An event in a system does not always represent a real-world situation exactly. A toll-payment violation can have a deterministic representation: the derived event indicates that the violation occurred. By contrast, detecting a frustrated help-desk customer is less clear-cut, so the system’s representation is an approximation. section 1.2.2

Event processing can be useful when an application needs to:

  • React to situations as they occur rather than wait for an intermittent batch process. section 1.2.3
  • Extend an existing application without changing its original logic, for example by producing events from its logs. section 1.2.3
  • Handle irregular event activity asynchronously or distribute event analysis across computing nodes. section 1.2.3

Event processing complements other approaches rather than replacing them. Message-oriented middleware can transport event messages and perform some filtering, while event processing also handles collections of events and their temporal properties. Business rules typically operate on state and are invoked by application requests; event processing operates on events and can consult state. section 1.4.6 section 1.4.4

Processing logic can be implemented in a conventional programming language or with a dedicated event processing platform. A stream processing platform can also implement event processing, although stream computing encompasses data that is not normally considered events. section 1.7 section 1.4.7

How Event Processing in Action covers it

How deep it goes
Defines operations and architecture at a high level, introduces modeling concepts, and surveys engineering and validation considerations.
Examples
Illustrates monitoring patients, tracking luggage with RFID, detecting toll violations, and identifying frustrated help-desk customers.
What you can do after
Supports evaluating when event processing is useful and how its representations relate to real-world situations.
How it connects
Connects event processing with event-driven architecture, business rules, message-oriented middleware, and stream computing.

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.