Method, system and device for increasing SOA interface response speed and medium
A response speed, SOA technology, applied in transmission systems, electrical components, instruments, etc., can solve problems such as service response request timeout, optimize cache interaction, avoid interface response timeout, and improve response speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] A method to improve the response speed of SOA interface, such as figure 1 As shown, the method includes:
[0042] S11. Receive a request initiated by the client to the SOA;
[0043] S12. Detect whether the data versions of the Redis corresponding to the SOA and the Memory of each server in the cluster server are consistent, if so, then perform step S13, if not, then perform step S14;
[0044] S13, extracting data corresponding to the request from the Memory of any server to respond to the request;
[0045] S14. Extracting data corresponding to the request from Redis to respond to the request, and writing the data in Redis into the Memory of the inconsistent server, so as to update the data version of the Memory of the inconsistent server.
[0046] In this embodiment, in order to quickly repair the wrong data or avoid the impact of the wrong data on the normal operation of the business, at least two data versions are maintained in Memory and Redis. When the current ver...
Embodiment 2
[0051] The method for improving the response speed of the SOA interface in this embodiment is further improved on the basis of Embodiment 1. It is inevitable that redis data will be used in SOA services. In order to maintain the freshness of the used data, an active strategy can be adopted to open The thread regularly writes the data in Redis to Memory to further ensure that the interface can directly obtain data from Memory during the process of responding to the request, so as to achieve the purpose of fast response. Specifically, as figure 2 As shown, the method also includes:
[0052] S21. For the Memory of each server, write the data in Redis into the Memory of each server based on thread timing, so as to update the data version of the Memory of each server.
[0053] In this embodiment, if new data is generated in the timing write gap of the active strategy, or new data is produced after the data update is completed based on the active strategy, the MQ broadcast mode is us...
Embodiment 3
[0059] An electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, the method described in any one of the embodiments 1 or 2 is implemented. A method to improve the response speed of SOA interface.
[0060] image 3 A schematic structural diagram of an electronic device provided in this embodiment. image 3 A block diagram of an exemplary electronic device 90 suitable for use in implementing embodiments of the invention is shown. image 3 The electronic device 90 shown is only an example, and should not limit the functions and scope of use of the embodiments of the present invention.
[0061] Such as image 3 As shown, electronic device 90 may take the form of a general-purpose computing device, which may be a server device, for example. Components of the electronic device 90 may include, but are not limited to: at least one processor 91 , at least one me...
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