A microservice development method, system, computer device and medium

By registering the IP addresses and microservice names of development nodes and public nodes on the microservice registration server, the problem of long time-consuming construction and difficult debugging of the microservice development environment is solved, rapid development and resource saving are achieved, and development efficiency is improved.

CN115086412BActive Publication Date: 2024-09-06EBAOTECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110280004.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-16
Publication Date
2024-09-06
Estimated Expiration
2041-03-16

AI Technical Summary

Technical Problem

In microservice development, existing technology requires building a development environment for the overall microservice link, which results in time-consuming, difficult debugging and unstable environment, which affects development efficiency.

Method used

By registering the IP addresses and microservice names of development nodes and public nodes on the microservice registration server, the call to the microservice instance on the public node is realized, avoiding the deployment of all microservices on a single development node, and using Spring Cloud microservices framework for development.

Benefits of technology

It achieves rapid development and debugging, saves resources, improves microservice development efficiency, and supports parallel development and debugging of single or multiple microservice nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086412B
    Figure CN115086412B
Patent Text Reader

Abstract

The present disclosure relates to a microservice development method and system and associated computer devices and media. In particular, the present disclosure provides a microservice development method for developing a microservice node, characterized in that the method comprises: deploying a running instance of a microservice; registering an IP address of the development microservice node and a microservice name of the deployed microservice to a microservice registration server; and initiating a test of the running instance of the microservice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a microservice development method, system, and associated computer equipment and media. Background Art

[0002] With the rapid development of information technology, application software architecture has undergone tremendous changes, with the traditional monolithic architecture transforming into a new microservice architecture.

[0003] Microservice architecture is a new technology for deploying applications and services in the cloud. Microservices are a single business system that is split into multiple small applications that can be independently developed, designed, run, and maintained. Microservices is an architectural style. For example, an application needs to consist of at least one microservice. Each microservice in the system can be deployed independently, and each microservice is loosely coupled. Each microservice, as a small application, only focuses on completing a task and completing it well. In addition, when technicians upgrade microservices, they often test the microservices to ensure that the updated microservices can work properly with other microservices in the software application.

[0004] However, in the prior art, when developing microservices, it is necessary to build a development environment for the entire microservice chain. Since there is a strong calling relationship between the microservices, a full set of microservices needs to be deployed in the development environment. This will lead to the following problems: it takes a long time to build a microservice development environment, such as it usually takes several days to build; and the development environment is difficult to debug, such as it takes a lot of time to locate whether it is a test environment problem during the test process; at the same time, the development environment is unstable, such as the test is often blocked due to a problem with a microservice.

[0005] Therefore, a new microservice development method, system, computer device and medium are needed to improve the efficiency of microservice development. Summary of the invention

[0006] According to one aspect of the present invention, a microservice development method for developing a microservice node is provided, characterized in that the method includes: deploying a running instance of a microservice; registering the IP address of the development microservice node and the microservice name of the deployed microservice to a microservice registration server; and initiating a test of the running instance of the microservice.

[0007] Further, in one aspect of the present invention, the IP address of the development microservice node is associated with the microservice name of the microservice on the microservice registration server.

[0008] Further, in one aspect of the present invention, the running instance of the microservice is privately accessible.

[0009] Further, in one aspect of the present invention, when initiating a test on the running instance of the microservice, the development microservice node calls the running instance of the microservice deployed on the public microservice node.

[0010] Further, in one aspect of the present invention, calling the running instance of the microservice deployed on the public microservice node includes: the development microservice node queries the microservice registration server for the microservice name of the microservice called by the test.

[0011] Further, in one aspect of the present invention, the development microservice node obtains an IP address associated with the microservice name from the microservice registration server, wherein the IP address includes an IP address of the public microservice node.

[0012] Further, in one aspect of the present invention, the development microservice node selects the IP address of the public microservice node for testing to call a running instance of the microservice deployed on the public microservice node.

[0013] Further, in one aspect of the present invention, when the IP address also includes the IP address of a development microservice node, the development microservice node preferentially selects the IP address of the development microservice node to call a running example of a microservice for testing.

[0014] Further, in one aspect of the present invention, the development microservice node is a computing node composed of one or more physical computers.

[0015] Further, in one aspect of the present invention, the method runs under the Spring Cloud microservice framework.

[0016] According to another aspect of the present invention, a microservice development method applied to a public microservice node is provided, characterized in that the method includes: deploying a running instance of a microservice, wherein the running instance of the microservice remains running for testing by other nodes; registering the IP address of the public microservice node and the microservice name of the deployed microservice to a microservice registration server.

[0017] Further, in yet another aspect of the present invention, the IP address of the public microservice node is associated with the microservice name of the microservice on the microservice registration server.

[0018] Further, in yet another aspect of the present invention, the running instance of the microservice is publicly accessible.

[0019] Further, in yet another aspect of the present invention, the public microservice node obtains an IP address associated with the microservice name from the microservice registration server.

[0020] Further, in yet another aspect of the present invention, the public microservice node selects the acquired IP address to call a running instance of a microservice deployed on another node.

[0021] Furthermore, in yet another aspect of the present invention, the public microservice node is a computing node composed of one or more physical computers.

[0022] Further, in yet another aspect of the present invention, the method runs under the Spring Cloud microservice framework.

[0023] According to still another aspect of the present invention, a microservice development system for developing a microservice node is provided, characterized in that the system comprises: a deployment module, which deploys a running instance of a microservice; a registration module, which registers the IP address of the development microservice node and the microservice name of the deployed microservice to a microservice registration server; and a test module, which initiates a test of the running instance of the microservice.

[0024] Further, in still another aspect of the present invention, the IP address of the development microservice node is associated with the microservice name of the microservice on the microservice registration server.

[0025] Further, in still another aspect of the present invention, the running instance of the microservice is privately accessible.

[0026] Further, in still another aspect of the present invention, when the test module initiates a test on the running instance of the microservice, the test module calls the running instance of the microservice deployed on a public microservice node.

[0027] Further, in yet another aspect of the present invention, the test module calling the running instance of the microservice deployed on the public microservice node includes: the registration module querying the microservice registration server for the microservice name of the microservice called by the test.

[0028] Further, in still another aspect of the present invention, the microservice development system obtains an IP address associated with the microservice name, wherein the IP address includes an IP address of the public microservice node.

[0029] Further, in still another aspect of the present invention, the test module selects the IP address of the public microservice node for testing to call a running instance of the microservice deployed on the public microservice node.

[0030] Further, in still another aspect of the present invention, when the IP address also includes the IP address of the development microservice node, the testing module preferentially selects the IP address of the development microservice node to call the running example of the microservice for testing.

[0031] Further, in yet another aspect of the present invention, the development microservice node is a computing node composed of one or more physical computers.

[0032] Further, in still another aspect of the present invention, the system runs under the Spring Cloud microservice framework.

[0033] According to another aspect of the present invention, a microservice development system applied to a public microservice node is provided, characterized in that the system includes: a deployment module, which deploys a running instance of a microservice, wherein the running instance of the microservice remains running for testing by other nodes; and a registration module, which registers the IP address of the public microservice node and the microservice name of the deployed microservice to a microservice registration server.

[0034] Further, in another aspect of the present invention, the IP address of the public microservice node is associated with the microservice name of the microservice on the microservice registration server.

[0035] Further, in another aspect of the present invention, the running instance of the microservice is publicly accessible.

[0036] Further, in another aspect of the present invention, the system obtains an IP address associated with the microservice name from the microservice registration server.

[0037] Further, in another aspect of the present invention, the system also includes a calling module, and the calling module selects the acquired IP address to call the running instance of the microservice deployed on other nodes.

[0038] Further, in another aspect of the present invention, the public microservice node is a computing node composed of one or more physical computers.

[0039] Further, in another aspect of the present invention, the system runs under the Spring Cloud microservice framework.

[0040] According to another aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to one aspect of the present invention when executing the program.

