skip to main content
10.1145/1559845.1559867acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
research-article

ZStream: a cost-based query processor for adaptively detecting composite events

Authors Info & Claims
Published:29 June 2009Publication History

ABSTRACT

Composite (or Complex) event processing (CEP) systems search sequences of incoming events for occurrences of user-specified event patterns. Recently, they have gained more attention in a variety of areas due to their powerful and expressive query language and performance potential. Sequentiality (temporal ordering) is the primary way in which CEP systems relate events to each other. In this paper, we present a CEP system called ZStream to efficiently process such sequential patterns. Besides simple sequential patterns, ZStream is also able to detect other patterns, including conjunction, disjunction, negation and Kleene closure.

Unlike most recently proposed CEP systems, which use non-deterministic finite automata (NFA's) to detect patterns, ZStream uses tree-based query plans for both the logical and physical representation of query patterns. By carefully designing the underlying infrastructure and algorithms, ZStream is able to unify the evaluation of sequence, conjunction, disjunction, negation, and Kleene closure as variants of the join operator. Under this framework, a single pattern in ZStream may have several equivalent physical tree plans, with different evaluation costs. We propose a cost model to estimate the computation costs of a plan. We show that our cost model can accurately capture the actual runtime behavior of a plan, and that choosing the optimal plan can result in a factor of four or more speedup versus an NFA based approach. Based on this cost model and using a simple set of statistics about operator selectivity and data rates, ZStream is able to adaptively and seamlessly adjust the order in which it detects patterns on the fly. Finally, we describe a dynamic programming algorithm used in our cost model to efficiently search for an optimal query plan for a given pattern.

References

  1. Event Processing Workshop, March 2008. http://complexevents.com/?page_id=87.Google ScholarGoogle Scholar
  2. StreamBase corporate homepage, 2009. http://www.streambase.com/.Google ScholarGoogle Scholar
  3. Coral8 corporate homepage, 2009. http://www.coral8.com/.Google ScholarGoogle Scholar
  4. J. Agrawal, Y. Diao, D. Gyllstrom, and N. Immerman. Efficient pattern matching over event streams. In SIGMOD, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. S. Chakravarthy, V. Krishnaprasad, E. Anwar, and S. Kim. Composite events for active databases: Semantics, contexts and detection. In VLDB, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. U. Dayal et al. The hipac pro ject: Combining active databases and timing constraints. SIGMOD RECORD, 17(1):51--70, March 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. A. Demers, J. Gehrke, B. Panda, M. Riedewald, V. Sharma, and W. White. Cayuga: A general purpose event monitoring system. In CIDR, January 2007.Google ScholarGoogle Scholar
  8. F. Fabret, A. Jacobsen, F. Llirbat, J. Pereira, K. Ross, and D. Shasha. Filtering algorithms and implementation for very fast publish/subscribe systems. In SIGMOD, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. S. Gatziu and K. Dittrich. Events in an active ob ject--oriented database. In Workshop on Rules in Database Systems, 1994.Google ScholarGoogle ScholarCross RefCross Ref
  10. N. Gehani and H. V. Jagadish. Ode as an active database: Constraints and triggers. In VLDB, September 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. S. Madden, M. Shah, J. Hellerstein, and V. Raman. Continuously adaptive continuous queries over streams. In SIGMOD, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. A. Ma jumder, R. Rastogi, and S. Vanama. Scalable regular expression matching on data streams. In SIGMOD, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. R. Sadri, C. Zaniolo, A. Zarkesh, and J. Adibi. Expressing and optimizing sequence queries in database systems. ACM TODS, 29(2), June 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. P. Selinger et al. Access path selection in a relational database management system. In SIGMOD, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. E. Wu, Y. Diao, and S. Rizvi. High-performance complex event processing over streams. In SIGMOD, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Y. Zhu, E. Rundensteiner, and G. Heineman. Dynamic plan migration for continuous queries over data streams. In SIGMOD, 2004 Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. ZStream: a cost-based query processor for adaptively detecting composite events

              Recommendations

              Comments

              Login options

              Check if you have access through your login credentials or your institution to get full access on this article.

              Sign in
              • Published in

                cover image ACM Conferences
                SIGMOD '09: Proceedings of the 2009 ACM SIGMOD International Conference on Management of data
                June 2009
                1168 pages
                ISBN:9781605585512
                DOI:10.1145/1559845

                Copyright © 2009 ACM

                Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

                Publisher

                Association for Computing Machinery

                New York, NY, United States

                Publication History

                • Published: 29 June 2009

                Permissions

                Request permissions about this article.

                Request Permissions

                Check for updates

                Qualifiers

                • research-article

                Acceptance Rates

                Overall Acceptance Rate785of4,003submissions,20%

              PDF Format

              View or Download as a PDF file.

              PDF

              eReader

              View online with eReader.

              eReader