CN106649546A - Fault-tolerance based distributed service registration and query method - Google Patents

Fault-tolerance based distributed service registration and query method Download PDF

Info

Publication number
CN106649546A
CN106649546A CN201610960886.3A CN201610960886A CN106649546A CN 106649546 A CN106649546 A CN 106649546A CN 201610960886 A CN201610960886 A CN 201610960886A CN 106649546 A CN106649546 A CN 106649546A
Authority
CN
China
Prior art keywords
node
query
distributed
registration
fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610960886.3A
Other languages
Chinese (zh)
Inventor
强保华
邹志业
王玉峰
王勇
陈金勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guilin University of Electronic Technology
CETC 54 Research Institute
Original Assignee
Guilin University of Electronic Technology
CETC 54 Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guilin University of Electronic Technology, CETC 54 Research Institute filed Critical Guilin University of Electronic Technology
Priority to CN201610960886.3A priority Critical patent/CN106649546A/en
Publication of CN106649546A publication Critical patent/CN106649546A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The invention discloses a fault-tolerance based distributed service registration and query method. The registration method comprises the steps that 1, the registration process of super nodes is carried out, the registrations of the analyzed data are completed in the super nodes by the system, and kept in a local disk; 2, the registration process of redundant nodes is carried out, the service registration information is sent to distributed nodes by the system through an adjustment unit, and kept in the disk of a corresponding node. The query method comprises the steps that 1, the query process of the super nodes is carried out, the system concurrent access is relatively low, and the query results are sent back to the user through the super nodes; 2, the query process of the distributed nodes is carried out, the system concurrent access is high, the query requests are sent to the distributed nodes, and query tasks are executed in parallel by each node, and finally the results are returned to the user. The service system built based on the registration method and the query method overcomes the shortcoming existed in centralized framework, the high availability of query service and the rapid and high efficiency of queries are achieved.

Description

