CN106713455A - System, method and device for processing client requests - Google Patents

System, method and device for processing client requests Download PDF

Info

Publication number
CN106713455A
CN106713455A CN201611199392.4A CN201611199392A CN106713455A CN 106713455 A CN106713455 A CN 106713455A CN 201611199392 A CN201611199392 A CN 201611199392A CN 106713455 A CN106713455 A CN 106713455A
Authority
CN
China
Prior art keywords
request
client
processing result
service processing
returned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611199392.4A
Other languages
Chinese (zh)
Inventor
吴爱军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201611199392.4A priority Critical patent/CN106713455A/en
Publication of CN106713455A publication Critical patent/CN106713455A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The embodiment of the invention discloses a system, method and device for processing client requests. The method comprises the steps of receiving at least one request sent by a client; obtaining corresponding data according to the request and processing the data; and returning a service processing result of the at least one request to the client. The time originally wasted at network delay and the time wasted at the condition that after a plurality of requests are sent, congestion usually occurs and the client waits for the server to process the requests and then return the results are saved.

Description

A kind of system, method and device for processing client request
Technical field
The present embodiments relate to the technical field of network service, more particularly to a kind of system for processing client request, Method and device.
Background technology
In recent years, network technology is developed rapidly, it is network application it is more and more, become increasingly complex.The network user Increase rapidly, internet is also increasingly applied as easily and efficiently medium carrier by people, with the increasing of number of users It is long, and network system application, often there is network congestion, performance reduction more, use because the number of visiting people in many enterprise networks The problems such as family experience difference, have impact on the normal operation of enterprise.This causes that the operation and management cost of enterprise increases substantially.
At present, generally comprised for the technical method that treatment client access server is controlled following several:By thread It is controlled, each client request generates new thread and this request is processed, and this method is accessed in a small amount of client Can be effective during server, but present number of users increases, while the client visit capacity for causing can also increase a lot, therefore Thread can be caused not enough, cause network congestion, postpone slow problem, this effect and paid no attention to when being asked for substantial amounts of client Think.
Or ranked request using queue, the control method only considers for all clients request now to enter enqueue, Request one by one is processed, and the method can cause the overlong time of client waiting for server end returned data, to system Performance impact can be very big, there are problems that, in the nowadays network big data epoch, customer volume rises appreciably, leads Cause the stand-by period of each user can be long, the inferior position is especially apparent.
The content of the invention
The purpose of the embodiment of the present invention is to propose a kind of system, method and device for processing client request, it is intended to solved Certainly when client sends large batch of request, the problem of network delay how is quickly processed and reduced.
It is that, up to this purpose, the embodiment of the present invention uses following technical scheme:
In a first aspect, a kind of system for processing client request, the system includes:Access Layer, SML and biography Defeated layer;
The Access Layer, the request for receiving client initiation, and the request is cached, it is sent to business pipe Reason layer carries out Business Processing;
The SML, for the treatment for asking to carry out application layer, being obtained from database according to the request Access evidence;By the corresponding service processing result storage of the request in Redis cachings;
The transport layer, the client is returned to for will be stored in the service processing result in the Redis cachings.
Preferably, the system also includes:
Display module, for showing the service processing result in the client.
A kind of second aspect, method for the treatment of client request, methods described includes:
Receive at least one request that client sends;
According to the corresponding data of the acquisition request, and process the data;
The service processing result of described at least one request is returned into the client.
Preferably, after at least one request for receiving client transmission, also include:
By the request storage in Redis cachings.
Preferably, after the treatment data, also include:
The service processing result is buffered in Redis cachings.
Preferably, after the service processing result by described at least one request returns to the client, also wrap Include:
The service processing result is shown in the client.
A kind of third aspect, device for the treatment of client request, described device includes:
Receiver module, at least one request for receiving client transmission;
Processing module, for according to the corresponding data of the acquisition request, and processes the data;
Module is returned to, for the service processing result of described at least one request to be returned into the client.
Preferably, described device also includes:
First memory module, for that after at least one request that the client sends is received, please be seek survival described Storage is in Redis cachings.
Preferably, described device also includes:
Second memory module, for after the data are processed, the service processing result being buffered in into Redis cachings In.
Preferably, described device also includes:
Display module, for by described at least one request service processing result return to the client after, The service processing result is shown in the client.
A kind of method, apparatus and system for processing client request provided in an embodiment of the present invention, receives client and sends At least one request;According to the corresponding data of the acquisition request, and process the data;By described at least one request Service processing result returns to the client.So as to save many times for being wasted in network delay originally and be asked when multiple Ask send rear client would generally block and wait service end process after returning result.
Brief description of the drawings
Fig. 1 is a kind of structural representation of system for processing client request provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of method for processing client request provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for another treatment client request provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the method for another treatment client request provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the method for another treatment client request provided in an embodiment of the present invention;
Fig. 6 is a kind of high-level schematic functional block diagram of device for processing client request provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this The described specific embodiment in place is used only for explaining the embodiment of the present invention, rather than the restriction to the embodiment of the present invention.In addition also It should be noted that for the ease of description, part rather than the entire infrastructure related to the embodiment of the present invention is illustrate only in accompanying drawing.
With reference to Fig. 1, Fig. 1 is a kind of structural representation of system for processing client request provided in an embodiment of the present invention.
As shown in figure 1, the system of the treatment client request includes:Access Layer 101, SML 102 and transmission Layer 103;
The Access Layer 101, the request for receiving client initiation, and the request is cached, it is sent to institute Stating SML 102 carries out Business Processing;
The SML 102, for the treatment for asking to carry out application layer, according to the request from database Obtain data;The corresponding service processing result storage of the request is slow in Redis (Remote Dictionary Server) In depositing;
The transport layer 103, the client is returned to for will be stored in the service processing result in the Redis cachings End.
Preferably, the system also includes:
Display module, for showing the service processing result in the client.
A kind of system for processing client request provided in an embodiment of the present invention, the system includes:Access Layer, business pipe Reason layer and transport layer;The Access Layer, the request for receiving client initiation, and the request is cached, it is sent to The SML carries out Business Processing;The SML, the treatment for carrying out application layer to the request, according to The request obtains data from database;By the corresponding service processing result storage of the request in Redis cachings;The biography Defeated layer, the client is returned to for will be stored in the service processing result in the Redis cachings.So as to save many originals Come be wasted in the time of network delay and when multiple request send after client would generally block and wait service end process after Returning result.
With reference to Fig. 2, Fig. 2 is a kind of schematic flow sheet of method for processing client request provided in an embodiment of the present invention.
As shown in Fig. 2 the method for the treatment client request includes:
Step 201, receives at least one request that client sends;
Step 202, according to the corresponding data of the acquisition request, and processes the data;
Step 203, the client is returned to by the service processing result of described at least one request.
A kind of method for processing client request provided in an embodiment of the present invention, receive client transmission at least one please Ask;According to the corresponding data of the acquisition request, and process the data;By the service processing result of described at least one request Return to the client.So as to save many times for being wasted in network delay originally and client after multiple request sends End would generally be blocked and wait returning result after service end treatment.
With reference to Fig. 3, Fig. 3 is that the flow of the method for another treatment client request provided in an embodiment of the present invention is illustrated Figure.
As shown in figure 3, the method for the treatment client request includes:
Step 301, receives at least one request that client sends;
Step 302, by the request storage in Redis cachings;
Step 303, according to the corresponding data of the acquisition request, and processes the data;
Step 304, the client is returned to by the service processing result of described at least one request.
With reference to Fig. 4, Fig. 4 is that the flow of the method for another treatment client request provided in an embodiment of the present invention is illustrated Figure.
As shown in figure 4, the method for the treatment client request includes:
Step 401, receives at least one request that client sends;
Step 402, according to the corresponding data of the acquisition request, and processes the data;
Step 403, the service processing result is buffered in Redis cachings;
Step 404, the client is returned to by the service processing result of described at least one request.
With reference to Fig. 5, Fig. 5 is that the flow of the method for another treatment client request provided in an embodiment of the present invention is illustrated Figure.
In Fig. 2 to Fig. 4, illustrated as a example by fig. 4, as shown in figure 5, the method for the treatment client request Including:
Step 501, receives at least one request that client sends;
Step 502, according to the corresponding data of the acquisition request, and processes the data;
Step 503, the service processing result is buffered in Redis cachings;
Step 504, the client is returned to by the service processing result of described at least one request;
Step 505, the service processing result is shown in the client.
With reference to Fig. 6, Fig. 6 is that a kind of functional module of device for processing client request provided in an embodiment of the present invention is illustrated Figure.
As shown in fig. 6, described device includes:
Receiver module 601, at least one request for receiving client transmission;
Processing module 602, for according to the corresponding data of the acquisition request, and processes the data;
Module 603 is returned to, for the service processing result of described at least one request to be returned into the client.
Preferably, described device also includes:
First memory module, for that after at least one request that the client sends is received, please be seek survival described Storage is in Redis cachings.
Preferably, described device also includes:
Second memory module, for after the data are processed, the service processing result being buffered in into Redis cachings In.
Preferably, described device also includes:
Display module, for by described at least one request service processing result return to the client after, The service processing result is shown in the client.
A kind of device for processing client request provided in an embodiment of the present invention, receive client transmission at least one please Ask;According to the corresponding data of the acquisition request, and process the data;By the service processing result of described at least one request Return to the client.So as to save many times for being wasted in network delay originally and client after multiple request sends End would generally be blocked and wait returning result after service end treatment.
The know-why of the embodiment of the present invention is described above in association with specific embodiment.These descriptions are intended merely to explain this The principle of inventive embodiments, and can not by any way be construed to the limitation to embodiment of the present invention protection domain.Based on herein Explanation, those skilled in the art associated by would not require any inventive effort the embodiment of the present invention other are specific Implementation method, these modes are fallen within the protection domain of the embodiment of the present invention.

