CN108924215A - A kind of service discovery processing method and processing device based on tree structure - Google Patents

A kind of service discovery processing method and processing device based on tree structure Download PDF

Info

Publication number
CN108924215A
CN108924215A CN201810688306.9A CN201810688306A CN108924215A CN 108924215 A CN108924215 A CN 108924215A CN 201810688306 A CN201810688306 A CN 201810688306A CN 108924215 A CN108924215 A CN 108924215A
Authority
CN
China
Prior art keywords
tree structure
key
service
name
name data
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.)
Granted
Application number
CN201810688306.9A
Other languages
Chinese (zh)
Other versions
CN108924215B (en
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.)
Beijing SF Intra City Technology Co Ltd
Original Assignee
Beijing SF Intra City Technology Co Ltd
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 Beijing SF Intra City Technology Co Ltd filed Critical Beijing SF Intra City Technology Co Ltd
Priority to CN201810688306.9A priority Critical patent/CN108924215B/en
Publication of CN108924215A publication Critical patent/CN108924215A/en
Application granted granted Critical
Publication of CN108924215B publication Critical patent/CN108924215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • 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/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The service discovery processing method and processing device based on tree structure that the embodiment of the invention discloses a kind of, method include:If listening to local port is passed to name data, name data is parsed, the corresponding key value Key of name data is obtained, the tree structure in memory is rebuild and stored according to name data corresponding Key;The operation of all Key under preset monitored path searches each example of tree structure according to target Key if knowing that target Key changes according to operation judges;If finding the corresponding object instance of target Key in tree structure, the corresponding local subscription service of object instance is updated.By establishing tree structure, example is stored using tree structure, greatly reduces data maintenance cost, and also more easy to maintain when level is more;When listening to target Key and changing, corresponding target Key is searched by tree structure, the update of local subscription service is realized, solves Data Consistency using minimum cost.

Description

A kind of service discovery processing method and processing device based on tree structure
Technical field
The present embodiments relate to fields of communication technology, and in particular to a kind of service discovery processing side based on tree structure Method and device.
Background technique
Service discovery is used to solve to service and calling between servicing the decoupling of resource, and safeguard service title and Service Instance arrange The corresponding relationship of table.When there are remote resource access, the port IP of all examples can be got in real time by service name, into And it accesses.
In the prior art, data storage format is essentially the mapping of service name and example collection.For example define a clothes Business title, service name are associated with the set of one group of example information behind.When needing to obtain example information, pass through service name The set for getting example information chooses some example.The storage side of the existing mapping based on service name and example collection The service discovery that case is realized can only be by establishing service group and including several other services if thinking the characteristic of realization multi-layer Name corresponding instance set realizes, such as:All examples of computer room B under Service name A are obtained, the Service name of computer room B can only be created And corresponding instance set, then Service name A is subjected to cascade connection with Service name B and is associated with, just it is able to achieve the institute for obtaining the service There are example, and the example of the computer room B under the available service.
During realizing the embodiment of the present invention, inventor has found that existing method needs the very big cost of flower to solve data The relationship of consistency problem, and when level is more, this group and group will also become complicated, substantially increase maintenance cost.
Summary of the invention
Since existing method is there are the above problem, the embodiment of the present invention is proposed at a kind of service discovery based on tree structure Manage method and device.
In a first aspect, the embodiment of the present invention proposes a kind of service discovery processing method based on tree structure, including:
If listening to local port is passed to name data, the name data is parsed, the name number of words is obtained According to corresponding key value Key, the tree structure in memory is rebuild and stored according to the name data corresponding Key;
The operation of all Key under preset monitored path, if knowing that target Key changes according to the operation judges, Each example of the tree structure is searched according to the target Key;
If the corresponding object instance of the target Key is found in the tree structure, to the object instance pair The local subscription service answered is updated.
Optionally, if described find the corresponding object instance of the target Key in the tree structure, to described After the corresponding local subscription service of object instance is updated, further include:
The IP address of internal network for parsing present terminal, according to IP address of internal network acquisition from name cluster server All examples of present terminal provide health status detection service to the port IP of each example, and health status are detected and is taken The testing result of business feeds back to the name cluster server.
Optionally, the Key is named according to the level of the tree structure.
Optionally, the tree structure is divided according to the organization structure of the enterprise and service type.
Second aspect, the embodiment of the present invention also propose a kind of service discovery processing unit based on tree structure, including:
Data resolution module solves the name data if being passed to name data for listening to local port Analysis, obtains the corresponding key value Key of the name data, according to the corresponding Key of the name data to the tree structure in memory It is rebuild and is stored;
Example searching module, for the operation of all Key under preset monitored path, if knowing mesh according to the operation judges Mark Key changes, then each example of the tree structure is searched according to the target Key;
Update module is serviced, if for finding the corresponding object instance of the target Key in the tree structure, The corresponding local subscription service of the object instance is updated.
Optionally, described device further includes:
Health detection module collects according to the IP address of internal network from name for parsing the IP address of internal network of present terminal All examples that the present terminal is obtained in group's server provide health status detection service to the port IP of each example, And the testing result of health status detection service is fed back into the name cluster server.
Optionally, the Key is named according to the level of the tree structure.
Optionally, the tree structure is divided according to the organization structure of the enterprise and service type.
The third aspect, the embodiment of the present invention also propose a kind of electronic equipment, including:
At least one processor;And
At least one processor being connect with the processor communication, wherein:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out the above method.
Fourth aspect, the embodiment of the present invention also propose a kind of non-transient computer readable storage medium, the non-transient meter Calculation machine readable storage medium storing program for executing stores computer program, and the computer program makes the computer execute the above method.
As shown from the above technical solution, the embodiment of the present invention stores example using tree structure by establishing tree structure, Data maintenance cost is greatly reduced, and also more easy to maintain when level is more;When listening to target Key and changing, lead to It crosses tree structure and searches corresponding target Key, realize the update of local subscription service, solve data one using minimum cost Cause property problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these figures.
Fig. 1 is a kind of process signal for service discovery processing method based on tree structure that one embodiment of the invention provides Figure;
Fig. 2 is a kind of schematic diagram for tree structure that one embodiment of the invention provides;
Fig. 3 is a kind of interaction signal for service discovery processing system based on tree structure that one embodiment of the invention provides Figure;
Fig. 4 be another embodiment of the present invention provides the process of service discovery processing method based on tree structure a kind of show It is intended to;
Fig. 5 is a kind of structural representation for service discovery processing unit based on tree structure that one embodiment of the invention provides Figure;
Fig. 6 is the logic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
With reference to the accompanying drawing, further description of the specific embodiments of the present invention.Following embodiment is only used for more Technical solution of the present invention is clearly demonstrated, and not intended to limit the protection scope of the present invention.
Fig. 1 shows a kind of process signal of service discovery processing method based on tree structure provided in this embodiment Figure, including:
If S101, listening to the incoming name data of local port, the name data is parsed, the name is obtained The corresponding key value Key of digital data is rebuild and is deposited to the tree structure in memory according to the corresponding Key of the name data Storage.
Wherein, the Key is named according to the level of the tree structure.
The tree structure is divided according to the organization structure of the enterprise and service type.
Specifically, local fixed port is monitored, provides the function of service name resolution to other services that present terminal is disposed Energy.By parsing to incoming name data, to judge the set for reading example is made of which example, and ETCD is read The Key of (open source, distributed key-value pair data storage system) corresponding prefix, and result is subjected to tree structure in memory Reconstruction and storage.
It should be noted that the set of the example in stored tree structure is known as the local subscription clothes of the terminal Business.
The operation of all Key under S102, preset monitored path, if knowing that target Key becomes according to the operation judges Change, then searches each example of the tree structure according to the target Key.
It is real to the target if S103, finding the corresponding object instance of the target Key in the tree structure The corresponding local subscription service of example is updated.
Specifically, service layer's grade is defined by the present embodiment, by taking Fig. 2 as an example, by the affiliated level of Service Instance from highest Level (subsidiary) is divided to lowest hierarchical level (computer room).It, can be with by the lookup of a node based on the tree structure All example informations of node or less are read, but need to guarantee on the data store the lookup feature of tree structure.
During concrete implementation, as shown in Figure 1, wherein SFNS Naming Cluster is a set of distributed type assemblies Service, server end is deployed in using distributed mode, by external management platform and have service registration application provide API is stored and is inquired according to given structure to example information;SFNS Naming Agent is an infrastructure component deployment Onto each physical machine, it is mainly attached with SFNS Naming Cluster, monitors the variation of service and real-time update Local data, and local example is monitored.Each be deployed in physical machine example (back-end services A in Fig. 3 and after End service B), the corresponding example list of service identifiers for oneself wanting parsing is all read with SFNS Naming Agent.
Wherein, service identifiers are no longer simple service names, but level and certain rule define as desired. Such as:
Gz.serviceA.subsysA.companyA.svc indicates that the gz computer room for servicing A under subsidiary A under product line A is real Example list.
ServiceA.subsysA.companyA.svc indicates that all computer rooms for servicing A under subsidiary A under product line A are real Example list.
SubsysA.companyA.svc indicates all computer room example lists of product line A under subsidiary A.
1.gz.serviceA.subsysA.companyA.svc indicates there was only the gz for servicing A under subsidiary A under product line A The example list of computer room example 1.
Height and level, no other limitations can be defined according to different demands using tree structure.In terms of data storage Storage of the Etcd as service discovery data is selected, is the core in SFNS Naming Cluster.Develop Naming Admin Data are written and are modified according to rule in rear module control Etcd, and Naming Admin provides internal api interface, connects By the node change request for coming Self management platform and automatic registration module.It is stored in the tree structure of data in Etcd, on Key It embodies.For example, there is the service of an entitled C at the product line B under subsidiary A, increase by the in the GZ computer room of this service One example, then the storage in etcd is as follows:
Key:/ prefix/a (subsidiary's name)/b (product line name)/c (Service name)/gz (computer room name)/1 (example number)
VALUE:{"host":10.1.1.1,"port":8080,"status":1,"enable":true}
Based on such storage rule, it can be found that correspondence increases a Key in Etcd when one example of every increase. The example being under same node point such as Fig. 2, the Key prefix stored in Etcd should completely the same (/prefix/a/b/c/ gz/).Comprising after tree structure in Key, it is desirable to reading example information according to level just becomes simply, such as:Want before reading The example for all gz computer rooms that face is mentioned, as long as by prefix be /all Key of prefix/a/b/c/gz/ read out, so that it may To obtain an example list;Want to read the example list of entire product line, as long as being the institute of/prefix/a/b/ by prefix Have Key read out can, the challenge of multi-layer reading service example is simplified, and more flexible.
Every physical machine by initialization can all be connected with each other with SFNS Naming Cluster, and possess parsing The ability of service identifiers.In addition to this, SFNS provides standardized SDK and gives each back-end services, can make back-end services without at This is interacted with SFNS Naming Agent, submits the service identifiers of subscription, the Service Instance of the corresponding real-time update of parsing.
For example, name is:ServiceA.subsysB.companyC is then read in tree structure storage, Leaf node information all under serviceA under subsysB under companyC, i.e. prefix are /prefix/companyC/ The Key of subsysB/servicesA/.The set of all examples under all computer rooms of serviceA can be got.Name is: 1.gz.serviceA.subsysB.companyC is then read in tree structure storage, under companyC under subsysB Lower first leaf node information of gz, as/prefix/companyC/subsysB/servicesA/gz/1 under serviceA Key, only obtain the set containing an example.All example collections read, can be in memory according to tree structure Relationship stored.When the analysis request of next different service name gz.serviceA.subsysB.companyC, Because the tree for once parsing serviceA.subsysB.companyC is present in memory, and Gz.serviceA.subsysB.companyC is his subtree, it is possible to directly return from internal storage data, not need to draw Take server-side.
Compared to the service discovery of set associative, method provided in this embodiment need not define multiple set, then be gathered Association, so that it may obtain the different dimensions set of different services, and the content of the Service Instance set obtained on demand, directly withdraw deposit It semantically, is used convenient for research and development and O&M, maintenance, because multiple set have relationship in itself, for subscribing to superset conjunction For physical machine, this subclass closed without subscribing to the superset again reduces the number of data exchange.
The present embodiment is monitored in the variation of subscription service in physical machine, realizes that simple and treatment effeciency can be promoted.Such as: In the case that one example is included by multiple set of service, one-shot change only can be listened to, each Naming-Agent is only needed The information of most 1 next leaf node is updated, the service of all subscription can all be updated comprising the information of this example.And other take The more set associative modes found of being engaged in include that this subscription service for updating example will trigger one-shot change it is necessary to each.It is first First this may carry out complicated design on the interaction protocol of long connection, for example inform clothes during connection is established in long connection It is engaged in end, the set of service which has been subscribed to being monitored, secondly how guarantees all subscription set comprising the variation instance, disposably The problems such as all updating, guaranteeing data consistency.And the variation of set is not equal to the variation of example, the reality in needing to gather Example carries out differentiation comparison or the covering of clear-cut full dose.The set for imagining all examples comprising full company, simply by the presence of reality Example variation, the set will trigger one-shot change, and every physical machine just needs to carry out a differentiation comparison or full dose covering.
The present embodiment stores example by establishing tree structure, using tree structure, greatly reduces data maintenance cost, And it is also more easy to maintain when level is more;When listening to target Key and changing, corresponding target is searched by tree structure Key realizes the update of local subscription service, solves Data Consistency using minimum cost.
Further, on the basis of above method embodiment, after S103, further include:
S104, the IP address of internal network for parsing present terminal are obtained from name cluster server according to the IP address of internal network All examples for taking the present terminal provide health status detection service to the port IP of each example, and by health status The testing result of detection service feeds back to the name cluster server.
Specifically, API function and data storage based on SFNS Naming Cluster, may be implemented de-centralized Service discovery service.As shown in Figure 2, on each physical machine, the group of entitled SFNS Naming-Agent is all deployed Part.
It is most of that the work of Naming-Agent is divided into 3:
Thread starts server, monitors local fixed port, provides Service name to other services that present physical machine is disposed The function of word parsing.By to judge the set for reading example is made of which example, and reading to incoming name resolution ETCD corresponds to the Key of prefix, and result is carried out to the reconstruction and storage of tree structure, stored tree-like example set in memory Close the service for being known as being subscribed to by the physical machine.
Long connection is established with Etcd, monitoring root path is /write-in, change and the delete operation of all Key of prefix/. If there is a change, the tree structure in memory is searched according to the Key of variation, if the example of variation belongs to locally subscribed clothes The instance data of respective path in memory, then be updated by business.Number in the memory node if it does not exist, then ignore.
The IP address of internal network of present physical machine is parsed, and current institute is obtained from SFNS Naming Cluster based on IP In all example informations of physical machine, and the sniff of health status is carried out to the IP PORT of each example, and state reporting is returned SFNS Naming Cluster。
The convenient place of the service discovery of this tree structure realization, such as Fig. 4 are illustrated with an overall scenario It is shown:
When one flow is serviced by domain name access to access layer, by the mapping of domain name and service identifiers, and clothes are parsed Business identifies corresponding example list, the reverse proxy made requests.
Request reaches back-end services A, and back-end services A is other than completing own service logic, it is also necessary to after remote access End service B;The own service logic that back-end services B is executed needs to access the write-in or inquiry that rear end storage service carries out data. In whole process, the either remote access of reverse proxy or other services requires the instance address for knowing downstream service Information, i.e. IP and port.
Assuming that back-end services A is named as backservice_a, back-end services B when management platform creates these services It is dbservice_d for backservice_b, rear end storage service, if they belong to the product of subsidiary company_c Line subsys_s, then:
When access layer carries out reverse proxy to back-end services A, the service identifiers that he only needs to configure are Backservice_a.subsys_s.company_c.svc, this will get all examples of all computer rooms of this service.
When back-end services A carries out far call to back-end services B, similarly, but if back-end services A wants to visit with computer room When asking back-end services B, it is only necessary to configure service mark according to gz.backservice_b.subsys_s.company_c.svc Know, the example list being resolved in this way is just only comprising the example under gz computer room.
If back-end services are a non-open type services, can be visited just for machine where the back-end services in this product line It asks, when carrying out the authorization of IP white list, it is only necessary to configure subsys_s.company_c.svc, it can own under product Machine is open where service.
Storage service as shown in Figure 4 is also required to carry out IP authorization, but open just for service B, ibid only need by Backservice_b.subsys_s.company_.svc is configured.
Although getting the example collection of different number it can be seen that having used a variety of levels in various scenes to expire Sufficient demand, but service discovery management above, it is only necessary to safeguard so-called " service group " information, here it is according to Tree structure is convenient brought by service discovery to realize.Realize simple, clear in structure, reduction O&M cost.
Fig. 5 shows a kind of structural representation of service discovery processing unit based on tree structure provided in this embodiment Figure, described device include:Data resolution module 501, example searching module 502 and service update module 503, wherein:
If the data resolution module 501 is passed to name data for listening to local port, to the name data It is parsed, obtains the corresponding key value Key of the name data, according to the corresponding Key of the name data to the tree in memory Shape structure is rebuild and is stored;
The example searching module 502 is used for the operation of all Key under preset monitored path, if according to the operation judges Know that target Key changes, then searches each example of the tree structure according to the target Key;
If the service update module 503 in the tree structure for finding the corresponding target of the target Key Example is then updated the corresponding local subscription service of the object instance.
Specifically, if the data resolution module 501 listens to local port and is passed to name data, to the name number of words According to being parsed, the corresponding key value Key of the name data is obtained, according to the corresponding Key of the name data in memory Tree structure is rebuild and is stored;The operation of all Key under the 502 preset monitored path of example searching module, if according to The operation judges know that target Key changes, then each example of the tree structure is searched according to the target Key;Institute If state service update module 503 finds the corresponding object instance of the target Key in the tree structure, to the mesh The corresponding local subscription service of mark example is updated.
The present embodiment stores example by establishing tree structure, using tree structure, greatly reduces data maintenance cost, And it is also more easy to maintain when level is more;When listening to target Key and changing, corresponding target is searched by tree structure Key realizes the update of local subscription service, solves Data Consistency using minimum cost.
Further, on the basis of above-mentioned apparatus embodiment, described device further includes:
Health detection module collects according to the IP address of internal network from name for parsing the IP address of internal network of present terminal All examples that the present terminal is obtained in group's server provide health status detection service to the port IP of each example, And the testing result of health status detection service is fed back into the name cluster server.
Further, on the basis of above-mentioned apparatus embodiment, the Key is ordered according to the level of the tree structure Name.
Further, on the basis of above-mentioned apparatus embodiment, the tree structure is according to the organization structure of the enterprise and service Type is divided.
Service processing device described in the present embodiment based on tree structure can be used for executing above method embodiment, Principle is similar with technical effect, and details are not described herein again.
Reference Fig. 6, the electronic equipment, including:Processor (processor) 601, memory (memory) 602 and total Line 603;
Wherein,
The processor 601 and memory 602 complete mutual communication by the bus 603;
The processor 601 is used to call the program instruction in the memory 602, to execute above-mentioned each method embodiment Provided method.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
It should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although reference Invention is explained in detail for previous embodiment, those skilled in the art should understand that:It still can be right Technical solution documented by foregoing embodiments is modified or equivalent replacement of some of the technical features;And this It modifies or replaces, the spirit and model of technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution It encloses.

Claims (10)

1. a kind of service discovery processing method based on tree structure, which is characterized in that including:
If listening to local port is passed to name data, the name data is parsed, the name data pair is obtained The key value Key answered is rebuild and is stored to the tree structure in memory according to the corresponding Key of the name data;
The operation of all Key under preset monitored path, if knowing that target Key changes according to the operation judges, basis The target Key searches each example of the tree structure;
It is corresponding to the object instance if finding the corresponding object instance of the target Key in the tree structure Local subscription service is updated.
2. if the method according to claim 1, wherein described find the target in the tree structure The corresponding object instance of Key further includes after being then updated to the corresponding local subscription service of the object instance:
The IP address of internal network for parsing present terminal is obtained from name cluster server described current according to the IP address of internal network All examples of terminal provide health status detection service to the port IP of each example, and by health status detection service Testing result feeds back to the name cluster server.
3. method according to claim 1 or 2, which is characterized in that the Key is carried out according to the level of the tree structure Name.
4. method according to claim 1 or 2, which is characterized in that the tree structure is according to organization structure of the enterprise kimonos Service type is divided.
5. a kind of service discovery processing unit based on tree structure, which is characterized in that including:
Data resolution module parses the name data, obtains if being passed to name data for listening to local port To the corresponding key value Key of the name data, weight is carried out to the tree structure in memory according to the corresponding Key of the name data It builds and stores;
Example searching module, for the operation of all Key under preset monitored path, if knowing target according to the operation judges Key changes, then each example of the tree structure is searched according to the target Key;
Update module is serviced, if for finding the corresponding object instance of the target Key in the tree structure, to institute The corresponding local subscription service of object instance is stated to be updated.
6. device according to claim 5, which is characterized in that described device further includes:
Health detection module takes according to the IP address of internal network from name cluster for parsing the IP address of internal network of present terminal All examples that the present terminal is obtained in business device provide health status detection service to the port IP of each example, and will The testing result of health status detection service feeds back to the name cluster server.
7. device according to claim 5 or 6, which is characterized in that the Key is carried out according to the level of the tree structure Name.
8. device according to claim 5 or 6, which is characterized in that the tree structure is according to organization structure of the enterprise kimonos Service type is divided.
9. a kind of electronic equipment, which is characterized in that including:
At least one processor;And
At least one processor being connect with the processor communication, wherein:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in Claims 1-4 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer program is stored up, the computer program makes the computer execute the method as described in Claims 1-4 is any.
CN201810688306.9A 2018-06-28 2018-06-28 Service discovery processing method and device based on tree structure Active CN108924215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810688306.9A CN108924215B (en) 2018-06-28 2018-06-28 Service discovery processing method and device based on tree structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810688306.9A CN108924215B (en) 2018-06-28 2018-06-28 Service discovery processing method and device based on tree structure

Publications (2)

Publication Number Publication Date
CN108924215A true CN108924215A (en) 2018-11-30
CN108924215B CN108924215B (en) 2021-03-19

Family

ID=64422019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810688306.9A Active CN108924215B (en) 2018-06-28 2018-06-28 Service discovery processing method and device based on tree structure

Country Status (1)

Country Link
CN (1) CN108924215B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489812A (en) * 2019-07-25 2019-11-22 广东高云半导体科技股份有限公司 Multilayer level netlist processing method, device, computer equipment and storage medium
CN110795442A (en) * 2019-09-27 2020-02-14 北京浪潮数据技术有限公司 Key value updating method, device, equipment and readable storage medium
CN111756711A (en) * 2020-06-11 2020-10-09 微医云(杭州)控股有限公司 Flow control method, device, system and storage medium
CN114401319A (en) * 2022-01-17 2022-04-26 星环信息科技(上海)股份有限公司 Request processing method, device, server and storage medium
CN115174660A (en) * 2022-08-03 2022-10-11 以萨技术股份有限公司 Service registration and discovery method, device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286160A (en) * 2008-05-30 2008-10-15 同济大学 Data base indexing process
CN102521375A (en) * 2011-12-19 2012-06-27 山东中创软件商用中间件股份有限公司 Directory service data retrieval method and directory service data retrieval system
CN103714134A (en) * 2013-12-18 2014-04-09 中国科学院计算技术研究所 Network flow data index method and system
US8868531B2 (en) * 2012-09-10 2014-10-21 Apple Inc. Concurrent access methods for tree data structures
US8880488B1 (en) * 2012-09-28 2014-11-04 Emc Corporation Efficient extent-based B-tree insertion
CN105912877A (en) * 2016-05-12 2016-08-31 成都鼎智汇科技有限公司 Data processing method of medicine product
CN106657423A (en) * 2015-11-02 2017-05-10 天脉聚源(北京)科技有限公司 Server service discovering method and system
CN107092659A (en) * 2017-03-28 2017-08-25 成都优易数据有限公司 A kind of general tree structure storing and resolving method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286160A (en) * 2008-05-30 2008-10-15 同济大学 Data base indexing process
CN102521375A (en) * 2011-12-19 2012-06-27 山东中创软件商用中间件股份有限公司 Directory service data retrieval method and directory service data retrieval system
US8868531B2 (en) * 2012-09-10 2014-10-21 Apple Inc. Concurrent access methods for tree data structures
US8880488B1 (en) * 2012-09-28 2014-11-04 Emc Corporation Efficient extent-based B-tree insertion
CN103714134A (en) * 2013-12-18 2014-04-09 中国科学院计算技术研究所 Network flow data index method and system
CN106657423A (en) * 2015-11-02 2017-05-10 天脉聚源(北京)科技有限公司 Server service discovering method and system
CN105912877A (en) * 2016-05-12 2016-08-31 成都鼎智汇科技有限公司 Data processing method of medicine product
CN107092659A (en) * 2017-03-28 2017-08-25 成都优易数据有限公司 A kind of general tree structure storing and resolving method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489812A (en) * 2019-07-25 2019-11-22 广东高云半导体科技股份有限公司 Multilayer level netlist processing method, device, computer equipment and storage medium
CN110795442A (en) * 2019-09-27 2020-02-14 北京浪潮数据技术有限公司 Key value updating method, device, equipment and readable storage medium
CN110795442B (en) * 2019-09-27 2022-04-22 北京浪潮数据技术有限公司 Key value updating method, device, equipment and readable storage medium
CN111756711A (en) * 2020-06-11 2020-10-09 微医云(杭州)控股有限公司 Flow control method, device, system and storage medium
CN114401319A (en) * 2022-01-17 2022-04-26 星环信息科技(上海)股份有限公司 Request processing method, device, server and storage medium
CN114401319B (en) * 2022-01-17 2024-05-10 星环信息科技(上海)股份有限公司 Request processing method, device, server and storage medium
CN115174660A (en) * 2022-08-03 2022-10-11 以萨技术股份有限公司 Service registration and discovery method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108924215B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN108924215A (en) A kind of service discovery processing method and processing device based on tree structure
EP3701680B1 (en) Network slice configuration
CN105635345B (en) Domain name resources record management method and apparatus
US20160357424A1 (en) Collapsing and placement of applications
CN110457134A (en) The method for establishing the video big data cloud platform based on container cloud and micro services framework
CN109995859A (en) A kind of dispatching method, dispatch server and computer readable storage medium
US8984257B2 (en) Managing sensor and actuator data for a processor and service processor located on a common socket
CN113949707A (en) OpenResty and K8S-based container cloud service discovery and load balancing method
CN103607424B (en) Server connection method and server system
CN107888666A (en) A kind of cross-region data-storage system and method for data synchronization and device
CN103957282B (en) Terminal user's domain name mapping acceleration system and its method in a kind of domain
CN106933548A (en) Global information is obtained, processes and updated, methods, devices and systems
US20110302292A1 (en) Systems and methods for service assurance using virtualized federated presence infrastructure
CN104205730B (en) Network element data access method, Virtual NE, network management server and NMS
CN109525590A (en) The transmission method and device of data packet
CN116016667A (en) Unified management method and system for multiple types of registries of cloud native platform
CN108234210A (en) The log processing method and device of a kind of content distributing network
WO2021017907A1 (en) Method and device for optimized inter-microservice communication
CN110457307A (en) Metadata management system, user's cluster creation method, device, equipment and medium
KR101368500B1 (en) Method for providing database history management and the database management system thereof
CN102904739B (en) Method and Common Information Model CIM server that a kind of realization event forwards
CN107682222A (en) A kind of information monitoring method, apparatus and system
US20230027121A1 (en) System and Method for Aggregating Data in a Remote Address Space
CN110377399A (en) HBase containerization method, apparatus, equipment and readable storage medium storing program for executing
CN113157737B (en) Service instance association relation dynamic construction system

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
GR01 Patent grant
GR01 Patent grant