[0041] According to still another aspect of the present invention, there is provided a recording medium having a computer program stored thereon, the program being executed by a computer to implement the steps of the method according to one aspect of the present invention.

[0042] According to one or more embodiments of the present invention, a single or multiple microservice nodes may be developed and debugged without simultaneously starting the entire microservice link or other microservice nodes unrelated to the single or multiple microservice nodes;

[0043] According to one or more embodiments of the present invention, a microservice node may implement routing selection by calling other microservice nodes or development nodes, thereby saving microservice node resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram 100 of microservice development according to an embodiment of the present invention is shown.

[0045] Figure 2 A schematic diagram 200 of microservice development according to another embodiment of the present invention is shown.

[0046] Figure 3 A microservice development method 300 for developing a microservice node according to an embodiment of the present invention is shown.

[0047] Figure 4 A microservice development method 400 applied to a public microservice node according to an embodiment of the present invention is shown.

[0048] Figure 5 A microservice development system 500 for developing a microservice node according to an embodiment of the present invention is shown.

[0049] Figure 6 A microservice development system 600 applied to a public microservice node according to an embodiment of the present invention is shown.

[0050] Figure 7 is an example block diagram 700 of a computer device for the methods described herein according to one embodiment of the present invention. DETAILED DESCRIPTION

[0051] The data encryption and decryption method, device and computer medium of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be noted that the following specific implementations are exemplary rather than restrictive, and are intended to provide a basic understanding of the present invention, and are not intended to confirm the key or decisive elements of the present invention or to limit the scope of protection.

[0052] The present invention is described below with reference to the block diagram illustrations, block diagrams and / or flow charts of the methods and devices of the embodiments of the present invention. It will be understood that each frame of these flow chart illustrations and / or block diagrams, and the combination of flow chart illustrations and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to form a machine, so that these instructions executed by the processor of the computer or other programmable data processing device create components for implementing the functions / operations specified in these flow charts and / or frames and / or one or more flow charts.

[0053] These computer program instructions may be stored in a computer-readable memory, which may instruct a computer or other programmable processor to implement functions in a specific manner, so that the instructions stored in the computer-readable memory constitute a manufactured product containing instruction components that implement the functions / operations specified in one or more boxes of the flowchart and / or block diagram.

[0054] These computer program instructions can be loaded onto a computer or other programmable data processor so that a series of operating steps are performed on the computer or other programmable processor to form a computer-implemented process so that these instructions performed on the computer or other programmable data processor provide steps for implementing the functions or operations specified in one or more frames of this flow chart and / or block diagram. It should also be noted that in some alternative implementations, the functions / operations shown in the frames may not occur in the order shown in the flow chart. For example, the two frames shown in sequence can actually be performed substantially simultaneously or these frames can sometimes be performed in reverse order, depending on the functions / operations involved.

[0055] As described in the background technology, in the existing development of microservices, it is necessary to deploy all microservices on the test node or develop unit tests for all microservices to complete the development of multiple microservices. However, the development method in the conventional method brings huge resource consumption and is difficult to debug. In order to solve this problem, the present disclosure proposes a microservice development method, system, computer device and medium. The method, device and computer medium involved in the present invention can be used for microservice development between public microservice nodes, microservice registration servers and development microservice nodes in a microservice link, wherein limited microservice startup is achieved by routing microservice calls to development nodes, and development testing can be performed for single or several microservices.

[0056] Figure 1 A schematic diagram 100 of microservice development according to an embodiment of the present invention is shown. Figure 1 As shown in , the microservice development method according to the present invention may include three parties, namely, a public microservice node 101, a microservice registration server 102, and a development microservice node 103. As can be understood by those skilled in the art, in the present invention, the node server is not necessarily a single physical computer, but may be a computing node composed of one or more computers, servers, or computing devices. All or part of the running instances of the microservice can be run on the computing node. The public microservice node 101 is a public node, on which multiple running instances of microservices 120 to N are deployed (depending on the computing power of the public microservice node). The running examples of the microservices running on the public microservice node 101 are public and can be called by any node at the remote end. In contrast, the development microservice node 103 is a private node, on which a running instance of the microservice 110 is running, and the running example can only be accessed by developers and debugged by developers. The microservice registration server is a public service registration server, on which the IP address of the microservice node and the microservice name of the microservice deployed on the microservice node can be registered, and the IP address of the microservice node can be associated with the microservice name of the microservice deployed on it on the server. Correspondingly, the microservice registration server can also obtain the IP address of the microservice node associated with the microservice by resolving the microservice name of the microservice.

