[go: up one dir, main page]

CN106603582B - Network micro-service discovery method - Google Patents

Network micro-service discovery method Download PDF

Info

Publication number
CN106603582B
CN106603582B CN201710098942.1A CN201710098942A CN106603582B CN 106603582 B CN106603582 B CN 106603582B CN 201710098942 A CN201710098942 A CN 201710098942A CN 106603582 B CN106603582 B CN 106603582B
Authority
CN
China
Prior art keywords
service
microservice
information
xml
network
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.)
Active
Application number
CN201710098942.1A
Other languages
Chinese (zh)
Other versions
CN106603582A (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 University of Technology
Original Assignee
Beijing University of Technology
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 University of Technology filed Critical Beijing University of Technology
Priority to CN201710098942.1A priority Critical patent/CN106603582B/en
Publication of CN106603582A publication Critical patent/CN106603582A/en
Application granted granted Critical
Publication of CN106603582B publication Critical patent/CN106603582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开一种网络中微服务的发现方法,包括:服务提供按照服务注册中心规范向网络广播XML微服务描述文件;服务请求者按照服务注册中心规范向网络广播XML微服务需求描述文件;XML需求描述文件与XML服务描述文件中的功能/非功能/数据内容自动匹配;匹配成功的微服务开始路由,并在经过的可执行网络节点进行服务缓存。通过本发明服务提供者可以随时向网络中发布微服务,而主动向服务注册中心进行注册;服务请求者可以以自动、半自动与托管三种方式在网络中搜索所需的微服务,极大的提高了微服务的易用性。

Figure 201710098942

The invention discloses a method for discovering micro-services in a network, comprising: a service provider broadcasts an XML micro-service description file to a network according to a service registration center specification; a service requester broadcasts an XML micro-service requirement description file to the network according to the service registration center specification; XML The requirement description file is automatically matched with the functional/non-functional/data content in the XML service description file; the successfully matched microservices start routing, and perform service caching at the executable network nodes they pass through. Through the present invention, the service provider can publish micro-services to the network at any time, and actively register with the service registration center; the service requester can search for the required micro-services in the network in three ways: automatic, semi-automatic and hosting, which greatly improves Improved usability of microservices.

Figure 201710098942

Description

一种网络微服务发现方法A network microservice discovery method

技术领域technical field

本发明属于信息网络技术领域,具体的,一种网络微服务发现方法。The invention belongs to the technical field of information networks, in particular to a method for discovering network microservices.

背景技术Background technique

随着互联网技术与应用的飞速发展以及互联网用户的快速增长,内容服务复杂化与多样化已经成为互联网发展的主旋律。传统的单体式系统逐渐无法应对海量内容充斥的互联网与庞大企业信息化环境,尤其表现在海量异构数据传输、质量保证以及数以千万计的不同服务互联需求与软件行业所能提供的计算、存储和传输能力的矛盾。With the rapid development of Internet technology and applications and the rapid growth of Internet users, the complexity and diversification of content services has become the main theme of Internet development. The traditional monolithic system is gradually unable to cope with the massive content-filled Internet and the huge enterprise informatization environment, especially in the massive heterogeneous data transmission, quality assurance and tens of millions of different service interconnection requirements and the software industry can provide. The paradox of computing, storage and transmission capabilities.

针对上述挑战,各国纷纷开展了对新的软件、网络体系及关键技术的研究。微服务架构作为面向服务思想的延伸可以在一定程度上解决以上问题,包括软件实施的灵活性、软件服务的应变能力、网络传输的延展性等问题。微服务架构可以将单一应用程序作为众多小型服务构成的独立套件形式进行开发与组装,从而提供具备质量保证、功能灵活多变的大型应用系统,其中各项服务各自具备自身的进程并采用轻量化机制进行服务间的通信。微服务架构围绕业务功能建立,凭借自动化部署机制实现独立部署并完成独立的业务功能,方便随时组装成大型的业务实现并匹配最低限度的中央管理机制,不同的服务不受开发语言与运行环境制约。In response to the above challenges, countries have carried out research on new software, network systems and key technologies. As an extension of service-oriented thinking, microservice architecture can solve the above problems to a certain extent, including the flexibility of software implementation, the adaptability of software services, and the scalability of network transmission. The microservice architecture can develop and assemble a single application as an independent suite composed of many small services, thereby providing a large-scale application system with quality assurance and flexible functions, in which each service has its own process and adopts lightweight Mechanisms for communication between services. The micro-service architecture is built around business functions, and independent deployment and completion of independent business functions are realized by the automatic deployment mechanism, which is convenient to assemble into large-scale business implementations at any time and match the minimum central management mechanism. Different services are not restricted by the development language and operating environment .

但是,微服务由于其灵活性、强扩展性也导致了其在粒度设计、服务调度、服务组合方面存在网络环境下海量微服务的查询与调用问题,为了解决相关问题本发明提出一种网络微服务发现方法。However, due to its flexibility and strong scalability, microservices also lead to the query and invocation of massive microservices in the network environment in terms of granular design, service scheduling, and service composition. In order to solve the related problems, the present invention proposes a network microservice. Service discovery method.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于,为解决网络环境下海量微服务的查询与调用问题,提出了一种网络微服务发现方法,通过互联与集中管理两种方式达到微服务间的互相识别问题,提高了网络中微服务的易用性。The purpose of the present invention is to propose a network microservice discovery method in order to solve the query and invocation problem of massive microservices in the network environment, which achieves the mutual identification problem between microservices through interconnection and centralized management, and improves network performance. Ease of use in microservices.

为实现上述目的,本发明采用如下的技术方案:For achieving the above object, the present invention adopts the following technical scheme:

一种网络微服务发现方法包括以下步骤:A network microservice discovery method includes the following steps:

步骤101、服务提供按照服务注册中心规范向网络广播XML微服务描述文件;Step 101, the service provider broadcasts the XML micro-service description file to the network according to the service registration center specification;

步骤102、服务请求者按照服务注册中心规范向网络广播XML微服务需求描述文件;Step 102, the service requester broadcasts the XML microservice requirement description file to the network according to the service registration center specification;

步骤103、XML需求描述文件与XML服务描述文件中的功能/非功能/数据内容自动匹配;Step 103, the XML requirement description file automatically matches the function/non-function/data content in the XML service description file;

步骤104、匹配成功的微服务开始路由,并在经过的可执行网络节点进行服务缓存。Step 104 , the successfully matched microservices start routing, and perform service caching on the passing executable network nodes.

作为优选,基于XML格式的微服务描述规范包括:Preferably, the microservice description specification based on XML format includes:

对于服务提供者:需要描述包含所提供的微服务功能信息、描述服务提供者信息、描述微服务应用信息、微服务的部署信息、描述微服务性能信息、描述微服务QOS信息;For service providers: the description needs to include the provided microservice function information, service provider information, microservice application information, microservice deployment information, microservice performance information, and microservice QOS information;

对于服务注册中心:需要描述包含服务的调用信息、微服务的评价信息、微服务的认证信息、微服务的安全信息;For the service registry: it needs to describe the invocation information of the service, the evaluation information of the microservice, the authentication information of the microservice, and the security information of the microservice;

对于服务请求者:需要描述包含微服务的需求功能信息、微服务的需求调用信息、微服务的使用信息、使用者的评价信息。For the service requester: it needs to describe the demand function information of the microservice, the demand call information of the microservice, the usage information of the microservice, and the evaluation information of the user.

作为优选,在步骤103中,当能够解析XML服务需求文件的节点获取到服务需求信息时开始对XML文件内容与自身的XML微服务描述文件进行内容上的匹配,而不仅是通过服务注册中进行计算匹配并通过IP进行指向,匹配成功后向服务请求者返回微服务链接信息;Preferably, in step 103, when the node that can parse the XML service requirement file obtains the service requirement information, it starts to match the content of the XML file with its own XML microservice description file, not only through service registration. Calculate the match and point to it by IP, and return the microservice link information to the service requester after the match is successful;

作为优选,在步骤104中,在微服务信息路由过程中满足服务注册中心规范的网络节点会识别微服务XML文件并检测是否可执行该微服务,如果可以执行则在该网络节点缓存该微服务;微服务的计算能力与数据能力通过匹配的内容进行路由,而不仅是通过服务注册中心进行指向或调度。Preferably, in step 104, the network node that satisfies the service registry specification in the process of routing the micro-service information will identify the micro-service XML file and detect whether the micro-service can be executed, and if the micro-service can be executed, the network node will cache the micro-service ; The computing and data capabilities of microservices are routed through matching content, not just pointing or scheduling through the service registry.

本发明提供一种网络中微服务的发现方法,所述方法包括以下步骤:服务提供服务注册中心按照规范向网络广播XML微服务描述文件;服务请求者按照服务注册中心规范向网络广播XML微服务需求描述文件;XML需求描述文件与XML服务描述文件中的功能/非功能/数据内容自动匹配;匹配成功的微服务开始路由,并在经过的可执行网络节点进行服务缓存。通过本发明服务提供者可以随时向网络中发布微服务,而主动向服务注册中心进行注册;服务请求者可以以自动、半自动与托管三种方式在网络中搜索所需的微服务,极大的提高了微服务的易用性。The invention provides a method for discovering micro-services in a network. The method comprises the following steps: a service providing service registration center broadcasts an XML micro-service description file to a network according to a specification; a service requester broadcasts an XML micro-service to the network according to the service registration center specification. Requirement description file; the XML requirement description file is automatically matched with the functional/non-functional/data content in the XML service description file; the successfully matched microservices start routing, and perform service caching at the executable network nodes they pass through. Through the present invention, the service provider can publish micro-services to the network at any time, and actively register with the service registration center; the service requester can search for the required micro-services in the network in three ways: automatic, semi-automatic and hosting, which greatly improves Improved usability of microservices.

附图说明Description of drawings

图1示出了依据本发明一实施方式的网络微服务发现方法流程图;1 shows a flowchart of a method for discovering network microservices according to an embodiment of the present invention;

图2示出了依据本发明一实施方式的网络微服务发现方法结构图;2 shows a structural diagram of a method for discovering network microservices according to an embodiment of the present invention;

图3示出了依据本发明一实施方式的网络微服务发现方法的服务发现过程流程图。FIG. 3 shows a flowchart of a service discovery process of a network microservice discovery method according to an embodiment of the present invention.

具体实施方式Detailed ways

下文为对本发明实施方式的详细描述,所述实施方式在附图中已标示出,所有附图中以相同或者类似的标号表示相同或类似的组件或具有相同功能或类似功能的组件。下面通过参考附图描述的实施方式使示例性的,仅用于解释本发明,而不能解释为对本发明的限制。The following is a detailed description of the embodiments of the present invention, which are labeled in the accompanying drawings, and the same or similar reference numerals are used throughout the drawings to denote the same or similar components or components having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary, and are only used to explain the present invention, but not to be construed as a limitation of the present invention.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或“耦接”。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的任一单元和全部组合。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of stated features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components and/or groups thereof. It will be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Furthermore, "connected" or "coupled" as used herein may include wirelessly connected or "coupled." As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语)具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样定义,不会用理想化或过于正式的含义来解释。It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art and, unless defined as herein, are not to be taken in an idealized or overly formal sense. explain.

