CN113572689A - Microservice gateway management method, system, device, readable storage medium and product - Google Patents

Microservice gateway management method, system, device, readable storage medium and product Download PDF

Info

Publication number
CN113572689A
CN113572689A CN202111117837.0A CN202111117837A CN113572689A CN 113572689 A CN113572689 A CN 113572689A CN 202111117837 A CN202111117837 A CN 202111117837A CN 113572689 A CN113572689 A CN 113572689A
Authority
CN
China
Prior art keywords
service
gateway
information
routing
micro
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
CN202111117837.0A
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.)
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Original Assignee
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinrun Fulian Digital Technology Co Ltd filed Critical Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority to CN202111117837.0A priority Critical patent/CN113572689A/en
Publication of CN113572689A publication Critical patent/CN113572689A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/742Route cache; Operation thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention discloses a micro service gateway management method, a system, equipment, a readable storage medium and a product, wherein the micro service gateway management method comprises the following steps: deploying gateway services in the kubernets cluster; authorizing a service account corresponding to the gateway service, so that the gateway service has authority to query service information corresponding to the application service deployed in the kubernetes cluster; collecting the service information through the gateway service, and automatically configuring routing information corresponding to the application service according to the service information; and when request information is received, forwarding the request information based on the routing information. The invention can realize the automatic configuration of the gateway service, thereby solving the technical problem of low management efficiency of the micro-service gateway in the prior art.

Description