[0057] As described above, in the prior art, when a private node performs microservice debugging, all associated microservices need to be deployed on the private node, that is, the development microservice node 103. This increases the computation of the private node and is not suitable for modern iterative software development.

[0058] This disclosure provides a new microservice development method. The method can be run under the Spring Cloud microservice framework. Figure 1As shown in , the development microservice node 103 only deploys the running instance of the microservice 110, while the public microservice node 101 can be deployed with multiple running instances of microservices 120 to N depending on its computing power. At the beginning of the method, the public microservice node 101 and the development microservice node 103 respectively register their IP addresses and the microservice names of the deployed microservices to the microservice registration server. When the running instance of the microservice is started, the microservice name of the microservice and the IP address of the node deploying the microservice will be registered on the microservice registration server and associated as a mapping relationship. In other words, on the microservice registration server, the IP address of the node and the microservice name of the microservice deployed on the node are associated. The node can obtain the address of the node where the microservice associated with the microservice name is deployed by querying the microservice name. The specific method will be introduced below.

[0059] The development microservice node 103 may start testing the running instance of the microservice 110. By way of example, the testing of the running instance of the microservice 110 may involve calling the running instance of the microservice 120. In this case, the development microservice node 103 will query the microservice name of the microservice 120 on the microservice registration server 102. The microservice registration server 102 parses the microservice name of the microservice 120 and finds the IP address associated with the microservice name on the microservice registration server 102, that is, the IP address of the public microservice node. The development microservice node will periodically obtain the IP address of the node associated with the microservice name from the microservice registration server 102. The development microservice node 103 selects the acquired IP address of the public microservice node to call the running instance of the microservice 120 on the public microservice node 101 for testing, thereby avoiding the work of deploying the running instance of the microservice 120 to the local development microservice node. In addition, remotely calling the running instance of the microservice on the public microservice development node can realize the joint development and calling of the microservice by multiple private development microservice nodes. Improve the utilization efficiency of running instances of microservices through parallelism.

[0060] In addition, the public microservice node 103 may also call the running instance of the microservice on the development microservice node 101 when necessary. By way of example, when the development microservice node 101 calls the running instance of the microservice 120 of the public microservice node 103, the running instance of the microservice 120 may need the information of the running instance of the microservice 110. Therefore, the public microservice node 103 will query the microservice name of the microservice 110 on the microservice registration server 102. The public microservice node 103 obtains the IP address associated with the microservice name of the microservice 110 from the microservice registration server 102, that is, the IP address of the development microservice node 101. The public microservice node 103 selects the IP address to call the running instance of the microservice 110 deployed on the development microservice node, thereby satisfying the call of the development microservice node 101 to the running instance of the microservice 120 on the public microservice node 103, thereby realizing the testing of the microservice by the development microservice node.

