CN104168274A - Data obtaining request processing method, client sides and server - Google Patents

Data obtaining request processing method, client sides and server Download PDF

Info

Publication number
CN104168274A
CN104168274A CN201410381742.3A CN201410381742A CN104168274A CN 104168274 A CN104168274 A CN 104168274A CN 201410381742 A CN201410381742 A CN 201410381742A CN 104168274 A CN104168274 A CN 104168274A
Authority
CN
China
Prior art keywords
system pressure
acquisition request
data acquisition
pressure coefficient
current system
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.)
Granted
Application number
CN201410381742.3A
Other languages
Chinese (zh)
Other versions
CN104168274B (en
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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201410381742.3A priority Critical patent/CN104168274B/en
Publication of CN104168274A publication Critical patent/CN104168274A/en
Application granted granted Critical
Publication of CN104168274B publication Critical patent/CN104168274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a data obtaining request processing method, client sides and a server, and belongs to the technical field of Internet. The method comprises the steps that data obtaining requests sent by the client sides are received; corresponding data are obtained according to the data obtaining requests, and a current system pressure coefficient is obtained; the obtained data are sent to the client sides, the current system pressure coefficient is sent to all the client sides, and all the client sides adjust the frequency of sending data obtaining requests next time according to the current system pressure coefficient. The current system pressure coefficient is sent to all the client sides, and all the client sides adjust the frequency of sending the data obtaining requests next time according to the current system pressure coefficient. Due to the fact that the number of times of receiving the data obtaining requests by the server next time is determined according to the current system pressure coefficient, the data obtaining requests can be processed in time, and the processing efficiency of the data obtaining request is improved.

Description

Processing method, client and the server of data acquisition request
Technical field
The present invention relates to Internet technical field, particularly a kind of processing method of data acquisition request, client and server.
Background technology
Rule of communication mutually between HTTP (HyperText Transfer Protocol, the HTML (Hypertext Markup Language)) browser that has been a kind of specified in more detail and Web server, transmits the data transfer protocol of web documents by internet.In the time that client need to be obtained data, client sends data acquisition request by http protocol to server, and server is after receiving data acquisition request, and how deal with data is obtained request, is the key that client can get data rapidly.
When correlation technique is obtained request in deal with data, in the following way: first, client periodically sends data acquisition request to server, server is after receiving the data acquisition request of client transmission, return to result according to the data acquisition request receiving to client, thereby realized the processing to data acquisition request.
Realizing in process of the present invention, inventor finds that correlation technique at least exists following problem:
When correlation technique is obtained request in deal with data, because client periodically sends data acquisition request to server, the data acquisition request quantity sending when user end to server in the same time is when excessive, a large amount of data acquisition request, by increasing the load of server, causes the data acquisition request treatment effeciency of server lower.
Summary of the invention
In order to solve the problem of correlation technique, the embodiment of the present invention provides a kind of processing method, client and server of data acquisition request.Described technical scheme is as follows:
First aspect, provides a kind of processing method of data acquisition request, and described method comprises:
Receive the data acquisition request that client sends;
Obtain corresponding data according to described data acquisition request, and obtain current system pressure coefficient;
The data that get are sent to described client, and current system pressure coefficient are sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
In conjunction with first aspect, in the possible implementation of the first of first aspect, described in obtain current system pressure coefficient, comprising:
Obtain current hardware behavioral parameters;
Current hardware behavioral parameters is carried out to calculation of pressure, obtain calculation of pressure result;
Using described calculation of pressure result as the current system pressure coefficient getting.
Second aspect, provides a kind of processing method of data acquisition request, and described method comprises:
Send data acquisition request to server;
The data that reception server sends and current system pressure coefficient, and according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
In conjunction with second aspect, in the possible implementation of the first of second aspect, described according to the described current system pressure coefficient adjustment transmission frequency of data acquisition request next time, comprising:
Described current system pressure coefficient and predefined system pressure coefficient threshold value are compared;
Regulate the transmission frequency of data acquisition request next time according to comparative result.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second of second aspect, describedly regulate the transmission frequency of data acquisition request next time according to comparative result, comprising:
If described current system pressure coefficient is greater than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time turned down;
If described current system pressure coefficient is less than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time heightened.
The third aspect, provides a kind of processing server of data acquisition request, and described server comprises:
Receiver module, the data acquisition request sending for receiving client;
The first acquisition module, for obtaining corresponding data according to described data acquisition request;
The second acquisition module, for obtaining current system pressure coefficient;
The first sending module, for being sent to described client by the data that get;
The second sending module, for current system pressure coefficient is sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
In conjunction with the third aspect, in the possible implementation of the first of the third aspect, described the second acquisition module, comprising:
Acquiring unit, for obtaining current hardware behavioral parameters;
Computing unit, carries out calculation of pressure for the hardware behavioral parameters to current, obtains calculation of pressure result, and using described calculation of pressure result as the current system pressure coefficient getting.
Fourth aspect, provides a kind of client, and described client comprises:
Sending module, for sending data acquisition request to server;
Receiver module, the data that send for reception server and current system pressure coefficient;
Adjustment module, for according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
In conjunction with fourth aspect, in the possible implementation of the first of fourth aspect, described adjustment module, comprising:
Comparing unit, for comparing described current system pressure coefficient and predefined system pressure coefficient threshold value;
Regulon, for regulating the transmission frequency of data acquisition request next time according to comparative result.
In conjunction with the possible implementation of the first of fourth aspect, in the possible implementation of the second of fourth aspect, described regulon, comprising:
First regulates subelement, in the time that described current system pressure coefficient is greater than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time turned down;
Second regulates subelement, in the time that described current system pressure coefficient is less than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time heightened.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
The data acquisition request sending by receiving client, and obtain corresponding data and current system pressure coefficient according to data acquisition request, and then the data that get are sent to client, and current system pressure coefficient is sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.Because server is according to current system pressure coefficient adjustment at the number of times of the upper data acquisition request once receiving, and the data acquisition request of server process is the data acquisition request in its load in the same time, thereby can process data acquisition request in time, and then improve the treatment effeciency of data acquisition request.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow figure of the data acquisition request that provides of one embodiment of the invention;
Fig. 2 is the process flow figure of the data acquisition request that provides of another embodiment of the present invention;
Fig. 3 is the process flow figure of the data acquisition request that provides of another embodiment of the present invention;
Fig. 4 is the structural representation of the processing server of the data acquisition request that provides of another embodiment of the present invention;
Fig. 5 is the structural representation of the second acquisition module of providing of another embodiment of the present invention;
Fig. 6 is the structural representation of the processing client of the data acquisition request that provides of another embodiment of the present invention;
Fig. 7 is the structural representation of the adjustment module that provides of another embodiment of the present invention;
Fig. 8 is the structural representation of the regulon that provides of another embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Because having determined client, the processing method of data acquisition request obtains the speed of data, therefore, obtain the speed of data in order to improve client, the embodiment of the present invention provides a kind of processing method of data acquisition request, referring to Fig. 1, the method flow that the present embodiment provides comprises:
101: receive the data acquisition request that client sends.
102: obtain corresponding data according to data acquisition request, and obtain current system pressure coefficient.
103: the data that get are sent to client, and current system pressure coefficient are sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
As a kind of optional embodiment, obtain current system pressure coefficient, comprising:
Obtain current hardware behavioral parameters;
Current hardware behavioral parameters is carried out to calculation of pressure, obtain calculation of pressure result;
Using calculation of pressure result as the current system pressure coefficient getting.
The method that the embodiment of the present invention provides, the data acquisition request sending by receiving client, and obtain corresponding data and current system pressure coefficient according to data acquisition request, and then the data that get are sent to client, and current system pressure coefficient is sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.Because server is according to current system pressure parameter identification at the number of times of the upper data acquisition request once receiving, and the number of times of the data acquisition request of server process is number of processes in its load in the same time, thereby can process data acquisition request in time, and then improve the treatment effeciency of data acquisition request.
In conjunction with above-described embodiment, the embodiment of the present invention provides a kind of processing method of data acquisition request, and referring to Fig. 2, the method flow that the present embodiment provides comprises:
201: send data acquisition request to server.
202: the data that reception server sends and current system pressure coefficient, and according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
As a kind of optional embodiment, according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time, comprising:
Current system pressure coefficient and predefined system pressure coefficient threshold value are compared;
Regulate the transmission frequency of data acquisition request next time according to comparative result.
As a kind of optional embodiment, regulate the transmission frequency of data acquisition request next time according to comparative result, comprising:
If current system pressure coefficient is greater than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time turned down;
If current system pressure coefficient is less than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time heightened.
The method that the embodiment of the present invention provides, by sending data acquisition request to server, and the data of reception server transmission and current system pressure coefficient, and then according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.Because once to send the number of times of data acquisition request to server be according to current system pressure parameter identification upper, and be the number of times of the accessible data acquisition request of server to the number of times of server transmission data acquisition request in the same time, thereby server can be processed data acquisition request in time, and then improve the treatment effeciency of data acquisition request.
In conjunction with the embodiment shown in above-mentioned Fig. 1 and Fig. 2, the embodiment of the present invention provides a kind of processing method of data acquisition request, and the method is carried out transfer of data based on http protocol, and referring to Fig. 3, the method flow that the present embodiment provides comprises:
301: user end to server sends data acquisition request.
Wherein, client can be computer, mobile phone etc., and the present embodiment is not done concrete restriction to client.The content of data acquisition request includes but not limited to the relevant information such as type, size of the data that client need to obtain, and the present embodiment is not done concrete restriction to the content of data acquisition request.
The form that sends data acquisition request about user end to server, the present embodiment is not done concrete restriction.When concrete enforcement, can adopt the forms such as notice, message to send to server.
302: server receives the data acquisition request that client sends.
In order to make client get rapidly desired data, server, by receiving the data acquisition request of client transmission, gets the required data of client by subsequent step, and data required client is sent to client.
303: server obtains corresponding data according to data acquisition request, and obtain current system pressure coefficient.
In storage medium due to server, storing a large amount of data, and in data acquisition request, carrying the relevant information of the data that client need to get, therefore, server is after receiving the data acquisition request of client transmission, obtain the mode of corresponding data according to data acquisition request, include but not limited to obtain in the following way: the relevant information of the data that need to get according to the client of carrying in data acquisition request gets corresponding data from storage medium.
Further, because current system pressure coefficient can characterize the current pressure condition of server, if the current system pressure coefficient of server is larger, the load pressure that server is described is larger, now server possibly cannot be processed the data acquisition request that client sends in time, cause the treatment effeciency of data acquisition request lower, it is slower that client is obtained the speed of data; If the current system pressure coefficient of server is less, the load pressure that server is described is less, now server can be processed the data acquisition request that client sends in time, the treatment effeciency of data acquisition request is higher, client is obtained the speed of data, therefore, in order to excavate fully the performance of server, avoid server to affect client because load pressure is excessive obtaining the speed of data, can carry out real-time monitoring to the load pressure situation of server by obtaining current system pressure coefficient.
About the mode of obtaining current system pressure coefficient, include but not limited to adopt following steps:
The first step, obtains current hardware behavioral parameters;
Wherein, hardware behavioral parameters is I/O (I/O), CPU (the Central Processing Unit of server, central processing unit) and Expenditure Levels, the Expenditure Levels of network broadband etc. of internal memory, the present embodiment is not done concrete restriction to hardware behavioral parameters.
About the mode of obtaining current hardware behavioral parameters, include but not limited to adopt the real-time monitoring hardware behavioral parameters of pressure monitoring system, and the current hardware behavioral parameters that pressure monitoring system is monitored is as the current hardware behavioral parameters getting.
Second step, carries out calculation of pressure to current hardware behavioral parameters, obtains calculation of pressure result;
The hardware behavioral parameters monitoring based on pressure monitoring system, for the pressure condition that reflects that more exactly server is current, can carry out calculation of pressure to the hardware behavioral parameters getting, and obtains comprehensively embodying the calculation of pressure result of server stress situation.Particularly, the hardware behavioral parameters getting is carried out to the computational methods of calculation of pressure, include but not limited to, for every kind of hardware behavioral parameters, corresponding weighted value is set, calculate server stress result of calculation according to weighted value corresponding to hardware behavioral parameters monitoring, the present embodiment is not done concrete restriction to this.When concrete enforcement, the computational methods that can obtain the calculation of pressure result of response service device current pressure situation all can.For example, the I/O that can be server be the I/O that can be server to give weighted value be 2, giving weighted value for the consumption of CPU and internal memory is 6, giving weighted value for the Expenditure Levels of network broadband is 5 etc.Certainly,, after every kind of hardware behavioral parameters is given weight, if when the value of every kind of hardware behavioral parameters changes, the weighted value of giving for every kind of hardware behavioral parameters need to re-start adjustment.Taking hardware behavioral parameters as CPU and the Expenditure Levels of internal memory be example, when the consumption of CPU and internal memory is 50%, can be this hardware behavioral parameters, to give weighted value be 3, when the consumption of CPU and internal memory is 80%, can be this hardware behavioral parameters, to give weighted value be 6 etc.
The 3rd step, using calculation of pressure result as the current system pressure coefficient getting.
Based on above-mentioned, the hardware behavioral parameters getting is carried out to the calculation of pressure result that calculation of pressure obtains, this step is using this calculation of pressure result as the current system pressure coefficient getting.
For said process, for the ease of understanding, will at length explain with a concrete example below.
For example, if get current hardware behavioral parameters by pressure monitoring system be: I/O (I/O), the CPU of server and the parameter such as Expenditure Levels, the Expenditure Levels of network broadband of internal memory, the current hardware behavioral parameters getting is carried out to calculation of pressure, if the calculation of pressure result obtaining is 10, using calculation of pressure result 10 as the current system pressure coefficient getting; Be 20 if obtain calculation of pressure result, using calculation of pressure result 20 as the current system pressure coefficient getting.
304: the data that get are sent to client by server, and current system pressure coefficient is sent to all clients.
In order to make client get required data, server is also sent to this client by the data that get after getting the required data of client according to data acquisition request.
Further, be that the frequency of data acquisition request that sends of client is higher larger owing to causing the excessive main cause of server stress, cause server to need the quantity of data acquisition request to be processed larger, and in the time that server process is processed the larger data acquisition request of quantity, to consume the more resource of server, thereby cause the pressure of server excessive.Therefore, pressure for fear of server is excessive, server can be sent to the current system pressure coefficient getting all clients that can send to server data acquisition request, so that all clients that can send data acquisition request to server are after receiving the current system pressure coefficient of server transmission, regulate the transmission frequency of data acquisition request by subsequent step.
305: the data that client server sends and current system pressure coefficient, and according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
Particularly, according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time, include but not limited in the following way:
First, current system pressure coefficient and predefined system pressure coefficient threshold value are compared;
Wherein, predefined system pressure coefficient threshold value is used for characterizing the system pressure maximum that server can allow.Predefined system pressure coefficient threshold value can be 10,20,30 etc., and the present embodiment is not done concrete restriction to predefined system pressure coefficient threshold value.
Because predefined system pressure threshold value has been reacted the system pressure maximum that server can allow, therefore, there is for fear of server the situation that pressure is excessive, current system pressure coefficient and predefined system pressure coefficient threshold value can be compared.
Secondly, regulate the transmission frequency of data acquisition request next time according to comparative result.
Current system pressure coefficient and predefined system pressure threshold value are compared, and comparative result includes but not limited to: current system pressure coefficient is greater than predefined system pressure threshold value, current system pressure coefficient is less than predefined system pressure threshold value etc.Be directed to above-mentioned different comparative result, regulating the once transmission frequency of data acquisition request according to comparative result, include but not limited to:
If current system pressure coefficient is greater than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time turned down;
If current system pressure coefficient is less than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time heightened.
The degree of heightening or turning down about transmission frequency, the present embodiment is not done concrete restriction, while specifically enforcement, can determine according to the difference size between current system pressure coefficient and system pressure coefficient threshold value.For example, the transmission frequency that current data is obtained request is 1 minute 10 times, if current system pressure coefficient is 10, system pressure coefficient threshold value is 15, the transmission frequency of next data acquisition request can be heightened to 1 minute according to the difference between current system pressure coefficient and system pressure threshold value 12 inferior; If current system pressure coefficient is 20, system pressure coefficient threshold value is 15, according to the difference between current system pressure coefficient and system pressure threshold value the transmission frequency of next data acquisition request can be turned down 1 minute 8 inferior.
Regulate the process of the transmission frequency of data acquisition request next time for above-mentioned according to comparative result, for the ease of understanding, will at length explain with a concrete example below.
Taking predefined system pressure coefficient threshold value as 20 as example, if the current system pressure coefficient that client sends to server is 15, be 20 because current system pressure coefficient 15 is less than predefined system pressure coefficient threshold value, therefore, the current system pressure coefficient that client sends to server if the transmission frequency of data acquisition request next time can be heightened is 30, be 20 because current system pressure coefficient 30 is greater than predefined system pressure coefficient threshold value, therefore, the transmission frequency of data acquisition request next time can be turned down.
The method that the embodiment of the present invention provides, the data acquisition request sending by receiving client, and obtain corresponding data and current system pressure coefficient according to data acquisition request, and then the data that get are sent to client, and current system pressure coefficient is sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.Because server is according to current system pressure coefficient adjustment at the number of times of the upper data acquisition request once receiving, and the data acquisition request of server process is the data acquisition request in its load in the same time, thereby can process data acquisition request in time, and then improve the treatment effeciency of data acquisition request.
Referring to Fig. 4, the embodiment of the present invention provides a kind of processing server of data acquisition request, this server is for carrying out the performed function of server in the processing method of the data acquisition request described in the arbitrary embodiment of the embodiment shown in above-mentioned Fig. 1 to Fig. 3, and this server comprises:
Receiver module 401, the data acquisition request sending for receiving client;
The first acquisition module 402, for obtaining corresponding data according to data acquisition request;
The second acquisition module 403, for obtaining current system pressure coefficient;
The first sending module 404, for being sent to client by the data that get;
The second sending module 405, for current system pressure coefficient is sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
Referring to Fig. 5, the second acquisition module 403, comprising:
Acquiring unit 4031, for obtaining current hardware behavioral parameters;
Computing unit 4032, carries out calculation of pressure for the hardware behavioral parameters to current, obtains calculation of pressure result, and using calculation of pressure result as the current system pressure coefficient getting.
The server that the embodiment of the present invention provides, the data acquisition request sending by receiving client, and obtain corresponding data and current system pressure coefficient according to data acquisition request, and then the data that get are sent to client, and current system pressure coefficient is sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.Because server is according to current system pressure coefficient adjustment at the number of times of the upper data acquisition request once receiving, and the data acquisition request of server process is the data acquisition request in its load in the same time, thereby can process data acquisition request in time, and then improve the treatment effeciency of data acquisition request.
Referring to Fig. 6, the embodiment of the present invention provides a kind of processing client of data acquisition request, this client is for carrying out the performed function of client in the processing method of the data acquisition request described in the arbitrary embodiment of the embodiment shown in above-mentioned Fig. 1 to Fig. 3, and this client comprises:
Sending module 601, for sending data acquisition request to server;
Receiver module 602, the data that send for reception server and current system pressure coefficient;
Adjustment module 603, for according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
Referring to Fig. 7, adjustment module 603, comprising:
Comparing unit 6031, for comparing current system pressure coefficient and predefined system pressure coefficient threshold value;
Regulon 6032, for regulating the transmission frequency of data acquisition request next time according to comparative result.
Referring to Fig. 8, regulon 6032, comprising:
First regulates subelement 60321, in the time that current system pressure coefficient is greater than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time turned down;
Second regulates subelement 60322, in the time that current system pressure coefficient is less than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time heightened.
The client that the embodiment of the present invention provides, by sending data acquisition request to server, and the data of reception server transmission and current system pressure coefficient, and then according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.Because once to send the number of times of data acquisition request to server be according to current system pressure parameter identification upper, and be the number of times of the accessible data acquisition request of server to the number of times of server transmission data acquisition request in the same time, thereby server can be processed data acquisition request in time, and then improve the treatment effeciency of data acquisition request.
It should be noted that: when the processing client and server of the data acquisition request that above-described embodiment provides obtains request in deal with data, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, internal structure by the processing client and server of data acquisition request is divided into different functional modules, to complete all or part of function described above.In addition, the processing client and server of the data acquisition request that above-described embodiment provides and the processing method embodiment of data acquisition request belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a processing method for data acquisition request, is characterized in that, described method comprises:
Receive the data acquisition request that client sends;
Obtain corresponding data according to described data acquisition request, and obtain current system pressure coefficient;
The data that get are sent to described client, and current system pressure coefficient are sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
2. method according to claim 1, is characterized in that, described in obtain current system pressure coefficient, comprising:
Obtain current hardware behavioral parameters;
Current hardware behavioral parameters is carried out to calculation of pressure, obtain calculation of pressure result;
Using described calculation of pressure result as the current system pressure coefficient getting.
3. a processing method for data acquisition request, is characterized in that, described method comprises:
Send data acquisition request to server;
The data that reception server sends and current system pressure coefficient, and according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
4. method according to claim 3, is characterized in that, described according to the described current system pressure coefficient adjustment transmission frequency of data acquisition request next time, comprising:
Described current system pressure coefficient and predefined system pressure coefficient threshold value are compared;
Regulate the transmission frequency of data acquisition request next time according to comparative result.
5. method according to claim 4, is characterized in that, describedly regulates the transmission frequency of data acquisition request next time according to comparative result, comprising:
If described current system pressure coefficient is greater than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time turned down;
If described current system pressure coefficient is less than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time heightened.
6. a processing server for data acquisition request, is characterized in that, described server comprises:
Receiver module, the data acquisition request sending for receiving client;
The first acquisition module, for obtaining corresponding data according to described data acquisition request;
The second acquisition module, for obtaining current system pressure coefficient;
The first sending module, for being sent to described client by the data that get;
The second sending module, for current system pressure coefficient is sent to all clients, by all clients according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
7. server according to claim 6, is characterized in that, described the second acquisition module, comprising:
Acquiring unit, for obtaining current hardware behavioral parameters;
Computing unit, carries out calculation of pressure for the hardware behavioral parameters to current, obtains calculation of pressure result, and using described calculation of pressure result as the current system pressure coefficient getting.
8. a client, is characterized in that, described client comprises:
Sending module, for sending data acquisition request to server;
Receiver module, the data that send for reception server and current system pressure coefficient;
Adjustment module, for according to the current system pressure coefficient adjustment transmission frequency of data acquisition request next time.
9. client according to claim 8, is characterized in that, described adjustment module, comprising:
Comparing unit, for comparing described current system pressure coefficient and predefined system pressure coefficient threshold value;
Regulon, for regulating the transmission frequency of data acquisition request next time according to comparative result.
10. client according to claim 9, is characterized in that, described regulon, comprising:
First regulates subelement, in the time that described current system pressure coefficient is greater than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time turned down;
Second regulates subelement, in the time that described current system pressure coefficient is less than system pressure coefficient threshold value, the transmission frequency of data acquisition request is next time heightened.
CN201410381742.3A 2014-08-05 2014-08-05 Processing method, client and the server of data acquisition request Active CN104168274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410381742.3A CN104168274B (en) 2014-08-05 2014-08-05 Processing method, client and the server of data acquisition request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410381742.3A CN104168274B (en) 2014-08-05 2014-08-05 Processing method, client and the server of data acquisition request

Publications (2)

Publication Number Publication Date
CN104168274A true CN104168274A (en) 2014-11-26
CN104168274B CN104168274B (en) 2018-11-09

Family

ID=51911898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410381742.3A Active CN104168274B (en) 2014-08-05 2014-08-05 Processing method, client and the server of data acquisition request

Country Status (1)

Country Link
CN (1) CN104168274B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337800A (en) * 2015-10-30 2016-02-17 小米科技有限责任公司 Polling frequency adjustment method and polling frequency adjustment device
CN106470123A (en) * 2016-09-29 2017-03-01 北京三快在线科技有限公司 Log collecting method, client, server and electronic equipment
CN111265854A (en) * 2020-01-17 2020-06-12 腾讯科技(深圳)有限公司 Frame synchronization method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090198830A1 (en) * 2008-02-06 2009-08-06 Inventec Corporation Method of adjusting network data sending speed according to data processing speed at client
CN103384181A (en) * 2012-05-04 2013-11-06 华为技术有限公司 Data packet transmission method and device
CN103957431A (en) * 2014-04-30 2014-07-30 深圳创维数字技术股份有限公司 Streaming media transmission control method and streaming media server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090198830A1 (en) * 2008-02-06 2009-08-06 Inventec Corporation Method of adjusting network data sending speed according to data processing speed at client
CN103384181A (en) * 2012-05-04 2013-11-06 华为技术有限公司 Data packet transmission method and device
CN103957431A (en) * 2014-04-30 2014-07-30 深圳创维数字技术股份有限公司 Streaming media transmission control method and streaming media server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337800A (en) * 2015-10-30 2016-02-17 小米科技有限责任公司 Polling frequency adjustment method and polling frequency adjustment device
CN105337800B (en) * 2015-10-30 2019-02-22 小米科技有限责任公司 Poll frequency method of adjustment and device
CN106470123A (en) * 2016-09-29 2017-03-01 北京三快在线科技有限公司 Log collecting method, client, server and electronic equipment
CN106470123B (en) * 2016-09-29 2019-07-05 北京三快在线科技有限公司 Log collecting method, client, server and electronic equipment
CN111265854A (en) * 2020-01-17 2020-06-12 腾讯科技(深圳)有限公司 Frame synchronization method, device, equipment and medium

Also Published As

Publication number Publication date
CN104168274B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
US10455013B2 (en) Peer-to-peer upload scheduling
US9769248B1 (en) Performance-based content delivery
US10027739B1 (en) Performance-based content delivery
US9043382B2 (en) Stream processing using a client-server architecture
US20130332516A1 (en) Polling protocol for automatic load limiting
CN111277511B (en) Transmission rate control method, device, computer system and readable storage medium
US10592578B1 (en) Predictive content push-enabled content delivery network
WO2017185633A1 (en) Cdn server and data caching method thereof
CN104917833A (en) Asynchronous information processing method based on NIO request
CN105100032A (en) Method and apparatus for preventing resource steal
WO2017101346A1 (en) Client data update method, client and server
CN103873597A (en) Distributed webpage downloading method and system
CN103095785B (en) Remote procedure calling (PRC) method and system, client and server
CN104168274A (en) Data obtaining request processing method, client sides and server
US20150089052A1 (en) Context-Aware HTTP Compression
JP4411296B2 (en) Request restriction device, server device, request restriction method, request restriction program
WO2016180284A1 (en) Service node allocation method, device, cdn management server and system
CN108600147B (en) Downloading speed prediction method and device
Song et al. Expert system-based context awareness for edge computing in IoT environment
CN113079210A (en) Cross-region data automatic synchronization configuration method, terminal equipment and storage medium
CN103491393A (en) Video service processing method and device
CN107872498B (en) Service data subscription method, device and system
CN115567597A (en) Message request forwarding method and device of payment settlement system
CN108810070A (en) A kind of resource share method, device, smart machine and storage medium
CN106899652A (en) A kind of method and device of transmission service result

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant