Unlock instant, AI-driven research and patent intelligence for your innovation.

Greedy asynchronous JavaScript and XML (AJAX) request fast response scheduling algorithm

A scheduling algorithm and request-response technology, applied in the field of web applications, can solve the problem that user requests cannot be processed or blocked, and achieve the effect of avoiding AJAX request timeouts

Active Publication Date: 2015-04-29
HOHAI UNIV
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The current common solution is that according to the HTTP specification, the number of requests from the client and the server cannot exceed 2, but this will also bring other problems. If there are many requests and the response time of the first 2 requests is too long, the built-in queuing mechanism It does not provide enough control, so that some subsequent requests will be blocked for a short time, and user requests cannot be processed.

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
  • Greedy asynchronous JavaScript and XML (AJAX) request fast response scheduling algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] Below in conjunction with specific embodiment, further illustrate the present invention, should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention, after having read the present invention, those skilled in the art will understand various equivalent forms of the present invention All modifications fall within the scope defined by the appended claims of the present application.

[0015] Such as figure 1 As shown, the design uses three arrays to represent three request queues, which are A1{a11,a12,a13...a1n}, A2{a21,a22,a23...a2n}, A3{a31,a32,a33...a3n}, where A1, A2, and A3 represent AJAX requests of three request time levels, among which A1 is the longest, A2 is the longest, and A3 is the shortest. B1{b11,b12,b13...b1n}, B2{b21,b22,b23...b2n} are response queues, these two response queues can respond concurrently, and this response queue sends AJAX requests to the server...

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 greedy asynchronous JavaScript and XML (AJAX) request fast response scheduling algorithm which comprises the following steps of: dividing AJAX requests into three request queues according to the response time level; and classifying any AJAX request to the corresponding request queue according to the response time and the first-in first-out strategy. When an AJAX request is carried out in one of two response queues, the other response queue can only carry out the AJAX requests of which the response time is shorter than that of the ongoing AJAX request in other request queues, except when the other request queues do not have the AJAX requests with shorter response time, and the AJAX requests with the same response time level as the ongoing AJAX request are carried out. The algorithm can solve the problems that the AJAX requests exceed the time, a user browser dies away and the like due to long request time.

Description

technical field [0001] The invention relates to a greedy AJAX request fast response scheduling algorithm, which belongs to the technical field of Web application programs. Background technique [0002] Traditional Web-based applications are widely used in today's enterprises. Web pages only provide forms for users to fill in information or links to other resources, such as links to another web page. The only thing a user might do is enter data into a web form or click a link, which would result in a very poor end-user experience due to long delays. Ajax is a comprehensive technology officially proposed in recent years. Its main feature is to provide asynchronous data transmission and exchange methods for Web development. It can exchange data with the server without overloading and refreshing the interface. The user interaction of Ajax technology The key is that you can only send and get back the necessary data to the server instead of the huge data (HTML, CSS, pictures, scr...

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 Patents(China)
IPC IPC(8): H04L29/08
Inventor 许峰周文欢马鸿旭刘璇
Owner HOHAI UNIV