Claims (10)

1. it is a kind of process client request system, it is characterised in that the system includes:Access Layer, SML and biography Defeated layer;
The Access Layer, the request for receiving client initiation, and the request is cached, it is sent to the business pipe Reason layer carries out Business Processing;
The SML, for the treatment for asking to carry out application layer, number being obtained from database according to the request According to;By the corresponding service processing result storage of the request in Redis cachings;
The transport layer, the client is returned to for will be stored in the service processing result in the Redis cachings.
2. system according to claim 1, it is characterised in that the system also includes:
Display module, for showing the service processing result in the client.
3. it is a kind of process client request method, it is characterised in that methods described includes:
Receive at least one request that client sends;
According to the corresponding data of the acquisition request, and process the data;
The service processing result of described at least one request is returned into the client.
4. method according to claim 3, it is characterised in that at least one request that the reception client sends Afterwards, also include:
By the request storage in Redis cachings.
5. method according to claim 3, it is characterised in that after the treatment data, also include:
The service processing result is buffered in Redis cachings.
6. the method according to claim 3 to 5 any one, it is characterised in that described by described at least one request Service processing result is returned to after the client, is also included:
The service processing result is shown in the client.
7. it is a kind of process client request device, it is characterised in that described device includes:
Receiver module, at least one request for receiving client transmission;
Processing module, for according to the corresponding data of the acquisition request, and processes the data;
Module is returned to, for the service processing result of described at least one request to be returned into the client.
8. device according to claim 7, it is characterised in that described device also includes:
First memory module, for after at least one request that the client sends is received, the request storage being existed In Redis cachings.
9. device according to claim 7, it is characterised in that described device also includes:
Second memory module, for after the data are processed, the service processing result being buffered in Redis cachings.
10. the device according to claim 7 to 9 any one, it is characterised in that described device also includes:
Display module, for after the service processing result of described at least one request is returned into the client, in institute State client and show the service processing result.
CN201611199392.4A 2016-12-22 2016-12-22 System, method and device for processing client requests Pending CN106713455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611199392.4A CN106713455A (en) 2016-12-22 2016-12-22 System, method and device for processing client requests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611199392.4A CN106713455A (en) 2016-12-22 2016-12-22 System, method and device for processing client requests

