CN104683457A - Concurrency control method and device - Google Patents
Concurrency control method and device Download PDFInfo
- Publication number
- CN104683457A CN104683457A CN201510079209.6A CN201510079209A CN104683457A CN 104683457 A CN104683457 A CN 104683457A CN 201510079209 A CN201510079209 A CN 201510079209A CN 104683457 A CN104683457 A CN 104683457A
- Authority
- CN
- China
- Prior art keywords
- current control
- specified interface
- con current
- unit interval
- access times
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a concurrency control method and device and belongs to the technical field of Internets. The method comprises the following steps: receiving an invoking request for an appointed interface; determining whether the number of access times of the appointed interface in a unit of time reaches a preset limited number of access times or not according to the time that the invoking request is received; if the number of access times of the appointed interface in a unit of time reaches the preset limited number of access times, carrying out concurrency control on the invoking request. According to the disclosure, whether the number of access times of the appointed interface in the current period reaches the preset limited number of access times or not is determined according to the time that the invoking request is received, and concurrency control is carried out when the number of access times reaches the preset limited number of access times. The defect of incomprehensive judgment result when concurrency control is judged through using IP addresses is overcome, access limit directly acting on the interface self is realized, and the concurrency control efficiency is improved.
Description
Technical field
The disclosure relates to Internet technical field, particularly a kind of method of con current control and device.
Background technology
Along with the development of Internet technology, network incorporated user work and life among.In network operation process, in order to prevent user from frequently calling the specified interface in server, needing to carry out con current control to calling of specified interface, being in a stable state all the time to make server.
Mode generally for con current control is: at front-end server when receiving the call request for specified interface that terminal sends, effect can be carried out to source IP (Internet Protocol, the agreement interconnected between the network) address in call request according to configuration.If the source IP address sending call request belongs to blacklist, then con current control is carried out to this call request.
Summary of the invention
In order to solve the problem of correlation technique, disclosure embodiment provides a kind of method and device of con current control.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, a kind of method of con current control is provided, comprises:
Receive the call request for specified interface;
According to the time receiving described call request, determine the limiting access the number of times whether access times of described specified interface within the unit interval reach default;
If the access times of described specified interface within the unit interval reach default limiting access number of times, then con current control is carried out to described call request.
Optionally, described basis receives the time of described call request, determines to comprise the limiting access the number of times whether access times of described specified interface within the unit interval reach default:
Obtain one or more con current control rules that described specified interface is corresponding, described con current control rule comprises unit interval and limiting access number of times;
According to the time receiving described call request, obtain the access times of described specified interface within the unit interval that each con current control rule is corresponding respectively;
Determine whether the access times of described specified interface within the unit interval that each con current control rule is corresponding reach the limiting access number of times corresponding with it respectively.
Optionally, described basis receives the time of described call request, obtains the access times of described specified interface within the unit interval that each con current control rule is corresponding respectively, comprising:
According to the unit interval that the time and each con current control rule that receive described call request are corresponding, calculate the key value of described specified interface within the unit interval that each con current control rule is corresponding respectively;
Obtain the first access times that the key value of described specified interface within the unit interval that each con current control rule is corresponding is corresponding;
Increment operation is carried out to described first access times and obtains the second access times, and described second access times are defined as the access times of described specified interface within the unit interval that each con current control rule is corresponding.
Optionally, described method also comprises:
When arriving the expired time preset, at the key value that the unit interval is corresponding, replacement operation is performed to described specified interface.
Optionally, described method also comprises:
Receive the con current control instruction for described specified interface, described con current control instruction comprises, the interface identifier of specified interface, unit interval and limiting access number of times;
According to described con current control instruction, the con current control rule for described specified interface is set.
According to the second aspect of disclosure embodiment, a kind of device of con current control is provided, comprises:
First receiver module, for receiving the call request for specified interface;
Determination module, for according to the time receiving described call request, determines the limiting access the number of times whether access times of described specified interface within the unit interval reach default;
Con current control module, for when the access times of described specified interface within the unit interval reach default limiting access number of times, carries out con current control to described call request.
Optionally, described determination module, comprising:
First acquiring unit, for obtaining one or more con current control rules corresponding to described specified interface, described con current control rule comprises unit interval and limiting access number of times;
Second acquisition unit, for according to the time receiving described call request, obtains the access times of described specified interface within the unit interval that each con current control rule is corresponding respectively;
Determining unit, for determining whether the access times of described specified interface within the unit interval that each con current control rule is corresponding reach the limiting access number of times corresponding with it respectively.
Optionally, described second acquisition unit, comprising:
Computation subunit, for the unit interval according to the time and each con current control rule correspondence that receive described call request, calculates the key value of described specified interface within the unit interval that each con current control rule is corresponding respectively;
Obtain subelement, for obtaining the first access times corresponding to the key value of described specified interface within the unit interval that each con current control rule is corresponding;
Increment operation subelement, obtains the second access times for carrying out increment operation to described first access times;
Determine subelement, for described second access times being defined as the access times of described specified interface within the unit interval that each con current control rule is corresponding.
Optionally, described device also comprises:
Resetting module, for when arriving the expired time preset, at the key value that the unit interval is corresponding, replacement operation being performed to described specified interface.
Optionally, described device also comprises:
Second receiver module, for receiving the con current control instruction for described specified interface, described con current control instruction comprises, the interface identifier of specified interface, unit interval and limiting access number of times;
Module is set, for arranging the con current control rule for described specified interface according to described con current control instruction.
According to the third aspect of disclosure embodiment, a kind of device of con current control is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the call request for specified interface;
According to the time receiving described call request, determine the limiting access the number of times whether access times of described specified interface within the unit interval reach default;
If the access times of described specified interface within the unit interval reach default limiting access number of times, then con current control is carried out to described call request.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Disclosure embodiment, by receiving the time of call request, is determined whether specified interface reaches default limiting access number of times in the access times of current period, and is carried out con current control when reaching.Avoid the incomplete defect of judged result caused when using IP address to judge con current control, achieve the restrict access directly acting on interface itself, improve the efficiency of con current control.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the flow chart of the method for a kind of con current control according to an exemplary embodiment;
Fig. 2 is the flow chart of the method for a kind of con current control according to an exemplary embodiment;
Fig. 3 is the flow chart of the method for a kind of con current control according to an exemplary embodiment;
Fig. 4 is the block diagram of the device of a kind of con current control according to an exemplary embodiment;
Fig. 5 is the block diagram of determination module in the device of a kind of con current control according to an exemplary embodiment;
Fig. 6 is the block diagram of second acquisition unit in the device of a kind of con current control according to an exemplary embodiment;
Fig. 7 is the block diagram (general structure of server) of the device of a kind of con current control according to an exemplary embodiment.
Embodiment
For making object of the present disclosure, technical scheme and advantage clearly, below in conjunction with accompanying drawing, disclosure execution mode is described in further detail.
The disclosure one exemplary embodiment provides a kind of method of con current control, and disclosure embodiment is applied in server, and see Fig. 1, method flow comprises:
In a step 101, the call request for specified interface is received;
In a step 102, according to the time receiving call request, determine whether specified interface reaches default limiting access number of times in the access times of current period;
In step 103, if specified interface reaches default limiting access number of times in the access times of current period, then con current control is carried out to call request.
Disclosure embodiment, by receiving the time of call request, is determined whether specified interface reaches default limiting access number of times in the access times of current period, and is carried out con current control when reaching.Avoid the incomplete defect of judged result caused when using IP address to judge con current control, achieve the restrict access directly acting on interface itself, improve the efficiency of con current control.
Another exemplary embodiment of the disclosure provides a kind of method of con current control, and disclosure embodiment is applied in server, see Fig. 2.It should be noted that, the server of disclosure embodiment application, not for being applied to the front-end server in whole system, but be applied to the service server storing data, be provided with Redis storage system in this service server, this Redis storage system is also can log type, the Key-Value database of persistence based on internal memory.
Wherein, the method flow process comprises:
In step 201, the call request for specified interface is received.
Wherein, URL corresponding to specified interface (Uniform Resoure Locator: uniform resource locator) address is at least comprised in call request.Optionally, the information for identifying identity such as terminal iidentification can also be comprised in call request.
In step 202., according to the time receiving call request, determine whether specified interface reaches default limiting access number of times in the access times of current period.
Wherein, determine that the process whether specified interface reaches default limiting access number of times in the access times of current period can be realized by following steps:
In step 2021, obtain one or more con current control rules that specified interface is corresponding, con current control rule comprises unit interval and limiting access number of times.
Con current control rule can be: the access times in 2 seconds are no more than 3 times; Access times in 60 seconds are no more than 20 inferior forms.Each specified interface can arrange a multiple con current control rule of work according to actual needs respectively and limit the access of specified interface.
In step 2022, according to the time receiving call request, obtain the access times of specified interface within the unit interval that each con current control rule is corresponding respectively.
If the con current control rule of specified interface is one, then only calculate the access times of specified interface within the unit interval that this con current control rule is corresponding; If the con current control rule of specified interface is multiple, then need to calculate the access times of specified interface within the unit interval that each con current control rule is corresponding.
Wherein, step 2022 can be realized by following steps:
In step 20221, according to the unit interval that the time and each con current control rule that receive call request are corresponding, calculate the key value of specified interface within the unit interval that each con current control rule is corresponding respectively.
In Redis storage system, the value value of key value and this key value mapping being used for con current control is set for each specified interface.Wherein, key value is the character string according to certain generate rule, can map the accumulative access times value value obtaining each specified interface in the disclosed embodiments by this key value.Accordingly, key value is key value, and each con current control rule that each specified interface is corresponding can a corresponding key value in each cycle.
In the disclosed embodiments, the computing formula of key value can be:
key='rate_limit:{api}:{period_length}:{current_period}';
Wherein, rate_limit represents this key value and belongs to con current control rule; Api is the interface identifier of specified interface; Period_length is the cycle; Current_period is that current time is divided by the value rounded after the cycle.
Such as: current time is 10:30:00; Now receive specified interface: the call request of " http://open.api.com/new_song/ "; The con current control rule that this specified interface is corresponding is: the access times in 2 seconds are no more than 3 times (can represent in the following way: { 2,3}); { current_period} value can be calculated when 10:30:00, account form is: { current_period}=int ((10*3600+30*60+0)/2)=18900, wherein, current time is the number of seconds on 0: 0: 0 same day of distance; Therefore, key='rate_limit:http is obtained: //open.api.com/new_song/:2:18900'.
The call request for specified interface " http://open.api.com/new_song/ " is again received when 10:30:01; { current_period} value can be calculated when 10:30:01, account form is: { current_period}=int ((10*3600+30*60+1)/2)=18900, wherein, current time is the number of seconds on 0: 0: 0 same day of distance; Therefore, key='rate_limit:http is obtained: //open.api.com/new_song/:2:18900'.
The key value that twice access obtains is identical, can determine that twice access belongs to the same cycle.
Further, multiple con current control rule can be set to same specified interface, above example is that example is described, and another con current control rule that this specified interface is corresponding is: the access times in 60 seconds are no more than 20 times (can represent in the following way: { 60,20}).Therefore, the key value that this another con current control rule is corresponding is after 10:30:00 receives call request: key='rate_limit:http: //open.api.com/new_song/:60:18900'; Key value is after 10:30:01 receives call request: key='rate_limit:http: //open.api.com/new_song/:60:18900'.
Wherein, for the different con current control rules corresponding to same specified interface, can by { period_length} field is distinguished in key value.
Wherein, determining step 202 is realized by the rate_limit_check () function in Redis storage system.
In step 20222, obtain the first access times that the key value of specified interface within the unit interval that each con current control rule is corresponding is corresponding.
The corresponding value value of each key value meeting, this value value then represents the access times for specified interface in current period, and wherein the initial value of the corresponding value value of each key value is 0.
First example connect in step 20221 is described, obtain key='rate_limit:http: after //open.api.com/new_song/:2:18900', obtain the value value that this key value is corresponding, if this call request is for specified interface calling first in current period, then the value got is 0; If the second time belonged in current period in this call request is called, then the value got is 1; If called in the third time that this call request belongs in current period, then the value got is 2.
In step 20223, increment operation is carried out to the first access times and obtains the second access times, and the second access times are defined as the access times of specified interface within the unit interval that each con current control rule is corresponding.
The example connect in step 20222 is described, if this call request is for specified interface calling first in current period, is then 1 carrying out the value after increment operation; If this call request is call for the second time of specified interface in current period, be then 2 carrying out the value after increment operation; If this call request is call for the third time of specified interface in current period, be then 3 carrying out the value after increment operation.
Wherein, the implementation of carrying out increment operation is realized by the incr () function in Redis storage system.
In step 2023, determine whether the access times of specified interface within the unit interval that each con current control rule is corresponding reach the limiting access number of times corresponding with it respectively.
The limiting access number of times corresponding according to con current control rule, is contrasted by this limiting access number of times and the value value after increasing progressively, then can determine whether this call request received meets con current control rule corresponding to specified interface.
The example connect in step 20223 is described, and the con current control rule that specified interface is corresponding is: the access times in 2 seconds are no more than 3 times (can represent in the following way: { 2,3}).Therefore, when the value carried out after increment operation is 1, this call request is discontented with con current control rule corresponding to toe stationary interface; When the value carried out after increment operation is 2, this call request is discontented with con current control rule corresponding to toe stationary interface; When the value carried out after increment operation is 3, this call request meets con current control rule corresponding to specified interface, and the con current control now triggered for this call request operates, and performs step 203.
In step 203, if the access times of specified interface within the unit interval reach default limiting access number of times, then con current control is carried out to call request.
Wherein, the mode of con current control can include but not limited to: abandon this call request; Or, when waiting for that the cycle arrives next time, then perform the operation of call request.
In step 204, when arriving the expired time preset, at the key value that the unit interval is corresponding, replacement operation is performed to specified interface.
Wherein, the implementation pre-setting expired time is realized by the expire () function in Redis storage system.
First example connect in step 2021 is described, and the con current control rule that specified interface is corresponding is: the access times in 2 seconds are no more than 3 times (can represent in the following way: { 2,3}).Therefore, whenever arrival 2 seconds, then the operation performing step 204 once, carries out replacement operation to key value, and the value value that this key value is corresponding is carried out clear operation.Wherein, replacement operation can for removing the content of this key value.
Wherein, step 204 does not limit the sequential relationship between step 203.
Disclosure embodiment, by receiving the time of call request, is determined whether specified interface reaches default limiting access number of times in the access times of current period, and is carried out con current control when reaching.Avoid the incomplete defect of judged result caused when using IP address to judge con current control, achieve the restrict access directly acting on interface itself, improve the efficiency of con current control.
The disclosure one exemplary embodiment provides a kind of method of con current control, and disclosure embodiment is applied in server, see Fig. 3.Disclosure embodiment is applied to the process arranged the con current control rule of specified interface.
Wherein, method flow comprises:
In step 301, receive the con current control instruction for specified interface, con current control instruction comprises, the interface identifier of specified interface, unit interval and limiting access number of times.
Wherein, the mode of the unit interval arranged in con current control instruction and limiting access number of times is organized by json mode, content can be: limits={1:3}, and this content can represent that the con current control rule that specified interface is corresponding is: the access times in 1 second are no more than 3 times.The situation of multiple con current control rule is set for same specified interface, content can be: limits={1:3,60:20}, this content can represent that the con current control rule that specified interface is corresponding is: the access times in 1 second are no more than 3 times, and the access times in 60 seconds are no more than 20 times.
Wherein, the interface identifier about specified interface can be represented by resource in con current control instruction.
In step 302, the con current control rule for specified interface is set according to con current control instruction.
Limits and resource is imported in rate_limit_check () function into the process completing and con current control rule corresponding to specified interface is set.
Corresponding to the method for the con current control that above-mentioned exemplary embodiment provides, another exemplary embodiment of the disclosure provides a kind of device of con current control, and see Fig. 4, this device comprises:
First receiver module 401, is configured to receive the call request for specified interface;
Determination module 402, is configured to, according to the time receiving call request, determine the limiting access the number of times whether access times of specified interface within the unit interval reach default;
Con current control module 403, is configured to, when the access times of specified interface within the unit interval reach default limiting access number of times, carry out con current control to call request.
Wherein, as shown in Figure 5, determination module 402, comprising:
First acquiring unit 4021, be configured to obtain one or more con current control rules corresponding to specified interface, con current control rule comprises unit interval and limiting access number of times;
Second acquisition unit 4022, is configured to the time according to receiving call request, obtains the access times of specified interface within the unit interval that each con current control rule is corresponding respectively;
Determining unit 4023, is configured to determine whether the access times of specified interface within the unit interval that each con current control rule is corresponding reach the limiting access number of times corresponding with it respectively.
Wherein, as shown in Figure 6, second acquisition unit 4022, comprising:
Computation subunit 40221, is configured to, according to unit interval corresponding to the time and each con current control rule that receive call request, calculate the key value of specified interface within the unit interval that each con current control rule is corresponding respectively;
Obtain subelement 40222, be configured to obtain the first access times corresponding to the key value of specified interface within the unit interval that each con current control rule is corresponding;
Increment operation subelement 40223, is configured to carry out increment operation to the first access times and obtains the second access times;
Determine subelement 40224, be configured to the second access times are defined as the access times of specified interface within the unit interval that each con current control rule is corresponding.
Wherein, device also comprises:
Resetting module 404, being configured to when arriving the expired time preset, at the key value that the unit interval is corresponding, replacement operation is performed to specified interface.
Wherein, device also comprises:
Second receiver module 405, be configured to receive the con current control instruction for specified interface, con current control instruction comprises, the interface identifier of specified interface, unit interval and limiting access number of times;
Arrange module 406, the con current control being configured to arrange for specified interface according to con current control instruction is regular.
Disclosure embodiment, by receiving the time of call request, is determined whether specified interface reaches default limiting access number of times in the access times of current period, and is carried out con current control when reaching.Avoid the incomplete defect of judged result caused when using IP address to judge con current control, achieve the restrict access directly acting on interface itself, improve the efficiency of con current control.
Fig. 7 is the block diagram of a kind of device 1900 for con current control according to an exemplary embodiment.Such as, device 1900 may be provided in a server.With reference to Fig. 7, device 1900 comprises processing components 1922, and it comprises one or more processor further, and the memory resource representated by memory 1932, can such as, by the instruction of the execution of processing components 1922, application program for storing.The application program stored in memory 1932 can comprise one or more each module corresponding to one group of instruction.In addition, processing components 1922 is configured to perform instruction, to perform the method for above-mentioned con current control.
Device 1900 can also comprise the power management that a power supply module 1926 is configured to final controlling element 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 can operate the operating system based on being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Disclosure embodiment, by receiving the time of call request, is determined whether specified interface reaches default limiting access number of times in the access times of current period, and is carried out con current control when reaching.Avoid the incomplete defect of judged result caused when using IP address to judge con current control, achieve the restrict access directly acting on interface itself, improve the efficiency of con current control.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.
Claims (11)
1. a method for con current control, is characterized in that, described method comprises:
Receive the call request for specified interface;
According to the time receiving described call request, determine the limiting access the number of times whether access times of described specified interface within the unit interval reach default;
If the access times of described specified interface within the unit interval reach default limiting access number of times, then con current control is carried out to described call request.
2. method according to claim 1, is characterized in that, described basis receives the time of described call request, determines to comprise the limiting access the number of times whether access times of described specified interface within the unit interval reach default:
Obtain one or more con current control rules that described specified interface is corresponding, described con current control rule comprises unit interval and limiting access number of times;
According to the time receiving described call request, obtain the access times of described specified interface within the unit interval that each con current control rule is corresponding respectively;
Determine whether the access times of described specified interface within the unit interval that each con current control rule is corresponding reach the limiting access number of times corresponding with it respectively.
3. method according to claim 2, is characterized in that, described basis receives the time of described call request, obtains the access times of described specified interface within the unit interval that each con current control rule is corresponding respectively, comprising:
According to the unit interval that the time and each con current control rule that receive described call request are corresponding, calculate the key value of described specified interface within the unit interval that each con current control rule is corresponding respectively;
Obtain the first access times that the key value of described specified interface within the unit interval that each con current control rule is corresponding is corresponding;
Increment operation is carried out to described first access times and obtains the second access times, and described second access times are defined as the access times of described specified interface within the unit interval that each con current control rule is corresponding.
4. method according to claim 3, is characterized in that, described method also comprises:
When arriving the expired time preset, at the key value that the unit interval is corresponding, replacement operation is performed to described specified interface.
5. method according to claim 1, is characterized in that, described method also comprises:
Receive the con current control instruction for described specified interface, described con current control instruction comprises, the interface identifier of specified interface, unit interval and limiting access number of times;
According to described con current control instruction, the con current control rule for described specified interface is set.
6. a device for con current control, is characterized in that, described device comprises:
First receiver module, for receiving the call request for specified interface;
Determination module, for according to the time receiving described call request, determines the limiting access the number of times whether access times of described specified interface within the unit interval reach default;
Con current control module, for when the access times of described specified interface within the unit interval reach default limiting access number of times, carries out con current control to described call request.
7. device according to claim 6, is characterized in that, described determination module, comprising:
First acquiring unit, for obtaining one or more con current control rules corresponding to described specified interface, described con current control rule comprises unit interval and limiting access number of times;
Second acquisition unit, for according to the time receiving described call request, obtains the access times of described specified interface within the unit interval that each con current control rule is corresponding respectively;
Determining unit, for determining whether the access times of described specified interface within the unit interval that each con current control rule is corresponding reach the limiting access number of times corresponding with it respectively.
8. device according to claim 7, is characterized in that, described second acquisition unit, comprising:
Computation subunit, for the unit interval according to the time and each con current control rule correspondence that receive described call request, calculates the key value of described specified interface within the unit interval that each con current control rule is corresponding respectively;
Obtain subelement, for obtaining the first access times corresponding to the key value of described specified interface within the unit interval that each con current control rule is corresponding;
Increment operation subelement, obtains the second access times for carrying out increment operation to described first access times;
Determine subelement, for described second access times being defined as the access times of described specified interface within the unit interval that each con current control rule is corresponding.
9. device according to claim 8, is characterized in that, described device also comprises:
Resetting module, for when arriving the expired time preset, at the key value that the unit interval is corresponding, replacement operation being performed to described specified interface.
10. device according to claim 6, is characterized in that, described device also comprises:
Second receiver module, for receiving the con current control instruction for described specified interface, described con current control instruction comprises, the interface identifier of specified interface, unit interval and limiting access number of times;
Module is set, for arranging the con current control rule for described specified interface according to described con current control instruction.
The device of 11. 1 kinds of con current control, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the call request for specified interface;
According to the time receiving described call request, determine the limiting access the number of times whether access times of described specified interface within the unit interval reach default;
If the access times of described specified interface within the unit interval reach default limiting access number of times, then con current control is carried out to described call request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510079209.6A CN104683457A (en) | 2015-02-13 | 2015-02-13 | Concurrency control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510079209.6A CN104683457A (en) | 2015-02-13 | 2015-02-13 | Concurrency control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104683457A true CN104683457A (en) | 2015-06-03 |
Family
ID=53318024
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510079209.6A Pending CN104683457A (en) | 2015-02-13 | 2015-02-13 | Concurrency control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104683457A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105099766A (en) * | 2015-06-29 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for preventing interface from occupying resource excessively |
CN105100070A (en) * | 2015-06-29 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for preventing malicious attacks to interface service |
CN105893150A (en) * | 2016-03-31 | 2016-08-24 | 腾讯科技(深圳)有限公司 | Interface calling frequency control and interface calling request processing method and device |
CN107277008A (en) * | 2017-06-16 | 2017-10-20 | 福建中金在线信息科技有限公司 | It is a kind of to limit method, device and the electronic equipment for accessing network interface |
CN107894919A (en) * | 2017-11-30 | 2018-04-10 | 中国平安财产保险股份有限公司 | Timed task triggering method, device, equipment and readable storage medium storing program for executing |
CN108845869A (en) * | 2018-05-31 | 2018-11-20 | 中国平安人寿保险股份有限公司 | Concurrent request control method, device, computer equipment and storage medium |
CN109087055A (en) * | 2018-06-06 | 2018-12-25 | 北京达佳互联信息技术有限公司 | The control method and device of service request |
CN109784065A (en) * | 2018-12-04 | 2019-05-21 | 北京达佳互联信息技术有限公司 | Access control method, device, server and storage medium |
CN111064677A (en) * | 2019-11-11 | 2020-04-24 | 福建天泉教育科技有限公司 | Flow control method based on back-end access quantity and storage medium |
CN111949911A (en) * | 2020-07-31 | 2020-11-17 | 银盛支付服务股份有限公司 | Background concurrency control method based on Redis counter |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080307424A1 (en) * | 2002-09-23 | 2008-12-11 | Huawei Technologies Co., Ltd. | Scheduling Method For Polling Device Data |
CN103249180A (en) * | 2013-04-16 | 2013-08-14 | 广东欧珀移动通信有限公司 | Intelligent switching method and system for dual-card mobile phone |
CN103425526A (en) * | 2012-05-18 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Control method and device for interface calls |
CN103701709A (en) * | 2013-12-13 | 2014-04-02 | 北京京东尚科信息技术有限公司 | Flow rate control method and system |
CN104346563A (en) * | 2013-08-09 | 2015-02-11 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2015
- 2015-02-13 CN CN201510079209.6A patent/CN104683457A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080307424A1 (en) * | 2002-09-23 | 2008-12-11 | Huawei Technologies Co., Ltd. | Scheduling Method For Polling Device Data |
CN103425526A (en) * | 2012-05-18 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Control method and device for interface calls |
CN103249180A (en) * | 2013-04-16 | 2013-08-14 | 广东欧珀移动通信有限公司 | Intelligent switching method and system for dual-card mobile phone |
CN104346563A (en) * | 2013-08-09 | 2015-02-11 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103701709A (en) * | 2013-12-13 | 2014-04-02 | 北京京东尚科信息技术有限公司 | Flow rate control method and system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105099766A (en) * | 2015-06-29 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for preventing interface from occupying resource excessively |
CN105100070A (en) * | 2015-06-29 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for preventing malicious attacks to interface service |
CN105099766B (en) * | 2015-06-29 | 2019-03-05 | 北京奇虎科技有限公司 | Prevent interface from excessively occupying the method and device of resource |
CN105893150A (en) * | 2016-03-31 | 2016-08-24 | 腾讯科技(深圳)有限公司 | Interface calling frequency control and interface calling request processing method and device |
CN107277008A (en) * | 2017-06-16 | 2017-10-20 | 福建中金在线信息科技有限公司 | It is a kind of to limit method, device and the electronic equipment for accessing network interface |
CN107894919A (en) * | 2017-11-30 | 2018-04-10 | 中国平安财产保险股份有限公司 | Timed task triggering method, device, equipment and readable storage medium storing program for executing |
CN108845869A (en) * | 2018-05-31 | 2018-11-20 | 中国平安人寿保险股份有限公司 | Concurrent request control method, device, computer equipment and storage medium |
CN109087055A (en) * | 2018-06-06 | 2018-12-25 | 北京达佳互联信息技术有限公司 | The control method and device of service request |
CN109087055B (en) * | 2018-06-06 | 2022-04-08 | 北京达佳互联信息技术有限公司 | Service request control method and device |
CN109784065A (en) * | 2018-12-04 | 2019-05-21 | 北京达佳互联信息技术有限公司 | Access control method, device, server and storage medium |
CN111064677A (en) * | 2019-11-11 | 2020-04-24 | 福建天泉教育科技有限公司 | Flow control method based on back-end access quantity and storage medium |
CN111949911A (en) * | 2020-07-31 | 2020-11-17 | 银盛支付服务股份有限公司 | Background concurrency control method based on Redis counter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104683457A (en) | Concurrency control method and device | |
US10180993B2 (en) | Routing based request correlation | |
CN110247999B (en) | Domain name resolution method, domain name resolution device, household appliance and storage medium | |
CN107872528B (en) | Message pushing method and device | |
CN104202360B (en) | The method of accessed web page, device and router | |
CN106933871B (en) | Short link processing method and device and short link server | |
CN110334297B (en) | Terminal page loading method, terminal, server and storage medium | |
CN110519409B (en) | Domain name dynamic configuration method, device, equipment and storage medium | |
CN106453667B (en) | Update data cached method and device | |
CN103973461A (en) | Notification message pushing method and message server | |
CN106210155A (en) | The method and apparatus connecting application server | |
CN110826978A (en) | Unified backlog processing method and device based on enterprise browser | |
CN113890879B (en) | Load balancing method and device for data access, computer equipment and medium | |
CN107124483A (en) | Domain name analytic method and server | |
WO2014151507A1 (en) | System and method for omni-channel identity matching | |
CN110868361A (en) | Gateway load balancing method, device and equipment | |
CN115604144B (en) | Test method and device, electronic equipment and storage medium | |
CN106878311B (en) | HTTP message rewriting method and device | |
CN104618388A (en) | Quick registration and login method and corresponding reset server and information server | |
CN106686040A (en) | Message processing method and message processing device | |
CN105556918A (en) | Resource downloading method, electronic device, and apparatus | |
CN107220818B (en) | Online payment method and device | |
JP5961471B2 (en) | Output comparison method in multiple information systems | |
CN109951549B (en) | Network page access method and device and computer readable storage medium | |
CN107483294B (en) | Method and device for monitoring network request |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150603 |
|
RJ01 | Rejection of invention patent application after publication |