Interface calling failure retry method and system, electronic equipment and storage medium
A technology of interface call and interface, which is applied in the field of interface call failure retry to achieve the effect of reducing data pressure, reducing the number of retries, and reducing the pressure of data operation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] Embodiment 1: as figure 1 As shown, the present invention proposes a method for interface call failure retry, including the following steps:
[0022] Step SS1: Take out the message from the message queue and call the cloud interface;
[0023] Step SS2: Determine whether the cloud interface is called successfully. If the call is successful, exit and process the next message. If the call fails, adopt the aging strategy;
[0024] Step SS3: If the call fails, resend the message to the message queue, and if the call succeeds, return to step SS1 to process the next message.
[0025] As a preferred embodiment, the call failure includes call timeout.
[0026] As a preferred embodiment, the aging strategy specifically includes: after the interface call fails, enter the retry waiting stage, where the retry waiting time=last failed retry time x 2+random number.
Embodiment 2
[0027] Embodiment 2: The present invention also proposes a system for interface call failure retry, including:
[0028] The message acquisition module, specific execution: take out the message from the message queue, and call the cloud interface;
[0029] Call the judgment module, specific execution: judge whether the cloud interface is called successfully, if the call is successful, exit, process the next message, if the call fails, use the aging strategy;
[0030] The message feedback module, specific implementation: if the call fails, the message is resent to the message queue, and if the call is successful, the message acquisition module is returned to process the next message.
[0031] As a preferred embodiment, the call failure includes call timeout.
[0032] As a preferred embodiment, the aging strategy specifically includes: after the interface call fails, enter the retry waiting stage, where the retry waiting time=last failed retry time x 2+random number.
Embodiment 3
[0033] Embodiment 3: The present invention also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the steps of the method are implemented when the processor executes the program.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com