Publications (1)

Publication Number Publication Date
CN106713455A true CN106713455A (en) 2017-05-24

Family

ID=58901996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611199392.4A Pending CN106713455A (en) 2016-12-22 2016-12-22 System, method and device for processing client requests

Country Status (1)

Country Link
CN (1) CN106713455A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660589A (en) * 2018-10-25 2019-04-19 阿里巴巴集团控股有限公司 Request processing method and device, electronic equipment
CN110928911A (en) * 2019-12-10 2020-03-27 北大方正集团有限公司 System, method and device for processing checking request and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069113A (en) * 2015-08-11 2015-11-18 北京京东尚科信息技术有限公司 Data flow real-time visualization method and data flow real-time visualization system
CN105224769A (en) * 2015-10-30 2016-01-06 北京蓝威技术有限公司 A kind of CAE data processing method of sing on web browser and system
CN105337961A (en) * 2012-11-02 2016-02-17 北京奇虎科技有限公司 Method for communication with client side and server
CN105635083A (en) * 2014-11-14 2016-06-01 航天信息股份有限公司 Service processing method and service processing system based on server and client architecture
US9501585B1 (en) * 2013-06-13 2016-11-22 DataRPM Corporation Methods and system for providing real-time business intelligence using search-based analytics engine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337961A (en) * 2012-11-02 2016-02-17 北京奇虎科技有限公司 Method for communication with client side and server
US9501585B1 (en) * 2013-06-13 2016-11-22 DataRPM Corporation Methods and system for providing real-time business intelligence using search-based analytics engine
CN105635083A (en) * 2014-11-14 2016-06-01 航天信息股份有限公司 Service processing method and service processing system based on server and client architecture
CN105069113A (en) * 2015-08-11 2015-11-18 北京京东尚科信息技术有限公司 Data flow real-time visualization method and data flow real-time visualization system
CN105224769A (en) * 2015-10-30 2016-01-06 北京蓝威技术有限公司 A kind of CAE data processing method of sing on web browser and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
樊重俊: "《数据库基础及应用》", 31 January 2015 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660589A (en) * 2018-10-25 2019-04-19 阿里巴巴集团控股有限公司 Request processing method and device, electronic equipment
CN109660589B (en) * 2018-10-25 2021-05-04 创新先进技术有限公司 Request processing method and device and electronic equipment
CN110928911A (en) * 2019-12-10 2020-03-27 北大方正集团有限公司 System, method and device for processing checking request and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107391271B (en) Message queue system-based delayed task triggering method and device
US10447775B2 (en) System and method to balance servers based on server load status
CN112839111B (en) System, method, and medium for customizable event-triggered computation at edge locations
EP2698730B1 (en) Data acquisition method, device and system
KR20090125108A (en) System and method for preloading content on the basis of user context
CN107547629B (en) Method and device for downloading client static resources, electronic equipment and readable medium
US20120166391A1 (en) Method and System for Data Synchronization in Content Delivery Network
EP1812871B1 (en) Network accelerator for controlling long delay links
CN109889567B (en) Implementation method of Internet of things platform supporting mass equipment access
CN104246737A (en) Systems and methods for connection pooling for video streaming in content delivery networks
CN101742475B (en) Subscribing and notifying method, device and system
CN104601702B (en) Cluster remote procedure calling (PRC) method and system
CN108055311B (en) HTTP asynchronous request method, device, server, terminal and storage medium
CN103370917A (en) Message processing method and server
CN109992406B (en) Picture request method, picture request response method and client
CN102082800A (en) User request processing method and server
CN107580021A (en) A kind of method and apparatus of file transmission
EP3200430A1 (en) Advertisement data processing method and router
CN106713455A (en) System, method and device for processing client requests
WO2009056549A1 (en) Cache management for parallel asynchronous requests in a content delivery system
CN103716230A (en) Message sending method, device and server
CN107959667A (en) A kind of method for pushing of media slicing, server and client
EP2901658B1 (en) Request-agnostic caching for a data resource collection
US9756114B2 (en) Asynchronous response processing in a web based request-response computing system
CN113127923A (en) Method and device for managing authority

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170524