[0061] Figure 2 A schematic diagram 200 of microservice development according to another embodiment of the present invention is shown. Figure 2 The microservice development method can further realize the optimal routing of microservices by developing microservice nodes. Figure 1 The difference is that, Figure 2 As shown in Figure 2 The public microservice node 201 in the embodiment also deploys a running instance of the microservice 210, and the other parts are similar to Figure 1The same. As described above, when the development microservice node 203 starts testing the running instance of the microservice 210, this may involve the running instance of the microservice 220. Thus, when the running example of the microservice is started, the microservice name of the microservice is registered on the microservice registration server 202. The microservice registration server 202 resolves the microservice name and obtains the associated IP address (the IP address of the public microservice node 201). The development microservice node 203 periodically obtains the associated IP address from the microservice registration server 202. The development microservice node 203 selects the IP address of the public microservice node 201 to call the running instance of the microservice 220 on the public microservice node 201. When the running instance of the microservice 220 is called, it may in turn involve the running example of the microservice 210. Therefore, the development microservice node 203 queries the microservice name of the microservice 210 on the microservice registration server 202. The microservice registration server 202 resolves the microservice name of the microservice 210. In this case, since the running instance of the microservice 210 is deployed on both the public microservice node 201 and the development microservice node 203, the microservice name of the microservice 210 is associated with the IP addresses of the two microservice nodes. Therefore, the development microservice node 203 will obtain the IP addresses of two or more microservice nodes. After obtaining multiple IP addresses (for example, two) associated with the microservice name of the microservice 210, the microservice node 203 will preferentially route and select its own IP address (the IP address of the microservice node 203), thereby calling the running instance of the microservice 210 deployed on the local development microservice node, so that the local developer can call the running instance of the microservice 210 on the local development microservice node 203.

[0062] Figure 3 FIG. 3 shows a microservice development method 300 for developing a microservice node according to an embodiment of the present invention. Figure 3 As shown in , the method includes three steps: step S301 deploys a running instance of a microservice; step S302 registers the IP address of the development microservice node and the microservice name of the deployed microservice to a microservice registration server; and step S303 initiates a test of the running instance of the microservice.

[0063] In step S301, the development microservice node deploys a running instance of the microservice on it. Here, one or more running instances of the microservice to be tested can be deployed without deploying all the running instances of the related microservices on the development microservice node. The running instance of the microservice on the development microservice node is private and is accessed by the developer.

[0064] In step S302, the development microservice node registers its IP address and the microservice name of the microservice deployed on it to the microservice registration server. When the running instance of the microservice is started, the microservice name of the microservice and the IP address of the node deploying the microservice will be registered on the microservice registration server and associated as a mapping relationship. The development microservice node queries the microservice name on the microservice registration server, and then the microservice registration server can resolve the microservice name and obtain the IP addresses on which the microservice to which the microservice name belongs is deployed.

[0065] In step S303, the development microservice node will initiate a test of the running instance of the deployed microservice. The test of the running instance of the deployed microservice may involve a running example of the microservice that is not deployed on the development microservice node. In this case, the development microservice node will call the running instance of the microservice deployed on the public microservice node.

[0066] The calling method specifically includes that the development microservice node registers the microservice name of the microservice called by the test to the microservice registration server. The microservice registration server will resolve the microservice name and obtain the IP address associated with the microservice name, that is, the IP address of the public microservice node where multiple running instances of microservices are deployed. The development microservice node will periodically obtain the associated IP address (for example, the IP address of the public microservice node) from the microservice registration server, whereby the development microservice node selects the IP address of the public microservice node to call the running instance of the microservice deployed on the public microservice node, thereby implementing the test of the running example of the microservice.

[0067] In addition, when the microservice registration server resolves the microservice name and finds that the microservice name is associated with multiple IP addresses, the development microservice node will obtain the multiple IP addresses. In the case where the multiple IP addresses include the IP address of the development microservice node, the development microservice node will preferentially select the IP address of the development microservice node to call the running example of the microservice for testing.

[0068] In this way, it is not necessary to deploy all running examples of microservices on the development microservice node, and through the publicly accessible running examples of microservices, multiple development microservice nodes can call and develop the running examples of microservices in parallel. The method according to the present invention runs under the Spring Cloud microservice framework.

[0069] Figure 4 FIG. 4 shows a microservice development method 400 applied to a public microservice node according to an embodiment of the present invention. Figure 4As shown in , the method includes two steps: step S401 deploys a running instance of a microservice, wherein the running instance of the microservice remains running for testing by other nodes; step S402 registers the IP address of the public microservice node and the microservice name of the deployed microservice to a microservice registration server.

