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.

Pending Publication Date: 2019-11-19
携程旅游信息技术(上海)有限公司
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to overcome the defect of using Redis in the prior art to cause the request timeout of the service response when responding to a large data request, and to provide a method, system, device and medium for improving the response speed of the SOA interface

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, system and device for increasing SOA interface response speed and medium
  • Method, system and device for increasing SOA interface response speed and medium
  • Method, system and device for increasing SOA interface response speed and medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method, system and device for increasing the SOA interface response speed and a medium. The method comprises the steps of receiving a request initiated by a client to an SOA;detecting whether the Redis corresponding to the SOA is consistent with the data version of the Memory of each server in the cluster server or not, and if yes, extracting data corresponding to the request from the Memory of any server to respond to the request; and if not, extracting data corresponding to the request from the Redis to respond to the request, and writing the data in the Redis intothe Memory of the inconsistent server so as to update the data version of the Memory of the inconsistent server. According to the method, the Memory data is used for replacing Redis, the SOA serviceand Redis cache interaction is optimized, the data reading frequency and the data transmission time are optimized, the SOA service response speed is further increased, and interface response timeout is avoided.

Description

technical field [0001] The invention belongs to the field of optimizing data response efficiency, and in particular relates to a method, system, equipment and medium for improving the response speed of SOA interface. Background technique [0002] When the customer front end requests high frequency and large amount of data, even if it uses Redis (a key-value storage system) cache, SOA (service-oriented architecture) splits the different functional units of the application, and through these services are well-defined The interface and contract of the service response may also occur when the request times out. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a method, system, device and medium for improving the SOA interface response speed in order to overcome the defect of using Redis in the prior art to cause the request timeout of the service response when responding to a large data request. [0004] The present ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/16H04L29/08
CPCG06F13/16H04L67/5682
Inventor 邓勇
Owner 携程旅游信息技术(上海)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products