Unlock instant, AI-driven research and patent intelligence for your innovation.

Configurable interface compensation processing method and processing component

A processing method and interface configuration technology, which is applied in the field of interface compensation, can solve problems such as interface call failure, and achieve the effects of strong adaptability, flexible scalability, and easy maintenance

Inactive Publication Date: 2021-01-05
SUNING CONSUMER FINANCE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Different communication methods, interface call failure due to network delay and other reasons

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
  • Configurable interface compensation processing method and processing component
  • Configurable interface compensation processing method and processing component
  • Configurable interface compensation processing method and processing component

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment 1

[0033] combine figure 1 , the present invention refers to a configurable interface compensation processing method, the processing method comprising the following steps:

[0034] S1. Add a custom interface compensation annotation @InterfaceRetry to the interface that needs to be compensated for the call exception, and intercept the call interface where the exception occurs. Taking the Installment Mall as an example, the interfaces involved in calling exceptions include the cancellation order interface, the payment result notification interface, and the refund order synchronization interface. It should be understood that the interface compensation processing method of the present invention is not only applicable to installment malls, but also applicable to other interface calling scenarios involving multiple third-party entities with different communication mechanisms.

[0035] S2. Obtain relevant information about the interception class package and request message through the ...

specific Embodiment 2

[0043] Based on the foregoing method, the present invention also mentions a configurable interface compensation processing component, the processing component comprising:

[0044] (1) A module used to add a custom interface compensation annotation @InterfaceRetry to the interface that needs to be compensated for calling exceptions.

[0045] (2) A module for intercepting the calling interface where an exception occurs.

[0046] (3) A module for obtaining relevant information about the interception class package and request message through the java reflection mechanism.

[0047] (4) It is used to make a persistent interface compensation information table including MD5 signature, interface compensation times, interface compensation maximum retry times, compensation success status identification, etc. module.

[0048] (5) A module for periodically pulling the interface compensation failure record in the persistent interface compensation information table through the timing task,...

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 configurable interface compensation processing method, which comprises the following steps of: adding a user-defined interface compensation annotation (at) InterfaceRetry toan interface which is called abnormally and needs to be compensated, and carrying out aspect interception on the abnormal calling interface; obtaining interception type packet related information andrequest message related information through a java reflection mechanism; making a persistent interface compensation information table; periodically pulling interface compensation failure records in the persistent interface compensation information table, and executing interface retry through a reflection mechanism; updating whether the interface compensation record is successful or not according to the interface retry result; if not, accumulating the compensation record into an accumulated interface compensation frequency corresponding to the current interface. According to the method, automatic system compensation after interface calling failure is achieved in an interface compensation custom annotation mode, interface compensation can be independently extracted and made into a public assembly, and therefore maintenance cost is reduced, productivity is improved, and resources are saved.

Description

technical field [0001] The present invention relates to the technical field of interface compensation, in particular to a configurable interface compensation processing method and processing components. Background technique [0002] At present, the installment mall needs to connect to the third-party e-commerce platform and the third-party payment platform at the same time, and the interface communication methods of different platforms may be different, and there will be network delays in the interface calls, which will lead to interface call failures and exceptions. For example, some installment mall products and orders interact with the e-commerce open platform through HTTP communication, while cash register payments and refunds interact with the corresponding consumer financial credit system through internal sif communication. Due to different communication methods, interface calls fail due to network delays and other reasons. [0003] In view of the aforementioned probl...

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): G06Q40/02G06F8/65G06F8/71
CPCG06F8/65G06F8/71G06Q40/03
Inventor 韩志远
Owner SUNING CONSUMER FINANCE CO LTD