It is a kind of to be registered based on fault-tolerant Distributed Services and querying method
Technical field
The present invention relates to Web service field, and in particular to a kind of based on fault-tolerant Distributed Services registration and querying method.
Background technology
Web service quantity on the Internet constantly increases, and set of service is constantly converged, how quick from extensive service Accurately orienting destination service becomes the vital task that service-oriented frame system is realized, is also key urgently to be resolved hurrily Problem.The Web service Accreditation System of traditional centralized architecture uses a kind of means of monopolization, and all of Service Source is all Concentrate on a central server.The advantage of this network structure is:Safeguard that simple, real-time is high so as to shared resource Search and update very convenient.But the drawbacks of this centralized configuration there is also obvious:Reliability and safety are relatively low, central authorities' clothes Business device Single Point of Faliure will cause all Service Sources unavailable;Maintenance cost is high, with the increase of Service Source scale, to central authorities Server is safeguarded and the complexity that updated and cost will be sharply increased.
The content of the invention
In view of the drawbacks of centralized architecture is present, of the invention to realize that Service Source is stored and superfluous by distributed network architecture Remaining backup, realizes distributed organization and the management of service.System is parsed to magnanimity initial data with reference to distributed computing technology, divided Cloth is stored and redundancy backup, using distributed enquiring method inquiry data rapidly and efficiently in query script, and by Zookeeper frameworks and Netty frameworks ensure respectively the high efficiency of the high availability and inquiry for inquiring about service.
Based on fault-tolerant Distributed Services registration, inquiry and Web service framework construction method, comprise the steps:
(1)Initial data is obtained from the Internet(Web service describes document), carried out using Membrane SOA Model frameworks Parsing.
(2)Using Distributed Services register method, system will parse the data forwarding for generating to system call unit.
(3)System call unit information on services is stored into into respectively super node and cluster in distributed node;
(4)Using Distributed Services querying method, system sends inquiry request to each node.
(5)Query Result is inquired about and returned to each node according to request execution.
The step(2)In Distributed Services register method at least comprise the steps:
(1)Super node registration process is performed, the data after parsing are completed registration by system in super node, and are persisted to this Local disk.
(2)Redundant node registration process is performed, system sends service registration information to distributed section via scheduling unit Point, and it is persisted to corresponding node disk.
The step(4)Middle Distributed Services querying method at least comprises the steps:
(1)Super node query script is performed, system concurrency visit capacity is relatively low, then Query Result is back to use by super node Family.
(2)Distributed node query script is performed, system concurrency visit capacity is high, then inquiry request is sent to distributed section Point, each nodal parallel performs query task, finally result is back to into user.
Description of the drawings
Fig. 1 is the FB(flow block) of the present invention.
Specific embodiment
As shown in figure 1, based on fault-tolerant Distributed Services registration and inquiry, illustrate the distributed registry of whole system with Query script, data resolution module is parsed to initial data, and for Distributed Services Registering modules effectively original data are provided. Distributed registry module is stored into each node in cluster to the data distribution formula through parsing;Data backup module will be registered Information on services backup on distributed node, improve the fault-tolerance of system;Distributed query module is obtained by page request The inquiry request at family is taken, inquiry request is distributed to each node in cluster by system, after node is asked, inquiry service Just inquire about local data base and Query Result is back to into system, system merges sequence to the data that each node is returned, most After return to user.
What Distributed Services were registered concretely comprises the following steps:
(1)User signs in super node by browser, submits service registration request to.
(2)Super node uses Membrane SOA Model Analysis on Framework service registration requests, and will take in the node Business information is persisted to MySQL database.
(3)Super node is to ZooKeeper cluster application backup nodes address.
(4)Super node is dispatched using Netty communications frameworks and is forwarded to backup node with distribution registration request.
(5)Backup node uses Membrane SOA Model Analysis on Framework service registration requests, and will take in the node Business information is persisted to MySQL database.
What Distributed Services were inquired about concretely comprises the following steps:
(1)User signs in super node by browser, submits service-seeking request to.
(2)When concurrently visit capacity is relatively low, super node parsing inquiry request, and inquiry is completed in the node, will inquiry knot Fruit is back to user.
(3)When concurrently visit capacity is higher, the preferential custom system of order will be back to Query Result by super node User;The service-seeking request that follow-up user submits to, then be distributed to distributed node by system, and Query Result is by being distributed User is inquired about and be back to each nodal parallel of formula.
Web service system is built according to the registration of above-mentioned Distributed Services and querying method, is comprised the steps:
(1)Initial data is obtained from the Internet, is parsed using Membrane SOA Model frameworks.
(2)Using Distributed Services register method by the data forwarding after parsing to system call unit.
(3)Information on services is stored into respectively system call unit super node and distributed each node.
(4)Distribute inquiry request to each node using Distributed Services querying method system.
(5)Each node performs inquiry and returning result according to request.
(6)System is ranked up to the result that each node is returned.
The present invention makes full use of the high efficiency of distributed computing technology by the brand-new service registry of structure and inquiry system, will The registration of information on services is combined together with inquiry and completes core business, and system is won using Hong Kong Chinese University Zibin Zheng , used as initial data, data resolution module is carried out to initial data for scholar's collection and on the internet disclosed Web service data collection Parsing, service register module is separately stored on the super node of cluster and each distributed node to the data after parsing, starts Inquiry service processing inquiry request on each node, finally realizes the rapidly and efficiently property of inquiry in inquiry system.

Claims (4)

1. a kind of based on fault-tolerant Distributed Services register method, methods described at least comprises the steps:
(1)Super node registration process is performed, the data after parsing are completed registration by system in super node, and are persisted to this Local disk;
(2)Redundant node registration process is performed, system sends service registration information to distributed node via scheduling unit, and It is persisted to corresponding node disk.
2. a kind of based on fault-tolerant Distributed Services querying method, methods described at least comprises the steps:
(1)Super node query script is performed, system concurrency visit capacity is relatively low, then Query Result is back to use by super node Family;
(2)Distributed node query script is performed, system concurrency visit capacity is high, then inquiry request is sent to distributed node, Each nodal parallel performs query task, finally result is back to into user.
3. a kind of based on fault-tolerant Distributed Services registration and inquiry system, the system at least includes:
(1)Using register method described in claim 1, the device of the data forwarding to system call unit that parsing is generated;
(2)Using querying method described in claim 2, inquiry request is sent to the device of each node.
4. system according to claim 3, also includes:
(1)Initial data is obtained from the Internet, the device parsed using Membrane SOA Model frameworks;
(2)The device of the distributed node during information on services is stored into respectively into super node and cluster;
(3)Each node performs the device for inquiring about and returning Query Result according to request.
CN201610960886.3A 2016-11-04 2016-11-04 Fault-tolerance based distributed service registration and query method Pending CN106649546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610960886.3A CN106649546A (en) 2016-11-04 2016-11-04 Fault-tolerance based distributed service registration and query method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610960886.3A CN106649546A (en) 2016-11-04 2016-11-04 Fault-tolerance based distributed service registration and query method

