摘要
基于内容的发布订阅是一种比基于主题的发布订阅更加灵活的解耦通信方式,传统的基于内容的匹配算法中大多基于单维度以流水线的方式匹配,如REIN[1]。随着数据规模的增长,这些算法由于串行搜索的限制逐渐不能满足高性能要求。提出一种基于内容的面向大规模发布订阅场景的匹配算法MP-REIN,改进其单维度匹配为多维度并行匹配,考虑使用多线程提高匹配算法的处理速度,使用数量可控的线程并行处理订阅空间内所有属性,大幅度提高了事件匹配的速度。实验结果显示MP-REIN算法在匹配时间和插入时间上较传统的算法有一定的提升。
Content-based publish and subscribe is a more flexible decoupling communication method than topic-based publish and subscribe.Tradi⁃tional content-based matching algorithms are mostly based on single-dimensional matching in a pipelined manner,such as REIN[1].With the increase of data size,these algorithms can not meet the high performance requirements due to the limitation of serial search.This paper proposes a content-based matching algorithm for large-scale publish and subscribe scenarios,MP-REIN,which improves its single-di⁃mensional matching to multi-dimensional parallel matching.It considers using multi-threading to improve the processing speed of the matching algorithm and uses a controlled number of threads in parallel Processing all attributes in the subscription space,greatly improving the speed of event matching.The experimental results show that the MP-REIN algorithm has a certain improvement over the traditional al⁃gorithm in terms of matching time and insertion time.
作者
张澧枫
殷铭
袁平
ZHANG Li-feng;YIN Ming;YUAN Ping(College of Computer Science,Sichuan University,Chengdu 610065;School of Information Science and Technology,Donghua University,Shanghai 201620;School of Mathematics and Information engineering,Chongqing University of Education,Chongqing 400000)
出处
《现代计算机》
2020年第4期11-15,共5页
Modern Computer
基金
科技部国家重点研发计划“综合交通运输与智能交通”重点专项:超大型空港综合交通高效运行与智能服务关键技术及示范应用(No.2018YFB1601200)
四川省科学技术厅省重大科技专项:面向装备诊断和运维的区块链工况数据管理平台研究(No.2019YFG0184)
自然科学基金民航联合基金重点项目:基于大数据的民航枢纽机场运行态势感知关键技术研究(No.U1533203)