Microservice gateway management method, system, device, readable storage medium and product
Technical Field
The invention relates to the technical field of micro service gateways, in particular to a micro service gateway management method, a system, equipment, a readable storage medium and a product.
Background
In the existing IT architecture, a gateway is an important ring, a micro service gateway is an entry of a whole micro service API (Application-Programming-Interface) request, which can solve problems of log interception, authority control, cross-domain and the like, and the micro service gateway can receive all external requests and forward the requests to a micro service at a back end.
At present, when a micro service gateway forwards a service, the micro service gateway generally forwards the service based on the same registration center, and for a service that is not the same registration center, the micro service gateway generally forwards the service in a Spring Cloud manner, that is, an IP port of the service needs to be exposed, lb (service name) of the service is searched through the Spring Cloud, and a routing ID and a routing rule are manually configured to complete the forwarding of the service.
Disclosure of Invention
The invention mainly aims to provide a method, a system, equipment, a readable storage medium and a product for managing a micro-service gateway, aiming at realizing the automatic configuration of gateway services and further solving the technical problem of low management efficiency of the micro-service gateway in the prior art.
In order to achieve the above object, the present invention provides a management method for a microservice gateway, including:
deploying gateway services in the kubernets cluster;
authorizing a service account corresponding to the gateway service, so that the gateway service has authority to query service information corresponding to the application service deployed in the kubernetes cluster;
collecting the service information through the gateway service, and automatically configuring routing information corresponding to the application service according to the service information;
and when request information is received, forwarding the request information based on the routing information.
Optionally, the step of deploying a gateway service in the kubernets cluster comprises:
acquiring mirror image information and a network access mode of input gateway service;
and deploying gateway service according to the mirror image information and the network access mode.
Optionally, the step of automatically configuring routing information corresponding to the application service according to the service information includes:
converting the service information into the routing information corresponding to the application service according to a preset routing forwarding template;
after the step of automatically configuring the routing information corresponding to the application service according to the service information, the method includes:
and refreshing the routing information to a routing cache of the gateway service.
Optionally, the gateway service at least includes one running unit, and after the step of refreshing the routing information into a routing cache of the gateway service, the method includes:
detecting whether the routing information in the routing cache is updated or not;
and if the routing information in the routing cache is updated, synchronizing the updated routing information to each operation unit.
Optionally, when receiving the request information, the step of forwarding the request information based on the routing information includes:
receiving request information sent by a client through the gateway service;
determining routing information corresponding to the target application service according to the path information in the request information;
and forwarding the request information to the target application service based on the routing information corresponding to the target application service.
Optionally, the service information includes: service name, workload type, mirror address, namespace, port mapping, network mode, and data volume.
In addition, to achieve the above object, the present invention further provides a micro service gateway management system, which is characterized by comprising a client, a gateway service and an application service, wherein,
the client is used for sending request information to the gateway service and receiving response information fed back by the gateway service;
the application service is used for receiving the request information forwarded by the gateway service, generating response information based on the request information and sending the response information to the gateway service;
the gateway service is used for collecting service information of application services deployed in the kubernets cluster and automatically configuring routing information corresponding to the application services according to the service information;
and when request information is received, forwarding the request information based on the routing information.
Further, to achieve the above object, the present invention also provides an apparatus comprising: the micro service gateway management method comprises a memory, a processor and a program which is stored on the memory and can run on the processor, wherein the program which realizes the micro service gateway management method can realize the steps of the micro service gateway management method when being executed by the processor.
In addition, to achieve the above object, the present application further provides a readable storage medium, which is a computer readable storage medium, on which a program for implementing a micro service gateway management method is stored, and when the program for implementing the micro service gateway management method is executed by a processor, the steps of the micro service gateway management method are implemented.
The present application also provides a product, which is a computer program product comprising a computer program that, when executed by a processor, performs the steps of the microservice gateway management method as described above.
The invention provides a micro-service gateway management method, a system, equipment, a readable storage medium and a product, the method comprises the steps of firstly deploying gateway services in a kubernets cluster, authorizing service accounts corresponding to the gateway services, enabling the gateway services to have authority to inquire service information corresponding to all application services deployed in the kubernets cluster, further collecting service information corresponding to the application services in the kubernets cluster through the gateway services, automatically configuring routing information corresponding to the application services according to the service information, and forwarding request information based on the routing information when the request information is received. That is, the gateway automatically generates the routing configuration information of each application service in the cluster, that is, automatically configures the routing information corresponding to the application service, so that when receiving the request information, the request information can be forwarded based on the routing information, and the forwarding of the service request can be completed without manually configuring the routing ID and the routing rule. And further, the technical defects that the routing information needs to be manually configured and the management efficiency of the micro service gateway is low are overcome, the automatic configuration of the gateway service is realized, and the management efficiency of the micro service gateway is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for managing a microservice gateway of the present invention;
FIG. 3 is a diagram illustrating an application scenario in the method for managing a microservice gateway of the present invention;
fig. 4 is a schematic diagram of another application scenario in the management method of the microservice gateway of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the technical solutions in the embodiments may be combined with each other, but must be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of the technical solutions should not be considered to exist, and is not within the protection scope of the present invention.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and optionally, the user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a computer program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the computer program stored in the memory 1005 and perform the following operations:
deploying gateway services in the kubernets cluster;
authorizing a service account corresponding to the gateway service, so that the gateway service has authority to query service information corresponding to the application service deployed in the kubernetes cluster;
collecting the service information through the gateway service, and automatically configuring routing information corresponding to the application service according to the service information;
and when request information is received, forwarding the request information based on the routing information.
Based on the hardware structure, the invention provides various embodiments of the management method of the micro service gateway.
The invention provides a micro-service gateway management method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a management method for a microservice gateway according to the present invention.
In this embodiment, the method for managing a microservice gateway includes:
step S10, deploying gateway service in the kubernets cluster;
in this embodiment of the application, first, a gateway service is deployed in a kubernets cluster, a namespace may be created in the kubernets cluster, and a micro service may be deployed under the namespace, where the micro service may be a gateway service or an application service, it should be noted that at least one namespace may be created in the cluster, and the gateway service or the application service may be deployed under different namespaces, respectively. The kubernets (k 8s for short) is an open source, is used for managing containerized applications on a plurality of hosts in a cloud platform, can perform service deployment, planning, updating and maintenance in a kubernets cluster, and aims to make the containerized applications simple and efficient to deploy. Microservice is a cloud-native architecture approach in which a single application is composed of many loosely-coupled and independently deployable smaller components or services. The gateways are also called internetwork connectors and protocol converters, and the gateways are used for realizing network interconnection. Referring to fig. 3, a gateway namespace is created in the k8s cluster, the microservice gateway service is deployed in the gateway namespace, and other different namespaces may be created and the application service is deployed in different namespaces, respectively. Creating an a namespace, a B namespace, a C namespace, and a D namespace, and deploying the service a, the service B, the service C, and the service D in the a namespace, the B namespace, the C namespace, and the D namespace, respectively, as shown in fig. 3, the micro service gateway service may receive respective terminal requests, the terminal may be a fixed terminal such as a PC (personal computer) terminal, and a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, or other terminals of an application system such as an OA system, the micro service gateway service may forward the respective terminal requests to corresponding services according to the routing information, the micro service gateway service may also periodically query service information in the respective namespaces in the k8 cluster 8s, and automatically configuring routing information corresponding to the service information, and storing the routing information into a routing cache of the gateway service, where the routing cache may be a nacos configuration center in this embodiment, and the micro-service gateway service may periodically query the service information in the k8s cluster, and monitor whether the routing information in the nacos configuration center is updated, and if the routing information is updated, push the updated routing information to the pod node. In this embodiment, the gateway service manages the service information of all application services in the kubernets cluster in a unified manner, so that the client can access all application services deployed in the kubernets cluster directly through the gateway service, and the service request can be forwarded without acquiring the service name of each application service and manually configuring the routing information, thereby improving the efficiency of forwarding the service request.
Specifically, in step S10, the refinement of the step of deploying the gateway service in the kubernets cluster includes:
step a1, acquiring the mirror image information and network access mode of the gateway service;
step a2, deploying gateway service according to the mirror image information and the network access mode.
In this embodiment, the gateway service is deployed in a namespace of a kubernets cluster, and the gateway service may be deployed through a service visualization page (Serving Dashboard), where the specific process may be as follows: inputting mirror image information and a network access mode of the gateway service in a service visual Web page, acquiring the input mirror image information of the gateway service, acquiring the input network access mode, and deploying the gateway service according to the input mirror image information and the network access mode. The mirror image information is mirror image information of gateway service, and may include mirror image name and mirror image address, and the network access mode is a cluster internal access mode. The deployment process of the gateway service may further include selecting a communication Protocol, for example, selecting a TCP Protocol (Transmission Control Protocol), which is a connection-oriented, reliable transport layer communication Protocol based on a byte stream. The service visualization page provides a visual interface of the service, provides mirror information and browsing of network modes, and monitors the workload type of the current gateway service.
After the step S10, the method further includes a step S20, where the service account corresponding to the gateway service is authorized, so that the gateway service has an authority to query service information of the application service deployed in the kubernets cluster;
step S30, collecting the service information through the gateway service, and automatically configuring the routing information corresponding to the application service according to the service information;
step S40, when receiving the request information, forwarding the request information based on the routing information.
In this embodiment, after the gateway service deployment is completed, a service account (service account) corresponding to the gateway service is authorized, and specifically, a script command may be set in a namespace where the gateway service is located to give an authority to the namespace, so that the gateway service has an authority to query service information of all application services deployed in the kubernets cluster, and further, the gateway service automatically collects service information of the application services deployed in the kubernets cluster. The service information includes information such as a service name, a workload type, a mirror address, a name space, a port mapping, a network mode, and a data volume of the application service.
In this embodiment, the gateway service may integrate kubernets java sdk, and may query service information of Application services deployed in all namespaces in a kubernets cluster through an API (Application Programming Interface) in sdk (software development kit), where the API is a predefined Interface (such as a function and an HTTP Interface), and the software development kit is a set of development tools used for establishing Application software for a specific software package, a software framework, a hardware platform, an operating system, and the like. The gateway service of this embodiment may further include a timer, and the timer may query and collect service information of all application services in the cluster at preset intervals, or may query and collect service information of all application services in the cluster in real time, so as to query the service information at regular time or in real time, and facilitate timely updating of the service information of the application services.
In this embodiment, when the gateway service collects service information of the application service, routing information corresponding to the application service is automatically configured according to the collected service information, and when the request information is received, the request information is forwarded based on the routing information. Wherein the routing information includes a routing forwarding rule. And the routing forwarding module is used for forwarding the request information to the corresponding application service according to the routing forwarding rule when the request information sent by the client is received subsequently so as to forward the service request.
Specifically, the step S30, the refinement of the step of generating the route object information corresponding to the application service according to the service information, includes:
b1, converting the service information into the route information corresponding to the application service according to the preset route forwarding template;
after the step of automatically configuring the routing information corresponding to the application service according to the service information, the method includes:
step b2, refreshing the route information to the route cache of the gateway service.
In this embodiment, according to a preset routing forwarding template, service information is converted into routing information corresponding to an application service, where the preset routing forwarding template includes routing forwarding rule templates such as a service name, a workload type, a mirror address, a name space, a port mapping, a network mode, and a data volume, a specific value of a routing forwarding rule template corresponding to the service information corresponding to each application service is obtained, the specific value of the routing forwarding rule template corresponding to the service information corresponding to each application service is converted into routing forwarding rule information corresponding to the rule templates in the preset routing forwarding template one to one, and the routing forwarding rule information is encapsulated to obtain routing information corresponding to the application service. The preset routing forwarding template is a forwarding rule and a forwarding address required for forwarding request information, wherein the forwarding rule is 'namespace-service name', and the namespace in the kubernets cluster can be ensured not to be repeated according to the forwarding template of 'namespace-service name'. The forwarding address of the preset routing forwarding template can accurately determine the corresponding service in a mode of service name-namespace, forwarding is carried out by utilizing a form discovered by kubernets native service, the safety of the service is ensured, external calling cannot be carried out through the address, access can be carried out only in the cluster, and the accuracy of service forwarding is ensured. In this embodiment, after the routing information corresponding to the application service is automatically configured according to the service information, the configured routing information is refreshed into a routing cache of the gateway service, and the routing cache of the gateway service may be a configuration center of the gateway service. In this embodiment, the configured routing information is refreshed into the routing cache of the gateway service, so that the forwarding rule is validated.
The invention provides a micro-service gateway management method, which comprises the steps of firstly creating a name space in a kubernets cluster, deploying gateway services under the name space, authorizing service accounts corresponding to the gateway services, enabling the gateway services to have authority to inquire service information of all application services deployed in the kubernets cluster, further collecting the service information of the application services in the kubernets cluster, automatically configuring route information corresponding to the application services according to the service information, and forwarding request information based on the route information when the request information is received. That is, the gateway automatically configures the service information of each application service in the cluster, that is, automatically configures the routing information corresponding to the application service, and when receiving the request information, forwards the request information based on the routing information, and can complete the forwarding of the service request without manually configuring the routing ID and the routing rule. And further, the technical defects that the routing information needs to be manually configured and the management efficiency of the micro service gateway is low are overcome, the automatic configuration of the gateway service is realized, and the management efficiency of the micro service gateway is improved.
Further, based on the first embodiment of the present invention, a second embodiment of the method for managing a microservice gateway of the present invention is proposed, in this embodiment, in step S40 of the above embodiment, when receiving request information, the step of refining the step of forwarding the request information based on the routing information includes:
step c1, receiving request information sent by the client through the gateway service;
step c2, determining the route information corresponding to the target application service according to the path information in the request information;
step c3, forwarding the request information to the target application service based on the routing information corresponding to the target application service;
at step S40, after the step of forwarding the request information based on the routing information when the request information is received, the method includes:
and c4, receiving the response information sent by the target application service through the gateway service, and feeding back a response result to the client through the gateway service.
In this embodiment, referring to fig. 4, the gateway service receives request information sent by a client, analyzes the received request information, obtains path information in the request information, matches, according to the path information in the request information, routing information corresponding to a target application service that is matched with the path information in the request information, that is, determines an application service that needs to be accessed and corresponds to the request information, obtains routing information corresponding to the target application service, and forwards the request information to the target application service based on the routing information corresponding to the target application service. When receiving request information forwarded by the gateway service, a target application service in the application services responds to the request information to obtain response data, the target application service sends the response data to the gateway service, and the gateway service returns the response data to the client. Wherein the gateway service and the application service carry out communication forwarding of data through the k8s internal network. In this embodiment, an external access interface may be established in load balancing of k8s, for example, an Ingress object or other external access device that can manage external access to the services in the cluster is established. In this embodiment, the gateway service further includes a filter, and in the process of forwarding the request information by the gateway service, operations such as permission verification, log recording, flow control, load balancing, and the like may be performed on the request information through the custom filter. The authority check is to perform security check and authority authentication on the request data, and the log record is to perform log trace on the request record. Information which does not need to be checked (such as information of a login interface and the like) can be filtered and eliminated through a filter.
In this embodiment, when a service request is received, a gateway service can directly query automatically configured routing information according to path information in request information, and can complete forwarding of the service request without manually configuring a routing ID and routing rules, so that a fully automatic routing management manner is provided for the gateway service in a kubernet cloud-based micro-service architecture, and manual encoding type operation on a gateway service routing configuration file is completely replaced, thereby overcoming the technical defect that the service request can be forwarded only by manually completing configuration of the routing information manually, and the management efficiency of the micro-service gateway is low, realizing automatic configuration of the gateway service, and improving the management efficiency of the micro-service gateway. And the high-efficiency, safe and uniform micro-service gateway management is realized.
Further, based on the first embodiment of the present invention, a third embodiment of the method for managing a microservice gateway of the present invention is provided, in this embodiment, after the step b2 in the first embodiment, the step of refreshing the routing information to the route cache of the gateway service, the method includes:
step d3, detecting whether the route information in the route cache is updated;
step d3, if the route information in the route cache is updated, synchronizing the updated route object information to each operation unit.
In this embodiment, the gateway service at least includes one running unit, and after the routing information corresponding to the application service is configured, the gateway service may store the encapsulated routing information in a configuration center of the gateway service, or store the encapsulated routing object information in a memory or a cache. The gateway service is deployed with a plurality of operation units, where an operation unit in this embodiment is a Pod node, and a Pod is a basic unit of a kubernets system, is a minimum component created or deployed by a user, and is also a resource object for running a containerized application on the kubernets system. The pod node can execute the operation of automatically configuring the routing information, namely when a new service is deployed, the pod node automatically configures the routing information corresponding to the new service according to the service information of the new service, refreshes the routing information into a routing cache of the gateway service to enable a forwarding rule to take effect, and can monitor whether the routing information in the routing cache is updated or not through a timer in a micro-service gateway cluster mode, and if the routing information is detected to be updated, the updated routing information is synchronized to other pod nodes.
In this embodiment, under a plurality of nodes, synchronization of information is achieved by detecting that the routing information corresponding to one of the nodes is updated, that is, the updated routing information is synchronized to other nodes, so that all the nodes acquire the updated routing information in time, and thus the management efficiency of the gateway service is improved.
Corresponding to the first embodiment and the second embodiment, the embodiment of the present application further provides a micro service gateway management system, which includes a client, a gateway service, and an application service, wherein,
the client is used for sending request information to the gateway service and receiving response information fed back by the gateway service;
the application service is used for receiving the request information forwarded by the gateway service, generating response information based on the request information and sending the response information to the gateway service;
the gateway service is used for collecting service information of application services deployed in the kubernets cluster and automatically configuring routing information corresponding to the application services according to the service information;
when request information is received, forwarding the request information based on the routing information;
the gateway service is also used for receiving response information sent by the application service and feeding back the response information to the client.
In the embodiment of the present application, the same or corresponding contents as those in the first or second embodiment are referred to the above description, and are not repeated herein.
The micro-service gateway management system provided by the embodiment of the invention adopts the micro-service gateway management system method, so that the technical problem of low management efficiency of the micro-service gateway is solved. Compared with the prior art, the beneficial effects of the micro service gateway management system provided by the embodiment of the invention are the same as the beneficial effects of the micro service gateway management method provided by the first embodiment, and other technical features in the system are the same as those disclosed in the method of the first embodiment, which are not repeated herein.
The present embodiment provides a computer-readable storage medium having stored thereon computer-readable program instructions for performing the micro-service gateway management method of one of the above embodiments.
The computer readable storage medium provided by the embodiments of the present invention may be a U disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable storage medium provided by the invention stores the computer readable program instruction for executing the micro service gateway management method, and solves the technical problem of low management efficiency of the micro service gateway. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the micro service gateway management method provided by the first embodiment or the second embodiment, and are not described herein again.
The present application also provides a product, which is a computer program product comprising a computer program that, when executed by a processor, performs the steps of the microservice gateway management method as described above.
The computer program product provided by the application solves the technical problem of low management efficiency of the micro-service gateway. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the micro service gateway management method provided by the first embodiment or the second embodiment, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for managing a micro service gateway is characterized by comprising the following steps:
deploying gateway services in the kubernets cluster;
authorizing a service account corresponding to the gateway service, so that the gateway service has authority to query service information corresponding to the application service deployed in the kubernetes cluster;
collecting the service information through the gateway service, and automatically configuring routing information corresponding to the application service according to the service information;
and when request information is received, forwarding the request information based on the routing information.
2. The micro-services gateway management method of claim 1, wherein the step of deploying gateway services in a kubernets cluster comprises:
acquiring mirror image information and a network access mode of input gateway service;
and deploying gateway service according to the mirror image information and the network access mode.
3. The method for micro-service gateway management according to claim 1, wherein the step of automatically configuring the routing information corresponding to the application service according to the service information comprises:
converting the service information into the routing information corresponding to the application service according to a preset routing forwarding template;
after the step of automatically configuring the routing information corresponding to the application service according to the service information, the method includes:
and refreshing the routing information to a routing cache of the gateway service.
4. The method of micro-services gateway management according to claim 3, wherein said gateway service comprises at least one execution unit, and wherein said step of flushing said routing information into a routing cache of said gateway service is followed by:
detecting whether the routing information in the routing cache is updated or not;
and if the routing information in the routing cache is updated, synchronizing the updated routing information to each operation unit.
5. The micro-services gateway management method of claim 1, wherein the step of forwarding request information based on the routing information upon receiving the request information comprises:
receiving request information sent by a client through the gateway service;
determining routing information corresponding to the target application service according to the path information in the request information;
and forwarding the request information to the target application service based on the routing information corresponding to the target application service.
6. The micro-services gateway management method of claim 1, wherein the service information comprises: service name, workload type, mirror address, namespace, port mapping, network mode, and data volume.
7. A micro-service gateway management system is characterized in that the system comprises a client, a gateway service and an application service, wherein,
the client is used for sending request information to the gateway service and receiving response information fed back by the gateway service;
the application service is used for receiving the request information forwarded by the gateway service, generating response information based on the request information and sending the response information to the gateway service;
the gateway service is used for collecting service information of application services deployed in the kubernets cluster and automatically configuring routing information corresponding to the application services according to the service information;
and when request information is received, forwarding the request information based on the routing information.
8. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the micro-service gateway management method of any of claims 1 to 6.
9. A readable storage medium, having stored thereon a program for implementing a micro service gateway management method, the program being executed by a processor to implement the steps of the micro service gateway management method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the microservice gateway management method according to any one of claims 1 to 6.
CN202111117837.0A 2021-09-24 2021-09-24 Microservice gateway management method, system, device, readable storage medium and product Pending CN113572689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111117837.0A CN113572689A (en) 2021-09-24 2021-09-24 Microservice gateway management method, system, device, readable storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111117837.0A CN113572689A (en) 2021-09-24 2021-09-24 Microservice gateway management method, system, device, readable storage medium and product

