Skip to main content
QUICK REVIEW

[Paper Review] Foundations of Complex Event Processing.

Alejandro Grez, Cristian Riveros|arXiv (Cornell University)|Sep 15, 2017
Advanced Database Systems and QueriesComputer Science41 references6 citations
TL;DR

This paper proposes a formal framework for Complex Event Processing (CEP) centered on CEL, a language with denotational semantics, and Complex Event Automata (CEA) for efficient evaluation. It introduces optimization techniques and constant-time evaluation algorithms, achieving orders-of-magnitude performance improvements over existing systems, especially on unary filter queries.

ABSTRACT

Complex Event Processing (CEP) has emerged as the unifying field for technologies that require processing and correlating distributed data sources in real-time. CEP finds applications in diverse domains, which has resulted in a large number of proposals for expressing and processing complex events. However, existing CEP languages lack from a clear semantics, making them hard to understand and generalize. Moreover, there are no general techniques for evaluating CEP query languages with clear performance guarantees. In this paper we embark on the task of giving a rigorous and efficient framework to CEP. We propose a formal language for specifying complex events, called CEL, that contains the main features used in the literature and has a denotational and compositional semantics. We also formalize the so-called selection strategies, which had only been presented as by-design extensions to existing frameworks. With a well-defined semantics at hand, we study how to efficiently evaluate CEL for processing complex events in the case of unary filters. We start by studying the syntactical properties of CEL and propose rewriting optimization techniques for simplifying the evaluation of formulas. Then, we introduce a formal computational model for CEP, called complex event automata (CEA), and study how to compile CEL formulas into CEA. Furthermore, we provide efficient algorithms for evaluating CEA over event streams using constant time per event followed by constant-delay enumeration of the results. By gathering these results together, we propose a framework for efficiently evaluating CEL with unary filters. Finally, we show experimentally that this framework consistently outperforms the competition, and even over trivial queries can be orders of magnitude more efficient.

Motivation & Objective

  • To address the lack of formal semantics in existing Complex Event Processing (CEP) languages, which hinders understanding and generalization.
  • To develop a formal computational model for CEP that enables efficient evaluation with performance guarantees.
  • To design a compilation pipeline from CEL formulas to Complex Event Automata (CEA) for optimized runtime execution.
  • To provide rewriting optimization techniques that simplify CEL formulas before evaluation.
  • To achieve constant-time processing per event and constant-delay enumeration of results, ensuring high efficiency.

Proposed method

  • Proposes CEL, a formal language for complex events with denotational and compositional semantics, capturing core features from existing CEP languages.
  • Introduces selection strategies as formally defined components, previously treated as ad hoc extensions in prior systems.
  • Develops a formal computational model called Complex Event Automata (CEA) to represent the execution of CEL formulas.
  • Designs a compilation process that translates CEL formulas into equivalent CEAs for efficient runtime evaluation.
  • Employs optimization techniques based on syntactic rewriting to simplify CEL formulas prior to compilation.
  • Implements an evaluation algorithm that processes each event in constant time and enumerates results with constant delay.

Experimental results

Research questions

  • RQ1How can a formal semantics be established for CEP languages to ensure clarity and compositional reasoning?
  • RQ2What formal model enables efficient and predictable evaluation of complex event queries?
  • RQ3Can rewriting techniques simplify CEL formulas to improve evaluation performance?
  • RQ4How can CEL formulas be compiled into a model that supports constant-time event processing?
  • RQ5What performance guarantees can be achieved in practice using the proposed framework?

Key findings

  • The proposed framework achieves constant-time processing per event and constant-delay enumeration of results, enabling high-throughput CEP.
  • The framework consistently outperforms existing systems, with performance improvements of orders of magnitude on trivial queries.
  • Rewriting optimization techniques significantly reduce formula complexity, improving evaluation efficiency.
  • Compilation of CEL into CEA enables efficient, semantics-preserving execution with strong performance guarantees.
  • The formal semantics and computational model allow for correct-by-construction reasoning and optimization.
  • Empirical evaluation confirms that even simple queries are processed orders of magnitude faster than in competing systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.