Complex Event Processing (CEP)

Innovation Matters


CEP is a lightweight and agile complex event processing (CEP) engine. It aims to ease the cost of changing business logic, automating and monitoring business processes, and enabling an on demand business environment. Our unique CEP capabilities were recognized by Gartner as an emerging market in which "enterprises will achieve new levels of flexibility and a deeper understanding of their business processes by applying the techniques of complex event processing to their daily work".


CEP Flow
The flow of Complex Event Processing

CEP extends the message at a time paradigm, by detecting complex situations that involve a context-sensitive (semantic context, temporal context, spacious-temporal context) composition of messages and events. This functionality is extremely practical when applied to the processing of input from multiple event sources -- from the perspective of a business, application or infrastructure within different contexts. For example, such scenarios may involve SLA (Service Level Agreement) alerts and compliance checking, applicable to the financial markets, banking, and insurance industries.

Event Processing Agent
Complex Event Processing can be performed in many different solution architectures, with a number of CEP (EPA) agents.

The following are some sample rules or events that can be monitored and detected using CEP:
  • Suspicious money transfers - send notification if the total value of all withdrawals (ATM, check, etc.) in the last X days exceeds $Y (where X and Y are parameters that each customer can specify)
  • Fraud detection - send an alert notification if two credit card purchases were made within one hour at a distance greater than 200 Km.
  • Market trends - check for situations where the foreign exchange rate is up by more than X percent and Dow Jones is up by less than Y percent as compared to yesterday's closing rate.
  • Customer care - send an alert if the same request was reassigned to three agents and no answer was given to the requester.

CEP lets business users and application developers configure the middleware in terms of business needs, thus triggering more sophisticated conclusions and enhancing automation and efficiency. CEP can be configured to monitor situations relating to specific rules/events. For example, you can pre-set and automatically correct parameters for breaches of Service Level Agreements.

CEP technology includes an Eclipse based authoring tool for the business user, and a Java-based execution engine for complex event processing.
  • At build time, rules and conditions (called patterns) are composed using a wizard based authoring tool. The user can also use simulation to test these definitions and then export them to the runtime engine.
  • During runtime, events of different format and from multiple sources are fed in. The CEP engine analyzes them based on current rules and conditions. Upon detection of the predefined patterns, alerts are sent out as messages and actions are triggered. These messages are also fed back into the engine and treated as incoming events, enabling nested patterns.

Figure 3
The build-time part represents the rule definition phase. During the runtime phase, events enter the system, and they are processed, correlated, and analyzed to detect complex events.

The following diagram presents the concept of the CEP runtime architecture. All inputs to the system, including both the rule definitions and the events, enter the system through the Input Adapters. All the outputs of the system, including situation alerts, definition messages and system messages, go to the Output Adapters, and optionally to the Action Managers, if an action is required, for example, sending an email or updating a database. This flexible architecture allows the CEP engine to be integrated into any system, to receive inputs and then send alerts to continue the natural flow of information in the system.

CEP Runtime Middleware Componenet Architecture
CEP Runtime Middleware Component Architecture

First, definitions are loaded through the Input Adapters to the Definition Manager. Definitions are parsed, and if they are consistent and complete, they are loaded into the Rule Engine through the Routing Manager. Success / Fail messages are sent to the Output listeners. At this point events can begin to flow into the system, upon their occurrence. Events enter from multiple sources through multiple Input Adapters. The events are routed to the Rule Engine, in order to participate in evaluation of a rule. When a rule is satisfied, a situation is detected.

A detection of a situation may result in three outcomes: Detected situations are sent to the Output Listeners, for further processing of the information; Situations may trigger stand-alone actions, such as sending email, storing information in a DB, etc.; Situations return to the system as incoming events, thus allowing nested rules to be executed.

