Method, device and computer-readable storage medium for merging interfaces
A computer program and interface technology, applied in the field of computer-readable storage media and interface merging, can solve the problems of inability to further improve application running speed, time-consuming, and inability to optimize interface performance, so as to avoid the short-board effect of interface merging and improve the The effect of running speed and improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0083] image 3 It is a flow chart of the first embodiment of the interface merging method of the present invention. A method for merging interfaces, the method comprising:
[0084] S1. Monitor the time-consuming threshold of server-side interface calls;
[0085] S2. It is determined that the time-consuming threshold is lower than the time-consuming threshold, and the return value of the interface is different from the local cache of the client, then increasing the return priority of the return value;
[0086] S3. It is determined that the time-consuming threshold is higher than the time-consuming threshold, and the return value of the interface is the same as the local cache of the client, and then the server sends the return value to the client through message push.
[0087] In this embodiment, first, monitor the time-consuming threshold of the server-side interface call, and then determine that the time-consuming threshold is lower than the time-consuming threshold, and t...
Embodiment 2
[0106] Figure 4 It is a flow chart of the second embodiment of the interface merging method of the present invention. Based on the above embodiment, the time-consuming threshold for monitoring server-side interface calls includes:
[0107] S11. Setting a local cache on the client;
[0108] S12. Perform cache processing on the return value of the interface through the local cache;
[0109] S13. Record the version identifier cached on the server side.
[0110] In this embodiment, firstly, a local cache is set on the client, then the return value of the interface is cached through the local cache, and finally, the version identifier of the cache on the server is recorded.
[0111] Specifically, in this embodiment, the mechanism of local cache of the interface is implemented in the mobile phone client, and each interface call will cache the interface return value in the mobile phone disk, and generate the MD5 identifier of the return value, so as to identify the return value T...
Embodiment 3
[0122] Figure 5 It is a flow chart of the third embodiment of the interface merging method of the present invention. Based on the above embodiment, the time-consuming threshold for monitoring server-side interface calls also includes:
[0123] S14. Setting a central control component on the client;
[0124]S15. Receive the interface return value push message of the server through the central control component;
[0125] S16. Analyze the return value of the interface through the central control component, and transmit it to a corresponding interface for response.
[0126] In this embodiment, firstly, a central control component is set on the client, then, the interface return value push message of the server is received through the central control component, and finally, the interface return value is parsed through the central control component. value and send it to the corresponding interface for response.
[0127] In this embodiment, a unified central control component is ...
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