[0070] In step S401, a public microservice node deploys multiple running instances of microservices thereon, and the specific number of deployments may depend on the computing power of the public microservice node. Thus, the public microservice node becomes a running pool of running instances of public microservices. Other nodes may call the running instances of the required microservices from the public pool, wherein the running instances of the microservices are publicly accessible.

[0071] In step S402, the public microservice node registers its IP address and the microservice name of the microservice deployed thereon with a microservice registration server. The IP address of the public microservice node is associated with the microservice name of the microservice deployed thereon on the microservice registration server.

[0072] When another microservice node calls the running instance of the microservice on the public microservice node, the running example of the microservice on the public microservice node may involve the running instance of other microservices. In this case, the public microservice node can call the running instance of other microservices. The specific calling method is similar to the calling method in method 300.

[0073] Figure 5 FIG. 5 shows a microservice development system 500 for developing microservice nodes according to an embodiment of the present invention. Figure 5 As shown in , the method includes three modules: a deployment module 501, which deploys a running instance of a microservice; a registration module 502, which registers the IP address of the development microservice node and the microservice name of the deployed microservice to a microservice registration server; and a test module 503, which initiates a test of the running instance of the microservice.

[0074] The deployment module 501 deploys the running instance of the microservice thereon. Here, one or more running instances of the microservice to be tested can be deployed without deploying all the running instances of the related microservices on the development microservice node. The running instance of the microservice on the development microservice node is private and is accessed by the developer.

[0075] The registration module 502 registers its IP address and the microservice name of the microservice deployed on it to the microservice registration server. On the microservice registration server, the IP address will be associated with the microservice name. The development microservice node queries the microservice name on the microservice registration server, and then the microservice registration server can resolve the microservice name to obtain the IP addresses on which the microservice to which the microservice name belongs is deployed.

[0076] The testing module 503 will initiate a test of the running instance of the deployed microservice. The test of the running instance of the deployed microservice may involve a running example of the microservice that is not deployed on the development microservice node. In this case, the development microservice node will call the running instance of the microservice deployed on the public microservice node.

[0077] Optionally, the system 500 can also execute a call to a microservice. The calling method specifically includes that the registration module 502 registers the microservice name of the microservice called by the test to the microservice registration server. The microservice registration server will resolve the microservice name and obtain the IP address associated with the microservice name, that is, the IP address of a public microservice node where multiple running instances of microservices are deployed. The system 500 obtains the associated IP address, that is, the IP address of the public microservice node, from the microservice registration server. The test module 503 selects the IP address of the public microservice node to call the running instance of the microservice deployed on the public microservice node, thereby realizing the test of the running example of the microservice.

[0078] In addition, when the microservice registration server resolves the microservice name and finds that the microservice name is associated with multiple IP addresses, the system 500 obtains the multiple IP addresses from the microservice registration server. In the case where the multiple IP addresses include the IP address of the development microservice node, the test module 503 will preferentially select the IP address of the development microservice node to call the running example of the microservice for testing.

[0079] In this way, it is not necessary to deploy all running examples of microservices on the development microservice node, and through the publicly accessible running examples of microservices, multiple development microservice nodes can call and develop the running examples of microservices in parallel. The method according to the present invention runs under the Spring Cloud microservice framework.

[0080] Figure 6 FIG. 6 shows a microservice development system 600 applied to a public microservice node according to an embodiment of the present invention. Figure 6As shown in , the method includes two modules, a deployment module 601, wherein the deployment module 601 deploys a running instance of a microservice, wherein the running instance of the microservice remains running for testing by other nodes; and a registration module 602, wherein the registration module 602 registers the IP address of the public microservice node and the microservice name of the deployed microservice to a microservice registration server.

[0081] The deployment module 601 deploys multiple running instances of microservices thereon, and the specific number of deployments may depend on the computing power of the public microservice node. Thus, the public microservice node becomes a running pool of running instances of public microservices. Other nodes can call the running instances of the required microservices from the public pool, wherein the running instances of the microservices are publicly accessible.

[0082] The registration module 602 registers its IP address and the microservice name of the microservice deployed thereon to the microservice registration server. The IP address of the public microservice node is associated with the microservice name of the microservice deployed thereon on the microservice registration server.

[0083] When another microservice node calls the running instance of the microservice on the public microservice node, the running instance of the microservice on the public microservice node may involve the running instance of other microservices. Optionally, in this case, the system 600 can call the running instance of other microservices. Specifically, the system can obtain an IP address from the microservice registration server, thereby selecting the IP address for calling. The specific method is similar to that in system 500.

[0084] Although embodiments of the method and system for developing microservices have been described above, the present invention is not limited to these embodiments, and the present invention may also be implemented in the following ways: a computer device for executing the above method, a computer program for executing the above method, a computer program for implementing the functions of the above device, or a computer-readable recording medium recording the computer program.

[0085] exist Figure 7 FIG. 4 shows a computer device for a data encryption and decryption method as described above according to an embodiment of the present invention. Figure 7 As shown in FIG. 7 , the computer device 700 includes a memory 701 and a processor 702. Although not shown in the figure, the computer device 700 also includes a computer program stored in the memory 701 and executable on the processor 702. When the processor executes the program, Figure 1 , Figure 2 , Figure 3 and Figure 4 Steps shown.

[0086] In addition, as described above, the present invention may also be implemented as a recording medium in which a program for causing a computer to execute the data encryption / decryption method described above is stored.

[0087] Here, as recording media, various types of recording media can be used, such as disks (for example, magnetic disks, optical disks, etc.), cards (for example, memory cards, optical cards, etc.), semiconductor memories (for example, ROMs, non-volatile memories, etc.), and tapes (for example, magnetic tapes, cassette tapes, etc.).

[0088] By recording a computer program that enables a computer to execute the data encryption and decryption method in the above-mentioned embodiment or a computer program that enables a computer to realize the functions of the data encryption and decryption method in the above-mentioned embodiment in these recording media and circulating them, the cost can be reduced and the portability and versatility can be improved.

[0089] Furthermore, the above-mentioned recording medium is loaded on a computer, the computer reads out the computer program recorded in the recording medium and stores it in a memory, and a processor (CPU: Central Processing Unit, MPU: Micro Processing Unit) of the computer reads out the computer program from the memory and executes it, thereby being able to execute the data masking and restoration method in the above-mentioned embodiments and realizing the functions of the device for the data masking and restoration method in the above-mentioned embodiments.

[0090] Those skilled in the art should understand that the present invention is not limited to the above-mentioned embodiments, and the present invention can be implemented in many other forms without departing from its purpose and scope. Therefore, the examples and embodiments shown are regarded as illustrative rather than restrictive, and the present invention may cover various modifications and substitutions without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A microservice development method for developing a microservice node, characterized in that: The method comprises: Deploy running instances of microservices; Registering the IP address of the development microservice node and the microservice name of the deployed microservice to a microservice registration server; and Initiate testing of the running instance of the microservice, The IP address of the development microservice node is associated with the microservice name of the microservice on the microservice registration server, Wherein when initiating a test of the running instance of the microservice, the development microservice node calls the running instances of one or more microservices deployed on the public microservice node, and the running instances of one or more microservices running on the public microservice node are public and can be called by other microservice nodes, The calling of the running instance of the microservice deployed on the public microservice node includes: the development microservice node queries the microservice registration server for the microservice name of the microservice called by the test, wherein the development microservice node obtains an IP address associated with the microservice name from the microservice registration server, wherein the IP address includes an IP address of the public microservice node, The development microservice node selects the IP address of the public microservice node for testing to call the running instance of the microservice deployed on the public microservice node, and the public microservice node is configured to call the running instance of the microservice on the development microservice node when the running of the running instance of the microservice on the called public microservice node needs to call the running instance of the microservice on the development microservice node. When the IP address also includes the IP address of the development microservice node, the development microservice node preferentially selects the IP address of the development microservice node to call the running instance of the microservice for testing.

2. The microservice development method for developing a microservice node according to claim 1, wherein the running instance of the microservice is privately accessible.

3. The microservice development method for developing a microservice node according to claim 1, wherein the development microservice node is a computing node composed of one or more physical computers.

4. The microservice development method according to any one of claims 1-3, wherein the method runs under the Spring Cloud microservice framework.

5. A microservice development method applied to a public microservice node, characterized in that: The method comprises: Deploy a running instance of a microservice, wherein the running instance of the microservice remains running for testing by other nodes, and the running instances of one or more microservices running on the public microservice node are public and can be called by the other nodes; Register the IP address of the public microservice node and the microservice name of the deployed microservice to the microservice registration server, The IP address of the public microservice node is associated with the microservice name of the microservice on the microservice registration server, The public microservice node obtains the IP address associated with the microservice name from the microservice registration server, The public microservice node selects the acquired IP address to call the running instance of the microservice deployed on other nodes.

6. The microservice development method for a public microservice node according to claim 5, wherein the running instance of the microservice is publicly accessible.

7. The microservice development method for a public microservice node according to claim 5, wherein the public microservice node is a computing node composed of one or more physical computers.

8. The microservice development method according to any one of claims 5 to 7, wherein the method runs under the Spring Cloud microservice framework.

9. A microservice development system for developing microservice nodes, characterized in that: The system comprises: A deployment module, which deploys a running instance of a microservice; A registration module, wherein the registration module registers the IP address of the development microservice node and the microservice name of the deployed microservice to a microservice registration server; and A test module, the test module initiates a test on the running instance of the microservice, The IP address of the development microservice node is associated with the microservice name of the microservice on the microservice registration server, When the test module initiates a test on the running instance of the microservice, the test module calls the running instances of one or more microservices deployed on a public microservice node, and the running instances of one or more microservices running on the public microservice node are public and can be called by other microservice nodes. The test module calls the running instance of the microservice deployed on the public microservice node, including the registration module querying the microservice registration server for the microservice name of the microservice called by the test, wherein the registration module obtains an IP address associated with the microservice name from the microservice registration server, wherein the IP address includes an IP address of the public microservice node, The test module selects the IP address of the public microservice node for testing to call the running instance of the microservice deployed on the public microservice node, and the public microservice node is configured to call the running instance of the microservice on the development microservice node when the running of the running instance of the microservice on the called public microservice node needs to call the running instance of the microservice on the development microservice node. When the IP address also includes the IP address of the development microservice node, the test module preferentially selects the IP address of the development microservice node to call the running instance of the microservice for testing.

10. The microservice development system for developing a microservice node according to claim 9, wherein the running instance of the microservice is privately accessible.

11. The microservice development system for developing microservice nodes according to claim 9, wherein the development microservice node is a computing node composed of one or more physical computers.

12. A microservice development system according to any one of claims 9 to 11, wherein the system runs under the SpringCloud microservice framework.

13. A microservice development system applied to a public microservice node, characterized in that: The system comprises: A deployment module, wherein the deployment module deploys a running instance of a microservice, wherein the running instance of the microservice remains running for testing by other nodes, and the running instances of one or more microservices running on the public microservice node are public and can be called by the other nodes; A registration module, wherein the registration module registers the IP address of the public microservice node and the microservice name of the deployed microservice to a microservice registration server, The IP address of the public microservice node is associated with the microservice name of the microservice on the microservice registration server, The registration module obtains the IP address associated with the microservice name from the microservice registration server, The system selects the acquired IP address to call the running instance of the microservice deployed on other nodes, and the public microservice node is configured to be able to call the running instance of the microservice on the other node.

14. The microservice development system for a public microservice node according to claim 13, wherein the running instance of the microservice is publicly accessible.

15. The microservice development system for a public microservice node according to claim 13, wherein the public microservice node is a computing node composed of one or more physical computers.

16. The microservice development system according to any one of claims 13 to 15, wherein the system runs under the SpringCloud microservice framework.

17. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 8 are implemented.

18. A recording medium having a computer program stored thereon, characterized in that: The program is executed by a computer to implement the steps of the method according to any one of claims 1 to 8.