Haifa's CEP rule engine is a unique attempt to build general purpose event processing engine. CEP is based on previous research focused on specific fields such as active database and network management. We extended pervious concepts and developed a flexible event processing rule engine while resolving several research challenges such as:
  1. How to support different kind of events and messages
  2. How to synchronize events that arrive from different source in different time due to network delays.
  3. How to identify the context (temporal, spatial, semantic) in which a situation detection is relevant
  4. How to change event processing rules without stopping the system (hot updates)
  5. How to support vast numbers of events and conditions in an optimal way
  6. How to detect cycles in rule firing sequence.

For the past seven years, the CEP team in the Haifa Research Lab has been working on complex event processing technology and event driven solutions, from defining and refining the CEP definition language and implementing and optimizating the run-time execution engine for high volume even processing in distributed environments, to building business level CEP tools and integrating them into IBM products, solutions and customer projects. This work on event processing was published in dozens of papers and patents and is helping to form an event processing community.

Related Publications  

Asaf Ad, David Botzer and Opher Etzion. The Situation Manager Component of Amit - Active Middleware Technology. NGITS. 2002.

A. Adi and O. Etzion. Amit - the situation manager. VLDB Journal, 2004.

Asaf Adi and Opher Etzion. The situation manager rule language. RuleML. 2002.

Asaf Adi, Opher Etzion, Dagan Gilat and Guy Sharon. Inference of Reactive Rules from Dependency Models. RuleML. 2003.

Asaf Adi, Ayelet Biger, David Botzer, Opher Etzion and Ziva Sommer. Context Awareness in Amit. Active Middleware Services. 2003.

Asaf Adi, David Botzer, Opher Etzion and Tali Yatzkar-Haham. Monitoring Business Processes through Event Correlation based on Dependency Model. SIGMOD Conference. 2001.

Asaf Adi, David Botzer, Opher Etzion and Tali Yatzkar-Haham. Push Technology Personalization through Event Correlation. VLDB. 2000.

Opher Etzion. Complex Event Processing. ICWS. 2004.

Joris Mihaeli and Opher Etzion. Event Database Processing. ADBIS 2004 - Eighth East-European Conference on Advances in Databases. 2004.


Rate this article

Innovator's corner  

Gil NechushtaiGil Nechushtai Researcher

What is the most exciting potential future use for the work you're doing?
It seems that the potential is amazing. The more we search for industries that are in need of such a technology, we realize that the demand is there. The great challenge is to find the potential clients for CEP, and to figure out how to fit this technology into their working environment in a way that will create real business value for them.

What is the most interesting part of your research?
Whenever we solve, or try to “attack” one issue or aspect of CEP, many others become visible to us. Each solution is a door to many possibilities and requirements that may be added to the technology, in order to enhance and improve the overall offering to our customers.

What inspired you to go into this field?
I have always enjoyed trying to solve problems in general. The area of CEP can really bring business value to organizations. The real challenge of offering the concept of CEP to the specific organizations encapsulates daily problems solving, in terms of creating business rules and fitting the proper architecture for the client needs. The challenge at IBM Research is the combination state of the art innovation that we create, and spreading the word of these new technologies to the world.

What is your favorite invention of all time?
Seems very common, but I must say the airplane. It takes me traveling to see amazing places and cultures all over the world.

Research team  

Asaf Adi

Asaf Adi

Idan Ben-Harrush

Idan Ben-Harrush

Ayelet Biger

Ayelet Biger

David Botzer

David Botzer

Michael Cohen

Michael Cohen

Alexander Kofman

Alexander Kofman

Yonit Magid

Yonit Magid

Gil Nechushtai

Gil Nechushtai

Yoav Rubin

Yoav Rubin

Guy Sharon

Guy Sharon

Vladimir Shcherbina

Vladimir Shcherbina

Tali Yatzkar-Haham

Tali Yatzkar-Haham

Related Research  

Disciplines: Computer Science
Research Areas: Data Management
Research Labs: Haifa Research Lab