Publications (1)

Publication Number Publication Date
CN106649546A true CN106649546A (en) 2017-05-10

Family

ID=58820569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610960886.3A Pending CN106649546A (en) 2016-11-04 2016-11-04 Fault-tolerance based distributed service registration and query method

Country Status (1)

Country Link
CN (1) CN106649546A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109063072A (en) * 2018-07-24 2018-12-21 西安科技大学 The querying method and device of information in a kind of engineering management

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123610A (en) * 2007-09-13 2008-02-13 北京交通大学 A mixed distributed overlapped network device and its service registration and finding method
CN101568911A (en) * 2006-11-29 2009-10-28 张永敏 Method and system of group-to-group computing
CN102006328A (en) * 2010-11-24 2011-04-06 中国联合网络通信集团有限公司 Peer-to-peer (P2P) streaming media distributed network system and data transmission method thereof
CN103873501A (en) * 2012-12-12 2014-06-18 华中科技大学 Cloud backup system and data backup method thereof
CN105740085A (en) * 2014-12-11 2016-07-06 华为技术有限公司 Fault tolerance processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568911A (en) * 2006-11-29 2009-10-28 张永敏 Method and system of group-to-group computing
CN101123610A (en) * 2007-09-13 2008-02-13 北京交通大学 A mixed distributed overlapped network device and its service registration and finding method
CN102006328A (en) * 2010-11-24 2011-04-06 中国联合网络通信集团有限公司 Peer-to-peer (P2P) streaming media distributed network system and data transmission method thereof
CN103873501A (en) * 2012-12-12 2014-06-18 华中科技大学 Cloud backup system and data backup method thereof
CN105740085A (en) * 2014-12-11 2016-07-06 华为技术有限公司 Fault tolerance processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109063072A (en) * 2018-07-24 2018-12-21 西安科技大学 The querying method and device of information in a kind of engineering management

Similar Documents

Publication Publication Date Title
US11442942B2 (en) Modified representational state transfer (REST) application programming interface (API) including a customized GraphQL framework
CN109716320B (en) Method, system, medium and application processing engine for graph generation for event processing
JP6165729B2 (en) Method and system for maintaining strong consistency of distributed replicated content in a client / server system
CN103226493B (en) The dispositions method and system of multi-operation system service
CN102394928B (en) Semanteme web service system under distributed environment
CN102542367B (en) Cloud computing network workflow processing method, device and system based on domain model
CN103281368A (en) Data sharing exchange model and method based on cloud computation
CN102262674A (en) Data synchronization method and system for distributed memory database
Zhelev et al. Using microservices and event driven architecture for big data stream processing
CN102262680A (en) Distributed database proxy system based on massive data access requirement
US11176594B2 (en) Transformation and aggregation engine
US20130117290A1 (en) Platform for software as a service and method for provisioning service for supporting multi-tenants using the platform
WO2015167713A1 (en) System and method for supporting a bypass-domain model and a proxy model and updating service information for across-domain messaging in a transactional middleware machine environment
CN101808051B (en) Application integration gateway and control method thereof
CN102968307A (en) Java-based web development middleware
US11226978B2 (en) Systems and methods for dynamic creation of schemas
CN112307066B (en) Distributed data aggregation method, system, device and storage medium
CN106886371A (en) caching data processing method and device
El Kholy et al. Framework for interaction between databases and microservice architecture
US20210089426A1 (en) Parsing hierarchical session log data for search and analytics
WO2017088347A1 (en) Method, device and system for managing user usage information of application based on paas platform
JP2008203939A (en) Log management device, log management method, program, and recording medium
CN106649546A (en) Fault-tolerance based distributed service registration and query method
CN101206649B (en) Multitask analysis system and method
Lau et al. Designing fault tolerant web services using bpel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170510