Asynchronous communication method and device

A technology of asynchronous communication and identification information, applied in the field of communication, can solve problems such as backlog processing requests, client hangup, limited cache capacity, etc., and achieve the effect of reducing processing pressure, avoiding long waiting, and avoiding request failure

Inactive Publication Date: 2016-08-31
LETV HLDG BEIJING CO LTD +1
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This solution improves the efficiency of responding to client requests through caching and transparent retry mechanisms, and relieves the processing pressure on the back-end server. However, in essence, it is still a synchronous request / response mode. When there are too many requests from the front-end client At the same time, due to the limited cache capacity of the proxy service, most requests will still penetrate to the back-end server. Once the amount of calculation required for the requested resource increases, it will also bring huge pressure to the server and slow down the response. The continuous backlog of processing requests not only causes the client to hang up for a long time, but even causes the proxy service to go down, without fundamentally solving the problem

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
  • Asynchronous communication method and device
  • Asynchronous communication method and device
  • Asynchronous communication method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0066] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0067] figure 1 A schematic flow diagram of an embodiment of an asynchronous communication method provided by the present invention; as shown in the figure, an embodiment of an asynchronous communication method disclosed by the present invention is applied to resource...

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 an asynchronous communication method, and the method comprises the steps: receiving a task message sent by a client; processing a resource request for the task message, and obtaining a part of obtained results; generating identification information according to the task message, and enabling the part of obtained results and the identification information to be transmitted to the client; continuously processing unfinished resource request, obtaining the part of obtained results, and temporarily storing the part of obtained results; and transmitting the temporarily stored result to the client when the identification information transmitted by the client is received. According to the invention, through the stepped processing of the resource request for the task message, the method processes the resource requests of all parts through the time difference between two requests, obtains a part of results, and transmits the part of results, divides a complex task with longer time consumption into simple tasks with shorter time consumption, respectively completes the simple tasks through employing occupied threads, effectively reduces the processing pressure, can avoid the long-time waiting of the client, and especially can avoid request failure caused by no response under the high parallel requests.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to an asynchronous communication method and device. Background technique [0002] In the most basic way of information interaction in the existing technology, the client initiates a resource request to the server purposefully, and is in a state of waiting for the result information. After receiving the resource request from the client, the server searches for the corresponding resource according to the content of the request , get the result after certain calculation and processing, and respond to the client. During the entire interaction process, the client needs to be in a synchronous waiting state all the time. Once the server-side processing overload causes the processing capacity to decline, the waiting time of the client will be extended, and the entire request process will fail due to long-term no response. The client needs to re-initiate the request Executing ...

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): H04L29/08
CPCH04L67/568
Inventor 邓宏
Owner LETV HLDG BEIJING CO LTD
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