摘要
为了应对数据分散在不同的机器节点,通过条件查找,可快速查询到所需的信息内容,设计了分布式查询系统。该系统由查询代理QueryAgent和查询服务QueryService二级结构组成。业务端将查询条件通过RabbitMQ发送给查询代理。查询代理根据查询的条件和信息,找到信息所在机器节点;通过QueryService查询结果,并将结果反馈给查询代理,查询代理通过RabbitMQ将结果反馈给业务前端。根据实际业务数据的增减,可以适时增减机器节点数量,无需调整系统架构和二次开发,即可实现系统快速扩展缩减和最大化资源利用。通过这种分层分布式的设计,可以快速定位数据信息位置,并查询信息详情。系统测试结果表明,所设计的分布式查询系统可以快速、准确地获取查询结果,满足业务端的需求。该设计也降低了模块功能之间的耦合性,为后续增加多级缓存、优化索引结构、提升系统性能提供了便利。
To deal with the data scattered in different computer nodes,through condition search,the required information contentwe can be found quickly.Adistributed query system is designed.The system mainly consists of QueryAgent and QueryService.The business side sends the query criteria to the query agent through RabbitMQ.According to the query conditions and information,the query agent finds the computer node where the information is located,queries the result through QueryService,returns the result to the query agent,and feeds the result back to the business front end through RabbitMQ.According to the increase or decrease of the actual business data,the number of computer nodes can be increased or decreased in time,without adjusting the system architecture and subsequent development,the system can be expanded and reduced rapidly to maximize the use of resources.Through this kind of layered and distributed design,the location of data information can be quickly located and the information details can be quickly queried.The system test results show that the designed distributed query system can obtain the query results quickIy and accurately,and meet the needs of the business.The design also reduces the coupling between the module functions.It provides convenience for the subsequent increase of multi-level cache and optimization of index structure and the improvement of system performance.
作者
任军锋
孟亚旗
REN Junfeng;MENG Yaqi(Shanghai Institute of Process Automation&Instrumentation Co.,Ltd,Shanghai 200233,China)
出处
《自动化仪表》
CAS
2020年第12期92-95,共4页
Process Automation Instrumentation
基金
科技部国家科技重大专项基金资助项目(2017-V-0010-0061)。