Publications (1)

Publication Number Publication Date
CN113572689A true CN113572689A (en) 2021-10-29

Family

ID=78174147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111117837.0A Pending CN113572689A (en) 2021-09-24 2021-09-24 Microservice gateway management method, system, device, readable storage medium and product

Country Status (1)

Country Link
CN (1) CN113572689A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205191A (en) * 2021-12-13 2022-03-18 四川启睿克科技有限公司 API gateway system and operation method
CN114726854A (en) * 2021-12-27 2022-07-08 天翼云科技有限公司 Service request processing method and device and cloud service system
CN115134398A (en) * 2022-08-30 2022-09-30 国网信息通信产业集团有限公司 Method and system for realizing universal RPC gateway
CN115604199A (en) * 2022-10-09 2023-01-13 上海道客网络科技有限公司(Cn) Service routing method and system for cloud native platform micro-service gateway
CN115633084A (en) * 2022-12-01 2023-01-20 苏州浪潮智能科技有限公司 K8s cluster access method and device and computer readable storage medium
WO2023185267A1 (en) * 2022-04-02 2023-10-05 中兴通讯股份有限公司 Microservice management method, electronic device, and computer readable storage medium
CN116915866A (en) * 2023-09-12 2023-10-20 云粒智慧科技有限公司 Gateway configuration method, gateway, micro-service and device
CN117097591A (en) * 2023-10-19 2023-11-21 四川中电启明星信息技术有限公司 Application security access gateway system and route forwarding method

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032760A (en) * 2018-08-01 2018-12-18 北京百度网讯科技有限公司 Method and apparatus for application deployment
CN109582441A (en) * 2018-11-30 2019-04-05 北京百度网讯科技有限公司 For providing system, the method and apparatus of container service
CN109857409A (en) * 2019-01-16 2019-06-07 深圳壹账通智能科技有限公司 Data processing method, device and computer equipment based on micro services gateway
CN110134455A (en) * 2019-04-12 2019-08-16 平安医疗健康管理股份有限公司 A kind of application management system and method
CN111181860A (en) * 2020-01-07 2020-05-19 苏宁云计算有限公司 Route forwarding method, device and system based on zuul gateway
CN111314141A (en) * 2020-02-21 2020-06-19 腾讯云计算(北京)有限责任公司 Route updating method and device
CN111884917A (en) * 2020-07-28 2020-11-03 浪潮云信息技术股份公司 Gateway system based on micro service and gateway dynamic routing method
CN112118184A (en) * 2020-08-06 2020-12-22 北京健康之家科技有限公司 Gateway automatic routing method and device, storage medium and computer equipment
CN112615900A (en) * 2020-11-25 2021-04-06 山东星宏电讯有限责任公司 Application service automatic maintenance method, system and equipment based on Kong gateway
CN112804362A (en) * 2021-04-06 2021-05-14 湖南师范大学 Dispersed data micro-service automation operation and maintenance system
CN112804722A (en) * 2020-12-31 2021-05-14 浪潮云信息技术股份公司 Method for realizing micro-service gateway dynamic routing
CN112965700A (en) * 2021-05-17 2021-06-15 太平金融科技服务(上海)有限公司 Routing-based micro-service processing method and device, computer equipment and medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032760A (en) * 2018-08-01 2018-12-18 北京百度网讯科技有限公司 Method and apparatus for application deployment
CN109582441A (en) * 2018-11-30 2019-04-05 北京百度网讯科技有限公司 For providing system, the method and apparatus of container service
CN109857409A (en) * 2019-01-16 2019-06-07 深圳壹账通智能科技有限公司 Data processing method, device and computer equipment based on micro services gateway
CN110134455A (en) * 2019-04-12 2019-08-16 平安医疗健康管理股份有限公司 A kind of application management system and method
CN111181860A (en) * 2020-01-07 2020-05-19 苏宁云计算有限公司 Route forwarding method, device and system based on zuul gateway
CN111314141A (en) * 2020-02-21 2020-06-19 腾讯云计算(北京)有限责任公司 Route updating method and device
CN111884917A (en) * 2020-07-28 2020-11-03 浪潮云信息技术股份公司 Gateway system based on micro service and gateway dynamic routing method
CN112118184A (en) * 2020-08-06 2020-12-22 北京健康之家科技有限公司 Gateway automatic routing method and device, storage medium and computer equipment
CN112615900A (en) * 2020-11-25 2021-04-06 山东星宏电讯有限责任公司 Application service automatic maintenance method, system and equipment based on Kong gateway
CN112804722A (en) * 2020-12-31 2021-05-14 浪潮云信息技术股份公司 Method for realizing micro-service gateway dynamic routing
CN112804362A (en) * 2021-04-06 2021-05-14 湖南师范大学 Dispersed data micro-service automation operation and maintenance system
CN112965700A (en) * 2021-05-17 2021-06-15 太平金融科技服务(上海)有限公司 Routing-based micro-service processing method and device, computer equipment and medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JACKYANG: ""集成Kubernetes来构建微服务-spring cloud入门教程"", 《博客园,原文链接:HTTPS://WWW.CNBLOGS.COM/BLOGNETSPACE/P/15149383.HTML》 *
张秀娟等: ""论专利审查中网络证据的有效性"", 《中国发明与专利》 *
范晶晶等: ""浅谈网络证据在专利审查中的使用"", 《中国发明与专利》 *
超级小豆丁: ""Kubernetes部署SpringCloud网关Zuul 1.x+Eureka动态路由"", 《CSDN,原文链接:HTTPS://BLOG.CSDN.NET/QQ_32641153/ARTICLE/DETAILS/102473312》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205191A (en) * 2021-12-13 2022-03-18 四川启睿克科技有限公司 API gateway system and operation method
CN114205191B (en) * 2021-12-13 2023-09-15 四川启睿克科技有限公司 API gateway system and operation method
CN114726854A (en) * 2021-12-27 2022-07-08 天翼云科技有限公司 Service request processing method and device and cloud service system
WO2023185267A1 (en) * 2022-04-02 2023-10-05 中兴通讯股份有限公司 Microservice management method, electronic device, and computer readable storage medium
CN115134398A (en) * 2022-08-30 2022-09-30 国网信息通信产业集团有限公司 Method and system for realizing universal RPC gateway
CN115604199A (en) * 2022-10-09 2023-01-13 上海道客网络科技有限公司(Cn) Service routing method and system for cloud native platform micro-service gateway
CN115633084A (en) * 2022-12-01 2023-01-20 苏州浪潮智能科技有限公司 K8s cluster access method and device and computer readable storage medium
CN116915866A (en) * 2023-09-12 2023-10-20 云粒智慧科技有限公司 Gateway configuration method, gateway, micro-service and device
CN116915866B (en) * 2023-09-12 2023-11-21 云粒智慧科技有限公司 Gateway configuration method, gateway, micro-service and device
CN117097591A (en) * 2023-10-19 2023-11-21 四川中电启明星信息技术有限公司 Application security access gateway system and route forwarding method
CN117097591B (en) * 2023-10-19 2024-01-23 四川中电启明星信息技术有限公司 Application security access gateway system and route forwarding method

