Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Distributed system exception unified processing method

A distributed system and abnormal technology, applied in the direction of electrical digital data processing, non-redundancy-based fault handling, response error generation, etc. The effect of locating and resolving exceptions, reducing development costs, and reducing business risks

Active Publication Date: 2019-09-27
SICHUAN XW BANK CO LTD
View PDF25 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This undoubtedly increases the workload of the service provider
[0005] 2. The consumer needs to capture each exception separately and make different handling strategies for the exception. If the exception is forgotten or missed, it will cause a fatal error to the business
Therefore, the displayed exception capture also increases the workload of the consumer
[0006] 3. The conventional method of throwing exceptions by the system is not friendly to consumers and has performance problems
[0007] 4. In the case of distributed calls, multiple service parties are likely to be called in order to complete a business entry. When an exception occurs on the business call link, the existing method is difficult to quickly locate the call link context and Quickly locate the cause of the problem

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
  • Distributed system exception unified processing method
  • Distributed system exception unified processing method
  • Distributed system exception unified processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Such as figure 1 The method for unified handling of abnormalities in the distributed system of the present invention includes:

[0032] A. Establish a call process interceptor class based on a serial interface (SPI) for initiating a remote call, which implements the invoke method of the Dubbo Filter interface class. When an exception occurs in the remote call, the call process interceptor class will catch the exception and print related logs. The call process interceptor class at least includes an invoker for initiating a remote call, and an invocation interface and an invocation method for invoking metadata.

[0033] B. Create a result response class, which is used to respond to the call results between services, and receive the output information of the call process interceptor class described in step A. The result response class contains at least 4 field attributes: request number, which uniquely identifies a request and is used for link tracking; response code, wh...

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 distributed system exception unified processing method which comprises the following steps: A, establishing a calling process interceptor class based on a serial interface for initiating remote calling, capturing exceptions and printing related logs; b, establishing a result response class, and responding to a calling result among the services; c, establishing a link tracking tool class based on Thread Local, RpcContext and MDC for setting a request number; d, the service party and the consumer respectively configuring the calling process interceptor class in an XML mode; e, establishing a consumer tangent plane interceptor class for intercepting before the consumer calls the method; and F, establishing a service party tangent plane interceptor class for intercepting before the service party calls the method. According to the method, the development cost is effectively reduced, abnormity can be rapidly positioned and analyzed, and unnecessary risks caused by internal code confusion are prevented.

Description

technical field [0001] The invention relates to a method for unified processing of abnormality in a distributed system. Background technique [0002] In the processing of program exceptions in distributed systems, the DUBBO RPC framework provides basic exception handling components. In the case of exceptions, custom exceptions can be thrown to consumers, and consumers need to understand each exception type and target Different exception types make different handling strategies. If the consumer does not show the exception to be caught, it will cause a fatal error to the business system. The official documentation of the DUBBO framework can be referred to: http: / / dubbo.apache.org / zh-cn / docs / user / quick-start.html [0003] It can be seen that the shortcomings of the existing exception handling methods are: [0004] 1. When the server defines the API interface (application programming interface), it needs to clearly define various exceptions that may be thrown on the interface,...

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): G06F11/07
CPCG06F11/0709G06F11/073G06F11/079
Inventor 李长彬
Owner SICHUAN XW BANK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products