Dubbo-based generalization asynchronous calling method and device

An asynchronous invocation method and asynchronous invocation technology, applied in the field of service invocation, can solve the problem of generalization invocation that cannot be implemented asynchronously, and achieve the effect of asynchronous invocation

Pending Publication Date: 2022-02-08
CHONGQING ZHUBAJIE NETWORK
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The Dubbo framework itself supports generalized calls, but generalized calls are mainly aimed at synchronous calls. For a large number of service consumers who need asynchronous calls, generalized calls are an implementation that is more suitable for the scene, but the current Dubbo service only supports synchronous calls. The generalization call of , cannot realize the asynchronous generalization call

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
  • Dubbo-based generalization asynchronous calling method and device
  • Dubbo-based generalization asynchronous calling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] 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 some of the embodiments of the present invention, but not all of them. 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.

[0039] In order to better understand the embodiments of the present invention, the relevant technical content involved is described as follows:

[0040] Dubbo is a high-performance, lightweight open source Java RPC framework, which provides three core capabilities: interface-oriented remote method invocation, intelligent fault tolerance and load balancing, and automatic service registration and discovery;

[0041] Filter: filter;

[0042] Resourc...

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 discloses a Dubbo-based generalization asynchronous calling method and device, which are applied to a Dubbo framework and a Dubbo SPI mechanism, and the method comprises the following steps: customizing a callback Filter through a service consumer; configuring a callback Filter, and adding a plain text file and content under a Resources directory; setting a unified callback processing mode in the implementation of the Filter; carrying out calling initialization, so that the serial number is set in the global context during generalization calling; and executing the service by using a service provider, and during service callback, performing direct calling according to a callback processing mode set in the Filter so as to realize asynchronous calling. The method has the beneficial effects that by customizing the callback filter and initializing, direct calling is carried out according to a callback processing mode set in the filter during service callback, and asynchronous calling is realized.

Description

technical field [0001] The invention relates to the technical field of service invocation, in particular to a generalized asynchronous invocation method and device based on Dubbo. Background technique [0002] The Dubbo framework itself supports generalized calls, but generalized calls are mainly aimed at synchronous calls. For a large number of service consumers who need asynchronous calls, generalized calls are an implementation that is more suitable for the scene, but the current Dubbo service only supports synchronous calls. The generalization call of , cannot realize the asynchronous generalization call. Contents of the invention [0003] In view of the technical defects in the prior art, the purpose of the embodiments of the present invention is to provide a generalized asynchronous calling method and device based on Dubbo that can realize asynchronous generalized calling. [0004] In order to achieve the above object, in the first aspect, the embodiment of the pres...

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
IPC IPC(8): G06F9/448
CPCG06F9/449G06F9/4492
Inventor 赫胜男谭光柱李英
Owner CHONGQING ZHUBAJIE NETWORK
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