[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

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
micro
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)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for discovering microservice in a network, which comprises the following steps: the service provider broadcasts the XML micro-service description file to the network according to the service registry specification; the service requester broadcasts the XML micro-service requirement description file to the network according to the service registry specification; automatically matching the functional/non-functional/data content in the XML requirement description file and the XML service description file; and starting routing of the micro-service successfully matched, and performing service caching on the passing executable network nodes. The service provider can issue micro-services to the network at any time and actively register the micro-services to the service registration center; the service requester can search the required micro-service in the network in three modes of automatic, semi-automatic and hosting, and the usability of the micro-service is greatly improved.

Description

Network micro-service discovery method
Technical Field
The invention belongs to the technical field of information networks, and particularly relates to a network micro-service discovery method.
Background
With the rapid development of internet technology and applications and the rapid growth of internet users, the complexity and diversity of content services has become a dominant melody of the development of the internet. The traditional single system gradually cannot cope with the internet and huge enterprise informatization environments with abundant mass contents, and particularly shows the contradiction between mass heterogeneous data transmission, quality guarantee, tens of millions of different service interconnection requirements and the calculation, storage and transmission capability provided by the software industry.
Aiming at the challenges, various countries develop researches on new software, network systems and key technologies. The micro-service architecture as an extension of the service-oriented idea can solve the above problems to some extent, including the flexibility of software implementation, the strain capability of software services, the extensibility of network transmission, and other problems. The micro-service architecture can develop and assemble a single application program as an independent suite formed by a plurality of small-sized services, so that a large-scale application system with quality assurance and flexible and changeable functions is provided, wherein each service has a self process and adopts a lightweight mechanism to carry out communication among the services. The micro-service architecture is built around the business function, independent deployment is realized and the independent business function is completed by means of an automatic deployment mechanism, large-scale business implementation is conveniently assembled at any time, a minimum central management mechanism is matched, and different services are not limited by development languages and operating environments.
However, due to flexibility and strong expansibility, the micro-service also has the problem of query and call of a large amount of micro-services in a network environment in the aspects of granularity design, service scheduling and service combination, and the invention provides a network micro-service discovery method in order to solve the related problems.
Disclosure of Invention
The invention aims to solve the problem of inquiry and calling of mass micro-services in a network environment, and provides a network micro-service discovery method, which achieves the mutual identification problem among micro-services through two modes of interconnection and centralized management and improves the usability of the micro-services in a network.
In order to achieve the purpose, the invention adopts the following technical scheme:
a network micro-service discovery method comprises the following steps:
step 101, service providing broadcasts XML micro service description file to network according to service registration center standard;
step 102, a service requester broadcasts an XML micro-service requirement description file to a network according to a service registry specification;
103, automatically matching the functional/non-functional/data content in the XML requirement description file and the XML service description file;
and step 104, starting routing of the micro-service successfully matched, and caching the service at the passing executable network node.
Preferably, the micro service description specification based on the XML format includes:
for the service provider: the description comprises the provided micro service function information, the description service provider information, the description micro service application information, the micro service deployment information, the description micro service performance information and the description micro service QOS information;
for the service registry: the method comprises the steps of describing calling information of services, evaluation information of micro services, authentication information of the micro services and safety information of the micro services;
for a service requester: the description includes the required function information of the micro-service, the required call information of the micro-service, the use information of the micro-service, and the evaluation information of the user.
Preferably, in step 103, when the node capable of parsing the XML service requirement file acquires the service requirement information, the content of the XML file and the XML microservice description file of the node start to be matched in content, instead of being calculated and matched in service registration and pointed by IP, and after matching is successful, microservice link information is returned to the service requester;
preferably, in step 104, a network node meeting the service registry specification during the routing of the microservice information identifies a microservice XML file and detects whether the microservice can be executed, and if the microservice can be executed, the microservice is cached at the network node; the computing power and data power of the microservice are routed through the matching content rather than being directed or scheduled solely by the service registry.
The invention provides a method for discovering microservice in a network, which comprises the following steps: the service providing service registration center broadcasts the XML micro-service description file to the network according to the standard; the service requester broadcasts the XML micro-service requirement description file to the network according to the service registry specification; automatically matching the functional/non-functional/data content in the XML requirement description file and the XML service description file; and starting routing of the micro-service successfully matched, and performing service caching on the passing executable network nodes. The service provider can issue micro-services to the network at any time and actively register the micro-services to the service registration center; the service requester can search the required micro-service in the network in three modes of automatic, semi-automatic and hosting, and the usability of the micro-service is greatly improved.
Drawings
FIG. 1 illustrates a flow diagram of a network microservice discovery method in accordance with an embodiment of the present invention;
FIG. 2 is a diagram illustrating a network microservice discovery method architecture in accordance with one embodiment of the present invention;
fig. 3 is a flowchart illustrating a service discovery process of a network microservice discovery method according to an embodiment of the present invention.
Detailed Description
The following is a detailed description of embodiments of the invention, illustrated in the accompanying drawings in which like or similar reference numerals refer to the same or similar components or components having the same or similar functions throughout the several views. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of illustrating the present invention and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude 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 an element is referred to 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. Further, "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 will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As shown in fig. 1, the present invention provides a method for discovering network microservices, comprising the following steps:
101, the service provider packages the information of the manufactured micro-service function content, data content, QOS content and the like into an XML micro-service description file according to the standard of a service registry and issues the XML micro-service description file to the network;
102, a service requester packages information such as required micro-service function requirements, performance requirements, safety requirements and the like into an XML service requirement file according to the specification of a service registration center and issues the XML service requirement file to a network;
103, when the node capable of analyzing the XML service requirement file obtains the service requirement information, starting to perform content matching on the XML file content and the XML microservice description file of the node, and returning microservice link information to the service requester after the matching is successful;
104, a network node meeting the service registry specification in the routing process of the microservice information identifies the microservice XML file and checks whether the microservice can be executed, and if so, caches the microservice at the network node.
In step 101:
the service provider needs to describe information including but not limited to the provided micro service function information, description service provider information, description micro service application information, micro service deployment information, description micro service performance information, description micro service QOS information, etc.;
micro-services include, but are not limited to, service installation files, service operating environments, and service data;
the installation files, the service operation environment and the service data of the micro-service can be separated and support remote calling;
the development language, the operating environment and the service data of the micro service include but are not limited to the current mainstream development language, the operating environment and the database or other data storage forms.
In step 102:
the service requester needs to describe, but is not limited to, required function information of the micro service, required call information of the micro service, use information of the micro service, evaluation information of the user, and the like.
The service requester can request the micro service in two ways, one is to search and call the service in the service registration center, and the other is to directly issue the broadcast information of the micro service request and directly communicate with the service provider, so as to use the micro service.
In step 103:
the service requester and the service provider match the contents in the XML service description file through the XML service requirement file issued by both, not only through calculation matching in service registration and pointing through IP.
In step 104:
the computing power and data power of the microservice are routed through the matched content, not just directed or scheduled through the service registry;
the micro-service can perform service executable environment detection on the passing nodes in the routing process, and cache the micro-service in different nodes after the detection is successful.
In steps 101-103:
the service registration center formulates a service description specification in the network, but does not intervene in a service routing process actively, and simultaneously needs to describe information including but not limited to service calling information, micro-service evaluation information, micro-service authentication information, micro-service safety information and the like;
the service registration center, the service provider and the service requester follow the same micro-service description specification based on the XML format;
the service provider broadcasts the XML service description file in the network according to the standard, or actively sends the XML service description file to the service registration center;
the service registration center can automatically capture an XML service description file meeting the specification in the network;
the service registration center automatically analyzes the XML service description file, detects the corresponding micro service according to the file description and modifies the XML service description file for rating and authentication;
the service requester issues the micro service request to an XML service requirement file conforming to the specification in the network, or can call an XML service description file required by service search of the service registry, or automatically acquires the XML service description file of the required micro service in the network according to the specification.
Fig. 2 is a block diagram of a method for discovering microservice according to an embodiment of the present invention. The service registry is used for establishing a microservice description specification, and the service requester and the service provider need to compile and release an XML service requirement file and an XML microservice description file according to the service specification; in principle, the service registration center does not interfere with the routing and caching process of the micro-service, but the service requester can also directly carry out service retrieval through the service registration center; the service registration center can capture the service use information related to the service requester and the service provider, and edit part of information in the micro-service description XML file according to the requirement; the XML file issued 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 index and the like, the XML requirement description file can be matched with a plurality of XML service description files and returns the micro-service to the service requester, and the micro-service is routed after the connection is successful; in the micro-service routing process, the micro-service is cached when passing through the identifiable and executable network nodes.
Fig. 3 is a flowchart of a service discovery process of a network microservice discovery method according to an embodiment of the present invention. Firstly, a service requester compiles an XML service requirement file according to the rule of a registration center, and the service requester issues service requirement XML description to the whole network, wherein the service requirement XML description comprises the requirements of service functionality, non-functionality, a data structure, an operating environment and the like of the service requester; the service provider compiles a microservice XML description file according to the rules of the service registry, wherein the microservice description, the non-functional description, the QOS description, the security description and the like of the service provider are included; then, the nodes in the network following the rules of the service registration center can identify the received service requirement XML description file, analyze the received service requirement XML description file, match the service requirement XML description file with the micro service XML service description file of the nodes, and if the matching is successful, a success message is returned to the service requester and corresponding micro services are provided; the micro service can identify the micro service XML description file of the passing node in the process of routing to the service requester, and if the running environment can support backup, the micro service can cache and run a copy in the node; the service registration center can collect service requirement XML files of service requesters in the network and micro service XML description files of service providers, and can complete two functions, wherein one function is as an integrated controller, a micro service provider is appointed for the service requesters when the service requesters actively send service requirements to the service registration center, and the other function is to evaluate the service quality of micro services and modify the content of corresponding parts of the XML micro service description files.
By the technical scheme provided by the invention, the inquiry and calling problems of the mass micro-services in the network environment are solved, the network micro-service discovery method is provided, the mutual identification, routing and caching problems among the micro-services are realized by two modes of interconnection and centralized management, and the usability of the micro-services in the network is improved.
Those skilled in the art will appreciate that the present invention may be directed to an apparatus for performing one or more of the operations described in the present application. The apparatus may be specially designed and constructed for the required purposes, or it may comprise any known apparatus in a general purpose computer selectively activated or reconfigured by a program stored in the general purpose computer.
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the methods specified in the block or blocks of the block diagrams and/or flowchart block or blocks.
Those of skill in the art will appreciate that various operations, methods, steps in the processes, acts, or solutions discussed in the present application may be alternated, modified, combined, or deleted. Further, various operations, methods, steps in the flows, which have been discussed in the present application, may be interchanged, modified, rearranged, decomposed, combined, or eliminated. Further, steps, measures, schemes in the various operations, methods, procedures disclosed in the prior art and the present invention can also be alternated, changed, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (3)

1. A network micro-service discovery method is characterized by comprising the following steps:
step 101, service providing broadcasts XML micro service description file to network according to service registration center standard;
step 102, a service requester broadcasts an XML micro-service requirement description file to a network according to a service registry specification;
103, automatically matching the functional/non-functional/data content in the XML requirement description file and the XML service description file;
step 104, the micro-service which is successfully matched starts routing, and service caching is carried out on the passing executable network nodes;
in step 104, the network node meeting the service registry specification in the micro service information routing process identifies the micro service XML file and detects whether the micro service can be executed, and if the micro service can be executed, the micro service is cached in the network node; the computing power and data power of the microservice are routed through the matching content rather than being directed or scheduled solely by the service registry.
2. The method of claim 1, further comprising:
for the service provider: the description comprises the provided micro service function information, the description service provider information, the description micro service application information, the micro service deployment information, the description micro service performance information and the description micro service QOS information;
for the service registry: the method comprises the steps of describing calling information of services, evaluation information of micro services, authentication information of the micro services and safety information of the micro services;
for a service requester: the description includes the required function information of the micro-service, the required call information of the micro-service, the use information of the micro-service, and the evaluation information of the user.
3. The method according to claim 1, wherein in step 103, when the node capable of parsing the XML service requirement file obtains the service requirement information, content matching between the XML file content and its XML micro service description file is started, instead of performing calculation matching in service registration and pointing through IP, and after matching is successful, micro service 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 北京中电普华信息技术有限公司 Service expansion method and device for single 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
US8139509B2 (en) Installation and management of mobile device [{S]} configuration
US10523531B2 (en) SDN-based API controller
JP5055410B2 (en) Device management system and device management instruction scheduling method in the system
EP1981210B1 (en) A device management method of communication terminal and a communication terminal and system thereof
US20040216147A1 (en) Component based application middleware framework
CN113055421B (en) Service grid management method and system
US9590853B1 (en) Configuration of applications for distributed computing systems
CN100401674C (en) Remote-controlling system and method
CN104243496A (en) Software defined network cross-domain security agent method and software defined network cross-domain security agent system
WO2007068175A1 (en) A system and method for triggering the rule system
US20100235493A1 (en) Extendable distributed network management system and method
CN106953746A (en) Clustered node upgrade-system and method
Corici et al. An organic 6g core network architecture
CN105893055A (en) Method for triggering process engine platformization
CN106603583A (en) Micro-service network building method
CN113992738A (en) Reverse proxy method, device, equipment and storage medium based on micro service gateway
CN113556359A (en) Communication protocol conversion method, device, system and gateway device
CN112131014B (en) Decision engine system and business processing method thereof
CN118283100A (en) Micro-service system for realizing elastic deployment and deployment method
Costa et al. Enhancing orchestration and infrastructure programmability in SDN with notoriety
CN109889530B (en) Web application firewall system and computer storage medium
KR20190077926A (en) Iot device monitoring framework, fog server equipped with the same and fog computing system
Wu et al. Formal modeling and analysis of the REST architecture using CSP
Singh et al. Flexible service oriented network architecture for wireless sensor networks

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