Chapter 5: Chapter 5. Consuming the events
The introduction frames information abundance as a challenge for limited attention and previews the chapter on event consumers.
After this chapter you will be able to
- Information and attention scarcity. Explain why an abundance of information creates a need to allocate attention efficiently.
- Event consumer role. Explain what an event consumer does and what lies outside the event processing network model.
- Consumer node representation. Describe how an event consumer is represented in an event processing network and what a consumer node can stand for.
- Consumer representation and connections. Distinguish the three uses of an event consumer definition element and their input terminal connection rules.
- Definition scope and parts. Explain what the event consumer definition element describes and identify its three parts.
- Consumer definition element type. Explain the possible definition element types and which can represent a node in an event processing network.
- Input terminal structure. Describe how a consumer’s input terminals are identified and associated with event types.
- Terminal event filtering. Explain how an input terminal limits the events it accepts.
- Input terminal source associations. Explain how an input terminal can be associated with event sources and how this differs for abstract consumer types.
- Consumer specialization relationships. Explain how consumer definition elements can specialize or generalize one another, and describe the input-terminal requirements for specialization.
- Event consumer category families. Describe the event consumer category attribute and the three broad consumer families, including how they can overlap.
- Actuators as event consumers. Explain how an actuator responds to an event and give an example of its use.
- Human-facing event alerts. Explain how human-facing event consumers inform people about events, and distinguish examples suited to urgent and less urgent alerts.
- Dashboards and monitoring metrics. Explain how dashboards gather event information and use computed metrics to show monitoring status, using the network performance example.
- Software consumers and event logs. Explain what distinguishes software event consumers and how event logs can be used.
- Business application integration. Explain how a software event consumer connects an event processing network to line-of-business application logic.
- Business process event integration. Explain how a consumer can use a BPM system to coordinate applications and how events affect workflow or state-machine processes.
- Dynamic consumer class membership. Explain how consumer class membership can change and how subscribing and unsubscribing manage its instances. Distinguish a subscriber from the consumer instance being registered.
- Class filtering and distribution. Trace how an event is filtered and distributed to relevant members of a consumer class. Explain that recipients may process or ignore it.
- Protocol Based Consumer Interfaces. Explain how a protocol-based mechanism connects an event consumer to an event processing network and how filtering can make distribution more efficient.
- Consumer API Interface Styles. Distinguish the two styles of consumer API described in the section.
- Consumer Class Member Registration. Explain how registration and filters can support dynamic consumer-class membership and delivery to relevant members.
- Event type terminal assignment. Explain the choices for assigning multiple event types to a consumer’s input terminals and the convention used in the Fast Flower Delivery model.
- Driver consumer and terminals. Describe the Driver consumer class and the events handled by its input terminals.
- Driver event recipient selection. Explain how individual drivers receive only the Bid Request and Assignment events intended for them.
- Store consumer and terminals. Describe the Store consumer class and the events received through its two input terminals.
- Drivers' Guild consumer instance. Describe the Drivers' Guild consumer and explain why it is modeled as an instance.
What it builds on
- Event processing networks (chapter 2) · The event processing network provides the setting in which entities exchange events.
- Event producer: concept and definition element (chapter 4) · The event producer provides the complementary role.
- Producer relationships (chapter 4) · Specialization relationships between producer definition elements
- Hardware event producers (chapter 4) · Hardware sensors as event producers
- Event processing and service-oriented architecture (chapter 2) · The relationship between event processing and service-oriented architecture.
- Event-driven business process management (chapter 1) · The connection between event-driven processing and business process management.
- Push-style event interactions (chapter 2) · Push-style event interactions
- Using request-response interactions to distribute events (chapter 2) · Request-response interactions for distributing events
Section by section
Introduction
The introduction frames information abundance as a challenge for limited attention and previews the chapter on event consumers.
- Information and attention scarcity: Explain why an abundance of information creates a need to allocate attention efficiently.
Why it matters: This frames why recipients must be selective when faced with abundant information.
Key terms: attention, information sources
5.1 Event consumer: concept and definition element
This section defines the event consumer’s role and its representation in an event processing network.
- Event consumer role: Explain what an event consumer does and what lies outside the event processing network model.
Why it matters: This distinguishes the consumer’s role in the network from its internal processing. - Consumer node representation: Describe how an event consumer is represented in an event processing network and what a consumer node can stand for.
Why it matters: This lets you interpret a consumer node without assuming it always represents one individual consumer.
Key terms: event consumer, event objects, event processing network, event producer, event consumer node, input terminals, event consumer instance, class
5.1.1 Event consumer definition element
This section outlines what an event consumer definition element represents, what it describes, and how its terminals can connect to an event processing network.
- Consumer representation and connections: Distinguish the three uses of an event consumer definition element and their input terminal connection rules.
Why it matters: The representation determines whether the consumer's input terminals can be connected in the network. - Definition scope and parts: Explain what the event consumer definition element describes and identify its three parts.
Why it matters: This boundary clarifies what the network definition captures and what remains inside the consumer.
Key terms: event consumer definition element, abstract event consumer type, concrete event consumer instances, input terminals, EPN, consumer details, input terminal specifications, relationships to other consumers, event processing network
5.1.2 Event consumer details
This section describes the attributes that identify and characterize an event consumer definition element and specify what it represents.
- Consumer definition element type: Explain the possible definition element types and which can represent a node in an event processing network.
Why it matters: This distinction tells you what a consumer definition represents in an event processing network. - Consumer descriptive attributes: Describe the roles of the consumer identifier, category, and optional annotation, including the category's effect on event handling.
Why it matters: These attributes make a consumer definition identifiable and understandable without changing how the network handles events.
Key terms: definition element type, abstract type, consumer class, consumer instance, EPN, event consumer identifier, event consumer category, annotation
5.1.3 Input terminal details
This section describes event consumer input terminals, their event selection attributes, and how they can be associated with sources.
- Input terminal structure: Describe how a consumer’s input terminals are identified and associated with event types.
Why it matters: Input terminals describe the entry points through which a consumer accepts events. - Terminal event filtering: Explain how an input terminal limits the events it accepts.
Why it matters: Filtering lets a terminal receive only the events relevant to its consumer. - Input terminal source associations: Explain how an input terminal can be associated with event sources and how this differs for abstract consumer types.
Why it matters: Source associations describe where a consumer’s events can come from without requiring every connection to be recorded on the input side.
Key terms: input terminal, identifier, event types, filter expressions, event attributes, sources, output terminals, abstract consumer type, target, modeled channels
5.1.4 Consumer relationships
This section explains specialization and generalization relationships among consumer definition elements and the input-terminal requirements for specialization.
- Consumer specialization relationships: Explain how consumer definition elements can specialize or generalize one another, and describe the input-terminal requirements for specialization.
Why it matters: These relationships connect concrete consumers to abstract types while preserving the required input terminals.
Key terms: specialization, generalization, definition element, input terminals, event types
5.2 The various kinds of event consumers
This section introduces broad event consumer categories and explains that consumers can combine elements from multiple categories.
- Event consumer category families: Describe the event consumer category attribute and the three broad consumer families, including how they can overlap.
Why it matters: These categories help describe consumers without forcing mixed implementations into rigid boxes.
Key terms: event consumer category attribute, hardware, software, human interaction
5.2.1 Hardware event consumers
This section explains how hardware actuators consume events and how they are modeled alongside sensors.
- Actuators as event consumers: Explain how an actuator responds to an event and give an example of its use.
Why it matters: Actuators connect event processing to actions in the physical world. - Separate sensor actuator modeling: Describe how a sensor and actuator are modeled when they share a piece of hardware.
Why it matters: Physical packaging does not erase the different event roles of sensors and actuators.
Key terms: actuator, hardware sensor, event consumer, physical action, sensor, producer, consumer
5.2.2 Human interaction
This section explains how event consumers communicate events to people through alerts, monitoring dashboards, visualizations, and web-based notifications.
- Human-facing event alerts: Explain how human-facing event consumers inform people about events, and distinguish examples suited to urgent and less urgent alerts.
Why it matters: The consumer's purpose and the urgency of an event influence how people are informed. - Dashboards and monitoring metrics: Explain how dashboards gather event information and use computed metrics to show monitoring status, using the network performance example.
Why it matters: Dashboards turn multiple event streams into monitoring information that people can quickly interpret. - Event-specific visual displays: Describe how an event consumer can visualize data in a form appropriate to the event, using the vehicle-tracking example.
Why it matters: A display matched to the event type can make the information useful to the people viewing it. - Feeds and social notifications: Describe how event consumers can distribute notifications through web feeds and social platforms.
Why it matters: Event notifications can reach people through familiar distribution channels beyond a dedicated display.
Key terms: event consumer, alarm systems, Short Message Service, dashboard, metrics, key performance indicators, raw data, Ambient Orb, event visualization, map overlays
5.2.3 Software event consumers
This section describes software-only event consumers, including event logs and gateways to business applications and process management systems.
- Software consumers and event logs: Explain what distinguishes software event consumers and how event logs can be used.
Why it matters: Event logs retain evidence that may become useful only after a problem occurs. - Event log design considerations: Describe the choices involved in designing an event log, including when to favor write performance.
Why it matters: The expected use of a log affects what it should store and which operations its design favors. - Business application integration: Explain how a software event consumer connects an event processing network to line-of-business application logic.
Why it matters: This gateway lets event processing connect to existing business applications without modeling their application logic inside the network. - Business process event integration: Explain how a consumer can use a BPM system to coordinate applications and how events affect workflow or state-machine processes.
Why it matters: Events can drive business processes as well as reach individual applications directly.
Key terms: software consumers, event logs, audit trail, event log, searches, writing, reading, line of business applications, event processing network, SOA interfaces
5.3 Interfacing with event consumers
This section introduces how event consumers connect to an event processing network, from interaction patterns to practical connection mechanisms.
5.3.1 Interaction patterns
This section explains how dynamic consumer classes register members and selectively distribute accepted events while keeping event processing network models manageable.
- Dynamic consumer class membership: Explain how consumer class membership can change and how subscribing and unsubscribing manage its instances. Distinguish a subscriber from the consumer instance being registered.
Why it matters: A single consumer definition can accommodate instances that join and leave over time. - Class filtering and distribution: Trace how an event is filtered and distributed to relevant members of a consumer class. Explain that recipients may process or ignore it.
Why it matters: Passing a class-wide filter does not mean every class member must receive or act on an event. - Consumer modeling tradeoffs: Justify using a consumer class rather than a separate definition for every instance when membership grows or changes.
Why it matters: Grouping consumers can keep the network model manageable without losing selective delivery.
Key terms: event consumer definition element, consumer instance, subscribing, unsubscribing, subscriber, input terminal, filters, class type event consumer, event attributes, consumer instances
5.3.2 Interfacing mechanisms
This section describes protocol- and API-based consumer interfaces and how consumer-class members can register to receive selected events.
- Protocol Based Consumer Interfaces: Explain how a protocol-based mechanism connects an event consumer to an event processing network and how filtering can make distribution more efficient.
Why it matters: This explains both how events cross the interface and why filtering need not wait until they reach consumers. - Consumer API Interface Styles: Distinguish the two styles of consumer API described in the section.
Why it matters: These styles show that a consumer can receive event information either as an object or through resource state. - Consumer Class Member Registration: Explain how registration and filters can support dynamic consumer-class membership and delivery to relevant members.
Why it matters: Registration and filters provide a way to address changing sets of consumers without sending every event to every member. - JMS Message Selector Limitation: Describe how a JMS consumer instance selects its events and where the attributes used by its selector must be placed.
Why it matters: This practical constraint affects how event attributes must be exposed for JMS-based selection.
Key terms: protocol based mechanism, transport protocol, filter expression, push-style, pull-style, API, explicit event object, resources, state, consumer class
5.4 Consumers in the Fast Flower Delivery example
This section explains how event types can be assigned to a consumer’s input terminals and the choice made in the Fast Flower Delivery model.
- Event type terminal assignment: Explain the choices for assigning multiple event types to a consumer’s input terminals and the convention used in the Fast Flower Delivery model.
Why it matters: This choice determines how a consumer’s event inputs are organized in the model.
Key terms: event consumer, event type, input terminal
5.4.1 The three event consumers
This section describes the three Fast Flower Delivery event consumers, their input terminals, and how events reach individual drivers.
- Driver consumer and terminals: Describe the Driver consumer class and the events handled by its input terminals.
Why it matters: This example shows how a consumer class and its terminals represent drivers and the events they handle. - Driver event recipient selection: Explain how individual drivers receive only the Bid Request and Assignment events intended for them.
Why it matters: The consumer class represents all drivers without sending every driver every event. - Store consumer and terminals: Describe the Store consumer class and the events received through its two input terminals.
Why it matters: The Store example shows how different kinds of input are organized for participating florists. - Drivers' Guild consumer instance: Describe the Drivers' Guild consumer and explain why it is modeled as an instance.
Why it matters: The guild illustrates a single consumer instance rather than a class representing multiple recipients.
Key terms: Driver, consumer class, human interaction, input terminal, Bid Request, Assignment, driver attributes, concrete event consumer instance, registration, Store
5.5 Summary
5.5.1 Additional reading
This section recommends a book on business dashboards and their implementation.
5.5.2 Exercises
Where this is used later
- (chapter intro) (chapter 6) · The concept of an event consumer.
- Rule-oriented languages (chapter 10) · The role of an event consumer
- Scalability (chapter 10) · The concept of an event consumer.
- Event processing network and its notation (chapter 6) · The network notation uses nodes to represent entities in an event processing network.
- Filtering on an input terminal (chapter 8) · Filtering on an input terminal develops this event-selection idea further.
- Routing schemes (chapter 6) · Routing schemes build on the idea that channels distribute events to consumers.
Concepts explained in this chapter
- event consumer nodeA modeling construct that represents an abstract event consumer type, a class of concrete consumer instances, or a single concrete consumer instance, and describes its interaction with the rest of an event processing network.
- consumer classA consumer definition element representing a class of event consumers rather than a single instance.
- filter expressionAn expression that determines whether an event instance is selected or excluded, or cannot be evaluated.
- business process management systemA business process management system is software for modeling, executing, and managing business processes.
- api-based mechanismA mechanism that distributes events through a programming interface provided by an event processing network.
- protocol-based mechanismA mechanism that distributes events using a protocol supported by an event processing network implementation.
- input terminalA named endpoint on an event-processing component that receives events from other entities.
- specializationA relationship in which one event type inherits another event type's definition, with possible additions or modifications, and represents a narrower category.
- adapterA software component that enables interaction between systems with incompatible interfaces.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.
