Chapter 1. Entering the world of event processing
Event processing is introduced as a broad computing discipline centered on operations performed on events, whether those events are real-world occurrences or programming entities that represent them. The chapter begins by clarifying basic terms and correcting common confusion, emphasizing that events can be observed directly, inferred from symptoms, or even contemplated as possible occurrences. It also explains how everyday life naturally involves event-driven behavior: people react to routine happenings, unexpected disruptions, and higher-level situations that require action, much like an asynchronous coffee shop that can continue operating while work is completed in the background.
The text then moves from human examples to computerized event processing, showing how systems monitor, analyze, and respond to events in domains such as healthcare, airline baggage handling, manufacturing safety, banking alerts, fraud detection, emergency response, trading, diagnostics, toll collection, and social collaboration. These applications are grouped into five broad categories: observation, information dissemination, dynamic operational behavior, active diagnostics, and predictive processing. The chapter argues that event processing is valuable because it supports timely reaction, can extend existing systems non-invasively, separates event logic from main application logic, and improves scalability and flexibility when large or irregular streams of events must be handled.
Finally, the chapter places event processing in relation to other computing areas such as BPM, BAM, BI, BRMS, network and systems management, message-oriented middleware, and stream computing, highlighting both overlaps and important differences. It also introduces the Fast Flower Delivery application as a running example: a flower-delivery network in which requests, bids, assignments, confirmations, alerts, ranking updates, and activity reports are all driven by event analysis. To support experimentation, the book’s website is presented as a resource with implementations in multiple event-processing languages and styles, reinforcing the chapter’s central message that event processing is both conceptually useful and practically implementable with dedicated platforms.
Coffee shop examples: the synchronous approach (upper illustration) versus the event-driven approach (lower illustration)
Five categories of an event processing application
A highway toll booth. In this example there is an exact mapping between the real-world events at the toll bridge and their representation in the event processing system.
A service provider help desk. In this example the mapping between real-world events and their representation in the event processing system is not as clear cut as in the toll booth example.
The structure of an event processing application, showing the separation of event processing logic from the event producers and event consumers
Parts of the Fast Flower Delivery application. The arrows represent the flow of events, and the pictures represent the various entities involved in the network.
Listing 1.1. Example of the MonitorScript event programming language from Apama
The graphical interface for StreamBase StreamSQL EventFlow
FAQ
What is event processing in Chapter 1?
Event processing is defined broadly as computing that performs operations on events. These operations can include reading, creating, transforming, filtering, and deleting events.
What does the book mean by an event?
An event is an occurrence within a particular system or domain, or something contemplated as having happened there. In computing, the term can also mean the programming entity that represents that occurrence.
How is event-driven behavior different from synchronous behavior?
Event-driven behavior is asynchronous and reacts to events as they happen, while synchronous behavior typically follows a request-response flow where one step waits for the next to finish.
What are some everyday examples of events?
Examples include a phone ringing, an email arriving, someone knocking at the door, a book falling on the floor, or more unexpected situations like a robbery or a missed flight connection.
What is a “situation” in event processing?
A situation is an event occurrence that might require a reaction. Event processing often focuses on detecting and reporting such situations so that people or systems can respond.
What are the main categories of event processing applications?
The chapter identifies five categories: observation, information dissemination, dynamic operational behavior, active diagnostics, and predictive processing.
Why would an organization use event processing?
Common reasons include faster reaction to situations, flexible extension of existing systems, separation of event logic from main application code, parallel processing of large event streams, and improved scalability and fault tolerance.
How does event processing relate to real-world events?
Event processing systems may represent real-world events exactly in deterministic cases, or only approximately when the system infers situations from partial evidence, allowing false positives or false negatives.
What is the business value of a dedicated event processing platform?
A dedicated platform can reduce development and maintenance costs, improve agility, support high-volume and high-performance workloads, and provide tools for designing, testing, running, and managing event logic.
What is the Fast Flower Delivery application used for?
It is the book’s running example for explaining event processing concepts. It models flower delivery requests, driver bidding and assignment, pickup and delivery confirmations, ranking evaluation, and activity monitoring.
Event Processing in Action ebook for free