Idempotence control method and device, electronic equipment and readable storage medium
A control method and idempotent technology, applied in the information field, can solve problems such as high process complexity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] In order to solve the problem that the caller needs to make at least two requests in the related technology, the process complexity is high, and the user experience is not good, the embodiment of this application provides an idempotent device and a server that cooperate with each other to achieve Idempotency control method. see figure 1 and figure 2 shown.
[0059] see figure 1 as shown, figure 1 A feasible idempotent control process provided for the embodiment of this application includes:
[0060] S101: When the server receives the interface request from the caller, send a token generation request to the idempotent device.
[0061] It should be noted that, in this embodiment of the application, the calling end refers to the end requesting the service, and the server end refers to the end providing the service, which is used to perform business processing on the request of the calling end. It should also be noted that, in this embodiment of the application, the ...
Embodiment 2
[0097] It should be noted that, in addition to the cooperation between the idempotent device and the server in the above-mentioned embodiment 1 to solve the problem that the caller needs to make at least two requests in the related technology, the process complexity is relatively high, and the user experience is not good. In addition, the embodiment of the present application also provides a method that can be realized only by the server, which can solve the problem that the caller needs to make at least two requests in the related technology, the process complexity is high, and the user experience is not good. The idempotent control method. see image 3 Shown:
[0098] S301: When receiving an interface request from a caller, generate a token uniquely corresponding to the interface request according to the feature information of the interface request.
[0099] It should be noted that the explanations made in the first embodiment are also applicable to the embodiment of the p...
Embodiment 3
[0108] On the basis of the first embodiment, this embodiment takes a more specific interface request idempotency control process as an example to further illustrate this application.
[0109] see Figure 4 As shown, first, the caller will send an interface request to the server, and after receiving the interface request, the server will send a token generation request carrying the interface method signature and request parameters to the idempotent device. The idempotent device generates a token corresponding to the interface request according to the interface method signature and request parameters, and judges whether the token has been stored in the database. When the token has been stored in the database, return "Do not submit repeated requests" to the server, and the server will give up the interface request after receiving this message; when the token is not stored in the database, the generated The corresponding token, interface method signature, and request parameters a...
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