CN115361437B - Micro-service calling method and device, computer equipment and storage medium - Google Patents

Micro-service calling method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115361437B
CN115361437B CN202211299018.7A CN202211299018A CN115361437B CN 115361437 B CN115361437 B CN 115361437B CN 202211299018 A CN202211299018 A CN 202211299018A CN 115361437 B CN115361437 B CN 115361437B
Authority
CN
China
Prior art keywords
service
micro
preset
registration information
registry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211299018.7A
Other languages
Chinese (zh)
Other versions
CN115361437A (en
Inventor
刘珊
刘宇
严冲
廖春生
陈景涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taiping Finance Technology Services Shanghai Co ltd
Original Assignee
Taiping Finance Technology Services Shanghai 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 Taiping Finance Technology Services Shanghai Co ltd filed Critical Taiping Finance Technology Services Shanghai Co ltd
Priority to CN202211299018.7A priority Critical patent/CN115361437B/en
Publication of CN115361437A publication Critical patent/CN115361437A/en
Application granted granted Critical
Publication of CN115361437B publication Critical patent/CN115361437B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application relates to a micro-service calling method, a micro-service calling device, computer equipment and a storage medium. The method comprises the following steps: determining the identifier of a micro service calling party and the identifier of a micro service called party from a plurality of distributed micro service systems according to the service processing requests; according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a preset registry; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where a micro-service caller is located; the second preset registry comprises registration information of a plurality of distributed micro-service systems; and calling the micro-service callee through the micro-service calling component based on the registration information corresponding to the identifier of the micro-service callee, and controlling the micro-service callee to execute the service processing request. By adopting the method, the micro-service mutual calling can be realized among different distributed micro-services.

Description

Micro-service calling method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for invoking a micro service, a computer device, and a storage medium.
Background
The distributed micro-service architecture is a new technology for deploying applications and services at the cloud, and different distributed micro-services can be constructed in different business fields. A distributed microservice may include multiple microservices, and different microservices may be deployed on a single or multiple servers. Usually, a complete service request needs to be completed by calling a plurality of micro services, so that the internal mutual calling of the distributed micro services corresponding to the same service field can be realized, and the calling between different micro services across the service fields can also be realized.
When the traditional method is used for calling the micro-service, the micro-service can be called mutually only in the same distributed micro-service, but not among different distributed micro-services, so that the method has certain limitation when the micro-service is called.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for invoking micro-services, which can implement mutual invocation of micro-services between different distributed micro-services.
In a first aspect, the present application provides a method for invoking a microservice. The method comprises the following steps:
determining the identifier of a micro service calling party and the identifier of a micro service called party from a plurality of distributed micro service systems according to the service processing requests; according to the identification of the micro service called party, inquiring registration information corresponding to the identification of the micro service called party from a preset registry; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where a micro-service caller is located; the second preset registry comprises registration information of a plurality of distributed micro-service systems; and calling the micro-service callee through the micro-service calling component based on the registration information corresponding to the identifier of the micro-service callee, and controlling the micro-service callee to execute the service processing request.
In one embodiment, the method further includes:
establishing communication connection between a load balancer in the micro-service calling component and a preset synchronization component; a preset registry is stored in a server deployed by a preset synchronization component; and acquiring a preset registry from the server through the load balancer based on the communication connection.
In one embodiment, establishing a communication connection between a load balancer in the microservice calling component and the preset synchronization component includes:
acquiring configuration information of a load balancer and a preset synchronization component; the configuration information comprises address information and switch information; and establishing communication connection between the load balancer and the preset synchronous component according to the configuration information.
In one embodiment, the method further includes:
establishing communication connection with each registration center in a plurality of distributed micro-service systems through a preset synchronization component; aiming at each registration center, acquiring registration information of a distributed micro-service system corresponding to the registration center from the registration center; the registration information comprises micro-service registration information and gateway registration information of the distributed micro-service system; and generating a preset registry based on the registration information of the distributed micro-service systems.
In one embodiment, querying, from a preset registry, registration information corresponding to an identifier of a micro-service callee according to the identifier of the micro-service callee includes:
according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a first preset registry; and if the registration information corresponding to the identifier of the micro-service called party is not inquired from the first preset registry, inquiring the registration information corresponding to the identifier of the micro-service called party from the second preset registry.
In one embodiment, the registration information includes microservice registration information and gateway registration information; if the registration information corresponding to the identifier of the micro-service callee is inquired from the second preset registry, the micro-service callee is called by the micro-service calling component based on the registration information corresponding to the identifier of the micro-service callee, and the micro-service callee is controlled to execute the service processing request, including:
sending a service processing request to a gateway of a micro-service called party through a micro-service calling component based on gateway registration information; the control gateway verifies the first authentication information in the service processing request; if the verification is passed, the control gateway sends a service processing request to the micro-service called party based on the micro-service registration information; controlling the called party of the micro service to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the business processing request.
In one embodiment, establishing a communication connection with each registry in a plurality of distributed microservice systems via a predetermined synchronization component comprises:
acquiring attribute information of each registration center in a plurality of distributed micro-service systems through a first information entry page corresponding to a preset synchronization component; and establishing communication connection with each registration center in the distributed micro-service systems by adopting a preset tool class in a preset synchronization component based on the attribute information of each registration center.
In one embodiment, acquiring registration information of a distributed microservice system corresponding to a registry from the registry comprises:
acquiring attribute information of each gateway corresponding to each registration center through a second information entry page corresponding to the preset synchronization component; acquiring attribute information of each micro service corresponding to each registration center through a third information input page corresponding to the preset synchronization assembly; gateway registration information corresponding to the attribute information of each gateway is acquired from the registry, and micro-service registration information corresponding to the attribute information of each micro-service is acquired from the registry.
In a second aspect, the present application further provides a micro-service invoking device. The device comprises:
the determining module is used for determining the identifier of the micro-service calling party and the identifier of the micro-service called party from a plurality of distributed micro-service systems according to the service processing requests;
the query module is used for querying registration information corresponding to the identifier of the micro-service called party from a preset registry according to the identifier of the micro-service called party; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where a micro-service caller is located; the second preset registry comprises registration information of a plurality of distributed micro-service systems;
and the calling module is used for calling the micro-service called party based on the registration information corresponding to the identifier of the micro-service called party through the micro-service calling component and controlling the micro-service called party to execute the service processing request.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the method steps in any of the embodiments of the first aspect described above when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the method steps of any of the embodiments of the first aspect described above.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program that when executed by a processor performs the method steps of any of the embodiments of the first aspect described above.
The micro-service calling method, the micro-service calling device, the computer equipment and the storage medium determine the identifier of a micro-service calling party and the identifier of a micro-service called party according to the service processing requests from a plurality of distributed micro-service systems; according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a preset registry; and calling the micro-service callee through the micro-service calling component based on the registration information corresponding to the identifier of the micro-service callee, and controlling the micro-service callee to execute the service processing request. In the technical scheme provided by the embodiment of the application, the preset registry comprises a first preset registry and a second preset registry, the first preset registry comprises the registration information of the distributed micro-service system where the micro-service caller is located, the second preset registry comprises the registration information of the distributed micro-service systems, when the micro-service caller and the micro-service callee are in different distributed micro-service systems, the registration information of the micro-service callee can be obtained by inquiring the second preset registry, and then the micro-service can be called by the micro-service calling component based on the registration information of the micro-service callee, so that the mutual calling of the micro-services among different distributed micro-services is realized, and the limitation of micro-service calling is avoided.
Drawings
FIG. 1 is a diagram of an application environment for a microservice invocation method in one embodiment;
FIG. 2 is a flow diagram that illustrates a method for microservice invocation in one embodiment;
FIG. 3 is a flowchart illustrating an embodiment of obtaining a predetermined registry;
FIG. 4 is a flow diagram that illustrates a communication connection between a default synchronization component and each registry, according to an embodiment;
FIG. 5 is a diagram illustrating a data structure of a default registry in one embodiment;
FIG. 6 is a diagram illustrating another data structure of a default registry in an embodiment;
FIG. 7 is a flow diagram illustrating an embodiment of a load balancer establishing a communication link with a predetermined synchronization component;
FIG. 8 is a flow diagram that illustrates querying registration information, in one embodiment;
FIG. 9 is a flow diagram that illustrates a callee of the calling microservice in one embodiment;
FIG. 10 is an overall architecture diagram of a microservice call in one embodiment;
FIG. 11 is a schematic diagram illustrating the overall flow of the microservice invocation method in one embodiment;
FIG. 12 is a block diagram of the microservice calling device in one embodiment;
fig. 13 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for calling the micro-service provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The distributed microservice system 102 and the distributed microservice system 104 may include, among other things, a plurality of microservices deployed on different servers. The distributed microservice system 102 and the microservices in the distributed microservice system 104 can communicate with each other and call, and the microservices in the distributed microservice system 102 and the microservices in the distributed microservice system 104 can also communicate with each other and call.
It should be noted that the execution subject of the embodiments of the present application may be a computer device, or may be a micro service invocation device, and the following method embodiments describe the computer device as the execution subject.
In one embodiment, as shown in fig. 2, which shows a flowchart of a microservice invocation provided by an embodiment of the present application, the method may include the following steps:
and step 220, determining the identifier of the micro-service calling party and the identifier of the micro-service called party from the plurality of distributed micro-service systems according to the service processing requests.
Different distributed micro-service systems can be divided from the business field level, and different business fields can correspond to different distributed micro-service systems. When a business processing logic is completed, different micro services in the distributed micro service system need to be called mutually, and when the different micro services are called mutually, registration information of a micro service calling party and a micro service called party needs to be obtained first, so that the calling process can be realized. When acquiring the registration information of the micro-service caller and the micro-service callee, the identifier of the micro-service caller and the identifier of the micro-service callee need to be determined according to the corresponding service processing request, so that the registration information of the micro-service caller and the micro-service callee can be acquired according to the identifiers. The identifier of the micro service caller and the identifier of the micro service callee are used to uniquely determine the corresponding micro service caller and micro service callee, and the identifiers may be name information, address information, and the like of the micro service caller and the micro service callee, or may be other types of identifiers, which is not specifically limited in this embodiment.
Step 240, according to the identifier of the micro-service called party, inquiring registration information corresponding to the identifier of the micro-service called party from a preset registry; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where a micro-service caller is located; the second preset registry comprises registration information of a plurality of distributed micro-service systems.
When the registration information corresponding to the identifier of the micro-service callee is inquired from the preset registry according to the identifier of the micro-service callee, the registration information corresponding to the identifier of the micro-service callee can be inquired from a first preset registry, the first preset registry can be a local registry of each local area registry nacos, and if the registration information can be inquired, the micro-service callee and the micro-service callee belong to the same distributed micro-service system; if the query is not successful, the registration information corresponding to the identifier of the micro-service called party can be queried from the second preset registry, and if the second preset registry is the global registry, the micro-service calling party and the micro-service called party do not belong to the same distributed micro-service system. The registration information of the called party of the micro service is information registered by the micro service in the local registration center of the called party of the micro service, and may include IP address information, port information, custom-set metadata information, and the like of the called party of the micro service, and may also be other types of registration information, which is not specifically limited in this embodiment.
And step 260, calling the micro-service called party based on the registration information corresponding to the identifier of the micro-service called party through the micro-service calling component, and controlling the micro-service called party to execute the service processing request.
After the registration information corresponding to the identifier of the micro-service called party is acquired, the corresponding micro-service called party can be called through the micro-service calling component, and the micro-service called party executes the service request, so that the service processing logic is completed. The microservice calling component is preset by the microservice calling party, and can be introduced in Project Object Model (POM) files in different business fields. In the micro-service solution Spring Cloud, each micro-service exposes its own service in the form of HTTP interface, so when invoking the micro-service, an HTTP client is needed, where Feign is an explicit and templated HTTP client, and is convenient to use, so that Spring Cloud Feign can be used as the micro-service invoking component to implement invoking the micro-service. Of course, since other HTTP clients may be used, the micro service invocation component may also be other types of components, which is not specifically limited in this embodiment.
In the embodiment, the identifier of the micro-service calling party and the identifier of the micro-service called party are determined according to the service processing request from a plurality of distributed micro-service systems; according to the identification of the micro service called party, inquiring registration information corresponding to the identification of the micro service called party from a preset registry; and calling the micro-service callee through the micro-service calling component based on the registration information corresponding to the identifier of the micro-service callee, and controlling the micro-service callee to execute the service processing request. The preset registry comprises a first preset registry and a second preset registry, the first preset registry comprises the registration information of the distributed micro-service system where the micro-service caller is located, the second preset registry comprises the registration information of the plurality of distributed micro-service systems, when the micro-service caller and the micro-service callee are in different distributed micro-service systems, the registration information of the micro-service callee can be obtained by inquiring the second preset registry, and then the micro-service calling component can call the micro-service based on the registration information of the micro-service callee, so that the mutual calling of the micro-service among different distributed micro-services is realized, and the limitation of micro-service calling is avoided.
In an embodiment, as shown in fig. 3, which illustrates a flowchart of a golden microservice call provided in an embodiment of the present application, specifically, related to a possible process of acquiring a preset registry, the method may include the following steps:
step 320, establishing a communication connection between a load balancer in the micro-service calling component and a preset synchronization component; the preset registry is stored in a server deployed by the preset synchronization component.
And step 340, acquiring a preset registry from the server through the load balancer based on the communication connection.
The load balancer is equivalent to a component belonging to the micro service calling component, and can acquire the preset registry. The load balancer may obtain the preset registry from the server in real time, or may obtain the preset registry from the server at preset time intervals, for example, the preset registry may be obtained from the server at every 10 minutes.
The function of the load balancer can be modified, so that the communication connection between the load balancer and the preset synchronization component can be established, and the preset registry is stored in the server deployed by the preset synchronization component, so that the preset registry can be acquired from the server through the load balancer. The acquired preset registry can be cached in a server to which the micro-service caller belongs. The preset synchronization component is a component used for acquiring registration information of each distributed micro-service system and can be used for summarizing to obtain a preset registry, the preset synchronization component can be obtained by performing function improvement on the existing NacosSync component, and the existing NacosSync component is a synchronization component supporting various registration centers but cannot support calling of micro-services among different distributed systems.
In this embodiment, a communication connection between a load balancer in the micro-service invocation component and the preset synchronization component is established, and the preset registry is obtained from the server through the load balancer based on the communication connection. The function of the load balancer in the micro-service calling assembly is modified, so that connection with the preset synchronization assembly can be achieved, the process of obtaining the preset registration information is achieved, and the method becomes the basis for achieving mutual calling of micro-services among different distributed micro-services.
In an embodiment, as shown in fig. 4, which illustrates a flowchart of a micro service invocation provided in an embodiment of the present application, and in particular relates to a possible process for a preset synchronization component to establish a communication connection with each registration center, the method may include the following steps:
step 420, establishing a communication connection with each registry in the distributed microservice systems through a preset synchronization component.
Step 440, aiming at each registration center, acquiring registration information of the distributed micro-service system corresponding to the registration center from the registration center; the registration information comprises micro-service registration information and gateway registration information of the distributed micro-service system.
Step 460, generating a preset registry based on the registration information of the distributed microservice systems.
The preset synchronization assembly is transformed into a corresponding function, and a plurality of pages are newly added to the preset synchronization assembly to input different information. Optionally, attribute information of each registry in the distributed microservice system may be acquired through a first information entry page corresponding to the preset synchronization component, where the attribute information of each registry may include, but is not limited to, a local registry name, a local registry address, a local registry user name, a local registry password, a business field to which the local registry belongs, and other related information. Therefore, based on the attribute information of each registration center, the communication connection between each registration center in a plurality of distributed micro-service systems is established by adopting the preset tool class in the preset synchronization component, so that each registration center can return a Namingservice to which the registration center belongs to the preset synchronization component, and the preset synchronization component is connected to each registration center. The preset tool class is a tool class carried by the preset synchronous component and is used for carrying out communication connection with other registries.
After establishing communication connection with each registration center in the distributed micro-service systems, the registration information of the distributed micro-service system corresponding to the registration center can be acquired from the registration center for each registration center. Optionally, attribute information of each gateway corresponding to each registration center may be obtained through a second information entry page corresponding to the preset synchronization component, where the attribute information of each gateway may include, but is not limited to, a service field to which the local registration center belongs, a gateway address corresponding to the local service field, gateway authentication information, other related information, and the like selected through a drop-down box; and acquiring attribute information of each micro-service corresponding to each registration center through a third information entry page corresponding to the preset synchronization component, wherein the attribute information of each micro-service can include but is not limited to a drop-down box selection local registration center, a micro-service name, namespace of the local registration center to which the micro-service belongs, group of the local registration center to which the micro-service belongs, an operation button, other related information and the like.
And the gateway registration information corresponding to the attribute information of each gateway can be acquired from the registration center by starting the preset time interval of the timed task, the micro-service registration information corresponding to the attribute information of each micro-service can be acquired from the registration center, and the preset registration table is generated based on the micro-service registration information and the gateway registration information of a plurality of distributed micro-service systems. Optionally, a Map data structure with the service domain as the key value and the micro-service registration information or the gateway registration information as the value may be customized, and the pulled registration information of each local registration center is stored in the customized Map data structure, so as to generate the preset registry, where the structure of the preset registry is shown in fig. 5. The structure of the preset registry table is further converted into a Map data structure with the micro-service registration information as a key value and the gateway registration information as a value, and the pulled registration information of each local registration center is stored in the self-defined Map data structure, so that the structure of the converted preset registry table is shown in fig. 6. It should be noted that the gateway registration information S-1 to S-N in the same service domain in fig. 6 are the same.
In the embodiment, the communication connection with each registration center in a plurality of distributed micro-service systems is established through the preset synchronization component; aiming at each registration center, acquiring registration information of a distributed micro-service system corresponding to the registration center from the registration center; and generating a preset registry based on the registration information of the distributed micro-service systems. The preset synchronization assembly is subjected to functional transformation, and a corresponding information input interface is additionally arranged, so that the preset synchronization assembly is more conveniently connected to a corresponding local registration center according to input information, and corresponding registration information is obtained.
In one embodiment, as shown in fig. 7, which illustrates a flowchart of a golden microservice invocation provided in an embodiment of the present application, and in particular relates to a possible process for a load balancer to establish a communication connection with a preset synchronization component, the method may include the following steps:
step 720, obtaining configuration information of the load balancer and the preset synchronous component; the configuration information includes address information and switch information.
And step 740, establishing a communication connection between the load balancer and the preset synchronous component according to the configuration information.
When the communication connection between the load balancer and the preset synchronization component is established, configuration information, namely address information and switch information, related to the preset synchronization component can be added. The switch information is used for controlling whether the load balancer is connected with the preset synchronization component or not, when communication connection between the load balancer and the preset synchronization component needs to be established, the configured switch information needs to be in an on state, and the address information is address information corresponding to the preset synchronization component, so that the switch information can be connected to the corresponding preset synchronization component according to the address information.
In this embodiment, by adding the function of the configuration information to the load balancer, the communication connection between the load balancer and the preset synchronization component can be established based on the configuration information according to the configuration information related to the load balancer and the preset synchronization component, so that the connection establishment mode is simple and easy to implement.
In one embodiment, as shown in fig. 8, which illustrates a flowchart of a microservice invocation provided in an embodiment of the present application, and particularly relates to a possible process of querying registration information, the method may include the following steps:
and step 820, according to the identifier of the micro-service callee, inquiring registration information corresponding to the identifier of the micro-service callee from the first preset registry.
Step 840, if the registration information corresponding to the identifier of the micro service callee is not queried from the first preset registry, querying the registration information corresponding to the identifier of the micro service callee from the second preset registry.
When the registration information corresponding to the identifier of the micro-service callee is inquired from the preset registry, the registration information corresponding to the identifier of the micro-service callee can be inquired from the first preset registry according to the identifier of the micro-service callee, and if the registration information corresponding to the identifier of the micro-service callee is inquired from the first preset registry, that is, the micro-service callee and the micro-service callee belong to the same distributed micro-service system, the micro-service callee can be called according to the searched registration information through the micro-service calling component; if the registration information corresponding to the identifier of the micro-service callee is not queried from the first preset registry, the registration information corresponding to the identifier of the micro-service callee needs to be queried from the second preset registry.
The registration information may include microservice registration information and gateway registration information; if the registration information corresponding to the identifier of the called party of the micro service is found from the second preset registration table, as shown in fig. 9, which shows a flowchart of micro service invocation provided in an embodiment of the present application, specifically, a possible procedure for invoking the called party of the micro service is involved, the method may include the following steps:
and 920, sending a service processing request to the gateway of the micro-service called party through the micro-service calling component based on the gateway registration information.
Step 940, the control gateway verifies the first authentication information in the service processing request; and if the verification is passed, the control gateway sends a service processing request to the micro-service called party based on the micro-service registration information.
Step 960, controlling the called party of the micro service to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the business processing request.
The micro-service caller sends a service processing request to a gateway of the micro-service callee through the micro-service call component based on gateway registration information, and controls the gateway of the micro-service callee to verify first authentication information in the service processing request, wherein the first authentication information is gateway authentication information of the micro-service callee carried in the service processing request. If the authentication passes, the gateway can be controlled to forward the service processing request to the corresponding micro service to the micro service called party based on the micro service registration information, and control the micro service called party to verify second authentication information in the service processing request, wherein the second authentication information is the authentication information of the micro service called party carried in the service processing request, and if the authentication passes, the micro service called party is called to control the micro service called party to execute the service processing request.
In the embodiment, according to the identifier of the micro service called party, the registration information corresponding to the identifier of the micro service called party is inquired from the first preset registration table; if the registration information corresponding to the identifier of the micro-service called party is not inquired from the first preset registry, inquiring the registration information corresponding to the identifier of the micro-service called party from the second preset registry, sending a service processing request to a gateway of the micro-service called party through a micro-service calling component based on the gateway registration information, and controlling the gateway to verify the first authentication information in the service processing request; if the verification is passed, the control gateway sends a service processing request to the micro-service called party based on the micro-service registration information; controlling the micro-service called party to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the business processing request. Therefore, mutual calling of the micro-services among different distributed micro-services is realized, and limitation in calling the micro-services is avoided.
In one embodiment, based on the overall architecture diagram for micro-service invocation shown in fig. 10, the business domain 1 corresponds to a distributed micro-service system, which is composed of micro-services S-1, S-2, S-3, etc., and its corresponding local registration center is nacos-1 and its corresponding gateway is gateway-1; the business field 2 corresponds to a distributed micro-service system which is composed of micro-services S-4, S-5, S-6 and the like, a corresponding local area registration center is nacos-2, a corresponding gateway is gateway-2, and NacosSync is a preset synchronization component. The procedure of the micro service call implemented based on the foregoing architecture is shown in fig. 11, which shows a flowchart of the micro service call provided in an embodiment of the present application, and the method may include the following steps:
1101, calling micro-service through a micro-service calling component Spring Cloud Feign;
step 1102, judging whether a nacos local registry, namely a first preset registry has registration information corresponding to the identifier of the micro-service called party;
step 1103, if the micro service is inquired, directly calling the micro service called party through the micro service calling component;
step 1104, if not, judging the global registration service information cached in the service field, that is, whether registration information corresponding to the identifier of the micro service called party exists in the second preset registration table;
step 1105, if not, an exception may be thrown;
step 1106, if the query is obtained, acquiring micro-service registration information and gateway registration information in the registration information;
step 1107, according to the gateway registration information, sending a service processing request to the gateway of the micro service called party;
step 1108, judging whether the gateway of the micro service called party passes the authentication after receiving the service processing request;
step 1109, if the verification is not passed, rejecting the connection, namely rejecting the service processing request;
step 1110, if the verification is passed, the gateway forwards the service processing request to the corresponding micro service according to the micro service registration information;
step 1111, determining whether the micro service passes the authentication after receiving the service processing request;
step 1112, if the verification fails, rejecting the connection, that is, rejecting the service processing request;
and 1113, if the verification is passed, forwarding the service processing request to a specific interface to complete the service processing logic, thereby ending the micro-service call flow across the registration center.
In the technical scheme provided by the embodiment of the application, the preset registry comprises a first preset registry and a second preset registry, the first preset registry comprises the registration information of the distributed micro-service system where the micro-service caller is located, the second preset registry comprises the registration information of a plurality of distributed micro-service systems, when the micro-service caller and the micro-service callee are in different distributed micro-service systems, the registration information of the micro-service callee can be obtained by inquiring the second preset registry, and then the micro-service can be called by the micro-service calling component based on the registration information of the micro-service callee, so that the mutual calling of the micro-services among different distributed micro-services is realized, and the limitation of micro-service calling is avoided.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a micro-service calling device for realizing the micro-service calling method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the micro service invocation device provided below can be referred to the above limitations on the micro service invocation method, and details are not described herein again.
In one embodiment, as shown in fig. 12, there is provided a micro service invocation apparatus 1200, including: a determination module 1202, a query module 1204, and an invocation module 1206, wherein:
the determining module 1202 is configured to determine, from the multiple distributed microservice systems, the identifier of the microservice caller and the identifier of the microservice callee according to the service processing request.
The query module 1204 is configured to query, according to the identifier of the called party of the micro service, registration information corresponding to the identifier of the called party of the micro service from a preset registry; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where a micro-service caller is located; the second preset registry comprises registration information of a plurality of distributed micro-service systems.
The invoking module 1206 is configured to invoke, through the micro-service invoking component, the micro-service callee based on the registration information corresponding to the identifier of the micro-service callee, and control the micro-service callee to execute the service processing request.
In one embodiment, the micro-service invoking device further includes a first establishing module and a first obtaining module, where:
the first establishing module is used for establishing communication connection between a load balancer in the micro-service calling component and a preset synchronization component; a preset registry is stored in a server deployed by a preset synchronization component; the first obtaining module is used for obtaining the preset registry from the server through the load balancer based on communication connection.
In an embodiment, the first establishing module is specifically configured to obtain configuration information of the load balancer about a preset synchronization component; the configuration information comprises address information and switch information; and establishing communication connection between the load balancer and the preset synchronous component according to the configuration information.
In one embodiment, the micro-service invoking device further includes a second establishing module, a second obtaining module, and a generating module, where:
the second establishing module is used for establishing communication connection with each registration center in the distributed micro-service systems through the preset synchronous component; the second acquisition module is used for acquiring the registration information of the distributed micro-service system corresponding to the registration center from the registration centers aiming at each registration center; the registration information comprises micro-service registration information and gateway registration information of the distributed micro-service system; and the generating module is used for generating a preset registry based on the registration information of the distributed micro-service systems.
In one embodiment, the query module is specifically configured to query, according to the identifier of the called party of the micro service, registration information corresponding to the identifier of the called party of the micro service from a first preset registry; and if the registration information corresponding to the identifier of the micro-service called party is not inquired from the first preset registry, inquiring the registration information corresponding to the identifier of the micro-service called party from the second preset registry.
In one embodiment, the registration information includes microservice registration information and gateway registration information; the calling module is specifically used for sending a service processing request to a gateway of a micro-service called party through the micro-service calling component based on gateway registration information; the control gateway verifies the first authentication information in the service processing request; if the verification is passed, the control gateway sends a service processing request to the micro-service called party based on the micro-service registration information; controlling the called party of the micro service to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the business processing request.
In one embodiment, the second establishing module is further configured to obtain attribute information of each registration center in the distributed microservice systems through a first information entry page corresponding to the preset synchronization component; and establishing communication connection with each registry in the distributed micro-service systems by adopting a preset tool class in the preset synchronous component based on the attribute information of each registry.
In one embodiment, the second obtaining module is further configured to obtain attribute information of each gateway corresponding to each registration center through a second information entry page corresponding to a preset synchronization component; acquiring attribute information of each micro service corresponding to each registration center through a third information entry page corresponding to the preset synchronization component; gateway registration information corresponding to the attribute information of each gateway is acquired from the registry, and micro-service registration information corresponding to the attribute information of each micro-service is acquired from the registry.
The modules in the microservice calling device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 13. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing micro-service invocation data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a microservice calling method.
It will be appreciated by those skilled in the art that the architecture shown in fig. 13 is a block diagram of only a portion of the architecture associated with the present application, and does not constitute a limitation on the servers to which the present application may be applied, and that alternatively a server may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
determining the identifier of a micro service calling party and the identifier of a micro service called party from a plurality of distributed micro service systems according to the service processing requests; according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a preset registry; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where a micro-service caller is located; the second preset registry comprises registration information of a plurality of distributed micro-service systems; and calling the micro-service callee through the micro-service calling component based on the registration information corresponding to the identifier of the micro-service callee, and controlling the micro-service callee to execute the service processing request.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
establishing communication connection between a load balancer in the micro-service calling component and a preset synchronization component; a preset registry is stored in a server deployed by a preset synchronization component; and acquiring a preset registry from the server through the load balancer based on the communication connection.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring configuration information related to a preset synchronization component of a load balancer; the configuration information comprises address information and switch information; and establishing communication connection between the load balancer and the preset synchronous component according to the configuration information.
In one embodiment, the processor when executing the computer program further performs the steps of:
establishing communication connection with each registration center in a plurality of distributed micro-service systems through a preset synchronization component; aiming at each registration center, acquiring registration information of a distributed micro-service system corresponding to the registration center from the registration center; the registration information comprises micro-service registration information and gateway registration information of the distributed micro-service system; and generating a preset registry based on the registration information of the distributed micro-service systems.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a first preset registry; and if the registration information corresponding to the identifier of the micro-service called party is not inquired from the first preset registry, inquiring the registration information corresponding to the identifier of the micro-service called party from the second preset registry.
In one embodiment, the registration information includes microservice registration information and gateway registration information;
the processor, when executing the computer program, further performs the steps of:
sending a service processing request to a gateway of a micro-service called party based on gateway registration information through a micro-service calling component; the control gateway verifies the first authentication information in the service processing request; if the verification is passed, the control gateway sends a service processing request to the micro-service called party based on the micro-service registration information; controlling the called party of the micro service to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the business processing request.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring attribute information of each registration center in a plurality of distributed micro-service systems through a first information entry page corresponding to a preset synchronization assembly; and establishing communication connection with each registry in the distributed micro-service systems by adopting a preset tool class in the preset synchronous component based on the attribute information of each registry.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring attribute information of each gateway corresponding to each registration center through a second information entry page corresponding to the preset synchronization component; acquiring attribute information of each micro service corresponding to each registration center through a third information entry page corresponding to the preset synchronization component; gateway registration information corresponding to the attribute information of each gateway is acquired from the registry, and micro-service registration information corresponding to the attribute information of each micro-service is acquired from the registry.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
determining the identifier of a micro service calling party and the identifier of a micro service called party from a plurality of distributed micro service systems according to the service processing requests; according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a preset registry; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where a micro-service caller is located; the second preset registry comprises registration information of a plurality of distributed micro-service systems; and calling the micro-service callee through the micro-service calling component based on the registration information corresponding to the identifier of the micro-service callee, and controlling the micro-service callee to execute the service processing request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
establishing communication connection between a load balancer in the micro-service calling component and a preset synchronization component; a preset registry is stored in a server deployed by a preset synchronization component; and acquiring a preset registry from the server through the load balancer based on the communication connection.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring configuration information related to a preset synchronization component of a load balancer; the configuration information comprises address information and switch information; and establishing communication connection between the load balancer and the preset synchronous component according to the configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
establishing communication connection with each registration center in a plurality of distributed micro-service systems through a preset synchronization component; aiming at each registration center, acquiring registration information of a distributed micro-service system corresponding to the registration center from the registration center; the registration information comprises micro-service registration information and gateway registration information of the distributed micro-service system; and generating a preset registry based on the registration information of the distributed micro-service systems.
In one embodiment, the computer program when executed by the processor further performs the steps of:
according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a first preset registry; and if the registration information corresponding to the identifier of the micro-service called party is not inquired from the first preset registry, inquiring the registration information corresponding to the identifier of the micro-service called party from the second preset registry.
In one embodiment, the registration information includes microservice registration information and gateway registration information;
the computer program when executed by the processor further realizes the steps of:
sending a service processing request to a gateway of a micro-service called party through a micro-service calling component based on gateway registration information; the control gateway verifies the first authentication information in the service processing request; if the verification is passed, the control gateway sends a service processing request to the micro-service called party based on the micro-service registration information; controlling the micro-service called party to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the business processing request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring attribute information of each registration center in a plurality of distributed micro-service systems through a first information entry page corresponding to a preset synchronization component; and establishing communication connection with each registry in the distributed micro-service systems by adopting a preset tool class in the preset synchronous component based on the attribute information of each registry.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring attribute information of each gateway corresponding to each registration center through a second information entry page corresponding to the preset synchronization component; acquiring attribute information of each micro service corresponding to each registration center through a third information entry page corresponding to the preset synchronization component; gateway registration information corresponding to the attribute information of each gateway is acquired from the registry, and micro-service registration information corresponding to the attribute information of each micro-service is acquired from the registry.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
determining the identifier of a micro service calling party and the identifier of a micro service called party from a plurality of distributed micro service systems according to the service processing requests; according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a preset registry; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where a micro-service caller is located; the second preset registry comprises registration information of a plurality of distributed micro-service systems; and calling the micro-service callee through the micro-service calling component based on the registration information corresponding to the identifier of the micro-service callee, and controlling the micro-service callee to execute the service processing request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
establishing communication connection between a load balancer in the micro-service calling component and a preset synchronization component; a preset registry is stored in a server deployed by a preset synchronization component; and acquiring a preset registry from the server through the load balancer based on the communication connection.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring configuration information of a load balancer and a preset synchronization component; the configuration information comprises address information and switch information; and establishing communication connection between the load balancer and the preset synchronous component according to the configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
establishing communication connection with each registration center in a plurality of distributed micro-service systems through a preset synchronization component; aiming at each registration center, acquiring registration information of a distributed micro-service system corresponding to the registration center from the registration center; the registration information comprises micro-service registration information and gateway registration information of the distributed micro-service system; and generating a preset registry based on the registration information of the distributed micro-service systems.
In one embodiment, the computer program when executed by the processor further performs the steps of:
according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a first preset registry; and if the registration information corresponding to the identifier of the micro-service called party is not inquired from the first preset registry, inquiring the registration information corresponding to the identifier of the micro-service called party from the second preset registry.
In one embodiment, the registration information includes microservice registration information and gateway registration information;
the computer program when executed by the processor further realizes the steps of:
sending a service processing request to a gateway of a micro-service called party through a micro-service calling component based on gateway registration information; the control gateway verifies the first authentication information in the service processing request; if the verification is passed, the control gateway sends a service processing request to the micro-service called party based on the micro-service registration information; controlling the called party of the micro service to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the business processing request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring attribute information of each registration center in a plurality of distributed micro-service systems through a first information entry page corresponding to a preset synchronization component; and establishing communication connection with each registration center in the distributed micro-service systems by adopting a preset tool class in a preset synchronization component based on the attribute information of each registration center.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring attribute information of each gateway corresponding to each registration center through a second information entry page corresponding to the preset synchronization component; acquiring attribute information of each micro service corresponding to each registration center through a third information entry page corresponding to the preset synchronization component; gateway registration information corresponding to the attribute information of each gateway is acquired from the registry, and micro-service registration information corresponding to the attribute information of each micro-service is acquired from the registry.
The computer program product provided in this embodiment has similar implementation principles and technical effects to those of the method embodiments described above, and is not described herein again.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases involved in the embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for invoking a microservice, the method comprising:
determining the identifier of a micro service calling party and the identifier of a micro service called party from a plurality of distributed micro service systems according to the service processing requests;
acquiring registration information of each distributed micro-service system through a preset synchronization component, and summarizing to generate a preset registry;
according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from a preset registry; the registration information comprises micro service registration information and gateway registration information; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where the micro-service caller is located; the second preset registry comprises registration information of the distributed micro-service systems;
sending the service processing request to a gateway of the micro service called party through the micro service calling component based on the gateway registration information;
controlling the gateway to verify the first authentication information in the service processing request; if the verification is passed, controlling the gateway to send the service processing request to the micro-service called party based on the micro-service registration information;
controlling the called party of the micro service to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the service processing request.
2. The method of claim 1, further comprising:
establishing communication connection between a load balancer in the micro service calling component and a preset synchronization component; the preset registry is stored in a server deployed by the preset synchronization component;
and acquiring the preset registry from the server through the load balancer based on the communication connection.
3. The method of claim 2, wherein establishing a communication connection between a load balancer in the microservice calling component and a preset synchronization component comprises:
acquiring configuration information of the load balancer related to the preset synchronization component; the configuration information comprises address information and switch information;
and establishing communication connection between the load balancer and the preset synchronous component according to the configuration information.
4. The method of claim 2, further comprising:
establishing communication connection with each registration center in the distributed micro-service systems through the preset synchronization component;
aiming at each registration center, acquiring registration information of a distributed micro-service system corresponding to the registration center from the registration center; the registration information comprises micro-service registration information and gateway registration information of the distributed micro-service system;
and generating the preset registry based on the registration information of the distributed micro-service systems.
5. The method according to claim 1, wherein the querying registration information corresponding to the identifier of the micro service callee from a preset registry according to the identifier of the micro service callee comprises:
according to the identification of the micro-service called party, inquiring registration information corresponding to the identification of the micro-service called party from the first preset registry;
and if the registration information corresponding to the identifier of the micro service called party is not inquired from the first preset registry, inquiring the registration information corresponding to the identifier of the micro service called party from the second preset registry.
6. The method of claim 4, wherein said establishing a communication connection with each registry in the plurality of distributed microservice systems via the predetermined synchronization component comprises:
acquiring attribute information of each registration center in the distributed micro-service systems through a first information entry page corresponding to the preset synchronization component;
and establishing communication connection with each registration center in the distributed micro-service systems by adopting a preset tool class in the preset synchronization component based on the attribute information of each registration center.
7. The method of claim 4, wherein the obtaining registration information of the distributed microservice system corresponding to the registry from the registry comprises:
acquiring attribute information of each gateway corresponding to each registration center through a second information entry page corresponding to the preset synchronization component; acquiring attribute information of each micro service corresponding to each registration center through a third information entry page corresponding to the preset synchronization component;
gateway registration information corresponding to the attribute information of each gateway is obtained from the registration center, and micro-service registration information corresponding to the attribute information of each micro-service is obtained from the registration center.
8. An apparatus for micro-service invocation, the apparatus comprising:
the determining module is used for determining the identifier of the micro-service calling party and the identifier of the micro-service called party from a plurality of distributed micro-service systems according to the service processing requests;
the query module is used for acquiring the registration information of each distributed micro-service system through the preset synchronization component and summarizing to generate a preset registry; according to the identification of the micro service called party, inquiring registration information corresponding to the identification of the micro service called party from a preset registry; the registration information comprises micro service registration information and gateway registration information; the preset registry comprises a first preset registry and a second preset registry; the first preset registry comprises registration information of a distributed micro-service system where the micro-service caller is located; the second preset registry comprises registration information of the distributed micro-service systems;
the calling module is used for sending the service processing request to the gateway of the micro service called party through the micro service calling component based on the gateway registration information; controlling the gateway to verify the first authentication information in the service processing request; if the verification is passed, controlling the gateway to send the service processing request to the micro service called party based on the micro service registration information; controlling the called party of the micro service to verify the second authentication information in the service processing request; if the verification is passed, the micro service called party is called, and the micro service called party is controlled to execute the service processing request.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202211299018.7A 2022-10-24 2022-10-24 Micro-service calling method and device, computer equipment and storage medium Active CN115361437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211299018.7A CN115361437B (en) 2022-10-24 2022-10-24 Micro-service calling method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211299018.7A CN115361437B (en) 2022-10-24 2022-10-24 Micro-service calling method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115361437A CN115361437A (en) 2022-11-18
CN115361437B true CN115361437B (en) 2023-03-24

Family

ID=84007776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211299018.7A Active CN115361437B (en) 2022-10-24 2022-10-24 Micro-service calling method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115361437B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116074117B (en) * 2023-03-07 2023-06-02 徐工汉云技术股份有限公司 Micro-service access control method and device based on enterprise micro-service architecture
CN116932225B (en) * 2023-09-13 2023-12-08 北京中科智媒融媒体技术有限公司 Micro-service resource scheduling method, micro-service resource scheduling device, electronic equipment and computer readable medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714319A (en) * 2018-12-06 2019-05-03 深圳市中农网有限公司 Management system, method, apparatus, computer equipment and the storage medium of micro services

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10554765B2 (en) * 2018-06-25 2020-02-04 Verizon Patent And Licensing Inc. Intelligent programmable policies for network functions
EP4029223A1 (en) * 2019-09-10 2022-07-20 ARRIS Enterprises LLC User interface for configuring device-specific iot applications
CN113746928B (en) * 2021-09-07 2023-01-24 中国银行股份有限公司 Cross-cloud service calling method, device and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714319A (en) * 2018-12-06 2019-05-03 深圳市中农网有限公司 Management system, method, apparatus, computer equipment and the storage medium of micro services

Also Published As

Publication number Publication date
CN115361437A (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN115361437B (en) Micro-service calling method and device, computer equipment and storage medium
CN109032824A (en) Database method of calibration, device, computer equipment and storage medium
US9146789B2 (en) Method and apparatus for generating and using location-independent distributed object references
CN110213392B (en) Data distribution method and device, computer equipment and storage medium
CN107092635B (en) Data query method, device, server, request terminal and system
CN110555041A (en) Data processing method, data processing device, computer equipment and storage medium
CN113535691B (en) User service registration method and device
CN113507475B (en) Cross-domain access method and device
CN113077259A (en) Block chain-based evidence storing method and device and electronic equipment
CN113542435B (en) User service using method and device
US9032193B2 (en) Portable lightweight LDAP directory server and database
CN115270195A (en) Block chain-based stock information deposit management method, system and device
CN108052380B (en) Business function docking method and device, computer equipment and storage medium
CN107959674B (en) Gateway equipment, and method and system for controlling access to third-party LDAP server user
CN104537081A (en) File management system and method
KR101305397B1 (en) Peer Management Server in P2P System and Peer Management Method
JP6225749B2 (en) Information processing system and program
CN115250269B (en) File distribution method and device, storage medium and electronic equipment
CN111629029B (en) Service release method and system
CN116647468A (en) Registration center configuration method, registration center configuration device, computer equipment and storage medium
CN116339767B (en) Application resource allocation method, device, computer equipment and storage medium
CN107609093B (en) Database table monitoring method, device, equipment and storage medium
CN116302424A (en) Data processing method of distributed system, node and distributed system
CN114979274A (en) Control method and device for micro-service scheduling, computer equipment and storage medium
CN116366724A (en) Business process processing method, device, computer 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
GR01 Patent grant
GR01 Patent grant