CN104168274B - Processing method, client and the server of data acquisition request - Google Patents

Processing method, client and the server of data acquisition request Download PDF

Info

Publication number
CN104168274B
CN104168274B CN201410381742.3A CN201410381742A CN104168274B CN 104168274 B CN104168274 B CN 104168274B CN 201410381742 A CN201410381742 A CN 201410381742A CN 104168274 B CN104168274 B CN 104168274B
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.)
Active
Application number
CN201410381742.3A
Other languages
Chinese (zh)
Other versions
CN104168274A (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

Landscapes

  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of processing method of data acquisition request, client and servers, belong to Internet technical field.The method includes:Receive the data acquisition request that client is sent;Corresponding data are obtained according to data acquisition request, and obtain current system pressure coefficient;The data got are sent to client, and current system pressure coefficient is sent to all clients, by all clients according to the transmission frequency of current system pressure coefficient adjustment data acquisition request next time.The present invention by current system pressure coefficient by being sent to all clients, by all clients according to the transmission frequency of current system pressure coefficient adjustment data acquisition request next time.Since server at the number of the data acquisition request received is next time determined according to current system pressure coefficient, it is thus possible to handle in time data acquisition request, to improve the treatment effeciency of data acquisition request.

Description

Processing method, client and the server of data acquisition request
Technical field
The present invention relates to Internet technical field, more particularly to a kind of processing method of data acquisition request, client and Server.
Background technology
A kind of HTTP (HyperText Transfer Protocol, the hypertext transfer protocol) browsings that have been specified in more detail Rule is communicated between device and Web server, and the data transfer protocol of web documents is transmitted by internet.Work as visitor When family end needs to obtain data, client is obtained to server transmission data by http protocol and is asked, and server is receiving After data acquisition request, how data acquisition request is handled, data can rapidly be got by being the key that client.
The relevant technologies are when handling data acquisition request, in the following way:First, client is periodically sent out to server Data acquisition request, server is sent to be obtained according to the data received after the data acquisition request for receiving client transmission Request is taken to return to handling result to client, to realize the processing to data acquisition request.
In the implementation of the present invention, inventor has found that the relevant technologies have at least the following problems:
The relevant technologies are when handling data acquisition request, since client is periodically asked to the acquisition of server transmission data It asks, when the data acquisition request quantity that user end to server is sent in the same time is excessive, a large amount of data acquisition request The load of server will be increased, causes the data acquisition request treatment effeciency of server relatively low.
Invention content
In order to solve the problems, such as the relevant technologies, an embodiment of the present invention provides a kind of processing method of data acquisition request, Client and server.The technical solution is as follows:
In a first aspect, a kind of processing method of data acquisition request is provided, the method includes:
Receive the data acquisition request that client is sent;
Corresponding data are obtained according to the data acquisition request, and obtain current system pressure coefficient;
The data got are sent to the client, and current system pressure coefficient is sent to all clients End, by all clients according to the transmission frequency of current system pressure coefficient adjustment data acquisition request next time.
With reference to first aspect, described to obtain current system pressure in the first possible realization method of first aspect Force coefficient, including:
Obtain current hardware behavioral parameters;
Calculation of pressure is carried out to current hardware behavioral parameters, obtains calculation of pressure result;
Using the calculation of pressure result as the current system pressure coefficient got.
Second aspect provides a kind of processing method of data acquisition request, the method includes:
It obtains and asks to server transmission data;
The data and current system pressure coefficient that server is sent are received, and according to current system pressure coefficient adjustment The transmission frequency of data acquisition request next time.
It is described current to be according to described in the first possible realization method of second aspect in conjunction with second aspect Pressure coefficient of uniting adjusts the transmission frequency of data acquisition request next time, including:
The current system pressure coefficient is compared with preset system pressure coefficient threshold;
The transmission frequency of data acquisition request next time is adjusted according to comparison result.
In conjunction with the first possible realization method of second aspect, in second of possible realization method of second aspect In, the transmission frequency that data acquisition request next time is adjusted according to comparison result, including:
If the current system pressure coefficient is more than system pressure coefficient threshold, by data acquisition request next time Transmission frequency is turned down;
If the current system pressure coefficient is less than system pressure coefficient threshold, by data acquisition request next time Transmission frequency is turned up.
The third aspect, provides a kind of processing server of data acquisition request, and the server includes:
Receiving module, the data acquisition request for receiving client transmission;
First acquisition module, for obtaining corresponding data according to the data acquisition request;
Second acquisition module, for obtaining current system pressure coefficient;
First sending module, for the data got to be sent to the client;
Second sending module, for current system pressure coefficient to be sent to all clients, by all clients root According to the transmission frequency of current system pressure coefficient adjustment data acquisition request next time.
In conjunction with the third aspect, in the first possible realization method of the third aspect, second acquisition module, packet It includes:
Acquiring unit, for obtaining current hardware behavioral parameters;
Computing unit obtains calculation of pressure as a result, and by institute for carrying out calculation of pressure to current hardware behavioral parameters Calculation of pressure result is stated as the current system pressure coefficient got.
Fourth aspect, provides a kind of client, and the client includes:
Sending module is asked for being obtained to server transmission data;
Receiving module, the data for receiving server transmission and current system pressure coefficient;
Adjustment module, for the transmission frequency according to current system pressure coefficient adjustment data acquisition request next time.
In conjunction with fourth aspect, in the first possible realization method of fourth aspect, the adjustment module, including:
Comparing unit, for carrying out the current system pressure coefficient and preset system pressure coefficient threshold Compare;
Unit is adjusted, the transmission frequency for adjusting data acquisition request next time according to comparison result.
In conjunction with the first possible realization method of fourth aspect, in second of possible realization method of fourth aspect In, the adjusting unit, including:
First regulator unit is used for when the current system pressure coefficient is more than system pressure coefficient threshold, will The transmission frequency of data acquisition request is turned down next time;
Second regulator unit is used for when the current system pressure coefficient is less than system pressure coefficient threshold, will The transmission frequency of data acquisition request is turned up next time.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
The data acquisition request sent by receiving client, and corresponding data are obtained according to data acquisition request and are worked as Preceding system pressure coefficient, and then the data got are sent to client, and current system pressure coefficient is sent to All clients, by all clients according to current system pressure coefficient adjustment next time data acquisition request transmission frequency Rate.Since server is according to current system pressure coefficient adjustment at the number of the data acquisition request received next time , and the data acquisition request of same time server processing is data acquisition request in its load, so as to and When data acquisition request is handled, and then improve data acquisition request treatment effeciency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the process flow figure of data acquisition request provided by one embodiment of the present invention;
Fig. 2 is the process flow figure for the data acquisition request that another embodiment of the present invention provides;
Fig. 3 is the process flow figure for the data acquisition request that another embodiment of the present invention provides;
Fig. 4 is the structural schematic diagram of the processing server for the data acquisition request that another embodiment of the present invention provides;
Fig. 5 is the structural schematic diagram for the second acquisition module that another embodiment of the present invention provides;
Fig. 6 is the structural schematic diagram of the processing client for the data acquisition request that another embodiment of the present invention provides;
Fig. 7 is the structural schematic diagram for the adjustment module that another embodiment of the present invention provides;
Fig. 8 is the structural schematic diagram for the adjusting unit that another embodiment of the present invention provides.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Since the processing method of data acquisition request determines that client obtains the speed of data, in order to improve visitor Family end obtains the speed of data, and an embodiment of the present invention provides a kind of processing methods of data acquisition request, referring to Fig. 1, this reality Applying the method flow that example provides includes:
101:Receive the data acquisition request that client is sent.
102:Corresponding data are obtained according to data acquisition request, and obtain current system pressure coefficient.
103:The data got are sent to client, and current system pressure coefficient is sent to all clients End, by all clients according to the transmission frequency of current system pressure coefficient adjustment data acquisition request next time.
As a kind of optional embodiment, current system pressure coefficient is obtained, including:
Obtain current hardware behavioral parameters;
Calculation of pressure is carried out to current hardware behavioral parameters, obtains calculation of pressure result;
Using calculation of pressure result as the current system pressure coefficient got.
Method provided in an embodiment of the present invention, the data acquisition request sent by receiving client, and obtained according to data The corresponding data of acquisition request and current system pressure coefficient are taken, and then the data got are sent to client, and will Current system pressure coefficient is sent to all clients, by all clients according to one under current system pressure coefficient adjustment The transmission frequency of secondary data acquisition request.Since server is that basis is worked as at the number of the data acquisition request received next time What preceding system pressure coefficient determined, and the number of the data acquisition request of same time server processing is in its load Number of processes so as to handle in time data acquisition request, and then improves the treatment effeciency of data acquisition request.
In conjunction with above-described embodiment, an embodiment of the present invention provides a kind of processing method of data acquisition request, referring to Fig. 2, Method flow provided in this embodiment includes:
201:It obtains and asks to server transmission data.
202:The data and current system pressure coefficient that server is sent are received, and according to current system pressure coefficient Adjust the transmission frequency of data acquisition request next time.
As a kind of optional embodiment, according to the hair of current system pressure coefficient adjustment data acquisition request next time Frequency is sent, including:
Current system pressure coefficient is compared with preset system pressure coefficient threshold;
The transmission frequency of data acquisition request next time is adjusted according to comparison result.
As a kind of optional embodiment, the transmission frequency of data acquisition request next time, packet are adjusted according to comparison result It includes:
If current system pressure coefficient is more than system pressure coefficient threshold, by the transmission of data acquisition request next time Frequency is turned down;
If current system pressure coefficient is less than system pressure coefficient threshold, by the transmission of data acquisition request next time Frequency is turned up.
Method provided in an embodiment of the present invention is asked by being obtained to server transmission data, and receives server transmission Data and current system pressure coefficient, and then according to current system pressure coefficient adjustment data acquisition request next time Transmission frequency.Due to being true according to current system pressure coefficient obtaining the number of request to server transmission data next time Fixed, and the number for obtaining request in the same time to server transmission data is the accessible data acquisition request of server Number to which server can in time be handled data acquisition request, and then improves the processing of data acquisition request Efficiency.
In conjunction with above-mentioned Fig. 1 and embodiment shown in Fig. 2, an embodiment of the present invention provides a kind of processing of data acquisition request Method, this method are carried out data transmission based on http protocol, and referring to Fig. 3, method flow provided in this embodiment includes:
301:User end to server transmission data obtains request.
Wherein, client can be computer, mobile phone etc., and the present embodiment does not make specific limit to client.Data acquisition The content of request includes but not limited to that client needs relevant informations, the present embodiment such as type, the size of the data that obtain not right The content of data acquisition request makees specific limit.
The form of request is obtained about user end to server transmission data, the present embodiment does not limit specifically.Specifically When implementation, the forms such as notice, message can be used and sent to server.
302:Server receives the data acquisition request that client is sent.
In order to make client rapidly get required data, server is asked the data acquisition that client is sent is received It asks, the data needed for client is got by subsequent step, and the data needed for client are sent to client.
303:Server based on data obtains the corresponding data of acquisition request, and obtains current system pressure coefficient.
Due to store a large amount of data in the storage medium of server, and carry client in data acquisition request need to The relevant information for the data to be got, therefore, server receive client transmission data acquisition request after, according to Data acquisition request obtains the mode of corresponding data, including but not limited to obtains in the following way:It is asked according to data acquisition Ask the client of carrying that the relevant information of the data got is needed to get corresponding data from storage medium.
Further, since current system pressure coefficient can characterize the current pressure condition of server, if server Current system pressure coefficient is larger, illustrates that the load pressure of server is larger, and server possibly can not be handled in time at this time The data acquisition request that client is sent, causes the treatment effeciency of data acquisition request relatively low, and client obtains the speed of data It is relatively slow;If the current system pressure coefficient of server is smaller, illustrate that the load pressure of server is smaller, at this time server can and When handle the data acquisition request of client transmission, the treatment effeciency of data acquisition request is higher, and client obtains data Therefore speed in order to adequately excavate the performance of server, avoids server from being obtained because of the excessive influence client of load pressure The speed for evidence of fetching can supervise the load pressure situation of server in real time by obtaining current system pressure coefficient It surveys.
About the mode for obtaining current system pressure coefficient, following steps are including but not limited to used:
The first step obtains current hardware behavioral parameters;
Wherein, hardware behavioral parameters are I/O (input/output), CPU (the Central Processing of server Unit, central processing unit) and the Expenditure Levels of memory, network broadband Expenditure Levels etc., the present embodiment do not join hardware behavior Number makees specific limit.
About the mode for obtaining current hardware behavioral parameters, including but not limited to pressure monitoring system is used to monitor in real time Hardware behavioral parameters, and the current hardware behavioral parameters that pressure monitoring system is monitored are as the Current hardware row got For parameter.
Second step carries out calculation of pressure to current hardware behavioral parameters, obtains calculation of pressure result;
Based on the hardware behavioral parameters that pressure monitoring system monitors, in order to more precisely reflect the current pressure of server Power situation can carry out calculation of pressure to the hardware behavioral parameters got, obtain to integrate and embody server stress situation Calculation of pressure result.Specifically, the hardware behavioral parameters got are carried out with the computational methods of calculation of pressure, including but not limited to Corresponding weighted value is set for each hardware behavioral parameters, is calculated according to the corresponding weighted value of hardware behavioral parameters monitored To server stress result of calculation, the present embodiment is not especially limited this.Work as when it is implemented, response service device can be obtained The computational methods of the calculation of pressure result of preceding pressure condition.For example, the I/O that can be server is the I/O that can be server Assign weighted value be 2, be CPU and the consumption of memory assign weighted value be 6, be network broadband Expenditure Levels imparting weighted value be 5 etc..Certainly, it is every if the value of each hardware behavioral parameters changes after each hardware behavioral parameters assigns weight The weighted value needs that kind hardware behavioral parameters assign re-start adjustment.With the consumption feelings that hardware behavioral parameters are CPU and memory Can be hardware behavioral parameters imparting weighted value it be 3 when the consumption of CPU and memory is 50%, when CPU and memory for condition Consumption be 80%, can be the hardware behavioral parameters imparting weighted value be 6 etc..
Third walks, using calculation of pressure result as the current system pressure coefficient got.
Based on the above-mentioned calculation of pressure obtained to the hardware behavioral parameters progress calculation of pressure got as a result, this step will The calculation of pressure result is as the current system pressure coefficient got.
For the above process, in order to make it easy to understand, with a specific example will carry out that explanation is explained in detail below.
If for example, getting current hardware behavioral parameters by pressure monitoring system and being:I/O (the inputs/defeated of server Go out), the parameters such as Expenditure Levels of the Expenditure Levels of CPU and memory, network broadband, by the Current hardware behavioral parameters got into Row calculation of pressure, if obtained calculation of pressure result is 10, by calculation of pressure result 10 as the current system got Pressure coefficient;If it is 20 to obtain calculation of pressure result, by calculation of pressure result 20 as the current system pressure got Coefficient.
304:The data got are sent to client by server, and current system pressure coefficient are sent to all Client.
In order to make client get required data, server based on data obtains needed for acquisition request to client After data, the data got are also sent to the client.
Further, the data acquisition request sent for client due to the main reason for causing server stress excessive Frequency is higher larger, causes the quantity of server data acquisition request to be treated larger, and when server process handles number When measuring larger data acquisition request, the resource more by server is consumed is excessive so as to cause the pressure of server.Therefore, It is excessive in order to avoid the pressure of server, server the current system pressure coefficient got can be sent to it is all can be to Server transmission data obtains the client of request, so that all clients that can obtain request to server transmission data exist After the current system pressure coefficient for receiving server transmission, the transmission frequency of data acquisition request is adjusted by subsequent step Rate.
305:Client receives the data and current system pressure coefficient that server is sent, and according to current system pressure Force coefficient adjusts the transmission frequency of data acquisition request next time.
Specifically, according to the transmission frequency of current system pressure coefficient adjustment data acquisition request next time, including but It is not limited in the following way:
First, current system pressure coefficient is compared with preset system pressure coefficient threshold;
Wherein, it is maximum to be used for characterizing the system pressure that server can allow for for preset system pressure coefficient threshold Value.Preset system pressure coefficient threshold can be 10,20,30 etc., and the present embodiment is not to preset system pressure Coefficient threshold makees specific limit.
Since preset system pressure threshold value has reacted the system pressure maximum value that server can allow for, It, can be by current system pressure coefficient and preset system pressure system in order to avoid the excessive situation of pressure occurs in server Number threshold value is compared.
Secondly, the transmission frequency of data acquisition request next time is adjusted according to comparison result.
Current system pressure coefficient is compared with preset system pressure threshold value, comparison result includes but not It is limited to:Current system pressure coefficient is more than preset system pressure threshold value, current system pressure coefficient is less than in advance System pressure threshold value of setting etc..It is directed to above-mentioned different comparison result, is obtained adjusting data next time according to comparison result The transmission frequency of request is taken, including but not limited to:
If current system pressure coefficient is more than system pressure coefficient threshold, by the transmission of data acquisition request next time Frequency is turned down;
If current system pressure coefficient is less than system pressure coefficient threshold, by the transmission of data acquisition request next time Frequency is turned up.
It is turned up about transmission frequency or the degree turned down, the present embodiment is not especially limited, when it is implemented, can be according to working as Size of the difference between preceding system pressure coefficient and system pressure coefficient threshold determines.For example, current data obtains request Transmission frequency is 1 minute 10 times, if current system pressure coefficient is 10, system pressure coefficient threshold is 15, then according to current System pressure coefficient and system pressure threshold value between difference can by the transmission frequency of next data acquisition request be turned up to 1 point Clock 12 is inferior;If current system pressure coefficient is 20, system pressure coefficient threshold is 15, then according to current system pressure system Difference between number and system pressure threshold value can turn down the transmission frequency of next data acquisition request 8 inferior by 1 minute.
For the above-mentioned process for adjusting the transmission frequency of data acquisition request next time according to comparison result, for the ease of reason Solution, with a specific example will carry out that explanation is explained in detail below.
By taking preset system pressure coefficient threshold is 20 as an example, if client receives the current of server transmission System pressure coefficient is 15, is 20 since current system pressure coefficient 15 is less than preset system pressure coefficient threshold, Therefore, if can the transmission frequency of data acquisition request next time be turned up by the current system that client receives server transmission Pressure coefficient is 30, is 20 since current system pressure coefficient 30 is more than preset system pressure coefficient threshold, The transmission frequency of data acquisition request next time can be turned down.
Method provided in an embodiment of the present invention, the data acquisition request sent by receiving client, and obtained according to data The corresponding data of acquisition request and current system pressure coefficient are taken, and then the data got are sent to client, and will Current system pressure coefficient is sent to all clients, by all clients according to one under current system pressure coefficient adjustment The transmission frequency of secondary data acquisition request.Since server is that basis is worked as at the number of the data acquisition request received next time Preceding system pressure coefficient adjustment, and the data acquisition request of same time server processing is the data in its load Request is obtained, so as to handle in time data acquisition request, and then improves the treatment effeciency of data acquisition request.
Referring to Fig. 4, an embodiment of the present invention provides a kind of processing server of data acquisition request, the server is for holding Server institute in the processing method of data acquisition request in the above-mentioned Fig. 1 to embodiment shown in Fig. 3 of row described in any embodiment The function of execution, the server include:
Receiving module 401, the data acquisition request for receiving client transmission;
First acquisition module 402, for obtaining corresponding data according to data acquisition request;
Second acquisition module 403, for obtaining current system pressure coefficient;
First sending module 404, for the data got to be sent to client;
Second sending module 405, for current system pressure coefficient to be sent to all clients, by all clients According to the transmission frequency of current system pressure coefficient adjustment data acquisition request next time.
Referring to Fig. 5, the second acquisition module 403, including:
Acquiring unit 4031, for obtaining current hardware behavioral parameters;
Computing unit 4032 obtains calculation of pressure as a result, simultaneously for carrying out calculation of pressure to current hardware behavioral parameters Using calculation of pressure result as the current system pressure coefficient got.
Server provided in an embodiment of the present invention, the data acquisition request sent by receiving client, and according to data The corresponding data of acquisition request and current system pressure coefficient are obtained, and then the data got are sent to client, and Current system pressure coefficient is sent to all clients, by all clients according under current system pressure coefficient adjustment The transmission frequency of data acquisition request.Since server is basis at the number of the data acquisition request received next time Current system pressure coefficient adjustment, and the data acquisition request of same time server processing is the number in its load It is asked according to obtaining, so as to handle in time data acquisition request, and then improves the processing effect of data acquisition request Rate.
Referring to Fig. 6, an embodiment of the present invention provides a kind of processing client of data acquisition request, the client is for holding Client institute in the processing method of data acquisition request in the above-mentioned Fig. 1 to embodiment shown in Fig. 3 of row described in any embodiment The function of execution, the client include:
Sending module 601 is asked for being obtained to server transmission data;
Receiving module 602, the data for receiving server transmission and current system pressure coefficient;
Adjustment module 603, for according to current system pressure coefficient adjustment next time data acquisition request transmission frequency Rate.
Referring to Fig. 7, adjustment module 603, including:
Comparing unit 6031, for carrying out current system pressure coefficient and preset system pressure coefficient threshold Compare;
Unit 6032 is adjusted, the transmission frequency for adjusting data acquisition request next time according to comparison result.
Referring to Fig. 8, unit 6032 is adjusted, including:
First regulator unit 60321 is used for when current system pressure coefficient is more than system pressure coefficient threshold, will The transmission frequency of data acquisition request is turned down next time;
Second regulator unit 60322 is used for when current system pressure coefficient is less than system pressure coefficient threshold, will The transmission frequency of data acquisition request is turned up next time.
Client provided in an embodiment of the present invention is asked by being obtained to server transmission data, and receives server hair The data sent and current system pressure coefficient, and then according to current system pressure coefficient adjustment data acquisition request next time Transmission frequency.Due to being according to current system pressure coefficient obtaining the number of request to server transmission data next time Determining, and the number for obtaining request in the same time to server transmission data is the accessible data acquisition request of server Number, data acquisition request can be handled in time to server, and then improve the place of data acquisition request Manage efficiency.
It should be noted that:The processing client and server for the data acquisition request that above-described embodiment provides is in processing number According to obtain ask when, only the example of the division of the above functional modules, in practical application, can as needed and incite somebody to action Above-mentioned function distribution is completed by different function modules, i.e., by the internal junction of the processing client and server of data acquisition request Structure is divided into different function modules, to complete all or part of the functions described above.In addition, what above-described embodiment provided The processing client and server of data acquisition request and the processing method embodiment of data acquisition request belong to same design, Specific implementation process refers to embodiment of the method, and which is not described herein again.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (4)

1. a kind of processing method of data acquisition request, which is characterized in that the method includes:
Receive the data acquisition request that client is sent;
Corresponding data are obtained according to the data acquisition request, and monitor current hardware behavior ginseng using pressure monitoring system Number carries out calculation of pressure according to the corresponding weighted value of the hardware behavioral parameters monitored, obtains calculation of pressure as a result, by the pressure Power result of calculation is as current system pressure coefficient;
The data got are sent to the client, and current system pressure coefficient is sent to the client, by Current system pressure coefficient is compared by the client with preset system pressure coefficient threshold, if current System pressure coefficient is more than the system pressure coefficient threshold, then turns down the transmission frequency of data acquisition request next time, if Current system pressure coefficient is less than the system pressure coefficient threshold, then by the transmission frequency tune of data acquisition request next time It is high.
2. a kind of processing method of data acquisition request, which is characterized in that the method includes:
It obtains and asks to server transmission data;
The data and current system pressure coefficient that server is sent are received, the system pressure parameter is that the server uses Pressure monitoring system monitors current hardware behavioral parameters, and is carried out according to the corresponding weighted value of the hardware behavioral parameters monitored Calculation of pressure obtains;
Current system pressure coefficient is compared with preset system pressure coefficient threshold;
If current system pressure coefficient is more than the system pressure coefficient threshold, by the transmission of data acquisition request next time Frequency is turned down;
If current system pressure coefficient is less than the system pressure coefficient threshold, by the transmission of data acquisition request next time Frequency is turned up.
3. a kind of processing server of data acquisition request, which is characterized in that the server includes:
Receiving module, the data acquisition request for receiving client transmission;
First acquisition module, for obtaining corresponding data according to the data acquisition request;
Second acquisition module, for monitoring current hardware behavioral parameters using pressure monitoring system, according to the hardware monitored The corresponding weighted value of behavioral parameters carries out calculation of pressure, obtains calculation of pressure as a result, using the calculation of pressure result as current System pressure coefficient;
First sending module, for the data got to be sent to the client;
Second sending module will be worked as current system pressure coefficient to be sent to the client by the client Preceding system pressure coefficient is compared with preset system pressure coefficient threshold, if current system pressure coefficient is more than The system pressure coefficient threshold, then turn down the transmission frequency of data acquisition request next time, if current system pressure system Number is less than the system pressure coefficient threshold, then the transmission frequency of data acquisition request next time is turned up.
4. a kind of client, which is characterized in that the client includes:
Sending module is asked for being obtained to server transmission data;
Receiving module, data and current system pressure coefficient, the system pressure parameter for receiving server transmission are The server monitors current hardware behavioral parameters using pressure monitoring system, and according to the hardware behavioral parameters pair monitored The weighted value answered carries out calculation of pressure and obtains;
Adjustment module, for current system pressure coefficient to be compared with preset system pressure coefficient threshold, if Current system pressure coefficient is more than the system pressure coefficient threshold, then by the transmission frequency tune of data acquisition request next time It is low, if current system pressure coefficient is less than the system pressure coefficient threshold, by the transmission of data acquisition request next time Frequency is turned up.
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 CN104168274A (en) 2014-11-26
CN104168274B true 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)

