The invention discloses a distributed service registration and query method based on fault tolerant, the registration method comprises the following steps: (1) implementation of the super node registration process, system analysis of the data to complete the registration in the super node, and persistence to the local disk. (2) execute redundant node registration process, the system sends the service registration information to the distributed node through the dispatching unit, and maintains to the corresponding node disk. The query method comprises the following steps: (1) executing a super node inquiry process; the system concurrent access amount is low; then, the query result is returned to the user by a super node. (2) the implementation of distributed node query process, the system concurrent access is high, the query request is sent to the distributed node, the nodes execute query tasks in parallel, and finally return the results to the user. The service system constructed according to the above registration and query method overcomes the disadvantages of centralized architecture, and realizes the high availability of query services and the fast and efficient query.
【技术实现步骤摘要】
一种基于容错的分布式服务注册与查询方法
本专利技术涉及Web服务领域,具体涉及一种基于容错的分布式服务注册与查询方法。
技术介绍
互联网上的Web服务数量不断增长,服务集合不断汇聚,如何从大规模服务中快速精准地定位出目标服务成为面向服务框架系统实现的一个重要任务,也是亟待解决的关键问题。传统的集中式架构的Web服务注册系统采用的是一种垄断的手段,所有的服务资源都集中在中央服务器上。这种网络结构的优势在于:维护简单、实时性高,使得对共享资源的查找和更新非常方便。但这种集中式结构也存在明显的弊端:可靠性和安全性较低,中央服务器单点故障将导致所有服务资源不可用;维护成本高,随着服务资源规模的增大,对中央服务器进行维护和更新的复杂度和成本将急剧增加。
技术实现思路
鉴于集中式架构存在的弊端,本专利技术通过分布式网络架构实现服务资源存储及冗余备份,实现服务的分布式组织与管理。系统结合分布式技术对海量原始数据进行解析、分布式存储及冗余备份,在查询过程中采用分布式查询方法快速高效的查询数据,并由Zookeeper框架和Netty框架分别保证查询服务的高可用性和查询的高效性。基于容错的分布式服务注册、查询及Web服务架构组建方法,包括如下步骤:(1)从互联网上获取原始数据(Web服务描述文档),使用MembraneSOAModel框架进行解析。(2)利用分布式服务注册方法,系统将解析生成的数据转发至系统调度单元。(3)系统调度单元将服务信息分别储存到超级节点及集群中的分布式节点;(4)利用分布式服务查询方法,系统将查询请求发送至各节点。(5)各节点根据请求执行查询并返回查询结 ...
【技术保护点】
一种基于容错的分布式服务注册方法,所述方法至少包括如下步骤:(1)执行超级节点注册过程,系统将解析后的数据在超级节点完成注册,并持久化到本地磁盘;(2)执行冗余节点注册过程,系统经由调度单元将服务注册信息发送至分布式节点,并持久化到对应节点磁盘。
【技术特征摘要】
1.一种基于容错的分布式服务注册方法,所述方法至少包括如下步骤:(1)执行超级节点注册过程,系统将解析后的数据在超级节点完成注册,并持久化到本地磁盘;(2)执行冗余节点注册过程,系统经由调度单元将服务注册信息发送至分布式节点,并持久化到对应节点磁盘。2.一种基于容错的分布式服务查询方法,所述方法至少包括如下步骤:(1)执行超级节点查询过程,系统并发访问量较低,则查询结果由超级节点返回至用户;(2)执行分布式节点查询过程,系统并发访问量高,则将查询请求发送至分布式节点,各节点...
【专利技术属性】
技术研发人员:强保华,邹志业,王玉峰,王勇,陈金勇,
申请(专利权)人:桂林电子科技大学,中国电子科技集团公司第五十四研究所,
类型:发明
国别省市:广西,45
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。