如图1所示,本发明提供一种网络微服务发现方法,包括以下步骤:As shown in Figure 1, the present invention provides a method for discovering network microservices, comprising the following steps:

101,服务提供者将所制作的微服务功能内容、数据内容、QOS内容等信息按照服务注册中心的规范封装为XML微服务描述文件中并向网络发布;101. The service provider encapsulates the produced microservice function content, data content, QOS content and other information into an XML microservice description file according to the specifications of the service registry and publishes it to the network;

102,服务请求者将所需的微服务功能需求、性能需求、安全性需求等信息按照服务注册中心的规范封装为XML服务需求文件并向网络发布;102, the service requester encapsulates the required microservice functional requirements, performance requirements, security requirements and other information into an XML service requirement file according to the specifications of the service registry and publishes it to the network;

103,当能够解析XML服务需求文件的节点获取到服务需求信息时开始对XML文件内容与自身的XML微服务描述文件进行内容上的匹配,匹配成功后向服务请求者返回微服务链接信息;103. When the node capable of parsing the XML service requirement file obtains the service requirement information, it starts to match the content of the XML file with its own XML microservice description file, and returns the microservice link information to the service requester after the matching is successful;

104,在微服务信息路由过程中满足服务注册中心规范的网络节点会识别微服务XML文件并检测是否可执行该微服务,如果可以执行则在该网络节点缓存该微服务。104 , the network node that satisfies the service registry specification during the microservice information routing process will identify the microservice XML file and detect whether the microservice can be executed, and if the microservice can be executed, the network node will cache the microservice.

在步骤101中:In step 101:

服务提供者需要描述包含但不限于所提供的微服务功能信息、描述服务提供者信息、描述微服务应用信息、微服务的部署信息、描述微服务性能信息、描述微服务QOS信息等;The service provider needs to describe, including but not limited to, the provided microservice function information, service provider information, microservice application information, microservice deployment information, microservice performance information, and microservice QOS information, etc.;

微服务包括但不限于服务安装文件、服务运行环境与服务数据;Microservices include but are not limited to service installation files, service operating environment and service data;

微服务的安装文件、服务运行环境与服务数据可以分离并支持远程调用;The installation files, service operating environment and service data of microservices can be separated and support remote calls;

微服务的开发语言、运行环境与服务数据包括但不限于当前的主流开发语言、运行环境与数据库或其他数据存储形式。The development language, operating environment and service data of microservices include but are not limited to the current mainstream development language, operating environment and database or other data storage forms.

在步骤102中:In step 102:

服务请求者需要描述保护但不限于微服务的需求功能信息、微服务的需求调用信息、微服务的使用信息、使用者的评价信息等。The service requester needs to describe but not limited to the demand function information of the microservice, the demand call information of the microservice, the usage information of the microservice, and the evaluation information of the user, etc.

服务请求者可以以两种方式请求微服务,其一为在服务注册中心中搜索并调用服务,其二为直接将微服务请求发布广播信息并与服务提供者直接联通,进而使用微服务。A service requester can request a microservice in two ways. One is to search for and invoke the service in the service registry, and the other is to directly publish the microservice request and communicate with the service provider to use the microservice.

在步骤103中:In step 103:

服务请求者与服务提供者通过两者发布的XML服务需求文件与XML服务描述文件中的内容进行匹配,而不仅是通过服务注册中进行计算匹配并通过IP进行指向。The service requester and the service provider match the content in the XML service requirement file and the XML service description file through the XML service requirement file published by them, not only through the calculation and matching in the service registration and pointing through the IP.

在步骤104中:In step 104:

微服务的计算能力与数据能力通过匹配的内容进行路由,而不仅是通过服务注册中心进行指向或调度;The computing and data capabilities of microservices are routed through matching content, not just pointing or scheduling through the service registry;

微服务在路由过程中会在经过的节点进行服务可执行环境检测,检测成功后会在不同节点缓存微服务。During the routing process, the microservice will perform service executable environment detection on the passing nodes. After the detection is successful, the microservice will be cached in different nodes.

在步骤101~103中:In steps 101 to 103:

服务注册中心制定网络中的服务描述规范,但是不主动干预服务路由过程,同时服务注册中心需要描述包含但不限于服务的调用信息、微服务的评价信息、微服务的认证信息、微服务的安全信息等;The service registration center formulates the service description specification in the network, but does not actively intervene in the service routing process. At the same time, the service registration center needs to describe but not limited to service invocation information, microservice evaluation information, microservice authentication information, and microservice security. information, etc.;

服务注册中心、服务提供者与服务请求者遵循同一基于XML格式为基础的微服务描述规范;Service registry, service provider and service requester follow the same microservice description specification based on XML format;

服务提供者按照规范在网络中广播XML服务描述文件,或主动向服务注册中心发送XML服务描述文件;The service provider broadcasts the XML service description file in the network according to the specification, or actively sends the XML service description file to the service registration center;

服务注册中心会自动在网络中抓取符合规范的XML服务描述文件;The service registry will automatically grab the XML service description file that conforms to the specification in the network;

服务注册中心自动解析XML服务描述文件并根据文件描述对对应微服务进行检测同时修改服务描述XML文件进行评级与认证;The service registry automatically parses the XML service description file, detects the corresponding microservices according to the file description, and modifies the service description XML file for rating and certification;

服务请求者将微服务请求在网络中发布遵循规范的XML服务需求文件,或可以调用服务注册中心的服务搜索所需的XML服务描述文件,或自行按照规范在网络中获取所需微服务的XML服务描述文件。The service requester publishes the microservice request in the network and publishes the XML service requirement file that follows the specification, or can call the service registry of the service to search for the required XML service description file, or obtain the required microservice XML in the network according to the specification. service description file.

图2为本发明一实施方式的微服务发现方法结构图。其中,服务注册中心用于制定微服务描述规范,服务请求者与服务提供者需要按照该服务规范对XML服务需求文件与XML微服务描述文件进行编制并发布;原则上服务注册中心不干预微服务的路由与缓存过程,但服务请求者也可以直接通过服务注册中心进行服务检索;服务注册中心会抓取服务请求者与服务提供者的相关服务使用信息,并根据需要在微服务描述XML文件中编辑部分信息;服务请求者发布的XML文件与服务提供者提供的XML文件以服务注册中心提供的规则进行匹配,匹配包括但不限于功能内容、性能内容、数据结构、安全性、QOS指标等,XML需求描述文件会匹配多个XML服务描述文件并将微服务返回给服务请求者,连接成功后微服务进行路由;在微服务路由过程中,在经过可识别并可执行的网络节点时微服务进行缓存。FIG. 2 is a structural diagram of a microservice discovery method according to an embodiment of the present invention. Among them, the service registry is used to formulate the microservice description specification. The service requester and service provider need to compile and publish the XML service requirement file and the XML microservice description file according to the service specification; in principle, the service registry does not interfere with the microservice. However, the service requester can also directly retrieve the service through the service registry; the service registry will capture the relevant service usage information of the service requester and service provider, and describe it in the microservice description XML file as needed. Edit some information; the XML file published by the service requester is matched with the XML file provided by the service provider according to the rules provided by the service registry. The matching includes but is not limited to functional content, performance content, data structure, security, QOS indicators, etc. The XML requirement description file will match multiple XML service description files and return the microservice to the service requester. After the connection is successful, the microservice will be routed; during the microservice routing process, the microservice will pass through identifiable and executable network nodes. cache.

图3为本发明一实施方式的网络微服务发现方法的服务发现过程流程图。首先,服务请求者根据注册中心的规则进行XML服务需求文件编制,并且服务请求者向全网发布服务需求XML描述,其中包括了服务请求者的服务功能性、非功能性、数据结构、运行环境等需求;服务提供者按照服务注册中心的规则进行微服务XML描述文件编制,其中包括了服务提供者的微服务描述、非功能性描述、QOS描述、安全性描述等;随后,网络中遵从服务注册中心规则的节点会识别接收到的服务需求XML描述文件,并进行解析,同时与自身的微服务XML服务描述文件进行匹配,如果匹配成功则向服务请求者返回成功消息并提供相应微服务;微服务在向服务请求者路由的过程中会识别经过的节点的微服务XML描述文件,如果发现运行环境可以支持备份则会在该节点缓存并运行一份副本;服务注册中心会采集网络中的服务请求者服务需求XML文件与服务提供者的微服务XML描述文件,同时服务注册中心可以完成两方面的功能,其一为作为集中控制器,在服务请求者主动向服务注册中心发出服务需求时为其指定微服务提供方,其二为对微服务的服务质量进行评估,并修改其XML微服务描述文件相应部分的内容。FIG. 3 is a flowchart of a service discovery process of a network microservice discovery method according to an embodiment of the present invention. First, the service requester compiles the XML service requirement file according to the rules of the registration center, and the service requester publishes the service requirement XML description to the whole network, which includes the service functionality, non-functionality, data structure, and operating environment of the service requester. and other requirements; the service provider compiles the microservice XML description file according to the rules of the service registry, which includes the service provider's microservice description, non-functional description, QOS description, security description, etc.; The node of the registry rule will identify the received service requirement XML description file, parse it, and match it with its own microservice XML service description file. If the match is successful, it will return a success message to the service requester and provide the corresponding microservice; In the process of routing to the service requester, the microservice will identify the microservice XML description file of the passing node. If it finds that the operating environment can support backup, it will cache and run a copy of the node; the service registry will collect the data in the network. The service requester's service requirement XML file and the service provider's microservice XML description file. At the same time, the service registry can complete two functions. One is to act as a centralized controller. When the service requester actively sends service requirements to the service registry Specify a microservice provider for it, and the second is to evaluate the service quality of the microservice and modify the content of the corresponding part of the XML microservice description file.

通过本发明所提出的技术方案,解决网络环境下海量微服务的查询与调用问题,提出了一种网络微服务发现方法,通过互联与集中管理两种方式达到微服务间的互相识别、路由、缓存问题,提高了网络中微服务的易用性。The technical solution proposed by the present invention solves the query and invocation problem of massive micro-services in the network environment, and proposes a network micro-service discovery method, which achieves mutual identification, routing, The cache problem improves the usability of microservices in the network.

本技术领域技术人员可以理解,本发明可以涉及用于执行本申请中所述操作中的一项或多项操作的设备。所述设备可以为所需的目的而专门设计和制造,或者也可以包括通用计算机中的已知设备,所述通用计算机有存储在其内的程序选择性地激活或重构。As will be appreciated by those skilled in the art, the present invention may relate to apparatus for performing one or more of the operations described in this application. The apparatus may be specially designed and manufactured for the required purposes, or it may comprise known apparatuses in a general-purpose computer selectively activated or reconfigured with a program stored therein.

本技术领域技术人员可以理解,可以用计算机程序指令来实现这些结构图和/或框图和/或流图中的每个框以及这些结构图和/或框图和/或流图中的框的组合。可以将这些计算机程序指令提供给通用计算机、专业计算机或其他可编程数据处理方法的处理器来生成机器,从而通过计算机或其他可编程数据处理方法的处理器来执行的指令创建了用于实现结构图和/或框图和/或流图的框或多个框中指定的方法。Those skilled in the art will understand that computer program instructions can be used to implement each block of these structural diagrams and/or block diagrams and/or flow diagrams, and combinations of blocks in these structural diagrams and/or block diagrams and/or flow diagrams . These computer program instructions may be provided to a processor of a general purpose computer, specialized computer or other programmable data processing method to create a machine whereby the instructions executed by the processor of the computer or other programmable data processing method create a structure for implementing A method specified in a block or blocks of a diagram and/or block diagram and/or flow diagram.

本技术领域技术人员可以理解,本发明中已经讨论过的各种操作、方法、流程中的步骤、措施、方案可以被交替、更改、组合或删除。进一步地,具有本发明中已经讨论过的各种操作、方法、流程中的其他步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。进一步地,现有技术中的具有与本发明中公开的各种操作、方法、流程中的步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。Those skilled in the art can understand that the various operations, methods, steps, measures, and solutions discussed in the present invention may be alternated, modified, combined or deleted. Further, other steps, measures, and solutions in the various operations, methods, and processes that have been discussed in the present invention may also be alternated, modified, rearranged, decomposed, combined, or deleted. Further, steps, measures and solutions in the prior art with various operations, methods, and processes disclosed in the present invention may also be alternated, modified, rearranged, decomposed, combined or deleted.

以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only some embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.

Claims (3)

1.一种网络微服务发现方法,其特征在于,包括以下步骤:1. a network microservice discovery method, is characterized in that, comprises the following steps: 步骤101、服务提供按照服务注册中心规范向网络广播XML微服务描述文件;Step 101, the service provider broadcasts the XML micro-service description file to the network according to the service registration center specification; 步骤102、服务请求者按照服务注册中心规范向网络广播XML微服务需求描述文件;Step 102, the service requester broadcasts the XML microservice requirement description file to the network according to the service registration center specification; 步骤103、XML需求描述文件与XML服务描述文件中的功能/非功能/数据内容自动匹配;Step 103, the XML requirement description file automatically matches the function/non-function/data content in the XML service description file; 步骤104、匹配成功的微服务开始路由,并在经过的可执行网络节点进行服务缓存;Step 104, the successfully matched microservices start routing, and perform service caching on the passing executable network nodes; 其中,在步骤104中,在微服务信息路由过程中满足服务注册中心规范的网络节点会识别微服务XML文件并检测是否可执行该微服务,如果可以执行则在该网络节点缓存该微服务;微服务的计算能力与数据能力通过匹配的内容进行路由,而不仅是通过服务注册中心进行指向或调度。Wherein, in step 104, the network node that satisfies the service registry specification during the routing of the micro-service information will identify the micro-service XML file and detect whether the micro-service can be executed, and if it can be executed, the micro-service is cached at the network node; The computing and data capabilities of microservices are routed through matching content, not just pointing or scheduling through the service registry. 2.根据权利要求1所述方法,其特征在于:2. method according to claim 1, is characterized in that: 对于服务提供者:需要描述包含所提供的微服务功能信息、描述服务提供者信息、描述微服务应用信息、微服务的部署信息、描述微服务性能信息、描述微服务QOS信息;For service providers: the description needs to include the provided microservice function information, service provider information, microservice application information, microservice deployment information, microservice performance information, and microservice QOS information; 对于服务注册中心:需要描述包含服务的调用信息、微服务的评价信息、微服务的认证信息、微服务的安全信息;For the service registry: it needs to describe the invocation information of the service, the evaluation information of the microservice, the authentication information of the microservice, and the security information of the microservice; 对于服务请求者:需要描述包含微服务的需求功能信息、微服务的需求调用信息、微服务的使用信息、使用者的评价信息。For the service requester: it needs to describe the demand function information of the microservice, the demand call information of the microservice, the usage information of the microservice, and the evaluation information of the user. 3.根据权利要求1所述网络微服务发现方法,其特征在于,在步骤103中,当能够解析XML服务需求文件的节点获取到服务需求信息时开始对XML文件内容与自身的XML微服务描述文件进行内容上的匹配,而不仅是通过服务注册中进行计算匹配并通过IP进行指向,匹配成功后向服务请求者返回微服务链接信息。3. The method for discovering network microservices according to claim 1, wherein in step 103, when a node capable of parsing the XML service requirement file obtains the service requirement information, it begins to describe the content of the XML file and its own XML microservice The file is matched on the content, not only through the calculation and matching in the service registration and pointing through the IP. After the matching is successful, the microservice link information is returned to the service requester.
CN201710098942.1A 2017-02-23 2017-02-23 Network micro-service discovery method Active CN106603582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710098942.1A CN106603582B (en) 2017-02-23 2017-02-23 Network micro-service discovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710098942.1A CN106603582B (en) 2017-02-23 2017-02-23 Network micro-service discovery method

Publications (2)

Publication Number Publication Date
CN106603582A CN106603582A (en) 2017-04-26
CN106603582B true CN106603582B (en) 2020-03-13

Family

ID=58588046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710098942.1A Active CN106603582B (en) 2017-02-23 2017-02-23 Network micro-service discovery method

Country Status (1)

Country Link
CN (1) CN106603582B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10860390B2 (en) 2017-06-28 2020-12-08 Intel Corporation Microservices architecture
CN107438101B (en) * 2017-07-26 2020-09-29 北京中电普华信息技术有限公司 A service extension method and device for a monolithic application
CN110636093B (en) * 2018-06-25 2022-04-26 中兴通讯股份有限公司 Microservice registration and discovery method, microservice registration and discovery device, storage medium and microservice system
CN110533461A (en) * 2019-08-15 2019-12-03 浙江华东工程数字技术有限公司 A kind of service governing system and its method based on micro services framework
CN112445580A (en) * 2019-08-28 2021-03-05 烽火通信科技股份有限公司 Micro-service grouping management control method and system
CN111447256B (en) * 2020-03-05 2022-07-01 中国司法大数据研究院有限公司 Cross-domain micro-service registration and release method and system based on file exchange
CN112286503B (en) * 2020-10-28 2024-05-28 平安科技(深圳)有限公司 Method, device, equipment and medium for unified management of microservices of multiple registries
CN112615900A (en) * 2020-11-25 2021-04-06 山东星宏电讯有限责任公司 Application service automatic maintenance method, system and equipment based on Kong gateway
CN117195863B (en) * 2023-09-12 2024-08-13 蔷薇聚信(北京)科技有限公司 Dictionary/field analysis method and device, micro-service system and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11323508B2 (en) * 2009-05-22 2022-05-03 Comcast Interactive Media, Llc Web service system and method
CN101969466A (en) * 2010-10-18 2011-02-09 上海电机学院 Method for searching network services in distributed system
CN102158346A (en) * 2010-11-23 2011-08-17 北京神州泰岳软件股份有限公司 Information acquisition system and method based on cloud computing
CN102377786A (en) * 2011-12-02 2012-03-14 浪潮集团有限公司 Cloud computing resource discovery protocol
CN103812845A (en) * 2012-11-15 2014-05-21 中兴通讯股份有限公司 Service discovery method and device based on 6LoWPAN (IPv6 overLow-Power Wireless Personal Area Networks)
US20160315930A1 (en) * 2015-04-24 2016-10-27 Somansa Co., Ltd. Cloud data discovery method and system for private information protection and data loss prevention in enterprise cloud service environment

Also Published As

Publication number Publication date
CN106603582A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106603582B (en) Network micro-service discovery method
EP3701741B1 (en) Network slice management
US8139509B2 (en) Installation and management of mobile device [{S]} configuration
US8555242B2 (en) Decentralized system services
WO2021047332A1 (en) Data analysis method and device, apparatus, and storage medium
WO2020147466A1 (en) Method for invoking server and proxy server
CN113746887A (en) Cross-cluster data request processing method, device and storage medium
CN111258627B (en) Interface document generation method and device
CN108306844B (en) Method for API communication between server and client
US9590853B1 (en) Configuration of applications for distributed computing systems
CN106301947B (en) Service information processing system and method
CN114448895B (en) Application access method, device, equipment and medium
CN115757225B (en) Method, device and system for application programming interface server
CN113992738A (en) Reverse proxy method, device, equipment and storage medium based on micro service gateway
CN111082953B (en) Configuration method, device and related equipment
CN113032477A (en) Long-distance data synchronization method and device based on GTID and computing equipment
WO2007068175A1 (en) A system and method for triggering the rule system
CN114428924A (en) Service request processing method and system based on GRPC framework
US11663058B1 (en) Preemptive filtering of events of an event bus with a deterministic filter
CN118337643A (en) A configuration-based operation and maintenance system for the core elements of the Internet of Things
JP2006053901A (en) Method and device for forming management transaction expressed by xml containing xpath expression
JP6265473B2 (en) Web service system, Web service message mediation method, and proxy server
CN111865746B (en) System development method and device based on loop bus
CN119788738A (en) A tree-based RPC message transmission method, device, equipment and medium
Carvalheiro et al. Kubernetes-aware load balancing for leaf-spine EVPN data centers

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