Supercharge Your Innovation With Domain-Expert AI Agents!

Service calling method and related equipment

A technology of service invocation and request invocation, applied in electrical components, transmission systems, etc., can solve the problems of difficult to maintain service registry, difficult to meet the needs of system maintenance and operation, and difficult to ensure high availability of service registry in real time. , to achieve the effect of enhancing scene adaptability, less prone to failure, and reducing time consumption

Pending Publication Date: 2020-09-22
CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the expansion of business and the passage of time, most traditional applications have been difficult to meet the needs of system maintenance and operation. At this time, system micro-service is an effective solution
The application system under the microservice architecture needs to use a highly available registration center to realize the service resource call between various services. The service provider must strongly rely on this registration center to realize the service resource call, and for large For most enterprises using the microservice architecture, it is difficult to maintain a highly available service registry, and it is also difficult to ensure the high availability of the service registry in real time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Service calling method and related equipment
  • Service calling method and related equipment
  • Service calling method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] figure 1 It is a flow chart of the service calling method provided by Embodiment 1 of the present invention. The service calling method is applied to a computer device, and is used for calling a target method of a target interface from a service provider through a service caller in a software system running on the computer device.

[0044] Usually, the application system under the microservice architecture needs to use a highly available registration center to realize the service resource call between various services, that is, the service provider needs to register the service in the registration center so that the service provided by the service provider Can be called by the service caller. The service caller performs service discovery through the registration center to obtain the service address of the service provider to be called.

[0045] Maintaining and running the registry requires additional storage and operational resource consumption. Calling microservices...

Embodiment 2

[0086] figure 2 It is a structural diagram of the service invocation device provided by Embodiment 2 of the present invention. The service calling device 20 is applied to computer equipment. The service calling means 20 is used for calling the target method of the target interface from the service provider through the service caller in the software system running on the computer equipment.

[0087] like figure 2 As shown, the service calling device 20 may include a request module 201 , a generation module 202 , a registration module 203 , a sending module 204 , and a return module 205 .

[0088] Usually, the application system under the microservice architecture needs to use a highly available registration center to realize the service resource call between various services, that is, the service provider needs to register the service in the registration center so that the service provided by the service provider Can be called by the service caller. The service caller per...

Embodiment 3

[0129] This embodiment provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps in the above-mentioned service calling method embodiments are implemented, for example figure 1 Steps 101-105 shown:

[0130] 101. Request to call the target method of the target interface;

[0131] 102. Generate a proxy class of the target interface, where the proxy class includes an entry address of a service provider, an interface name, a method name, a parameter type, and a parameter value;

[0132] 103. Register the proxy class with the spring container;

[0133] 104. Send an interface call request to the entry address according to the interface name, the method name, the parameter type, and the parameter value through the registered proxy class;

[0134] 105. Receive the call result returned by the service provider through the registered proxy class.

[0135] Altern...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a block chain technology, and provides a service calling method and device, computer equipment and a computer readable storage medium. The method comprises the steps of requesting to call a target method of a target interface; generating an agent class of the target interface, wherein the agent class comprises an entry address, an interface name, a method name, a parametertype and a parameter value of a service provider; registering the agent class to a spring container; sending an interface calling request to the entry address through the registered proxy class according to the interface name, the method name, the parameter type and the parameter value; and receiving the calling result returned by the service provider through the registered agent class, wherein the related data and information can be stored in the block chain node. The invention discloses a target method for calling a target interface from a service provider through a service calling party.

Description

technical field [0001] The present invention relates to the technical field of blockchain microservices, in particular to a service calling method, device, computer equipment, and computer-readable storage medium. Background technique [0002] With the expansion of business and the passage of time, most traditional applications have been difficult to meet the needs of system maintenance and operation. At this time, system micro-service is an effective solution. The application system under the microservice architecture needs to use a highly available registration center to realize the service resource call between various services. The service provider must strongly rely on this registration center to realize the service resource call, and for large For most enterprises using the microservice architecture, it is difficult to maintain a highly available service registry, and it is also difficult to ensure the high availability of the service registry in real time. Contents ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L65/1073H04L67/51H04L67/60
Inventor 魏飞
Owner CHINA PING AN PROPERTY INSURANCE CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More