Similar Documents

Publication Publication Date Title
CN113572689A (en) Microservice gateway management method, system, device, readable storage medium and product
US10861013B2 (en) Containerization of network services
CN110830463B (en) Third party authorized login method and device
Alay et al. Experience: An open platform for experimentation with commercial mobile broadband networks
CN110138862B (en) Service processing method, device, gateway equipment and medium based on application service
CN110191063B (en) Service request processing method, device, equipment and storage medium
CN110753089B (en) Method, device, medium and electronic equipment for managing client
EP3069231A1 (en) Automated sdk ingestion
CN111277481B (en) Method, device, equipment and storage medium for establishing VPN tunnel
CN113709810B (en) Method, equipment and medium for configuring network service quality
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN112202744B (en) Multi-system data communication method and device
CN113037761B (en) Login request verification method and device, storage medium and electronic equipment
US11882154B2 (en) Template representation of security resources
CN115525302B (en) Deployment method and device for large-scale digital object warehouse cluster
CN110996372B (en) Message routing method, device and system and electronic equipment
US20230396590A1 (en) Techniques for bootstrapping across secure air gaps with proxying sidecar
US20230393858A1 (en) Techniques for bootstrapping across secure air gaps with static sidecar
CN112286705A (en) Kubernetes-based container web service interface aggregation system
CN110780915B (en) Data processing method, device and storage medium
CN116743785A (en) Cloud network data storage method, device, equipment and medium based on fog calculation
CN112399378B (en) Internet of vehicles-based over-the-air downloading method, system, equipment and medium
CN113810448B (en) Cloud service method, deployment method, device, electronic equipment and storage medium
JP2022070222A (en) Computer-implemented methods, device provisioning systems and computer programs (internet-of-things device provisioning)
CN115189897A (en) Access processing method and device for zero trust network, electronic equipment and 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: 20211029