Non-stub micro-service calling method and device

A service invocation and service method technology, applied in the field of microservice invocation methods and devices without stubs, can solve problems such as incompatibility of deserialization types, resistance to microservice architecture transformation, inability to load service stubs, etc., to improve performance and stability sexual effect

Pending Publication Date: 2021-09-03
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, due to the strong coupling relationship between the microservice calling model and the service stub in this way, when the caller is a third-party application, it is inconvenient for the provider to provide the service stub, or when the caller and provider programming languages ​​are not compatible with each other, The service stub cannot be loaded, or after the provider updates the service stub, the caller cannot update the stub dynamically and synchronously in the memory at runtime, which causes the caller to fail to make microservice calls
Therefore, the strong coupling relationship between the provider and the caller creates great resistance to the transformation of the microservice architecture of the product
[0004] There is also the problem of incompatibility of deserialization types between the existing generalized call protocol and the conventional stub proxy class call protocol, so the generalized call protocol cannot be directly used through the existing microservice call model

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
  • Non-stub micro-service calling method and device
  • Non-stub micro-service calling method and device
  • Non-stub micro-service calling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0065] Such as figure 1 As shown, the stubless microservice calling method provided by this application includes the following steps:

[0066] Step S101, receiving a service invocation request.

[0067] Specifically, the service invocation request is initiated by the terminal or the server according to the specific service invocation requirements, received and verified by the service invocation party, and the service invocation operation can be performed by t...

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 provides a stub-free micro-service calling method and device, and relates to the field of computers and finance, and the method comprises the steps: receiving a service calling request; when a service interface name in the service calling request and a corresponding method list exist in the latest method list cache, acquiring instance information of a service provider from a registration center; converting the service calling request into a conventional proxy request; sending the conventional agent class request to the service provider according to the instance information, and performing remote calling of the service. The problem of strong coupling of the service calling party and the service provider on the service stub is fundamentally solved, the service calling party can carry out service calling without loading the service stub, and the performance and stability of the calling party are improved.

Description

technical field [0001] The invention relates to the computer field and the financial field, in particular to a method and device for invoking a microservice without a stub. Background technique [0002] Due to the commonality of high-level programming languages, the existing microservice call model generally needs to be defined before calling, so most remote calls are completed based on service stubs. After the consumer loads the service stub, it calls the method in the service stub. The bottom layer of the distributed RPC framework is based on the service stub to construct the remote call proxy class, which encapsulates the remote call steps such as service discovery, request serialization, network transmission, and exception handling layer by layer, and realizes the remote call method in the service provided by the provider. [0003] However, due to the strong coupling relationship between the microservice invocation model and the service stub in this way, when the caller...

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): G06F8/41G06F8/76H04L29/08
CPCG06F8/427G06F8/44G06F8/76H04L67/63
Inventor 成诺夏龙飞颜高飞张远征
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products