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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