Families Citing this family (3)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* 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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104168274A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
US10057139B2 (en) Maintain a service on a cloud network based on a scale rule
US8510374B2 (en) Polling protocol for automatic load limiting
CN109510723B (en) Gateway equipment, and transaction management and control system and method of Internet of things
US20130227091A1 (en) Provisioning and managing a cluster deployed on a cloud
US9807189B2 (en) Data transfer device and data transfer system using adaptive compression algorithm
CN107124445A (en) A kind of collecting method and device
CN105812255B (en) Method and device for selecting return source line
CN107920027B (en) A kind of flow control methods and device
CN103873597B (en) Distributed webpage download method and system
CN104168274B (en) Processing method, client and the server of data acquisition request
CN115277581B (en) Control method and device for network transmission, computer equipment and storage medium
CN110213327A (en) A kind of resource regulating method based on edge calculations, apparatus and system
JP2016058005A (en) Monitoring device, server, monitoring system, monitoring method, and monitoring program
CN105577958B (en) For adjusting distributing strategy and shunting the method, apparatus and system of user's request
CN116235529A (en) Method for implementing an ad hoc network of a plurality of access network devices and electronic device for implementing the method
Zamani et al. Edge-supported approximate analysis for long running computations
CN104468248B (en) Service performance monitoring method, reverse proxy server, statistical analysis server and system
CN110493072A (en) Bandwidth filtering method, device, server and storage medium based on deep learning
US20180039672A1 (en) Method and apparatus for answering queries based on partial aggregations of a continuous data stream
CN107483541A (en) A kind of online task immigration method based on rolling time horizon
CN107729435A (en) Method, apparatus, equipment and the storage medium that distributed file system task is assigned
CN111694717A (en) Method and device for determining pressure bearing capacity value of system
CN109976900B (en) Method and device for calling service
KR20200104959A (en) Apparatus and method for compressing data in distributed deep-learning environment
JP6543090B2 (en) Load balancing device, load balancing method and program

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