CN110336881A - The method and apparatus for executing business processing request - Google Patents
The method and apparatus for executing business processing request Download PDFInfo
- Publication number
- CN110336881A CN110336881A CN201910618640.1A CN201910618640A CN110336881A CN 110336881 A CN110336881 A CN 110336881A CN 201910618640 A CN201910618640 A CN 201910618640A CN 110336881 A CN110336881 A CN 110336881A
- Authority
- CN
- China
- Prior art keywords
- time
- business processing
- window
- processing request
- time window
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
This application discloses a kind of method and apparatus of execution business processing request, belong to field of computer technology.The described method includes: receiving the business processing request of target account, the mark of target account and business activity is carried in business processing request;Obtain the first number for having executed business processing request of pre-recorded reference time window and request time in reference time window, wherein reference time window is time window belonging to the receiving time for having executed business processing request of last time execution;Based on reference time window, the corresponding time window of receiving time of currently received business processing request is determined;Based on the first number, reference time window and time window, second number that has executed business processing request of the request time in time window is determined, if the second number is not up to preset threshold, execute currently received business processing request.Using the application, the technical issues of influencing speed of response of server in the related technology can solve.
Description
Technical field
This application involves field of computer technology, and in particular to a kind of method and apparatus for executing business processing request.
Background technique
In daily life, people often operate at the terminal, send business processing request to server.For example, working as people
See the media datas such as the video, novel and caricature liked at the terminal after, can operate at the terminal, to server send
Thumb up business processing request.
In the related technology, after server receives the business processing request of user, the business of user will be immediately performed
Processing request thumbs up business processing request as executed, increases like time.
During realizing the application, inventor find the relevant technologies the prior art has at least the following problems:
Some users are largely operated at the terminal for joyful or remaining purpose, and the short time sends to server
A large number of services processing request, at this point, server will successively execute the business processing request of the user received, in this process
In, a large amount of process resource of server is wasted, to affect the response speed of server.
Summary of the invention
In order to solve technical problem present in the relevant technologies, the embodiment of the present application provides a kind of execution business processing and asks
The method and apparatus asked.The technical solution of the method and apparatus for executing business processing request is as follows:
In a first aspect, providing a kind of method of execution business processing request, which comprises
Receive the business processing request of target account, wherein carry the target account in the business processing request
Mark and business activity mark;
The mark of mark and the business activity based on the target account, obtains pre-recorded reference time window
The first number for having executed business processing request of mouth and request time in the reference time window, wherein the ginseng
Examine time window belonging to the receiving time for having executed business processing request that time window is last time execution;
Based on the reference time window, the corresponding time window of receiving time of currently received business processing request is determined
Mouthful;
Based on first number, the reference time window and the time window, determine request time described
The second number for having executed business processing request in time window is held if second number is not up to preset threshold
The currently received business processing request of row, wherein described to have executed business processing request and the currently received business processing
In request, the mark of identical target account and the mark of identical business activity are carried.
Optionally, described to be based on the reference time window, determine the receiving time of currently received business processing request
Corresponding time window, comprising:
If the receiving time of currently received business processing request is in pre-recorded reference time window, it is determined that
The reference time window is the corresponding time window of receiving time of the currently received business processing request.
Optionally, described to be based on the reference time window, determine the receiving time of currently received business processing request
Corresponding time window, comprising:
If the receiving time of currently received business processing request not in pre-recorded reference time window,
In the time range of preset window duration before the receiving time of currently received business processing request, all executed is obtained
The receiving time of business processing request;
Using receiving time earliest in all receiving times for having executed business processing request as window start time,
And it is based on the preset window duration, determine time window, the receiving time as the currently received business processing request
Corresponding time window.
Optionally, described to be based on first number, the reference time window and the time window, determine request
Second number that has executed business processing request of the time in the time window, if second number is not up to default
Threshold value, then before executing the request of currently received business processing, further includes:
If there is no pre-recorded reference time window, then with the reception of the currently received business processing request
Time is window start time, and is based on preset window duration, time window is determined, as the currently received business processing
The corresponding time window of the receiving time of request;
The corresponding time window of receiving time for recording the currently received business processing request is pre-recorded ginseng
Examine time window.
Optionally, described to be based on the reference time window, determine the receiving time of currently received business processing request
Corresponding time window, comprising:
If the receiving time of currently received business processing request not in pre-recorded reference time window, and
In the time range of preset window duration before the receiving time of currently received business processing request, there is no executed industry
Business processing request, then using the receiving time of the currently received business processing request as window start time, and based on described
Preset window duration, determines time window, the receiving time corresponding time as the currently received business processing request
Window.
Optionally, described to be based on the reference time window, determine the receiving time of currently received business processing request
Corresponding time window, comprising:
If the receiving time of currently received business processing request, will not in pre-recorded reference time window
Away from the reference time window when a length of preset window duration integral multiple and include the request of currently received business processing
The time window of receiving time is determined as the corresponding time window of receiving time of the currently received business processing request.
Optionally, described to be based on first number, the reference time window and the time window, determine request
Second number that has executed business processing request of the time in the time window, if second number is not up to default
Threshold value then executes currently received business processing request, comprising:
If the reference time window and the time window are same time window, it is determined that request time is described
The second number for having executed business processing request in time window is first number, if second number is not up to
Preset threshold then executes currently received business processing request, and first number is added one;
If the reference time window and the time window are not same time window, it is determined that request time is in institute
The number for having executed business processing request at the beginning of stating time window and after the time started is described second
Number executes currently received business processing request if second number is not up to preset threshold, will be pre-recorded
Reference time window is updated to the time window, and first number is updated to second number and adds one.
Second aspect, provides a kind of device of execution business processing request, and described device includes:
Receiving module, the business processing for receiving target account are requested, wherein are carried in the business processing request
The mark of the target account and the mark of business activity;
Module is obtained, for the mark of mark and the business activity based on the target account, is obtained pre-recorded
Reference time window and request time in the reference time window executed business processing request first number
Mesh, wherein the reference time window is time window belonging to the receiving time for having executed business processing request of last time execution
Mouthful;
Determining module, for being based on the reference time window, when determining the reception of currently received business processing request
Between corresponding time window;
Execution module, for being based on first number, the reference time window and the time window, determination is asked
Second number that has executed business processing request of the seeking time in the time window, if second number is not up to pre-
If threshold value, then currently received business processing request is executed, wherein described to have executed business processing request and the current reception
Business processing request in, carry identical target account mark and identical business activity mark.
Optionally, the determining module, is used for:
If the receiving time of currently received business processing request is in pre-recorded reference time window, it is determined that
The reference time window is the corresponding time window of receiving time of the currently received business processing request.
Optionally, the determining module, is used for:
If the receiving time of currently received business processing request not in pre-recorded reference time window,
In the time range of preset window duration before the receiving time of currently received business processing request, all executed is obtained
The receiving time of business processing request;
Using receiving time earliest in all receiving times for having executed business processing request as window start time,
And it is based on the preset window duration, determine time window, the receiving time as the currently received business processing request
Corresponding time window.
Optionally, described device further includes logging modle, is used for:
If there is no pre-recorded reference time window, then with the reception of the currently received business processing request
Time is window start time, and is based on preset window duration, time window is determined, as the currently received business processing
The corresponding time window of the receiving time of request;
The corresponding time window of receiving time for recording the currently received business processing request is pre-recorded ginseng
Examine time window.
Optionally, the determining module, is used for:
If the receiving time of currently received business processing request not in pre-recorded reference time window, and
In the time range of preset window duration before the receiving time of currently received business processing request, there is no executed industry
Business processing request, then using the receiving time of the currently received business processing request as window start time, and based on described
Preset window duration, determines time window, the receiving time corresponding time as the currently received business processing request
Window.
Optionally, the determining module, is used for:
If the receiving time of currently received business processing request, will not in pre-recorded reference time window
Away from the reference time window when a length of preset window duration integral multiple and include the request of currently received business processing
The time window of receiving time is determined as the corresponding time window of receiving time of the currently received business processing request.
Optionally, the execution module, is used for:
If the reference time window and the time window are same time window, it is determined that request time is described
The second number for having executed business processing request in time window is first number, if second number is not up to
Preset threshold then executes currently received business processing request, and first number is added one;
If the reference time window and the time window are not same time window, it is determined that request time is in institute
The number for having executed business processing request at the beginning of stating time window and after the time started is described second
Number executes currently received business processing request if second number is not up to preset threshold, will be pre-recorded
Reference time window is updated to the time window, and first number is updated to second number and adds one.
The third aspect, provides a kind of computer equipment, and the computer equipment includes processor and memory, described to deposit
It is stored at least one instruction in reservoir, at least one instruction is loaded by the processor and executed to realize such as above-mentioned the
The method of the request of execution business processing described in one side.
Fourth aspect provides a kind of computer readable storage medium, at least one finger is stored in the storage medium
It enables, at least one instruction is loaded by the processor and executed to realize the execution business as described in above-mentioned first aspect
The method for managing request.
Technical solution bring beneficial effect provided by the embodiments of the present application includes at least:
When the method for application execution business processing request provided by the embodiments of the present application, received when in the server short time
When being requested to a large amount of business processing, in each time window, for carrying same target account mark and business activity
The business processing of mark is requested, and server can only execute the business processing request for most starting received preset threshold, and for every
Business processing request in a time window more than preset threshold then no longer executes.To reduce to server process resource
Waste, and then reduce the influence to the response speed of server.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, 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, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow chart of method for executing business processing request provided by the embodiments of the present application;
Fig. 2 is a kind of structural schematic diagram of device for executing business processing request provided by the embodiments of the present application;
Fig. 3 is a kind of structural block diagram of terminal provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of server provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party
Formula is described in further detail.
The embodiment of the present application provides a kind of method of execution business processing request, and this method can be by computer equipment reality
It is existing.Wherein, which can be the mobile terminals such as mobile phone, tablet computer, notebook, be also possible to desktop computer etc.
Fixed terminal can also be server.
Method provided by the embodiments of the present application can participate in living using on a computing device for controlling participating user
The dynamic frequency, wherein above-mentioned activity can be the activity of thumbing up, sweepstake, register activity and neck certificate activity etc..Originally by application
Apply for the method that embodiment provides, the business processing for carrying same target account mark and business activity mark is requested,
Computer equipment only carries out the business processing request of preset threshold in a time window, for exceeding the business of preset threshold
Processing request, computer equipment no longer execute, and are controlled, are reduced to participate in movable participation number to participating user
Waste to computer equipment process resource, and then reduce the influence to the response speed of computer equipment.
As shown in Figure 1, the process flow of this method may include following step:
In a step 101, the business processing request of target account is received.
Wherein, the mark of target account and the mark of business activity are carried in business processing request.The mark of target account
Know the ID (identification, identity) that can be target account, the mark of business activity can be business activity
ID.Business processing request, which can be, thumbs up business processing request, is also possible to business processing request of registering, can also be prize drawing
Business processing request or neck certificate business processing request etc..
In an implementation, in daily life, people often participate in it is online thumb up, draw a lottery, register and lead certificate etc. movable, this
A little activities generally require the participation number of limitation user, therefore can be asked using execution business processing provided by the embodiments of the present application
The method asked realize to user participation number limitation.Participating user logs in target account, is then operated to service
Device is sent thumbs up business processing request, the request of prize drawing business processing, business processing of registering request or neck certificate business processing accordingly
Request, then server can receive the business processing request of target account transmission, wherein carry account in each business processing request
Mark and business processing request the mark of corresponding business activity.Account is carried for example, thumbing up in business processing request
The mark of business activity is identified and thumbed up, the mark of the mark of account and business activity of drawing a lottery is carried in prize drawing business processing request
Know, the mark of the mark of account and business activity of registering is carried in business processing of registering request, leads in the request of certificate business processing
It carries the mark of account and leads the mark of certificate business activity, then carry out the processing of step 102.
In a step 102, the mark of the mark based on target account and business activity obtains the pre-recorded reference time
The first number for having executed business processing request of window and request time in reference time window.
Wherein, reference time window is time window belonging to the receiving time for having executed business processing request of last time execution
Mouthful.Executed business processing request with currently received business processing request in, carry identical target account mark and
The mark of identical business activity.Business processing request has been executed to request for the business processing executed.Reference time window
Mouth can be sliding time window, or set time window.
The window start time of sliding time window can be any time, for example, when for nearest this sliding in three days
Between window, window start time changes with the passage of current time, for example, 0 dividing 0 second when current time is on March 13 0
When, then 0 divide 0 second when window start time is on March 10 0,0 when dividing 0 second when current time is on March 13 1, then when window starts
Between 0 divide 0 second when being on March 10 1, window start time constantly changes with the passage of current time.
And the window start time of set time window cannot be arbitrarily arranged, such as daily 0 point to 24 points be one when
Between window, for the time window, the window start time of time window will not change in daily.
For sliding time window, the case where there is no pre-recorded reference time windows might have, if do not deposited
Then illustrating to have neither part nor lot in the business activity before target account, is being this time that target account participates in the business activity for the first time;Such as
Fruit exists, then illustrates to participate in this business activity before target account.
For set time window, when activity starts, i.e., the time window where the record movable time started is as pre-
Therefore for set time window, there is pre-recorded reference time window certainly in the reference time window first recorded.Institute
It can also be the time window where the movable time started with reference time window.
In an implementation, computer equipment obtains the mark of target account and business activity carried in business processing request
Mark, then, the mark of mark and business activity based on target account determine that count target identifies.Then, according to determining
Count target mark, obtains that the count target identifies corresponding pre-recorded reference time window and request time is being joined
Examine the first number for having executed business processing request in time window.Since count target mark includes the mark of target account
The mark with business activity is known, so that the mark of a target account in different business activities, can record respectively
Reference time window and the first number.In turn, the record of different business movable reference time window and the first number is avoided
It is chaotic.
The mode for recording reference time window can be at the beginning of recording reference time window with window duration, go back
End time and the window duration that can be record reference time window, are also possible at the beginning of recording reference time window
And the end time.
As shown in table 1, a kind of form for recording reference time window and the first number, in table 1, count target are provided
The information of the mark of the information and business activity of mark of the mark comprising target account, A indicate the mark of target account, and B is indicated
The mark of business activity, counter item record is the first number, also, by the record window time started come when recording reference
Between window.
Computer equipment obtain business processing request in carry target account mark A and business activity mark B it
Afterwards, then, it is determined that count target identifies A+B, then, 1 is tabled look-up based on count target mark A+B, obtaining window start time is 3
0 divides 0 second reference time window and the first number 5 when month 12 days 0.
Count target mark | Counter | Window start time |
A+B | 5 | 0 divides 0 second when 12 days 0 March |
Table 1
Optionally, for sliding time window, if there is no pre-recorded reference time window, then corresponding processing
Process can be as described below, if there is no pre-recorded reference time window, then with the request of currently received business processing
Receiving time be window start time, and be based on preset window duration, time window is determined, at currently received business
Manage the corresponding time window of receiving time of request.Record the receiving time corresponding time of currently received business processing request
Window is pre-recorded reference time window.
Wherein, above-mentioned time window belongs to sliding time window type.
In an implementation, if there is no pre-recorded time window, then explanation is the industry for receiving target account for the first time
Business processing request.At this point, using the receiving time of currently received business processing request as window start time, when with preset window
A length of window duration determines a time window, then when the time window is the reception of currently received business processing request
Between corresponding time window.Optionally, the corresponding time window of receiving time that currently received business processing can be requested
Window start time, the window start time of pre-recorded reference time window is recorded as, at currently received business
The window duration for managing the corresponding time window of receiving time of request, when being recorded as the window of pre-recorded reference time window
It is long.Also, recording the first number is 0.
For example, pre-recorded reference time window is not present, 24 hours a length of, currently received business when preset window
0 divides 0 second when the receiving time of processing request is on March 12 12.The receiving time (3 that then currently received business processing is requested
0 divides 0 second when the moon 12 days 12) it is determined as window start time, with preset window duration (24 hours) for window duration, determine the time
Window, the time window are the corresponding time window of receiving time of currently received business processing request, the time window
Window start time 0 divide 0 second when being on March 12 12,0 divides 0 second when window end time is on March 13 12.It is then possible to remember
0 divides 0 second window start time as pre-recorded reference time window when recording on March 12 12, and when window is 24 hours a length of,
First number is recorded as 0.
In step 103, it is based on reference time window, determines that the receiving time of currently received business processing request is corresponding
Time window.
Wherein, the corresponding time window of receiving time of currently received business processing request, it is as currently received
Time window belonging to the receiving time of business processing request.Time window can be sliding time window, be also possible to fix
Time window.
In an implementation, it should determine the receiving time of currently received business processing request whether in pre-recorded reference
Between in window.It is specific to determine that method is different according to the difference of the method for the record of reference time window.For example it is possible to record
The window start time of reference time window and window duration record reference time window, can also record reference time window
Window end time and window duration record reference time window.With record reference time window window start time and
For window duration, determine the receiving time of currently received business processing request whether in pre-recorded reference time window
Interior specific method, can be as described below:
Firstly, obtaining the window start time of pre-recorded reference time window and then window duration is opened window
Time beginning is added to obtain the window end time of reference time window with window duration.Finally, by currently received business processing
The receiving time of request is compared with window end time, if the receiving time of currently received business processing request is in window
Before the mouth end time, then illustrate the receiving time of currently received business processing request also in the time model of reference time window
In enclosing, then determine that reference time window is the corresponding time window of receiving time of currently received business processing request at this time.
If the receiving time of currently received business processing request after window end time, illustrates currently to receive
Business processing request receiving time not in the time range of reference time window, need to be calculated currently received industry
The corresponding time window of receiving time of business processing request.
For example, the window start time of the pre-recorded reference time window obtained 0 divides 0 second when being on March 12 0, window
Mouthful when it is 24 hours a length of, then 0 divide 0 second when window end time is on March 13 0, if then currently received business processing request
Receiving time at 13 days 0 March 0 divide 0 second before (0 divides 0 second when such as 12 days 12 March), then illustrate currently received business processing
The receiving time of request determines that reference time window is currently received industry also in the time range of reference time window at this time
The corresponding time window of receiving time of business processing request;If the receiving time of currently received business processing request is in March 13
When day 00 divide 0 second after (0 divides 1 second when such as 13 days 0 March), then illustrate the receiving time of currently received business processing request not
In the time range of reference time window, the receiving time for needing to be calculated currently received business processing request is corresponding
Time window.
The method for specifically calculating the corresponding time window of receiving time of currently received business processing request, because of time window
Mouthful belonging to window type difference and different, specific calculation method embodiment content as described below.
Optionally, when the receiving time of currently received business processing request is in pre-recorded reference time window
When, the corresponding treatment process of step 103 can be such that if the receiving time of currently received business processing request is remembered in advance
In the reference time window of record, it is determined that reference time window is that the receiving time of currently received business processing request is corresponding
Time window.
Wherein, reference time window is time window belonging to the receiving time for having executed business processing request of last time execution
Mouthful.
Optionally, when the receiving time of currently received business processing request is not in pre-recorded reference time window
It is interior, and when actual time window belongs to sliding time window type, the corresponding treatment process of step 103 can also be as follows: if
The receiving time of currently received business processing request is not in pre-recorded reference time window, then in currently received industry
In the time range of preset window duration before the receiving time of business processing request, obtains all business processings that executed and request
Receiving time.Using receiving time earliest in all receiving times for having executed business processing request as window start time,
And it is based on preset window duration, time window is determined, when the receiving time as the request of currently received business processing is corresponding
Between window.
Wherein, preset window duration is equal with the pre-recorded window duration of reference time window, also receives with current
Business processing request the corresponding time window of receiving time it is equal.
In an implementation, firstly, preset window duration before the receiving time of currently received business processing request
In time range, all receiving times for having executed business processing request are obtained.Then, it is determined that all business processings that executed are asked
Earliest receiving time in the receiving time asked, and using this earliest receiving time as window start time, when with preset window
A length of window duration determines a time window, then when the time window is the reception of currently received business processing request
Between corresponding time window.
For example, the window start time of pre-recorded time window 0 divides 0 second when being on March 10 12, preset window duration
It is 24 hours, 0 divides 0 second when the receiving time of currently received business processing request is on March 12 12, then obtains March 11
When 12 0 divide 0 second to 12 days 12 March when 0 time range for dividing 0 second in, all receiving times for having executed business processing request are false
If 05 divides 0 second and March when dividing 5 seconds, 11 days 12 March when the receiving time of the business processing request acquired is on March 11 12
10 divide 0 second at 11 days 12, it is determined that 0 divide when earliest receiving time, i.e. 11 days 12 March in the receiving time of business processing request
5 seconds, and earliest receiving time (0 divides 5 seconds when 11 days 12 March) is determined as window start time, with preset window duration (24
Hour) it is window duration, determine time window, which is the receiving time pair of currently received business processing request
The time window answered, 0 divides 5 seconds when the window start time of the time window is on March 11 12, and window end time is March 12
0 divides 5 seconds when day 12.
Optionally, when the receiving time of currently received business processing request is not in pre-recorded reference time window
It is interior, and when actual time window belongs to sliding time window type, the corresponding treatment process of step 103 can also be as follows: if
The receiving time of currently received business processing request is not in pre-recorded reference time window, and in currently received industry
Business processing request receiving time before preset window duration time range in, there is no executed business processing request,
Then using the receiving time of currently received business processing request as window start time, and it is based on preset window duration, when determining
Between window, as currently received business processing request the corresponding time window of receiving time.
In an implementation, when the receiving time of currently received business processing request, the business processing request executed away from last time
Receiving time duration, when alreading exceed preset window duration.At this point it is possible to connecing with the request of currently received business processing
It is window start time between time receiving, a length of window duration when with preset window determines a time window, then the time window is
For the corresponding time window of receiving time of currently received business processing request.
For example, the window start time of pre-recorded time window 0 divides 0 second when being on March 10 12, preset window duration
It is 24 hours, 0 divides 0 second when the receiving time of currently received business processing request is on March 12 12, and at 11 days 12 March, 0 divided
0 second to 12 days 12 March when 0 time range for dividing 0 second in, there is no executed business processing request.Then by currently received industry
The receiving time (0 divides 0 second when 12 days 12 March) of business processing request is determined as window start time, and with preset window duration, (24 is small
When) it is window duration, determine time window, which is that the receiving time of currently received business processing request is corresponding
Time window, 0 divides 0 second when the window start time of the time window is on March 12 12, and window end time is March 13
0 divides 0 second when 12.
Optionally, when the receiving time of currently received business processing request is not in pre-recorded reference time window
It is interior, and when actual time window belongs to set time window type, the corresponding treatment process of step 103 can be such that if worked as
The receiving time of preceding received business processing request, then will be away from reference time window not in pre-recorded reference time window
When a length of preset window duration integral multiple and include currently received business processing request receiving time time window,
It is determined as the corresponding time window of receiving time of currently received business processing request.
In an implementation, the time window for set time window, when activity starts, i.e., where the record movable time started
Therefore, for set time window, there is the pre-recorded reference time certainly as pre-recorded reference time window in mouth
Window, it is therefore not necessary to determine whether there is pre-recorded reference time window.
If the receiving time of currently received business processing request is not in pre-recorded reference time window, first
The window start time and window end time for first determining reference time window, then, by window start time and window duration
It is added, window end time is added with window duration, next time window is obtained, then by the window of next time window
End time is compared with the receiving time that currently received business processing is requested, if the reception of currently received business processing request
Time is before window end time, it is determined that the corresponding time window of receiving time of currently received business processing request is
Above-mentioned time window.Otherwise, it proceeds as described above, until the receiving time of currently received business processing request terminates in window
Before time.
For example, the window start time of pre-recorded time window 0 divides 0 second when being on March 10 12, preset window duration
It is 24 hours, 0 divides 0 second when the receiving time of currently received business processing request is on March 13 11.It first will be pre-recorded
The window start time of time window is added with preset window duration, obtains the window end time of pre-recorded time window
0 divides 0 second when for 11 days 12 March.When then comparing on March 11 12 0 divide 0 second with 13 days 11 March when 0 divide 0 second, due to March 13
When 11 0 divide 0 second at 11 days 12 March 0 divide 0 second after, so dividing 0 second and default window for when 11 days 12 March of window end time 0
Mouthful duration is added, and 0 divides 0 second when obtaining 12 days 12 March of window end time of next time window.Then, March 12 is compared
When 12 0 divide 0 second with 13 days 11 March when 0 divide 0 second, when due to 13 days 11 March 0 divide 0 second at 12 days 12 March 0 divide 0 second after, then
Continue to divide when 12 days 12 March of window end time 00 second and be added with preset window duration, obtains next one time window
0 divides 0 second when 13 days 12 March of window end time.Then, when comparing on March 13 12 0 divide 0 second with 13 days 11 March when 0 divide 0 second,
When due to 13 days 11 March 0 divide 0 second at 13 days 12 March 0 divide 0 second before, it is determined that the request of currently received business processing connects
0 divides 0 second when the window end time of corresponding time window is on March 13 12 between time receiving, then its window start time is March 12
0 divides 0 second when day 12.
At step 104, it is based on the first number, reference time window and time window, determines request time in the time
The second number for having executed business processing request in window, if the second number is not up to preset threshold, execution is currently connect
The business processing of receipts is requested.
Wherein, business processing request has been executed with the request of currently received business processing, carries identical target account
The mark at family and the mark of identical business activity.Preset threshold can be arranged according to the actual situation.For example, limitation is signed daily
To number no more than three times, then preset threshold is set as 3.For another example number no more than ten times that limitation thumbs up daily, then
Preset threshold is set as 10.
In an implementation, if the reference time window time corresponding with the receiving time that currently received business processing is requested
Window is same time window, illustrates the receiving time of currently received business processing request still in reference time window at this time
Portion, it is determined that second number that has executed business processing request of the request time in the time window is the first number, if
Second number is not up to preset threshold, then executes currently received business processing request, and the first number is added one.
If reference time window time window corresponding with the receiving time that currently received business processing is requested is not
Same time window, illustrate at this time the receiving time of currently received business processing request not in reference time window interior, then
Determine the number that has executed business processing request of the request time at the beginning of time window and after the time started
Currently received business processing request is executed if the second number is not up to preset threshold for the second number, it will be pre-recorded
Reference time window be updated to the time window, and the first number is updated to the second number and adds one.
The receiving time that pre-recorded reference time window is updated to currently received business processing request is corresponding
The update mode of time window, it is different according to the difference of the recording mode of reference time window, for example, if reference time window
The recording mode of mouth is record window time started and window duration, then when updating, by pre-recorded window start time window
Mouthful, at the beginning of the corresponding time window of receiving time for being updated to currently received business processing request.
In the above-mentioned methods, pre-recorded reference time window has executed connecing for business processing request for last time execution
Time window belonging between time receiving.Optionally, pre-recorded reference time window can also be last traffic processing request
Time window belonging to receiving time, then at this point, every time receive business processing request when, no matter the service request subsequent execution
Whether, whether the receiving time for requiring to determine this received business processing request is in pre-recorded reference time window
In time range, and when exceeding the time range of pre-recorded reference time window, by pre-recorded reference time window
Oral replacement is time window belonging to the receiving time of currently received business processing request.When i.e. pre-recorded at this time reference
Between window, with receive business processing request receiving time and change, no matter the business processing request whether be performed.
First number remains as the number of business processing request of the request time of the target account executed in reference time window.
By the above method, the execution number in each time window can be limited, to control the participation of participating user
The frequency reduces the waste to computer device resources.For example, preset threshold is 3, execution of the request time in time window
The number of business processing request is 2, then executes currently received business processing request;For another example preset threshold is 3, when request
Between the number having executed business processing request in time window be 3, then do not execute the request of currently received business processing.
When the method for application execution business processing request provided by the embodiments of the present application, received when the server short time
When a large amount of business processing request, in each time window, for carrying same target account mark and business activity mark
The business processing of knowledge is requested, and server can only execute the business processing request for most starting received preset threshold, and for each
Business processing request in time window more than preset threshold then no longer executes.To reduce to server process resource
Waste, and then reduce the influence to the response speed of server.
It based on the same technical idea, should the embodiment of the present application also provides a kind of device of execution business processing request
Device can be the terminal in above-described embodiment, as shown in Fig. 2, the device includes:
Receiving module 201, the business processing for receiving target account are requested, wherein are taken in the business processing request
The mark of mark and business activity with the target account;
Module 202 is obtained, for the mark of mark and the business activity based on the target account, obtains note in advance
First number that has executed business processing request of the reference time window and request time of record in reference time window,
Wherein, reference time window is time window belonging to the receiving time for having executed business processing request of target account last time execution
Mouthful;
Determining module 203 determines the receiving time of currently received business processing request for being based on reference time window
Corresponding time window;
Execution module 204 determines that request time exists for being based on the first number, reference time window and time window
The second number for having executed business processing request in time window, if the second number is not up to preset threshold, execution is worked as
Preceding received business processing request, wherein described to have executed business processing request and the currently received business processing request
In, carry the mark of identical target account and the mark of identical business activity.
Optionally, determining module 203 are used for:
If the receiving time of currently received business processing request is in pre-recorded reference time window, it is determined that
Reference time window is the corresponding time window of receiving time of currently received business processing request.
Optionally, determining module 203 are used for:
If the receiving time of currently received business processing request not in pre-recorded reference time window,
In the time range of preset window duration before the receiving time of currently received business processing request, all executed is obtained
The receiving time of business processing request;
Using receiving time earliest in all receiving times for having executed business processing request as window start time, and base
In preset window duration, time window is determined, the corresponding time window of receiving time as the request of currently received business processing
Mouthful.
Optionally, device further includes logging modle, is used for:
If there is no pre-recorded reference time window, then with the receiving time of currently received business processing request
For window start time, and it is based on preset window duration, determines time window, as connecing for currently received business processing request
Corresponding time window between time receiving;
When the corresponding time window of receiving time for recording currently received business processing request is pre-recorded reference
Between window.
Optionally, determining module 203 are used for:
If the receiving time of currently received business processing request not in pre-recorded reference time window, and
In the time range of preset window duration before the receiving time of currently received business processing request, there is no executed industry
Business processing request, then using the receiving time of currently received business processing request as window start time, and be based on preset window
Duration determines time window, the corresponding time window of receiving time as the request of currently received business processing.
Optionally, determining module 203 are used for:
If the receiving time of currently received business processing request, will not in pre-recorded reference time window
Away from reference time window when a length of preset window duration integral multiple and reception comprising the request of currently received business processing
The time window of time is determined as the corresponding time window of receiving time of currently received business processing request.
Optionally, execution module 204 are used for:
If reference time window and time window are same time window, it is determined that request time is in time window
The second number for having executed business processing request is the first number, if the second number is not up to preset threshold, is executed current
Received business processing request, and the first number is added one;
If reference time window and time window are not same time window, it is determined that request time is in time window
The number for having executed business processing request after time started and time started is the second number, if the second number does not reach
To preset threshold, then currently received business processing request is executed, pre-recorded reference time window is updated to time window
Mouthful, and the first number is updated to the second number and adds one.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
It should be understood that the device provided by the above embodiment for executing business processing request is executing business processing request
When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function
With being completed by different functional modules, i.e., the internal structure of equipment is divided into different functional modules, to complete above description
All or part of function.In addition, the device provided by the above embodiment for executing business processing request and execution business processing
The embodiment of the method for request belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 3 is a kind of structural block diagram of terminal provided by the embodiments of the present application.The terminal 300 can be Portable movable end
End, such as: smart phone, tablet computer.Terminal 300 is also possible to referred to as other titles such as user equipment, portable terminal.
In general, terminal 300 includes: processor 301 and memory 302.
Processor 301 may include one or more processing cores, such as 4 core processors, 4 core processors etc..Place
Reason device 301 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 301 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 301 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 301 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 302 may include one or more computer readable storage mediums, which can
To be tangible and non-transient.Memory 302 may also include high-speed random access memory and nonvolatile memory,
Such as one or more disk storage equipments, flash memory device.In some embodiments, non-transient in memory 302
Computer readable storage medium for storing at least one instruction, at least one instruction for performed by processor 301 with
The method for realizing execution business processing request provided herein.
In some embodiments, terminal 300 is also optional includes: peripheral device interface 303 and at least one peripheral equipment.
Specifically, peripheral equipment includes: radio circuit 304, display screen 305, CCD camera assembly 306, voicefrequency circuit 307, positioning component
At least one of 308 and power supply 309.
Peripheral device interface 303 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 301 and memory 302.In some embodiments, processor 301, memory 302 and peripheral equipment
Interface 303 is integrated on same chip or circuit board;In some other embodiments, processor 301, memory 302 and outer
Any one or two in peripheral equipment interface 303 can realize on individual chip or circuit board, the present embodiment to this not
It is limited.
Radio circuit 304 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates
Frequency circuit 304 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 304 turns electric signal
It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 304 wraps
It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip
Group, user identity module card etc..Radio circuit 304 can be carried out by least one wireless communication protocol with other terminals
Communication.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G,
4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, it penetrates
Frequency circuit 304 can also include NFC (Near Field Communication, wireless near field communication) related circuit, this
Application is not limited this.
Display screen 305 is for showing UI (User Interface, user interface).The UI may include figure, text, figure
Mark, video and its their any combination.Display screen 305 also has acquisition in the touching on the surface or surface of display screen 305
Touch the ability of signal.The touch signal can be used as control signal and be input to processor 301 and be handled.Display screen 305 is used for
Virtual push button and/or dummy keyboard, also referred to as soft button and/or soft keyboard are provided.In some embodiments, display screen 305 can be with
It is one, the front panel of terminal 300 is set;In further embodiments, display screen 305 can be at least two, be respectively set
In the different surfaces of terminal 300 or in foldover design;In still other embodiments, display screen 305 can be flexible display screen, if
It sets on the curved surface of terminal 300 or on fold plane.Even, display screen 305 can also be arranged to non-rectangle irregular component
Shape, namely abnormity screen.Display screen 305 can use LCD (Liquid Crystal Display, liquid crystal display), OLED
The preparation such as (Organic Light-Emitting Diode, Organic Light Emitting Diode) materials.
CCD camera assembly 306 is for acquiring image or video.Optionally, CCD camera assembly 306 include front camera and
Rear camera.In general, front camera is for realizing video calling or self-timer, rear camera is for realizing photo or video
Shooting.In some embodiments, rear camera at least two are main camera, depth of field camera, wide-angle imaging respectively
Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle
Pan-shot and VR (Virtual Reality, virtual reality) shooting function are realized in camera fusion.In some embodiments
In, CCD camera assembly 306 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, be also possible to double-colored temperature flash of light
Lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for the light compensation under different-colour.
Voicefrequency circuit 307 is used to provide the audio interface between user and terminal 300.Voicefrequency circuit 307 may include wheat
Gram wind and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and converts sound waves into electric signal and be input to processor
301 are handled, or are input to radio circuit 304 to realize voice communication.For stereo acquisition or the purpose of noise reduction, wheat
Gram wind can be it is multiple, be separately positioned on the different parts of terminal 300.Microphone can also be array microphone or omnidirectional's acquisition
Type microphone.Loudspeaker is then used to that sound wave will to be converted to from the electric signal of processor 301 or radio circuit 304.Loudspeaker can
To be traditional wafer speaker, it is also possible to piezoelectric ceramic loudspeaker.When loudspeaker is piezoelectric ceramic loudspeaker, not only may be used
To convert electrical signals to the audible sound wave of the mankind, the sound wave that the mankind do not hear can also be converted electrical signals to survey
Away from etc. purposes.In some embodiments, voicefrequency circuit 307 can also include earphone jack.
Positioning component 308 is used for the current geographic position of positioning terminal 300, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 308 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group
Part.
Power supply 309 is used to be powered for the various components in terminal 300.Power supply 309 can be alternating current, direct current,
Disposable battery or rechargeable battery.When power supply 309 includes rechargeable battery, which can be wired charging electricity
Pond or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is by wireless
The battery of coil charges.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 300 further includes having one or more sensors 310.The one or more sensors
310 include but is not limited to: acceleration transducer 311, gyro sensor 312, pressure sensor 313, fingerprint sensor 314,
Optical sensor 315 and proximity sensor 316.
The acceleration that acceleration transducer 311 can detecte in three reference axis of the coordinate system established with terminal 300 is big
It is small.For example, acceleration transducer 311 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 301 can
With the acceleration of gravity signal acquired according to acceleration transducer 311, control display screen 305 with transverse views or longitudinal view into
The display of row user interface.Acceleration transducer 311 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 312 can detecte body direction and the rotational angle of terminal 300, and gyro sensor 312 can
To cooperate with acquisition user to act the 3D of terminal 300 with acceleration transducer 311.Processor 301 is according to gyro sensor 312
Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting
Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or display screen 305 in terminal 300 can be set in pressure sensor 313.Work as pressure sensing
When the side frame of terminal 300 is arranged in device 313, can detecte user to the gripping signal of terminal 300, according to the gripping signal into
Row right-hand man identification or prompt operation.It, can be according to user couple when the lower layer of display screen 305 is arranged in pressure sensor 313
The pressure operation of display screen 305, realization control the operability control on the interface UI.Operability control includes button
At least one of control, scroll bar control, icon control, menu control.
Fingerprint sensor 314 is used to acquire the fingerprint of user, according to the identity of collected fingerprint recognition user.Knowing
Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation, the sensitive operation by processor 301
Including solution lock screen, check encryption information, downloading software, payment and change setting etc..End can be set in fingerprint sensor 314
Front, the back side or the side at end 300.When being provided with physical button or manufacturer Logo in terminal 300, fingerprint sensor 314 can
To be integrated with physical button or manufacturer Logo.
Optical sensor 315 is for acquiring ambient light intensity.In one embodiment, processor 301 can be according to optics
The ambient light intensity that sensor 315 acquires controls the display brightness of display screen 305.Specifically, when ambient light intensity is higher,
The display brightness of display screen 305 is turned up;When ambient light intensity is lower, the display brightness of display screen 305 is turned down.In another reality
It applies in example, the ambient light intensity that processor 301 can also be acquired according to optical sensor 315, dynamic adjusts CCD camera assembly 306
Acquisition parameters.
Proximity sensor 316, also referred to as range sensor are generally arranged at the front of terminal 300.Proximity sensor 316 is used
In the distance between the front of acquisition user and terminal 300.In one embodiment, when proximity sensor 316 detects user
When the distance between front of terminal 300 gradually becomes smaller, display screen 305 is controlled by processor 301 and is switched to from bright screen state
Cease screen state;When proximity sensor 316 detects user and the distance between the front of terminal 300 becomes larger, by handling
Device 301 controls display screen 305 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 300 of structure shown in Fig. 3, can wrap
It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
Fig. 4 is a kind of structural schematic diagram of server provided in an embodiment of the present invention, which can be because of configuration or property
Energy is different and generates bigger difference, may include one or more processors (central processing
Units, CPU) 401 and one or more memory 402, wherein at least one instruction is stored in memory 402,
The method that at least one instruction is loaded by processor 401 and executed to realize above-mentioned execution business processing request.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, is stored at least in storage medium
One instruction, at least one instruction are loaded by processor and are executed to realize the side for executing business processing request in above-described embodiment
Method.For example, the computer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store 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 in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (14)
1. a kind of method for executing business processing request, which is characterized in that the described method includes:
Receive the business processing request of target account, wherein the mark of the target account is carried in the business processing request
Know the mark with business activity;
Based on the target account mark and the business activity mark, obtain pre-recorded reference time window, with
And first number that has executed business processing request of the request time in the reference time window, wherein when the reference
Between window be last time execute executed business processing request receiving time belonging to time window;
Based on the reference time window, the corresponding time window of receiving time of currently received business processing request is determined;
Based on first number, the reference time window and the time window, determine request time in the time
The second number for having executed business processing request in window, if second number is not up to preset threshold, execution is worked as
Preceding received business processing request, wherein described to have executed business processing request and the currently received business processing request
In, carry the mark of identical target account and the mark of identical business activity.
2. determination currently connects the method according to claim 1, wherein described be based on the reference time window
The corresponding time window of receiving time of the business processing request of receipts, comprising:
If the receiving time of currently received business processing request is in pre-recorded reference time window, it is determined that described
Reference time window is the corresponding time window of receiving time of the currently received business processing request.
3. determination currently connects the method according to claim 1, wherein described be based on the reference time window
The corresponding time window of receiving time of the business processing request of receipts, comprising:
If the receiving time of currently received business processing request is not in pre-recorded reference time window, current
In the time range of preset window duration before the receiving time of received business processing request, acquisition is all to have executed business
Handle the receiving time of request;
Using receiving time earliest in all receiving times for having executed business processing request as window start time, and base
In the preset window duration, time window is determined, the receiving time as the currently received business processing request is corresponding
Time window.
4. the method according to claim 1, wherein described be based on first number, the reference time window
Mouth and the time window determine second number that has executed business processing request of the request time in the time window
Mesh, if second number is not up to preset threshold, before executing the request of currently received business processing, further includes:
If there is no pre-recorded reference time window, then with the receiving time of the currently received business processing request
For window start time, and it is based on preset window duration, determines time window, requested as the currently received business processing
The corresponding time window of receiving time;
When the corresponding time window of receiving time for recording the currently received business processing request is pre-recorded reference
Between window.
5. determination currently connects the method according to claim 1, wherein described be based on the reference time window
The corresponding time window of receiving time of the business processing request of receipts, comprising:
If the receiving time of currently received business processing request is not in pre-recorded reference time window, and current
In the time range of preset window duration before the receiving time of received business processing request, there is no executed at business
Reason request, then using the receiving time of the currently received business processing request as window start time, and based on described default
Window duration, determines time window, the corresponding time window of receiving time as the currently received business processing request.
6. determination currently connects the method according to claim 1, wherein described be based on the reference time window
The corresponding time window of receiving time of the business processing request of receipts, comprising:
If the receiving time of currently received business processing request, will be away from institute not in pre-recorded reference time window
State reference time window when a length of preset window duration integral multiple and include currently received business processing request reception
The time window of time is determined as the corresponding time window of receiving time of the currently received business processing request.
7. method according to claim 1-6, which is characterized in that described to be based on first number, the ginseng
Time window and the time window are examined, determines that request time has executed what business processing was requested in the time window
Second number executes currently received business processing request if second number is not up to preset threshold, comprising:
If the reference time window and the time window are same time window, it is determined that request time is in the time
The second number for having executed business processing request in window is first number, if second number is not up to default
Threshold value then executes currently received business processing request, and first number is added one;
If the reference time window and the time window are not same time window, it is determined that request time is when described
Between the number for having executed business processing request at the beginning of window and after the time started be second number,
If second number is not up to preset threshold, currently received business processing request is executed, by pre-recorded reference
Time window is updated to the time window, and first number is updated to second number and adds one.
8. a kind of device for executing business processing request, which is characterized in that described device includes:
Receiving module, the business processing for receiving target account are requested, wherein are carried in the business processing request described
The mark of target account and the mark of business activity;
Module is obtained, for the mark of mark and the business activity based on the target account, obtains pre-recorded ginseng
The first number for having executed business processing request of time window and request time in the reference time window is examined,
In, the reference time window is time window belonging to the receiving time for having executed business processing request of last time execution;
Determining module determines the receiving time pair of currently received business processing request for being based on the reference time window
The time window answered;
Execution module, for being based on first number, the reference time window and the time window, when determining request
Between the second number for having executed business processing request in the time window, if the not up to default threshold of second number
Value then executes currently received business processing request, wherein described to have executed business processing request and the currently received industry
In business processing request, the mark of identical target account and the mark of identical business activity are carried.
9. device according to claim 8, which is characterized in that the determining module is used for:
If the receiving time of currently received business processing request is not in pre-recorded reference time window, current
In the time range of preset window duration before the receiving time of received business processing request, acquisition is all to have executed business
Handle the receiving time of request;
Using receiving time earliest in all receiving times for having executed business processing request as window start time, and base
In the preset window duration, time window is determined, the receiving time as the currently received business processing request is corresponding
Time window.
10. device according to claim 8, which is characterized in that described device further includes logging modle, is used for:
If there is no pre-recorded reference time window, then with the receiving time of the currently received business processing request
For window start time, and it is based on preset window duration, determines time window, requested as the currently received business processing
The corresponding time window of receiving time;
When the corresponding time window of receiving time for recording the currently received business processing request is pre-recorded reference
Between window.
11. device according to claim 8, which is characterized in that the determining module is used for:
If the receiving time of currently received business processing request is not in pre-recorded reference time window, and current
In the time range of preset window duration before the receiving time of received business processing request, there is no executed at business
Reason request, then using the receiving time of the currently received business processing request as window start time, and based on described default
Window duration, determines time window, the corresponding time window of receiving time as the currently received business processing request.
12. according to the described in any item devices of claim 8-11, which is characterized in that the execution module is used for:
If the reference time window and the time window are same time window, it is determined that request time is in the time
The second number for having executed business processing request in window is first number, if second number is not up to default
Threshold value then executes currently received business processing request, and first number is added one;
If the reference time window and the time window are not same time window, it is determined that request time is when described
Between the number for having executed business processing request at the beginning of window and after the time started be second number,
If second number is not up to preset threshold, currently received business processing request is executed, by pre-recorded reference
Time window is updated to the time window, and first number is updated to second number and adds one.
13. a kind of computer equipment, which is characterized in that the computer equipment includes processor and memory, the memory
In be stored at least one instruction, at least one instruction is loaded by the processor and is executed to realize as aforesaid right is wanted
Seek the described in any item methods for executing business processing request of 1-7.
14. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium
Item instruction, at least one instruction are loaded by the processor and are executed to realize such as any one of the claims 1-7 institute
The method for the execution business processing request stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910618640.1A CN110336881B (en) | 2019-07-10 | 2019-07-10 | Method and device for executing service processing request |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910618640.1A CN110336881B (en) | 2019-07-10 | 2019-07-10 | Method and device for executing service processing request |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110336881A true CN110336881A (en) | 2019-10-15 |
CN110336881B CN110336881B (en) | 2020-11-20 |
Family
ID=68145596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910618640.1A Active CN110336881B (en) | 2019-07-10 | 2019-07-10 | Method and device for executing service processing request |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110336881B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110719337A (en) * | 2019-10-23 | 2020-01-21 | 北京悠易网际科技发展有限公司 | Service system, service request processing method, device and server |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002044147A (en) * | 2000-07-31 | 2002-02-08 | Toshiba Corp | Data exchange system and its control method |
US20090073975A1 (en) * | 2007-09-19 | 2009-03-19 | Nec Corporation | Communication method and communication device |
CN102456069A (en) * | 2011-08-03 | 2012-05-16 | 中国人民解放军国防科学技术大学 | Incremental aggregate counting and query methods and query system for data stream |
CN102769549A (en) * | 2011-05-05 | 2012-11-07 | 腾讯科技(深圳)有限公司 | Network security monitoring method and device |
JP2013191924A (en) * | 2012-03-12 | 2013-09-26 | Nippon Telegr & Teleph Corp <Ntt> | Data communication system and data communication method |
US20140373139A1 (en) * | 2013-06-13 | 2014-12-18 | Alibaba Group Holding Limited | Method and system of distinguishing between human and machine |
CN106878282A (en) * | 2017-01-11 | 2017-06-20 | 北京百度网讯科技有限公司 | The method and apparatus of gateway attack protection |
CN106911589A (en) * | 2015-12-22 | 2017-06-30 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment |
CN107920095A (en) * | 2016-10-08 | 2018-04-17 | 阿里巴巴集团控股有限公司 | A kind of method, apparatus of sender and recipient's flow restriction under P2P environment |
-
2019
- 2019-07-10 CN CN201910618640.1A patent/CN110336881B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002044147A (en) * | 2000-07-31 | 2002-02-08 | Toshiba Corp | Data exchange system and its control method |
US20090073975A1 (en) * | 2007-09-19 | 2009-03-19 | Nec Corporation | Communication method and communication device |
CN102769549A (en) * | 2011-05-05 | 2012-11-07 | 腾讯科技(深圳)有限公司 | Network security monitoring method and device |
CN102456069A (en) * | 2011-08-03 | 2012-05-16 | 中国人民解放军国防科学技术大学 | Incremental aggregate counting and query methods and query system for data stream |
JP2013191924A (en) * | 2012-03-12 | 2013-09-26 | Nippon Telegr & Teleph Corp <Ntt> | Data communication system and data communication method |
US20140373139A1 (en) * | 2013-06-13 | 2014-12-18 | Alibaba Group Holding Limited | Method and system of distinguishing between human and machine |
CN106911589A (en) * | 2015-12-22 | 2017-06-30 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment |
CN107920095A (en) * | 2016-10-08 | 2018-04-17 | 阿里巴巴集团控股有限公司 | A kind of method, apparatus of sender and recipient's flow restriction under P2P environment |
CN106878282A (en) * | 2017-01-11 | 2017-06-20 | 北京百度网讯科技有限公司 | The method and apparatus of gateway attack protection |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110719337A (en) * | 2019-10-23 | 2020-01-21 | 北京悠易网际科技发展有限公司 | Service system, service request processing method, device and server |
Also Published As
Publication number | Publication date |
---|---|
CN110336881B (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108710496A (en) | Configuration update method, device, equipment and the storage medium of application program | |
US20220171776A1 (en) | Block processing method and apparatus, and blockchain-based data query method and apparatus | |
CN108304265A (en) | EMS memory management process, device and storage medium | |
CN108924737A (en) | Localization method, device, equipment and computer readable storage medium | |
CN109977333A (en) | Webpage display process, device, computer equipment and storage medium | |
CN109461406A (en) | Display methods, device, electronic equipment and medium | |
CN110045960A (en) | Instruction set processing method, device and storage medium based on chip | |
CN110278464A (en) | The method and apparatus for showing list | |
CN110166890A (en) | Broadcasting acquisition method, equipment and the storage medium of audio | |
CN110213608A (en) | Show method, apparatus, equipment and the readable storage medium storing program for executing of virtual present | |
CN110046018A (en) | Show method, apparatus, electronic equipment and the medium of message | |
CN109117635A (en) | Method for detecting virus, device, computer equipment and the storage medium of application program | |
CN110378525A (en) | Plan of travel determines method, apparatus, equipment and storage medium | |
CN110134744A (en) | The methods, devices and systems that Geomagnetism Information is updated | |
CN110418152A (en) | It is broadcast live the method and device of prompt | |
CN110288689A (en) | The method and apparatus that electronic map is rendered | |
CN109192218A (en) | The method and apparatus of audio processing | |
CN108897597A (en) | The method and apparatus of guidance configuration live streaming template | |
CN108806670B (en) | Audio recognition method, device and storage medium | |
CN108900925A (en) | The method and apparatus of live streaming template are set | |
CN110341627A (en) | The method and apparatus for controlling interior behavior | |
CN109218751A (en) | The method, apparatus and system of recommendation of audio | |
CN110535890A (en) | The method and apparatus that file uploads | |
CN108053832A (en) | Acoustic signal processing method, device, electronic equipment and storage medium | |
CN110297684A (en) | Theme display methods, device and storage medium based on virtual portrait |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |