Skip to main content

HEM: A Hardware-Aware Event Matching Algorithm for Content-Based Pub/Sub Systems

  • Conference paper
  • First Online:
Database Systems for Advanced Applications (DASFAA 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13245))

Included in the following conference series:

Abstract

Content-based publish/subscribe (CPS) systems are widely used in many fields to achieve selective data distribution. Event matching is a key component in the CPS system. Many efficient algorithms have been proposed to improve matching performance. However, most of the existing work seldom considers the hardware characteristics, resulting in performance degradation due to a large number of repetitive operations, such as comparison, addition and assignment. In this paper, we propose a Hardware-aware Event Matching algorithm called HEM. The basic idea behind HEM is that we perform as many bit OR operations as possible during the matching process, which is most efficient for the hardware. In addition, we build a performance analysis model that quantifies the trade-off between memory consumption and performance improvement. We conducted extensive experiments to evaluate the performance of HEM. On average, HEM reduces matching time by up to 86.8% compared with the counterparts.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Barazzutti, R., Heinze, T., et al.: Elastic scaling of a high-throughput content-based publish/subscribe engine. In: ICDCS, pp. 567–576. IEEE (2014)

    Google Scholar 

  2. Chen, L., Shang, S.: Top-k term publish/subscribe for geo-textual data streams. VLDB J. 29(5), 1101–1128 (2020)

    Article  Google Scholar 

  3. Ding, T., Qian, S.: SCSL: optimizing matching algorithms to improve real-time for content-based pub/sub systems. In: IPDPS, pp. 148–157. IEEE (2020)

    Google Scholar 

  4. Ding, T., et al.: MO-Tree: an efficient forwarding engine for spatiotemporal-aware pub/sub systems. IEEE Trans. Parallel Distrib. Syst. 32(4), 855–866 (2021)

    Article  Google Scholar 

  5. Ding, T., Qian, S., Zhu, W., et al.: Comat: an effective composite matching framework for content-based pub/sub systems. In: ISPA, pp. 236–243. IEEE (2020)

    Google Scholar 

  6. Fan, W., Liu, Y., Tang, B.: GEM: an analytic geometrical approach to fast event matching for multi-dimensional content-based publish/subscribe services. In: IEEE INFOCOM, pp. 1–9 (2016)

    Google Scholar 

  7. Fontoura, M., Sadanandan, S., Shanmugasundaram, J., et al.: Efficiently evaluating complex Boolean expressions. In: ACM SIGMOD, pp. 3–14 (2010)

    Google Scholar 

  8. Gao, C., Xin, X., et al.: ParaBit: processing parallel bitwise operations in NAND flash memory based SSDs. In: IEEE/ACM MICRO-54, pp. 59–70 (2021)

    Google Scholar 

  9. Ji, S.: Ps-tree-based efficient Boolean expression matching for high-dimensional and dense workloads. Proc. VLDB Endow. 12(3), 251–264 (2018)

    Article  Google Scholar 

  10. Ji, S., Jacobsen, H.A.: A-tree: a dynamic data structure for efficiently indexing arbitrary boolean expressions. In: ACM SIGMOD, pp. 817–829 (2021)

    Google Scholar 

  11. Liao, Z., Qian, S., Cao, J., et al.: PhSIH: a lightweight parallelization of event matching in content-based pub/sub systems. In: ICPP, pp. 1–10 (2019)

    Google Scholar 

  12. Ma, X., Wang, Y., Pei, X., Xu, F.: A cloud-assisted publish/subscribe service for time-critical dissemination of bulk content. Concurr. Comput. Pract. Exp. 29(8), e4047 (2017)

    Article  Google Scholar 

  13. Qian, S., Cao, J., Zhu, Y., Li, M.: REIN: a fast event matching approach for content-based publish/subscribe systems. In: IEEE INFOCOM, pp. 2058–2066 (2014)

    Google Scholar 

  14. Qian, S., Cao, J., Zhu, Y., Li, M., Wang, J.: H-tree: an efficient index structure for event matching in content-based publish/subscribe systems. IEEE Trans. Parallel Distrib. Syst. 26(6), 1622–1632 (2015)

    Article  Google Scholar 

  15. Qian, S., Mao, W., Cao, J., Mouël, F.L., Li, M.: Adjusting matching algorithm to adapt to workload fluctuations in content-based publish/subscribe systems. In: IEEE INFOCOM, pp. 1936–1944 (2019)

    Google Scholar 

  16. Sadoghi, M., Labrecque, M., Singh, H., Shum, W., Jacobsen, H.A.: Efficient event processing through reconfigurable hardware for algorithmic trading. Proc. VLDB Endow. 3(1–2), 1525–1528 (2010)

    Article  Google Scholar 

  17. Shah, M.A., Kulkarni, D.: Multi-GPU approach for development of parallel and scalable pub-sub system. In: Iyer, B., Nalbalwar, S.L., Pathak, N.P. (eds.) Computing, Communication and Signal Processing. AISC, vol. 810, pp. 471–478. Springer, Singapore (2019). https://doi.org/10.1007/978-981-13-1513-8_49

    Chapter  Google Scholar 

  18. Wang, Y.: A general scalable and elastic content-based publish/subscribe service. IEEE Trans. Parallel Distrib. Syst. 26(8), 2100–2113 (2014)

    Article  Google Scholar 

  19. Zhang, D., Chan, C.Y., Tan, K.L.: An efficient publish/subscribe index for e-commerce databases. Proc. VLDB Endow. 7(8), 613–624 (2014)

    Article  Google Scholar 

  20. Zhao, Y., Wu, J.: Towards approximate event processing in a large-scale content-based network. In: IEEE ICDCS, pp. 790–799 (2011)

    Google Scholar 

  21. Zhu, W., et al.: Lap: a latency-aware parallelism framework for content-based publish/subscribe systems. Concurr. Comput. Pract. Exp. e6640 (2021)

    Google Scholar 

Download references

Acknowledgments

This work was supported by the National Key Research and Development Program of China (2019YFB1704400), the National Natural Science Foundation of China (61772334, 61702151), and the Special Fund for Scientific Instruments of the National Natural Science Foundation of China (61827810).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shiyou Qian .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Shi, W., Qian, S. (2022). HEM: A Hardware-Aware Event Matching Algorithm for Content-Based Pub/Sub Systems. In: Bhattacharya, A., et al. Database Systems for Advanced Applications. DASFAA 2022. Lecture Notes in Computer Science, vol 13245. Springer, Cham. https://doi.org/10.1007/978-3-031-00123-9_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-00123-9_23

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-00122-2

  • Online ISBN: 978-3-031-00123-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics