CN112804343A - Distributed service management method, system and computer readable medium thereof - Google Patents

Distributed service management method, system and computer readable medium thereof Download PDF

Info

Publication number
CN112804343A
CN112804343A CN202110121698.2A CN202110121698A CN112804343A CN 112804343 A CN112804343 A CN 112804343A CN 202110121698 A CN202110121698 A CN 202110121698A CN 112804343 A CN112804343 A CN 112804343A
Authority
CN
China
Prior art keywords
service
information
server
client
calling party
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110121698.2A
Other languages
Chinese (zh)
Inventor
宋江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shan Deutsche Bank Cartoon Information Service Co ltd
Original Assignee
Shan Deutsche Bank Cartoon Information Service 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 Shan Deutsche Bank Cartoon Information Service Co ltd filed Critical Shan Deutsche Bank Cartoon Information Service Co ltd
Priority to CN202110121698.2A priority Critical patent/CN112804343A/en
Publication of CN112804343A publication Critical patent/CN112804343A/en
Pending legal-status Critical Current

Links

Images

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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Abstract

The invention provides a distributed service management method, a system and a computer readable medium thereof, wherein the distributed service management method comprises the following steps: the server side registers the opened service information in a registration center and simultaneously issues a plurality of IP addresses; the calling party subscribes the service information, analyzes the parameter information of the subscription service information and marks a plurality of IP addresses issued by the server; the calling party assembles the service message according to the parameter information; and the calling party transmits the service message to the server to complete service interaction. The invention adopts the structure that the server side registers the opened service information into the registration center, solves the problem of standardized and unified publishing service of the cluster service and achieves the effect of centralized management of the opened service information; by adopting the structure that the client subscribes the service information from the registration center, the problem that the client is timely notified when the service node is changed is solved, and the effect that the client can obtain the normally operated service node at any time is achieved.

Description

Distributed service management method, system and computer readable medium thereof
Technical Field
The invention relates to the technical field of service governance, in particular to a distributed service governance method, a system and a computer readable medium thereof.
Background
Service governance, also known as SOA governance, refers to the process used to manage the adoption and implementation of SOAs. The SOA is a coarse-grained and loosely-coupled service architecture, and services communicate with each other through a simple and accurately defined interface without involving a bottom programming interface and a communication model. SOA can be seen as a natural extension behind the B/S model, Web Service technology. The technical cognition of most software design and developers on SOA and Service management mainly stays on the technologies and specifications of Web Service, ESB bus and the like, and the technology does not fall on the ground fully in software development. On the service end side, the internal network security of the company is considered, the machine room divides the server into different areas, and the networks between the different areas cannot be directly connected, for example, a firewall is added between the DMZ isolation area and the intranet area, but the general architecture of the company software system adopts a service console mode, which requires that the different network areas can be mutually called on the premise of ensuring the security. In the traditional mode, middleware proxy network services such as Nginx and the like are built between DMZ and an intranet, and the architecture is complex.
Through retrieval, patent document CN110233886A discloses a high-availability service management system for massive micro services and an implementation method thereof, where the system includes a server, a client and an address management end, and the method includes the steps of: the service provider registers the service; the server side performs service synchronization; the service provider renews the lease and expires; the service caller calls the service; when the address of the server changes, the address of the server is synchronized between the client and the server. Although the prior art obviously ensures high availability of the service registration center under the scene of massive micro-services and uses the consistent hash algorithm to determine the corresponding relation between the client and the server, the prior art has the disadvantage that the mutual calling of the services can be realized only by building a plurality of middleware services.
Therefore, it is necessary to develop a service management framework that can implement the function of mutual service invocation without building middleware service, so as to solve the existing complex technical problem.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a distributed service management method, a system and a computer readable medium thereof, which can provide high-performance communication, service discovery and other service management capabilities to realize a remote service calling scheme for constructing a large-scale micro-service cluster.
The distributed service management method provided by the invention comprises the following steps:
step S1: the server side registers the opened service information in a registration center and simultaneously issues a plurality of IP addresses;
step S2: the calling party subscribes the service information, analyzes the parameter information of the subscription service information and marks a plurality of IP addresses issued by the server;
step S3: the calling party assembles the service message according to the parameter information;
step S4: and the calling party transmits the service message to the server to complete service interaction.
Preferably, in step 1, the server issues two layers of IP addresses including an external IP address and an internal IP address simultaneously for one service information.
Preferably, the external IP address refers to a proxy IP address and the internal IP address refers to a native IP address.
Preferably, the service information includes application programming interface information including address, port and parameter information of the application programming interface.
Preferably, the caller in step S2 includes a client in an internal network or a client in an external network, and the caller allows selecting an adapted IP address for inter-service communication according to the current network environment.
Preferably, in step S2, when the service information subscribed by the caller is not registered in the registry, the client is allowed to send a service request to the server, the server registers the service information corresponding to the service request in the registry, and sends the service node update notification information to the client through the registry.
Preferably, step 3 comprises the steps of:
step 3.1: the calling party decomposes the parameter information into system parameters and service parameters;
step 3.2: and selecting system parameters of the optimal service by adopting a preferred random algorithm, and assembling the information of the service requesting node.
Preferably, when the subscribed service information needs to publish a new function, the caller is allowed to perform gray-scale publishing operation in the calling process; the gray release operation refers to the built-in marking in the calling process so as to distinguish the calling party which uses the new function or the calling party which uses the old function.
The invention provides a distributed service management system, which comprises:
the server side: the server side registers the opened service information in a registration center and simultaneously issues a plurality of IP addresses;
a client: the calling party subscribes the service information, analyzes the parameter information of the subscription service information and marks a plurality of IP addresses issued by the server, and the calling party assembles a service message according to the parameter information and transmits the service message to the server to complete service interaction;
the agent module: an agent module is arranged between the client and the server, and the matching of IP addresses is directly realized through the agent module and information interaction is carried out.
According to the present invention there is provided a computer readable medium storing a computer program executable by a distributed service administration system, the computer program, when run on the distributed service administration system, causing the distributed service system to perform the steps of the distributed service administration method described above.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention adopts the structure that the server side registers the opened service information into the registration center, solves the problem of standardized and unified service release of the cluster service, and achieves the effect of centralized management of the opened service information.
2. The invention solves the problem that the client is informed in time when the service node is changed by adopting the structure that the client subscribes the service information from the registration center, and achieves the effect that the client can obtain the normally operated service node at any time.
3. The method and the device can distinguish the calling party using the new function or the calling party using the function before updating by allowing the calling party to embed the label in the calling process, ensure the safety of the calling party and avoid the immature new function from influencing the experience of the calling party.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is an overall flow diagram of a distributed service governance method of the present invention;
fig. 2 is a flow chart of a preferred stochastic algorithm in the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
As shown in fig. 1, the present invention provides a distributed service management method, which includes the following steps:
step S1: the server side registers the opened service information to a registration center, and simultaneously issues two layers of IP addresses aiming at one service information, wherein the two layers of IP addresses comprise an external IP address and an internal IP address, the external IP address refers to an agent IP address, and the internal IP address refers to a local IP address. Further, the service information includes application programming interface information including address, port and parameter information of the application programming interface.
Step S2: and the caller subscribes the service information, analyzes the parameter information of the subscription service information and marks a plurality of IP addresses issued by the server. The caller comprises a client in an internal network or a client in an external network, and the caller allows the selection of the adaptive IP address for service communication according to the current network environment.
Furthermore, the calling party loads the configuration parameters for marking, the IP address of the calling party is not marked by default, and when the calling party accesses the proxy IP address, the proxy IP address is marked, and then the communication between services can be directly carried out through the marked proxy IP address.
Furthermore, if the service information subscribed by the caller is not registered in the registry, the client is allowed to send a service request to the server, the server registers the service information corresponding to the service request in the registry, and the registry sends the service node update notification information to the client, so that the client can subscribe the newly registered service information.
Step S3: and the calling party assembles the service message according to the parameter information.
Step S3.1: the calling party decomposes the parameter information into system parameters and service parameters, wherein the system parameters refer to information such as IP addresses and ports, and the service parameters refer to marking parameters.
Step S3.2: and selecting system parameters of the optimal service by adopting a preferred random algorithm, and assembling the information of the service requesting node.
As shown in fig. 2, the preferred random algorithm is that a service node is set under a root node, a plurality of child nodes are set under the service node, and the presentation situations of each child node are different, such as: the sub-node a1 represents normal service information, the sub-node a2 represents gray-scale service information, the sub-node A3 represents abnormal service information, and the like, from which system parameters of an optimal service need to be screened out.
Step S4: and the calling party transmits the service message to the server to complete service interaction.
The invention also provides a distributed service management system, comprising:
the server side: the server side registers the opened service information in a registration center and simultaneously issues a plurality of IP addresses;
the client call end: the calling party subscribes the service information, analyzes the parameter information of the subscription service information and marks a plurality of IP addresses issued by the server, and the calling party assembles a service message according to the parameter information and transmits the service message to the server to complete service interaction;
the agent module: and an agent module is arranged between the client calling end and the server end, and the agent module is used for directly realizing the matching of IP addresses and carrying out information interaction.
Further, the proxy module is divided into a client proxy module and a service proxy module, and the client terminal calls the registration service on the client proxy module, that is, the client proxy module does not actually perform the registration service, but calls the remote service through the client proxy module. The client agent module then sends the binary request to the service agent module over the network by packaging the parameter information. Then the service agent module analyzes the parameter information and sends a request to the server to call the registration service; if the registration service on the server side is called, returning a calling result to the service agent module; then, the service agent module packs the calling result and sends the binary result to the client agent module through the network; and finally, after the client agent module analyzes the calling result, returning the calling result to the client.
Preferably, when a certain service running in production needs to issue a new function, in order to ensure the security of the client, a small part of the new function is tried out according to the condition of the client, the client supports the caller to embed a special mark in the calling process to distinguish different user requests, and the server selects a route to the new function or the old function according to the special mark.
The service information mentioned in the present invention includes application programming interface information, and the application programming interface information includes address, port and parameter information of the application programming interface.
Those skilled in the art will appreciate that, in addition to implementing the system and its various devices, modules, units provided by the present invention as pure computer readable program code, the system and its various devices, modules, units provided by the present invention can be fully implemented by logically programming method steps in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system and various devices, modules and units thereof provided by the invention can be regarded as a hardware component, and the devices, modules and units included in the system for realizing various functions can also be regarded as structures in the hardware component; means, modules, units for performing the various functions may also be regarded as structures within both software modules and hardware components for performing the method.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. A distributed service governance method is characterized by comprising the following steps:
step S1: the server side registers the opened service information in a registration center and simultaneously issues a plurality of IP addresses;
step S2: the calling party subscribes the service information, analyzes the parameter information of the subscription service information and marks a plurality of IP addresses issued by the server;
step S3: the calling party assembles the service message according to the parameter information;
step S4: and the calling party transmits the service message to the server to complete service interaction.
2. The distributed service governance method according to claim 1, wherein in step 1, the server issues two layers of IP addresses including an external IP address and an internal IP address simultaneously for one service message.
3. The distributed service governance method according to claim 2, wherein the external IP address refers to a proxy IP address and the internal IP address refers to a native IP address.
4. The distributed service governance method of claim 1, wherein the service information comprises application programming interface information comprising address, port and parameter information for an application programming interface.
5. The distributed service management method according to claim 1, wherein the caller in step S2 comprises a client in an internal network or a client in an external network, and the caller allows selecting an adapted IP address for inter-service communication according to a current network environment.
6. The distributed service management method according to claim 1, wherein in step S2, when the service information subscribed by the caller is not registered in the registry, the client is allowed to send a service request to the server, the server registers the service information corresponding to the service request in the registry, and sends a service node update notification message to the client through the registry.
7. The distributed service governance method according to claim 1, wherein the step 3 comprises the steps of:
step 3.1: the calling party decomposes the parameter information into system parameters and service parameters;
step 3.2: and selecting system parameters of the optimal service by adopting a preferred random algorithm, and assembling the information of the service requesting node.
8. The distributed service governance method according to claim 1, wherein when the subscribed service information needs to publish a new function, a caller is allowed to perform a gray-scale publication operation in a calling process;
the gray level issuing operation refers to the fact that a label is built in the calling process so as to distinguish a calling party using a new function or a calling party using an old function in a matching mode.
9. A distributed service administration system, comprising:
the server side: the server side registers the opened service information in a registration center and simultaneously issues a plurality of IP addresses;
a client: the calling party subscribes the service information, analyzes the parameter information of the subscription service information and marks a plurality of IP addresses issued by the server, and the calling party assembles a service message according to the parameter information and transmits the service message to the server to complete service interaction;
the agent module: and an agent module is arranged between the client calling end and the server end, and the agent module is used for directly realizing the matching of IP addresses and carrying out information interaction.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202110121698.2A 2021-01-28 2021-01-28 Distributed service management method, system and computer readable medium thereof Pending CN112804343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110121698.2A CN112804343A (en) 2021-01-28 2021-01-28 Distributed service management method, system and computer readable medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110121698.2A CN112804343A (en) 2021-01-28 2021-01-28 Distributed service management method, system and computer readable medium thereof

Publications (1)

Publication Number Publication Date
CN112804343A true CN112804343A (en) 2021-05-14

Family

ID=75812572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110121698.2A Pending CN112804343A (en) 2021-01-28 2021-01-28 Distributed service management method, system and computer readable medium thereof

Country Status (1)

Country Link
CN (1) CN112804343A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174675A (en) * 2022-06-30 2022-10-11 北京华御数观科技有限公司 Kafka service access method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060218289A1 (en) * 2005-03-27 2006-09-28 Elias Assad Systems and methods of registering and utilizing domain names
CN105743715A (en) * 2016-04-20 2016-07-06 上海斐讯数据通信技术有限公司 Management system and method for gateway device
CN107635022A (en) * 2016-07-18 2018-01-26 华为软件技术有限公司 Across intranet and extranet service access methods and device
US20190199815A1 (en) * 2015-05-28 2019-06-27 Lg Electronics Inc. Method and apparatus for providing proxy service via nan proxy server in wireless communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060218289A1 (en) * 2005-03-27 2006-09-28 Elias Assad Systems and methods of registering and utilizing domain names
US20190199815A1 (en) * 2015-05-28 2019-06-27 Lg Electronics Inc. Method and apparatus for providing proxy service via nan proxy server in wireless communication system
CN105743715A (en) * 2016-04-20 2016-07-06 上海斐讯数据通信技术有限公司 Management system and method for gateway device
CN107635022A (en) * 2016-07-18 2018-01-26 华为软件技术有限公司 Across intranet and extranet service access methods and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张贝贝等: "基于SOA架构的医疗服务管理平台的设计与实现", 《中国医疗设备》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174675A (en) * 2022-06-30 2022-10-11 北京华御数观科技有限公司 Kafka service access method

Similar Documents

Publication Publication Date Title
WO2020237797A1 (en) Dynamic configuration management method and system in microservice framework
CN102377796B (en) Heterogeneous service integrating system and method based on OSGi (open service gateway initiative)
US11522951B2 (en) Configuring service mesh networking resources for dynamically discovered peers or network functions
CN107454092B (en) OPCUA and DDS protocol signal conversion device, communication system and communication method
CN110557357B (en) Remote procedure call protocol self-adaption method, related device and server
CN114048046B (en) Service calling method and device and load balancing equipment
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN110719311B (en) Distributed coordination service method, system and computer readable storage medium
CN106533944A (en) Distributed API gateway, management method and management system
CN112202746B (en) RPC member information acquisition method, device, electronic equipment and storage medium
CN103118142A (en) Load balancing method and system
CN112311871A (en) Uniform application development method and system based on micro-service architecture
WO2023165483A1 (en) Device management method and device management system
WO2023011274A1 (en) Communication protocol conversion method, and device, system, and gateway device
CN112804343A (en) Distributed service management method, system and computer readable medium thereof
US20220108806A1 (en) Global internet of things (iot) connectivity fabric
CN116016667A (en) Unified management method and system for multiple types of registries of cloud native platform
EP4095685A1 (en) State machine processing method and apparatus, state processing method and apparatus, electronic device, and storage medium
Alaya et al. Semantic-aware IoT platforms
Zhang et al. Designing and modeling cyber physical systems by a service-based approach
CN107360588B (en) Message processing method of small base station OAM
CN105049481A (en) Intelligent interaction method supporting multi-heterogeneous system
CN114760080B (en) Container-based industrial cloud platform edge computing safety protection system and method
CN114500646B (en) Decentralizing ESB cloud platform system and service calling method thereof
CN114024921A (en) Tunnel cooperation method, device, equipment and readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210514