Transit method and device for network request

A network request and network resource technology, applied in the field of information processing, can solve problems such as investing more costs

Inactive Publication Date: 2017-07-28
RUN TECH CO LTD
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the improvement of hardware performance often requires more investment, and when the hardware performance cannot be further improved, the existing technology cannot provide us with other effective implementation methods to improve the high concurrency performance of the transit server

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
  • Transit method and device for network request
  • Transit method and device for network request
  • Transit method and device for network request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] figure 1 It is a flowchart of a network request transfer method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where a transfer server is used to provide network resource access acceleration services. device, which can be implemented in the form of software and / or hardware, and generally can be integrated in the transit server. Such as figure 1 As shown, the method of this embodiment specifically includes:

[0045] S110. The transit server acquires the network resource request directed to the proxy server sent by the user.

[0046] In this embodiment, after obtaining the network resource request sent by the user, the transit server obtains the resource requested by the user from the corresponding proxy server, and then forwards the resource to the corresponding user, so that the user can be more stable and High-speed access to network resources.

[0047]Wherein, the network request that the user sends to the transfe...

Embodiment 2

[0059] Figure 2a It is a flowchart of a network request transfer method provided by Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiments. In this embodiment, the transfer server decomposes the network resource request into Two pending tasks, and adding the two pending tasks to the local message queue is specifically optimized as follows: the transfer server decomposes the network resource request into a first pending task and a second pending task; The transfer server adds the task processing parameters corresponding to each of the pending tasks to the corresponding pending tasks; the transfer server adds the two pending tasks after adding the task processing parameters to the corresponding tasks respectively. the tail of the local message queue;

[0060] And, the transfer server obtains the tasks in the local message queue through the threads in the thread pool, and the specific optimization is: the transfer server obtains the t...

Embodiment 3

[0088] image 3 A schematic structural diagram of a transfer device for network requests provided by Embodiment 3 of the present invention, the device is configured in a transfer server, such as image 3 As shown, the device includes: a network resource request acquisition module 310 , a network resource request decomposition module 320 , and a task processing module 330 . in:

[0089] The network resource request acquiring module 310 is configured to acquire the network resource request directed to the proxy server sent by the user.

[0090] The network resource request decomposition module 320 is configured to decompose the network resource request into two pending tasks, and add the two pending tasks to the local message queue, wherein the two pending tasks respectively point to The proxy server and the user.

[0091] The task processing module 330 is configured to acquire tasks in the local message queue through threads in the thread pool, and process the tasks through ...

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 embodiment of the invention discloses a transit method and a transit device for a network request. The method comprises the steps as follow: a transit server acquires a network resource request pointed to a proxy server and sent by a user; the transit server decomposes the network resource request into two tasks to be processed, and adding the two tasks to be processed into a local message queue, wherein the two tasks to be processed respectively point to the proxy server and the user; and the transit server acquires the task in the local message queue via a thread in a thread pool, and processes the task in a non-blocking communication manner via the thread. According to the technical scheme of the method and the device provided by the embodiment of the invention, the problem that network communication is easy to block under high concurrency and thus relatively long delay is generated can be solved, large-scale user requests can be concurrently processed, and thus high-concurrent visit of multi-user is supported; and meanwhile, according to the technical scheme of the method and the device provided by the embodiment of the invention, a network service provider can conveniently develop a network request transit service supporting high concurrency.

Description

technical field [0001] Embodiments of the present invention relate to information processing technologies, and in particular, to a network request transfer method and device. Background technique [0002] Network resource access is a technology that is inseparable from the development of the Internet. Many application scenarios are accompanied by network resource access, such as accessing websites, downloading files, and instant messaging. However, because the network conditions are often not stable or the access speed is low due to different network environments, many network service companies will provide network resource access acceleration services based on transit servers, so that users can access network resources more stably and at high speed. [0003] When a large number of users need to use the above services, the transit server needs to provide high-concurrency network request transit services to support the simultaneous use of large-scale users. In order to suppo...

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/56
Inventor 卢臻杨健李振华
Owner RUN TECH 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