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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Barazzutti, R., Heinze, T., et al.: Elastic scaling of a high-throughput content-based publish/subscribe engine. In: ICDCS, pp. 567–576. IEEE (2014)
Chen, L., Shang, S.: Top-k term publish/subscribe for geo-textual data streams. VLDB J. 29(5), 1101–1128 (2020)
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)
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)
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)
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)
Fontoura, M., Sadanandan, S., Shanmugasundaram, J., et al.: Efficiently evaluating complex Boolean expressions. In: ACM SIGMOD, pp. 3–14 (2010)
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)
Ji, S.: Ps-tree-based efficient Boolean expression matching for high-dimensional and dense workloads. Proc. VLDB Endow. 12(3), 251–264 (2018)
Ji, S., Jacobsen, H.A.: A-tree: a dynamic data structure for efficiently indexing arbitrary boolean expressions. In: ACM SIGMOD, pp. 817–829 (2021)
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)
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)
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)
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)
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)
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)
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
Wang, Y.: A general scalable and elastic content-based publish/subscribe service. IEEE Trans. Parallel Distrib. Syst. 26(8), 2100–2113 (2014)
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)
Zhao, Y., Wu, J.: Towards approximate event processing in a large-scale content-based network. In: IEEE ICDCS, pp. 790–799 (2011)
Zhu, W., et al.: Lap: a latency-aware parallelism framework for content-based publish/subscribe systems. Concurr. Comput. Pract. Exp. e6640 (2021)
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
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
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)