Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for responding user request information

A technology for users to request and request information, applied in transmission systems, digital transmission systems, electrical components, etc., can solve problems such as poor processing and transmission of user request information, and achieve the effect of ensuring processing speed

Inactive Publication Date: 2010-06-09
北京雷霆万钧网络科技有限责任公司
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a method and system for responding to user request information to solve the poor processing and transmission of user request information generated by the website server in the prior art when processing large burst requests

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 and system for responding user request information
  • Method and system for responding user request information
  • Method and system for responding user request information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0055] Embodiment 2 is similar to the above embodiment, but the difference is that the writing of data into the memory space in step S102 is specifically:

[0056] Obtain the maximum number of files of the website server, and use 0 to the maximum number of files as the index number of the memory space;

[0057] An index number is configured for the currently received user request information, and the user request information is written into an address corresponding to the index number in the memory space.

[0058]In this embodiment, an index number is configured for the memory space, and a Socket file handle number is configured for the currently received user request information within the range of the index number, and the user request information is written into the corresponding memory space according to the Socket file handle number. Then, the backend process reads the user request information from the memory space. When the next user sends a user request, the website se...

Embodiment 3

[0059] Embodiment 3 is similar to the above embodiment, but the difference is that in step S103, after the website server extracts the user request information, it also includes:

[0060] Monitor the Epoll events of each well-known pipeline, and identify the current status of the well-known pipeline according to the Epoll event type; among them, the well-known pipelines form a pipeline pool, and the pipeline pool management module in the website server monitors the Epoll events of each well-known pipeline in the pipeline pool, and according to Epoll The event type identifies the current state of the named pipe.

[0061] The pipe pool management module excludes the well-known pipes whose buffer is full or has been broken according to the current state of the well-known pipes, and finds the available well-known pipes by round-robin the rest of the well-known pipes. Wherein, the website server receives the user request, sends the user request information to the pipeline pool mana...

Embodiment 4

[0064] Embodiment 4 is similar to the above embodiment, the difference is that step S104 is specifically:

[0065] Read the user request information from the FIFO Buffer of the famous pipe, and send it to the FIFO Buffer of several sub-processes; wherein, the first thread of the sub-process reads the user request information from the well-known pipe, and transfers it to the FIFO Buffer of the sub-process FIFO Buffer.

[0066] Read user request information from the FIFO Buffer of each sub-process, convert the format into log information, and send it to the Spread loop. Wherein, the second process of the sub-process reads the user request information from the FIFO Buffer of the sub-process, converts the user request information into log information and sends it to the Spread loop.

[0067] In this embodiment, several independently working sub-processes can improve the concurrent processing capability of the system, effectively and quickly realize the format conversion and trans...

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 and a system for responding user request information. A web server receives the user request information; the web server stores the user request information into a memory space; the web server extracts the user request information in the memory space, and transmits the user request information to sub-processes through a plurality of named pipes; and the sub-processes respond the user request information. The received user request information is stored into the memory space and is transmitted to the sub-processes through the plurality of named pipes in the memory space so as to avoid unsmooth transmission caused by transmitting only one piece of user request information every time. When the large explosive request is processed, the transmission for the user request information is ensured. The user request information is transmitted to a plurality of sub-processes through the named pipes, and the plurality of sub-processes are operated in parallel so as to share the work load of the system and ensure the speed for processing the user request information. The method and the system avoid the conditions that the web server cannot process the user request information and even the system is downtime because of delayed processing.

Description

technical field [0001] The present invention relates to the field of website work, more specifically, relates to the field of user request information response of the website. Background technique [0002] With the advent of the information society, people rely more and more on the Internet to obtain a huge amount of information. Large-scale websites have many servers and a large number of website visits, which makes the processing of user requests for information a thorny problem. At present, most solutions use Http servers such as Apache or lighthttp to collect user request information locally, and then copy the logs to a unified server through FTP, remote file copy, etc. for analysis. [0003] In the existing technology, Http Server processes user request information one by one. In the case of large-scale concurrency, the system is unstable. When explosive requests such as sudden increase in website visits occur, user request information transmission Not smooth, and the...

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): H04L12/56H04L29/08H04L47/76
Inventor 吴帅王国腾绍军左鹞飞
Owner 北京雷霆万钧网络科技有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products