CN108494703A - A kind of access frequency control method, device and storage medium - Google Patents

A kind of access frequency control method, device and storage medium Download PDF

Info

Publication number
CN108494703A
CN108494703A CN201810191962.8A CN201810191962A CN108494703A CN 108494703 A CN108494703 A CN 108494703A CN 201810191962 A CN201810191962 A CN 201810191962A CN 108494703 A CN108494703 A CN 108494703A
Authority
CN
China
Prior art keywords
token
frequency control
access
client
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810191962.8A
Other languages
Chinese (zh)
Other versions
CN108494703B (en
Inventor
刘德刚
陈峥
严俊明
刘斌
朱戈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd, Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810191962.8A priority Critical patent/CN108494703B/en
Publication of CN108494703A publication Critical patent/CN108494703A/en
Application granted granted Critical
Publication of CN108494703B publication Critical patent/CN108494703B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/215Flow control; Congestion control using token-bucket
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a kind of access frequency control method, device and storage medium, the embodiment of the present invention is asked by receiving the Operational Visit that client is sent, and client identification is carried in Operational Visit request;It determines token bucket mark corresponding with client identification, and inquires local token bucket corresponding with token bucket mark;When determining that the access frequency of client is more than predetermined threshold value according to the token in local token bucket, to frequency control server set pocket transmission token application request;The token that frequency control server cluster is returned based on token application request is received, and asks corresponding business to provide access service for Operational Visit according to obtained token.The program can safeguard the token in the corresponding local token bucket of each client according to client identification, and the token in the token bucket to prestore is safeguarded by frequency control server cluster, it is control effectively to the access frequency of client by the token in token bucket, improves the accuracy controlled access frequency.

Description

A kind of access frequency control method, device and storage medium
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of access frequency control method, device and storage medium.
Background technology
Service server in usual network will face the client of magnanimity, wherein being no lack of has malicious attack, flow to uprush Or if large scale accessing caused by activity etc. is not made effective control, is then held very much for the visitation frequency of some client Easily cause the collapse of service server entirety cluster, and then influences the normal access of other clients.
In the prior art, when needing to control access frequency, the separate unit usually in service server cluster Frequency control module is disposed on service server, by frequency control module for the agreement interconnected between certain networks (Internet Protocol, IP) or client with some features etc. make access limitation;Alternatively, in service server Frequency control module is individually disposed in cluster, and by frequency control module all clients are uniformly made with whole access limit System.
In the research and practice process to the prior art, it was found by the inventors of the present invention that being directed to separate unit service server Access frequency controlled, when cluster loads it is uneven when, it is easy to cause access frequency control inaccurate, to business It threatens, i.e., traffic affecting executes;The frequency control module being separately provided in service server cluster, and face the per second of high frequency The impact of query rate (Query Per Second, QPS), when QPS is very high or Network Abnormal or when frequency control module exception, There are the risks of service server collapse, cause service server that can not control effectively to access frequency.
Invention content
A kind of access frequency control method of offer of the embodiment of the present invention, device and storage medium, it is intended to improve to accessing frequency The accuracy that rate is controlled.
In order to solve the above technical problems, the embodiment of the present invention provides following technical scheme:
A kind of access frequency control method, including:
The Operational Visit request that client is sent is received, client identification is carried in the Operational Visit request;
It determines token bucket mark corresponding with the client identification, and inquires local corresponding with token bucket mark Token bucket;
When determining that the access frequency of the client is more than predetermined threshold value according to the token in the local token bucket, to Frequency control server set pocket transmission token application request;
The token that the frequency control server cluster is returned based on token application request is received, and according to obtained token Corresponding business is asked to provide access service for the Operational Visit.
A kind of access frequency control device, including:
First receiving unit, the Operational Visit request for receiving client transmission carry in the Operational Visit request Client identification;
Determination unit for determining token bucket mark corresponding with the client identification, and is inquired and the token bucket Identify corresponding local token bucket;
Transmission unit determines that the access frequency of the client is more than for working as according to the token in the local token bucket When predetermined threshold value, to frequency control server set pocket transmission token application request;
Control unit, the token returned based on token application request for receiving the frequency control server cluster, and Corresponding business is asked to provide access service for the Operational Visit according to obtained token.
A kind of storage medium, the storage medium are stored with a plurality of instruction, and described instruction is loaded suitable for processor, with Execute the step in above-mentioned access frequency control method.
The embodiment of the present invention, can be true in the Operational Visit request for the carrying client identification for receiving client transmission Fixed token bucket mark corresponding with client identification, and inquire local token bucket corresponding with token bucket mark;When according to local When token in token bucket determines that the access frequency of client is more than predetermined threshold value, server set pocket transmission token application is controlled to frequency Request;Then the token that frequency control server cluster is returned based on token application request is received, and is business according to obtained token The corresponding business of access request provides the service of access.The program can safeguard each corresponding of client according to client identification Token in ground token bucket, and the token in the token bucket to prestore is safeguarded by frequency control server cluster, by token bucket Token control effectively to the access frequency of client, improve the accuracy controlled access frequency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the schematic diagram of a scenario of access frequency control system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of access frequency control method provided in an embodiment of the present invention;
Fig. 3 is the Organization Chart of access frequency control provided in an embodiment of the present invention;
Fig. 4 is another flow diagram of access frequency control method provided in an embodiment of the present invention;
Fig. 5 is the token interaction schematic diagram of access frequency control provided in an embodiment of the present invention;
Fig. 6 is that storage server cluster provided in an embodiment of the present invention stores schematic diagram to access frequency;
Fig. 7 is the structural schematic diagram of access frequency control device provided in an embodiment of the present invention;
Fig. 8 is another structural schematic diagram of access frequency control device provided in an embodiment of the present invention;
Fig. 9 is another structural schematic diagram of access frequency control device provided in an embodiment of the present invention;
Figure 10 is another structural schematic diagram of access frequency control device provided in an embodiment of the present invention;
Figure 11 is another structural schematic diagram of access frequency control device provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of server provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
A kind of access frequency control method of offer of the embodiment of the present invention, device and storage medium.
Referring to Fig. 1, the schematic diagram of a scenario for the access frequency control system that Fig. 1 is provided by the embodiment of the present invention, the visit Ask that frequency control system may include access frequency control device, which can specifically be integrated in server In cluster, for example, service server cluster, is mainly used for receiving the Operational Visit request that client is sent, wherein Operational Visit Client identification can be carried in request, the client identification can be client name or client number etc., can be by counting The compositions such as word, letter and/or word.Then, it is determined that token bucket mark corresponding with client identification, and inquire and token bucket mark Know corresponding local token bucket;When determined according to the token in local token bucket client access frequency be more than predetermined threshold value When, to frequency control server set pocket transmission token application request;For example, when token is not present in local token bucket, illustrate the visitor The access frequency at family end is higher, determines that the access frequency of client is more than predetermined threshold value, controls server set pocket transmission to frequency at this time Token application is asked.Finally, the token that frequency control server cluster is returned based on token application request is received, and according to obtained order Board asks corresponding business to provide access service, etc. for Operational Visit.
In addition, the access frequency control system can also include frequency control server cluster, the frequency control server cluster is main Token application for receiving service server collection pocket transmission is asked, and the token to be prestored according to the token application requesting query Bucket, when there are when token, the token etc. needed for token application request is returned to service server cluster in token bucket.
It should be noted that the schematic diagram of a scenario of access frequency control system shown in FIG. 1 is only an example, this hair The access frequency control system and scene of bright embodiment description are to more clearly illustrate the technology of the embodiment of the present invention Scheme does not constitute the restriction for technical solution provided in an embodiment of the present invention, those of ordinary skill in the art it is found that with The appearance of the differentiation and new business scene of access frequency control system, technical solution provided in an embodiment of the present invention is for similar Technical problem, it is equally applicable.
It is described in detail separately below.
In the present embodiment, it will be described from the angle of access frequency control device, access frequency control device tool Body can be integrated in the network equipments such as server cluster or gateway.
A kind of access frequency control method, including:The Operational Visit request that client is sent is received, in Operational Visit request Carry client identification;It determines token bucket mark corresponding with client identification, and inquires local corresponding with token bucket mark Token bucket;When determining that the access frequency of client is more than predetermined threshold value according to the token in local token bucket, to frequency control service Device collection pocket transmission token application is asked;It receives and controls the token that server cluster is returned based on token application request frequently, and according to To token ask corresponding business to provide access service for Operational Visit.
Referring to Fig. 2, Fig. 2 is the flow diagram for the access frequency control method that one embodiment of the invention provides.The visit Ask that control method for frequency may include:
In step S101, the Operational Visit request that client is sent is received, client mark is carried in Operational Visit request Know.
Wherein, client can be integrated in the terminals such as mobile phone or computer, when needing to execute some business in terminal, Operational Visit request can be sent to access frequency control device by client, access frequency control device receives business visit It asks request, the information such as service identification and client identification can be carried in Operational Visit request.The client identification can be Client name or client number etc. can be made of number, letter and/or word etc., and particular content does not limit here It is fixed.The type of Operational Visit request can be flexibly arranged according to actual needs, for example, it may be mail service access is asked Ask or microblogging Operational Visit request etc., particular content is not construed as limiting here.
It should be noted that the access frequency control device, which can be service server cluster, (is referred to as services sets Group), which may include one or more, wherein multiple service server clusters may include be multiple The service server cluster of different kinds of business service is provided for client, for example, mail service server cluster or microblogging industry Business server cluster etc., it is corresponding to provide mail service or microblogging business etc. to client respectively;Each service server It may include the service server of multiple same types of service in cluster.May include in service server cluster access server and Frequency control proxy server etc., which may include one or more, and it may include one which, which controls proxy server, Or it is multiple.Operational Visit can be asked to turn by service server cluster in the Operational Visit request for receiving client transmission It is initiated onto certain access server, and from the access server to frequency control proxy server (be referred to as frequency and control Agent) Frequency control request so that frequency control proxy server controls the access frequency of client according to frequency control request.
In step s 102, it determines token bucket mark corresponding with client identification, and inquires corresponding with token bucket mark Local token bucket.
In order to effectively control the access frequency of each client, access frequency control device can first pass through mark in advance Know the mapping relations safeguarded between client and local token bucket, that is, establishes the mapping between client identification and token bucket mark Relationship so that there are corresponding local token buckets for each client.Token bucket mark can be token bucket title or order Board bucket number etc. can be made of number, letter and/or word etc., and particular content is not construed as limiting here.
Wherein, token can be stored in local token bucket, local token bucket is mainly used for the access frequency to client It is controlled, for example, can be by indicating whether client can be allowed to access with the presence or absence of token in local token bucket, i.e., If there are tokens in local token bucket, access service can be provided for client, if token is not present in local token bucket, Access service is not provided for client.Each token in local token bucket can be represented as client and provide the service of access Number a, for example, token can provide one or many access services for client;Either, in local token bucket Each token can be represented as the period that client provides the service of access, such as a token can provide 1 for client Access service in second or 3 seconds;Either, each token in local token bucket, which can represent, provides in per second for client The number of service is accessed, i.e., each token in local token bucket can represent the interior number for allowing client to access per second (i.e. access frequency of client) etc..It is understood that the permission that token can represent can carry out spirit according to actual needs Setting living, particular content are not limited thereto.
The course of work of local token bucket may include:Token is generated, token is consumed and determines whether that client provides Access service etc..Wherein, it can periodically increase token into local token bucket with scheduled rate to generate token so that this Token in ground token bucket is on the increase, if token number is more than preset quantity threshold value in local token bucket, can be abandoned more Remaining token.Consumption token can be that the token accessed in consuming local token bucket when service is being provided for client, so as to Client access frequency is counted, which can be the number of interior access per second or the number etc. of interior access per minute.Sentence It is disconnected that whether to provide the service of access for client can be asked when the token quantity in local token bucket can meet Operational Visit When demand of the corresponding business to token, access service can be provided for client, be not otherwise that client provides access and services.
After the Operational Visit request for the carrying client identification for receiving client transmission, access frequency control device can To extract client identification from business access request, and closed according to the mapping between client identification and token bucket mark System determines token bucket mark corresponding with client identification.Then local token bucket corresponding with token bucket mark, inquiry are obtained The local token bucket, the local token bucket can be access frequency control device locally preset token buckets.I.e. when according to local Token in token bucket judges the access frequency of client, for example, when there are when token in local token bucket, it may be determined that client The access frequency at end is less than or equal to predetermined threshold value;When token is not present in local token bucket, it may be determined that the visit of client Ask that frequency is more than predetermined threshold value.
In some embodiments, it determines token bucket mark corresponding with client identification, and inquires and identified with token bucket After the step of corresponding local token bucket, access frequency control method can also include:
When there are when token, obtain the required token of Operational Visit request from local token bucket in local token bucket;Root Corresponding business is asked to provide access service for Operational Visit according to the token got.
For access frequency control device during inquiry local token bucket, when inquiring in local token bucket, there are tokens When, illustrate that the access frequency of the client is less than or equal to predetermined threshold value, business visit can be obtained from local token bucket at this time Ask the token needed for request.Wherein, which can be flexibly arranged according to actual needs, needed for Operational Visit request The quantity of token can be one or more, can be when looking into when the quantity of the token needed for the Operational Visit request is multiple It askes in local token bucket there are when the token needed for Operational Visit request, Operational Visit request institute is obtained from local token bucket The token needed.After getting token, access frequency control device can be Operational Visit request pair according to the token got The business answered provides the service of access.
It should be noted that providing the service of access when each token in token bucket represents in each cycle for client When number, frequency control apparatus is there are when token in inquiring local token bucket, it can be determined that whether current time needs more Token in new local token bucket, for example, if current time still within the current token period, local token bucket will not be updated In token;If current time comes into next new token cycle, business visit is reduced from local token bucket It asks the token needed for request, updates the token in local token bucket.When token is updated successfully, access can be provided for client Service;When token updates failure, preset times can be retried, if success, access service is provided for client, if failure, Then access service is not provided for client, and returns to failure information to client.
In step s 103, when determined according to the token in local token bucket client access frequency be more than predetermined threshold value When, to frequency control server set pocket transmission token application request.
Access frequency control device determines during inquiry local token bucket when according to the token in local token bucket When the access frequency of the client is more than predetermined threshold value, illustrate that the access frequency of the client is larger, for example, when inquiring local When token being not present in token bucket, it may be determined that the access frequency of the client is more than predetermined threshold value;Either, when inquiring this When token in ground token bucket is less than preset quantity, it may be determined that the access frequency of the client is more than predetermined threshold value;Wherein, in advance If quantity and predetermined threshold value can be flexibly arranged according to actual needs, particular content is not construed as limiting here.When according to this When token in ground token bucket determines that the access frequency of client is more than predetermined threshold value, in order to determine whether to increase the client The access frequency at end, access frequency control device can be to frequency control server set pocket transmission token application request at this time.
Wherein, frequency control server cluster can may include one or more, and multiple frequency control server clusters may include The frequency control server cluster of different type frequency control service is provided for multiple service server clusters, each in frequency control server cluster It may include that the frequency control server of multiple same frequency control types, a frequency control server can provide frequency for a service server and control Service.
In some embodiments, may include to the step of frequency control server set pocket transmission token application request:Judge Whether client identification is in preset white list;If client identification controls server set in preset white list, to frequency Pocket transmission token application is asked.
Specifically, access frequency control device can pre-set black and white lists, wherein limitation can be stored in blacklist The corresponding client identification of client of access frequency can only use in local token bucket the client in blacklist Token, when in local token bucket be not present token when, can not to frequency control server set pocket transmission token application request;White list In can store the corresponding client identification of client that can increase access frequency, i.e., for the client in white list, when It, can be to frequency control server set pocket transmission token application request when token being not present in local token bucket.
It is understood that access frequency control device can also pre-set unlimited access list and forbid accessing list Deng, wherein the client in unlimited access list can infinitely number access, and do not control its access frequency, prohibiting The client only accessed in list cannot access.
When determining that the access frequency of client is more than predetermined threshold value according to the token in local token bucket, access frequency control Whether device processed may determine that client identification in preset white list;If client identification in preset white list, To frequency control server set pocket transmission token application request.If client identification is not in preset white list, not to frequency control clothes Business device collection pocket transmission token application request is refused to provide access service for the corresponding client of the client identification.
Optionally, it if client identification is in preset white list, is asked to frequency control server set pocket transmission token application The step of asking may include:When client identification is in preset white list, token is produced in predetermined period;When production When token cannot meet the token needed for Operational Visit request, to frequency control server set pocket transmission token application request.
Specifically, the token in local token bucket can be that frequency control server cluster is pre-assigned, can also be local What token bucket produced in advance, the token quantity in the corresponding local token bucket of different clients can carry out according to actual needs Flexibly setting.When client identification is in preset white list, illustrate that the corresponding client of the client identification can increase Access frequency, access frequency control device can produce the token of preset quantity every predetermined period, and access frequency controls at this time Device produces token in predetermined period.When the token of production cannot meet the required token of Operational Visit request, frequency is accessed Rate control device can be to frequency control server set pocket transmission token application request.
In some embodiments, when determining that it is default that the access frequency of client is more than according to the token in local token bucket When threshold value, to after the step of frequency control server set pocket transmission token application request, access frequency control method can also include:
When there is no when token, receive frequency control server cluster to be based in the token bucket that frequency control server cluster inquiry prestores The token application failure information that token application request returns;Based on token application failure information, refuse as Operational Visit request pair The business answered provides the service of access.
Specifically, after access frequency control device is asked to frequency control server set pocket transmission token application, frequency control service Device cluster, which can be inquired, whether there is token in the token bucket to prestore, which is that frequency control server cluster is pre-set, Token can be stored in token bucket, the representative meaning of token and the course of work of token bucket and local token in the token bucket Bucket it is similar, repeat no more here.When frequency control server cluster inquires, and token is not present in token bucket, illustrate current each Client access frequency is larger, this time-frequency control server cluster is asked to return to access frequency control device and be enabled based on token application Board application failure information, access frequency control device receive the token application failure information.Access frequency control device is receiving To after token application failure information, can refuse to ask corresponding business to provide access service for Operational Visit.So as to have The solution of effect neatly limits the access frequency of client, to protect when client traffic uprushes (i.e. access frequency is uprushed) Protect the safety and stabilization of access frequency control device (i.e. service server cluster).
It should be noted that frequency control server cluster can ask after receiving token application request from token application In extract Operational Visit request need access service server mark, according to pre-set service server mark with frequency The mapping relations between server identification are controlled, determine frequency control server identification corresponding with service server mark, from frequency control clothes It is engaged in obtaining the corresponding frequency control server of frequency control server identification in device cluster.Frequency control server can inquire the token bucket to prestore In token, when the frequency control server inquire in token bucket be not present token when, frequency control server to access frequency control fill The token application failure information for setting return, when frequency control server inquires, and token is not present in token bucket, frequency controls server The token needed for token application request is returned to access frequency control device.
In step S104, the token that frequency control server cluster is returned based on token application request is received, and according to obtaining Token ask corresponding business to provide access service for Operational Visit.
After access frequency control device is asked to frequency control server set pocket transmission token application, frequency controls server cluster can It whether there is token in the token bucket that prestores to inquire, when frequency control server cluster inquires in token bucket there are when token, frequency Control server cluster asks to return to token to access frequency control device based on token application.Access frequency control device receives frequency The token that server cluster returns is controlled, and asks corresponding business to provide access service for Operational Visit according to obtained token. The preset local token bucket of access frequency control device can effectively share the load that frequency controls server cluster so that access frequency There are one bufferings between rate control device and frequency control server cluster, reduce access time of the client to frequency control server cluster Number can greatly reduce the pressure that frequency controls server cluster, can support the access buckles of bigger, while when frequency control server set When group is gone wrong, access frequency control device can control the access frequency of client by local token bucket, maximum possible Reduce the fault-tolerance of access frequency control device.
It should be noted that the access frequency control device can be service server cluster, in service server cluster May include access server and frequency control proxy server etc., it may include frequency control logical group and storage that frequency, which controls server cluster, Server cluster (also referred to as storage cluster) etc., wherein the access server in service server cluster and frequency control agency service In the quantity of device etc., and frequency control server cluster intermediate frequency control logical group and the quantity of storage server cluster can be according to reality Border needs flexibly to be arranged.For example, as shown in figure 3, client can be asked to service server collection pocket transmission Operational Visit, Operational Visit is asked the access server in load balancing to service server cluster by service server cluster.Receiving industry After access request of being engaged in, frequency control proxy server of the access server into service server cluster sends frequency control request.It is receiving To after frequency control request, frequency controls the local token bucket of proxy server inquiry.When determining client according to the token in local token bucket Access frequency be more than predetermined threshold value when, frequency control proxy server to frequency control server cluster in frequency control logical group send enable Board application is asked.After receiving token application request, frequency controls storage server of the logical group into frequency control server cluster Collect the update request of pocket transmission token.After receiving token update request, storage server cluster inquires the token bucket to prestore.When Storage server cluster inquiry token bucket in there are when token, reduced from token bucket token application request needed for token, And return to update result to frequency control logical group.After receiving update result, frequency controls logical group and controls proxy server to frequency Return to the token needed for token application request.The token received is stored in local token bucket by frequency control proxy server, and from originally The token needed for Operational Visit request is reduced in ground token bucket, and reduces token as a result, so that connecing to access server return Enter server asks corresponding business to provide access service for Operational Visit, with the corresponding business of processing business access request.
In some embodiments, corresponding business is asked to provide the service of access for Operational Visit according to obtained token Step may include:
Obtained token is stored to local token bucket;The order needed for Operational Visit request is obtained from local token bucket Board;According to the token needed for the Operational Visit request got, corresponding business is asked to provide access service for Operational Visit.
Specifically, access frequency control device is receiving order of the frequency control server cluster based on token application request return Bridge queen counts for the ease of the access frequency to client, can store obtained token to local token bucket;Then The token needed for Operational Visit request is obtained from local token bucket, and client is counted according to the token consumed in local token bucket The access frequency at end, and can be asked for Operational Visit corresponding according to the token needed for the Operational Visit request got Business provides the service of access, the i.e. corresponding business of processing business access request.
Optionally, the step of Operational Visit asks required token is obtained from local token bucket may include:Judgement is worked as Whether the preceding moment is within the current token period;If current time not within the current token period, obtains from local token bucket Token needed for Operational Visit request updates the token quantity in local token bucket.
Can be the token setting term of validity in local token bucket, the term of validity of a token can be using primary or more It is secondary, or use within a preset period of time.Frequency control apparatus is obtained from local token bucket needed for Operational Visit request Token when, it can be determined that whether current time needs to update the token quantity in local token bucket, that is, judges that current time is It is no within the current token period, if current time within the current token period, need not update the order in local token bucket Board quantity;If current time comes into next token cycle, Operational Visit request is reduced from local token bucket Required token updates the token quantity in local token bucket.When token quantity is updated successfully, visit can be provided for client The service of asking;When token quantity updates failure, preset times can be retried, if success, access service is provided for client, if Failure does not then provide access service for client, and returns to failure information to client.
From the foregoing, it will be observed that Operational Visit request of the embodiment of the present invention in the carrying client identification for receiving client transmission When, it may be determined that token bucket mark corresponding with client identification, and inquire local token bucket corresponding with token bucket mark;When When determining that the access frequency of client is more than predetermined threshold value according to the token in local token bucket, server set pocket transmission is controlled to frequency Token application is asked;Then the token that frequency control server cluster is returned based on token application request is received, and according to obtained order Board asks corresponding business to provide access service for Operational Visit.The program can safeguard each client according to client identification Token in corresponding local token bucket, and the token in the token bucket to prestore is safeguarded by frequency control server cluster, pass through Token in token bucket control effectively to the access frequency of client, improve access frequency is controlled it is accurate Property.
According to method described in above-described embodiment, citing is described in further detail below.
The present embodiment is by taking access frequency control device is service server cluster (also referred to as business cluster) as an example, the business Server cluster may include one or more, wherein multiple service server clusters may include for it is multiple be that client carries For the service server cluster of different kinds of business service, multiple same types of service are may include in each service server cluster Service server.May include access server and frequency control proxy server etc., the access service in service server cluster Device may include one or more, and it may include one or more which, which controls proxy server,.Frequency control server cluster can wrap One or more is included, multiple frequency control server clusters may include providing different type frequency control clothes for multiple service server clusters The frequency control server cluster of business, each frequency control the frequency control server that may include multiple same frequency control types in server cluster, frequency Control server cluster may include frequency control logical group and storage server cluster (also referred to as storage cluster) etc., the frequency control logic Cluster and storage server cluster may each comprise one or more.
It for convenience, in embodiments of the present invention, will be with wherein one in a client, service server cluster A frequency control logical group in a access server and frequency control proxy server and frequency control server cluster and storage service For device cluster, it is to be understood that the present embodiment should not be understood as only to facilitate description institute illustrated example to client End, service server cluster and its including access server and frequency control proxy server and frequency control server cluster and its Including frequency control logical group and the quantity such as storage server cluster restriction, but no matter quantity is how many, access frequency control The process of system is all similar, can be understood according to the example.
Referring to Fig. 4, Fig. 4 is the flow diagram of access frequency control method provided in an embodiment of the present invention.This method Flow may include:
201, client is asked to service server collection pocket transmission Operational Visit, and service server cluster asks Operational Visit Seek the access server in load balancing to service server cluster.
When needing to execute some business, client can be asked to service server collection pocket transmission Operational Visit, the industry The information such as service identification and client identification can be carried in business access request.Wherein, service identification can serve to indicate that the industry The corresponding type of service of access request of being engaged in, the Operational Visit ask corresponding type of service that can carry out according to actual needs flexibly Setting, for example, it may be mail service access request or the request of microblogging Operational Visit etc., particular content is not construed as limiting here. The service identification can be Business Name or business number etc., can be made of number, letter and/or word etc., particular content It is not construed as limiting here.The client identification is used to indicate client, which can be client name or client End number etc. can be made of number, letter and/or word etc., and particular content is not construed as limiting here.Service server cluster After receiving Operational Visit request, Operational Visit can be asked to the access service in load balancing to service server cluster On device.
202, after receiving Operational Visit request, frequency control agency service of the access server into service server cluster Device sends frequency control request.
Access server, can be to the frequency control agency service in service server cluster after receiving Operational Visit request Device sends frequency control request, and frequency control request can carry the information such as service identification and client identification, so that frequency control agency Server controls the access frequency of client according to frequency control request.
203, after receiving frequency control request, frequency controls the local token bucket of proxy server inquiry.
Frequency control proxy server can extract client identification after receiving frequency control request from frequency control request, and According to the mapping relations between the client identification pre-established and token bucket mark, token corresponding with client identification is determined Bucket mark.Then local token bucket corresponding with token bucket mark is obtained, inquires the local token bucket, which can be with It is frequency control proxy server locally preset token bucket.
Wherein, if there are tokens in local token bucket, access service can be provided for client, if in local token bucket There is no tokens, then do not provide access service for client.Each token in local token bucket can be represented as client The number of the service of access is provided, either, each token in local token bucket can be represented as client and provide access clothes The period of business, either, each token in local token bucket can represent in per second and provide access service for client Number (i.e. the access frequency of client) etc..It is understood that the permission that token can represent can be according to actual needs Flexibly it is arranged, particular content is not limited thereto.
For frequency control proxy server during inquiry local token bucket, when inquiring in local token bucket, there are tokens When, the token needed for Operational Visit request can be obtained from local token bucket.After getting token, frequency controls proxy server The token needed for Operational Visit request is reduced from local token bucket, and the token reduced is returned into access server, is accessed Server can ask corresponding business to provide access service according to obtained token for Operational Visit.
It should be noted that providing the service of access when each token in token bucket represents in each cycle for client When number, for example, per second access 1000 times, frequency control proxy server in inquiring local token bucket there are when token, if Current time within the current token period, then can not update the token (not reducing token) in local token bucket;If worked as The preceding moment comes into next token cycle, then the token needed for Operational Visit request, update are reduced from local token bucket Token in local token bucket.For example, it is assumed that allowing client is per second to access 1000 times, the current token period is the 50th second, such as Fruit current time in the 50th second, does not then reduce token;If current time enters the 51st second, token is reduced.When token more When new success, access service can be provided for client;When token updates failure, preset times can be retried, if success, Access service is provided for client, if failure, does not provide access service for client, and return to failure information to client. For not used token, frequency is controlled proxy server and can directly be abandoned, can also return to local token bucket.
It should be noted that frequency control proxy server can not only consume token, token can also be produced, for example, such as Fig. 5 Shown, frequency controls proxy server as the producer, can be periodically with scheduled rate production token, and by the token of production It stores into local token bucket (i.e. token bucket in Fig. 5), which can be the shared interior of frequency control proxy server It deposits, which can be the data structure of the local token bucket of storage;Either, frequency control proxy server is periodically to frequency Server cluster application token is controlled, and connects the token applied and is written in shared drive.Wherein, frequency control user can be made With the equipment of access frequency control method, such as the access server etc. of consumption token, frequency, which controls user, can pass through multi-process Or multithreading isotype consumes token.For example, when needing the access frequency to client to control, frequency controls user can be with Concurrently or sequentially frequency is asked to be controlled to shared drive by process 1, process 2, process 3 and process 4 etc., so as to out of share Deposit the token needed for acquisition.
Specifically, the process for consuming token can be as follows:It, can be to shared drive when frequency control user needs to consume token Apply for token number, if the token number in shared drive is 0, directly returning to frequency control user's frequency control transfinites, if in shared Token number in depositing is not 0, then frequency control user can apply to token, and execute subsequent operation.If token number is not 0 When, then shared drive also need to update token return to client if token is updated successfully and be updated successfully information;If Token update failure, then can retry certain number, if success, returns to client and be updated successfully information, if failure, returns Client updates failure information.If request frequency is controlled required token and is not present, frequency controls user and is notified that frequency control agency Server produces token, production token is removed in some cycles by frequency control proxy server, frequency controls proxy server can be in token The update of token is safeguarded in period.
204, when determining that the access frequency of client is more than predetermined threshold value according to the token in local token bucket, frequency controls generation It manages the frequency control logical group that server is controlled to frequency in server cluster and sends token application request.
Frequency control proxy server, should when being determined according to the token in local token bucket during inquiry local token bucket When the access frequency of client is more than predetermined threshold value, illustrate that the access frequency of the client is larger, for example, when inquiring local order When token being not present in board bucket, it may be determined that the access frequency of the client is more than predetermined threshold value;Either, when inquiring local When token in token bucket is less than preset quantity, it may be determined that the access frequency of the client is more than predetermined threshold value;Wherein, it presets Quantity and predetermined threshold value can be flexibly arranged according to actual needs, and particular content is not construed as limiting here.When according to local When token in token bucket determines that the access frequency of client is more than predetermined threshold value, frequency controls proxy server and controls server set to frequency Frequency control logical group in group sends token application request, and required token quantity, industry can be carried in token application request The information such as business mark and client identification.
It should be noted that frequency control proxy server can also pre-set black and white lists, wherein in blacklist Client can only use the token in local token bucket, can not be to frequency control service when token is not present in local token bucket Device collection pocket transmission token application is asked;It, can be with when token is not present in local token bucket for the client in white list To frequency control server set pocket transmission token application request.
When determining that the access frequency of client is more than predetermined threshold value according to the token in local token bucket, frequency control agency's clothes Whether business device may determine that client identification in preset white list;If client identification in preset white list, to Frequency control logical group in frequency control server cluster sends token application request.If client identification is not in preset white list In, then refuse to provide access service for the corresponding client of the client identification.
205, after receiving token application request, frequency controls storage server of the logical group into frequency control server cluster Collect the update request of pocket transmission token.
Wherein, storage server cluster is mainly responsible for access frequency situation of the storage client within the time cycle, storage Key assignments (Key-Value) storage (i.e. KV storages) system can be used to store client access frequency in server cluster.Frequency control is patrolled The granting of token can be responsible for, the storage of frequency control number, management frequency control strategy, black and white lists control, be directed to client by compiling group Personalized control (such as certain clients can reduce access frequency, and certain clients can increase access frequency, Ke Yijin The only access etc. of certain user) and management and the interaction of storage server cluster.After receiving token application request, frequency It controls the storage server collection pocket transmission token that logical group can be controlled to frequency in server cluster and updates request, token update is asked The information such as token quantity, service identification and client identification can be carried in asking, and enabled to be obtained from storage server cluster Board.
For example, as shown in fig. 6, access for customer end A in the time cycle 1, frequency controls logical group can be in week time Apply for token 1 to storage server cluster (and storage server cluster) according to token identifications 1 in phase 1, i.e., to storage server Collect pocket transmission token 1 and update request, storage server cluster can store customer end A in week time according to token identifications 1 at this time Access frequency situation in phase 1, the token identifications 1 can identify customer end A the time cycle 1 access times.Similarly, exist The access of time cycle 2, the access in the time cycle 3, the access in the time cycle 4 and the access etc. in the time cycle 5, Can be similar with the access in the time cycle 1, details are not described herein.
206, after receiving token update request, storage server cluster inquires the token bucket to prestore.
Storage server cluster can be previously stored with token bucket, and the token bucket is mainly in conjunction with frequency control proxy server Local token bucket controls the access frequency of client, and storage server cluster can be produced at interval of preset period of time Token, and token is stored into token bucket, if there are tokens in token bucket, access service can be provided for client, if Token is not present in token bucket, then does not provide access service for client.Each token in token bucket can be represented as visitor Family end provides the number of the service of access, and either, each token in token bucket can be represented as client and provide access clothes The period of business, either, each token in token bucket can represent time for providing the service of access in per second for client Number (i.e. the access frequency of client) etc..It is understood that the permission that token can represent can carry out according to actual needs Flexibly setting, particular content are not limited thereto.
Storage server cluster can inquire the token bucket to prestore, to judge token after receiving token update request It whether there is token in bucket.
207, when there are when token, reduce token application from token bucket to ask in the token bucket of storage server cluster inquiry Required token is sought, and update result is returned to frequency control logical group.
Storage server cluster, which can be inquired, whether there is token in the token bucket to prestore, when storage server cluster is inquired To, there are when token, storage server cluster can reduce the token needed for token application request from token bucket in token bucket, And update is returned as a result, the token needed for token update request, i.e. base can be carried in the update result to frequency control logical group In token update request token is returned to frequency control logical group.Frequency control logical group receives the order of storage server cluster return The token can be sent to frequency control proxy server by bridge queen.
When token is not present in the token bucket that the inquiry of storage server cluster prestores, can be returned to frequency control logical group Token application failure information, frequency control logical group and token application failure information are sent to access clothes by frequency control proxy server Business device, access server are refused to ask corresponding business to provide for Operational Visit based on the token application failure information received Access service.
For example, the access frequency for customer end A controls, it is assumed that control strategy is that customer end A is allowed to be accessed in 1 second 1000 times, when customer end A accesses in 1 second there are 1001 times, i.e., have in unix timestamps 1,510,112,115 1001 times When access, then in storage server cluster, the storage organization of the customer end A can be key:1510112115_1, value: 1001;Wherein, when receiving the 1001st Operational Visit request of customer end A transmission, the meeting backward reference frequency transfinites, while visitor The access denied of family end A achievees the purpose that precisely frequency is controlled.
208, after receiving update result, frequency control logical group returns to token application to frequency control proxy server and asks institute The token needed.
Frequency control logical group can extract token, and control to frequency after receiving update result from update result Proxy server returns to the token needed for token application request.The preset local token bucket of frequency control proxy server is had The load of effect shared frequency and control server cluster, reduces the access times that client controls frequency server cluster, can subtract significantly Few frequency controls the pressure of server cluster, can support the access buckles of bigger, while when frequency control server cluster goes wrong, industry Being engaged in server cluster can be by the access frequency of local token bucket control client, the reduction service server collection of maximum possible The fault-tolerance of group.
209, the token received is stored in local token bucket by frequency control proxy server, and reduces industry from local token bucket Token needed for access request of being engaged in.
Frequency control proxy server, can be with after receiving the token needed for the token application request that frequency control logical group returns Obtained token is stored to local token bucket;Then the token needed for Operational Visit request, root are reduced from local token bucket The access frequency of client is counted according to the token consumed in local token bucket.
The term of validity can be arranged in token in local token bucket, and the term of validity of a token can be using primary or more It is secondary, or use within a preset period of time.Frequency control proxy server obtains Operational Visit request institute from local token bucket When the token needed, if current time within the current token period, can not reduce the token in local token bucket;If worked as The preceding moment comes into next token cycle, then the order needed for Operational Visit request can be reduced from local token bucket Board.
210, frequency control proxy server generates frequency control as a result, and returning to frequency control result to access server.
Frequency control proxy server can generate frequency control according to the token reduced as a result, can carry permission in frequency control result The information of client access and token etc. return to frequency control result to access server.
211, after receiving frequency control result, access server asks corresponding business to provide access clothes for Operational Visit Business, with the corresponding business of processing business access request.
For access server after receiving frequency control result, it can be client that the information determination carried in result can be controlled according to frequency When end provides access service, the required token of Operational Visit request can be extracted from frequency control result, be that business is visited by token Ask that the corresponding business of request provides the service of access, with the corresponding business of processing business access request.
212, access server returns to service processing result to client.
Access server can generate service processing result after the corresponding business of processing business access request, and to visitor Family end returns to service processing result.
The embodiment of the present invention can be when service server cluster be accessed by high frequency, using token bucket to different clients Access frequency control effectively, and so as to protect the safety of service server cluster, and improves to access frequency The accuracy controlled.Also, it can effectively share frequency control using the preset local token bucket of frequency control proxy server to take The load of business device cluster so that there are one buffering, reduction clients pair between service server cluster and frequency control server cluster Frequency controls the access times of server cluster, can greatly reduce the pressure that frequency controls server cluster.
For ease of preferably implementing access frequency control method provided in an embodiment of the present invention, the embodiment of the present invention also provides A kind of device based on above-mentioned access frequency control method.The wherein meaning of noun and phase in above-mentioned access frequency control method Together, specific implementation details can be with the explanation in reference method embodiment.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of access frequency control device provided in an embodiment of the present invention, wherein should Access frequency control device may include the first receiving unit 301, determination unit 302, transmission unit 303 and control unit 304 Deng.
Wherein, the first receiving unit 301, the Operational Visit request for receiving client transmission, in Operational Visit request Carry client identification.
Wherein, client can be integrated in the terminals such as mobile phone or computer, when needing to execute some business in terminal, Operational Visit request can be sent to access frequency control device by client, the first receiving unit 301 receives the business and visits It asks request, the information such as service identification and client identification can be carried in Operational Visit request.The client identification can be Client name or client number etc. can be made of number, letter and/or word etc., and particular content does not limit here It is fixed.The type of Operational Visit request can be flexibly arranged according to actual needs, for example, it may be mail service access is asked Ask or microblogging Operational Visit request etc., particular content is not construed as limiting here.
Determination unit 302 for determining token bucket mark corresponding with client identification, and is inquired and token bucket mark pair The local token bucket answered.
In order to effectively control the access frequency of each client, access frequency control device can first pass through mark in advance Know the mapping relations safeguarded between client and local token bucket, that is, establishes the mapping between client identification and token bucket mark Relationship so that there are corresponding local token buckets for each client.Token bucket mark can be token bucket title or order Board bucket number etc. can be made of number, letter and/or word etc., and particular content is not construed as limiting here.
Wherein, token can be stored in local token bucket, local token bucket is mainly used for the access frequency to client It is controlled, for example, can be by indicating whether client can be allowed to access with the presence or absence of token in local token bucket, i.e., If there are tokens in local token bucket, access service can be provided for client, if token is not present in local token bucket, Access service is not provided for client.Each token in local token bucket can be represented as client and provide the service of access Number a, for example, token can provide one or many access services for client;Either, in local token bucket Each token can be represented as the period that client provides the service of access, such as a token can provide 1 for client Access service in second or 3 seconds;Either, each token in local token bucket, which can represent, provides in per second for client The number of service is accessed, i.e., each token in local token bucket can represent the interior number for allowing client to access per second (i.e. access frequency of client) etc..It is understood that the permission that token can represent can carry out spirit according to actual needs Setting living, particular content are not limited thereto.
The course of work of local token bucket may include:Token is generated, token is consumed and determines whether that client provides Access service etc..Wherein, it can periodically increase token into local token bucket with scheduled rate to generate token so that this Token in ground token bucket is on the increase, if token number is more than preset quantity threshold value in local token bucket, can be abandoned more Remaining token.Consumption token can be that the token accessed in consuming local token bucket when service is being provided for client, so as to Client access frequency is counted, which can be the number of interior access per second or the number etc. of interior access per minute.Sentence It is disconnected that whether to provide the service of access for client can be asked when the token quantity in local token bucket can meet Operational Visit When demand of the corresponding business to token, access service can be provided for client, be not otherwise that client provides access and services.
After the Operational Visit request for the carrying client identification for receiving client transmission, determination unit 302 can be from Client identification is extracted in Operational Visit request, and according to the mapping relations between client identification and token bucket mark, really Fixed token bucket mark corresponding with client identification.Then local token bucket corresponding with token bucket mark is obtained, this is inquired Ground token bucket, the local token bucket can be access frequency control device locally preset token buckets.I.e. when according to local token Token in bucket judges the access frequency of client, for example, when there are when token in local token bucket, it may be determined that client Access frequency is less than or equal to predetermined threshold value;When token is not present in local token bucket, it may be determined that the access frequency of client Rate is more than predetermined threshold value.
In some embodiments, as shown in Figure 10, access frequency control device can also include acquiring unit 305 and carry It, specifically can be as follows for unit 306 etc.:
Acquiring unit 305, for when, there are when token, acquisition Operational Visit is asked from local token bucket in local token bucket Seek required token;
Unit 306 is provided, for asking corresponding business to provide access service for Operational Visit according to the token got.
During inquiry local token bucket, when inquiring in local token bucket there are when token, illustrate the client Access frequency be less than or equal to predetermined threshold value, at this time acquiring unit 305 can obtain Operational Visit from local token bucket and ask Seek required token.Wherein, which can be flexibly arranged according to actual needs, the order needed for Operational Visit request The quantity of board can be one or more, when the quantity of the required token of Operational Visit request is multiple, can work as and inquire There are when the token needed for Operational Visit request in local token bucket, acquiring unit 305 obtains business visit from local token bucket Ask the token needed for request.After getting token, providing unit 306 can ask according to the token got for Operational Visit Corresponding business provides the service of access.
It should be noted that providing the service of access when each token in token bucket represents in each cycle for client When number, acquiring unit 305 is there are when token in inquiring local token bucket, it can be determined that whether current time, which needs, updates Token in local token bucket, for example, if current time still within the current token period, will not update in local token bucket Token;If current time comes into next new token cycle, Operational Visit is reduced from local token bucket Token needed for request updates the token in local token bucket.When token is updated successfully, it can be client to provide unit 306 End provides the service of access;When token updates failure, preset times can be retried, if success, it is client to provide unit 306 The service of access is provided, if failure, does not provide access service for client, and return to failure information to client.
Transmission unit 303 determines the access frequency of client more than default for working as according to the token in local token bucket When threshold value, to frequency control server set pocket transmission token application request.
During inquiry local token bucket, when the access frequency for determining the client according to the token in local token bucket When rate is more than predetermined threshold value, illustrate that the access frequency of the client is larger, for example, there is no enable when inquiring in local token bucket When board, it may be determined that the access frequency of the client is more than predetermined threshold value;Either, when inquiring the token in local token bucket When less than preset quantity, it may be determined that the access frequency of the client is more than predetermined threshold value;Wherein, preset quantity and predetermined threshold value Can flexibly it be arranged according to actual needs, particular content is not construed as limiting here.When according to the token in local token bucket When determining that the access frequency of client is more than predetermined threshold value, in order to determine whether to increase the access frequency of the client, this When transmission unit 303 can to frequency control server set pocket transmission token application request.
Wherein, frequency control server cluster can may include one or more, and multiple frequency control server clusters may include The frequency control server cluster of different type frequency control service is provided for multiple service server clusters, each in frequency control server cluster It may include that the frequency control server of multiple same frequency control types, a frequency control server can provide frequency for a service server and control Service.
In some embodiments, as shown in figure 9, transmission unit 303 may include judgment sub-unit 3031 and send sub Unit 3032 etc., specifically can be as follows:
Judgment sub-unit 3031, for judging client identification whether in preset white list;
Transmission sub-unit 3032, if for client identification in preset white list, to frequency control server set mass-sending Token application is sent to ask.
Specifically, access frequency control device can pre-set black and white lists, wherein limitation can be stored in blacklist The corresponding client identification of client of access frequency can only use in local token bucket the client in blacklist Token, when in local token bucket be not present token when, can not to frequency control server set pocket transmission token application request;White list In can store the corresponding client identification of client that can increase access frequency, i.e., for the client in white list, when It, can be to frequency control server set pocket transmission token application request when token being not present in local token bucket.
It is understood that access frequency control device can also pre-set unlimited access list and forbid accessing list Deng, wherein the client in unlimited access list can infinitely number access, and do not control its access frequency, prohibiting The client only accessed in list cannot access.
When determining that the access frequency of client is more than predetermined threshold value according to the token in local token bucket, judgment sub-unit Whether 3031 may determine that client identification in preset white list;If client identification is sent out in preset white list Send subelement 3032 to frequency control server set pocket transmission token application request.If client identification not in preset white list, Then do not refuse to provide access clothes for the corresponding client of the client identification to frequency control server set pocket transmission token application request Business.
Optionally, transmission sub-unit 3032 specifically can be used for:When client identification is in preset white list, pre- If producing token in the period;When the token of production cannot meet the required token of Operational Visit request, server set is controlled to frequency Pocket transmission token application is asked.
Specifically, the token in local token bucket can be that frequency control server cluster is pre-assigned, can also be local What token bucket produced in advance, the token quantity in the corresponding local token bucket of different clients can carry out according to actual needs Flexibly setting.When client identification is in preset white list, illustrate that the corresponding client of the client identification can increase Access frequency can produce the token of preset quantity every predetermined period, produce token in predetermined period at this time.When production When token cannot meet the token needed for Operational Visit request, transmission sub-unit 3032 can be enabled to frequency control server set pocket transmission Board application is asked.
In some embodiments, as shown in figure 11, access frequency control device can also include the second receiving unit 307 It, specifically can be as follows with refusal unit 308 etc.:
Second receiving unit 307, for when token is not present in the token bucket that frequency control server cluster inquiry prestores, connecing Receive the token application failure information that frequency control server cluster is returned based on token application request;
Refuse unit 308, for being based on token application failure information, refuses to ask corresponding business to provide for Operational Visit Access service.
Specifically, after being asked to frequency control server set pocket transmission token application, frequency control server cluster can be inquired pre- It whether there is token in the token bucket deposited, which is that frequency control server cluster is pre-set, can be stored in token bucket There is token, the representative meaning of token and the course of work of token bucket are similar with local token bucket in the token bucket, here It repeats no more.When frequency control server cluster inquires, and token is not present in token bucket, illustrate current each client access frequency Larger, this time-frequency control server cluster asks unsuccessfully to believe to the return token application of access frequency control device based on token application Breath, the second receiving unit 307 receive the token application failure information.After receiving token application failure information, refuse unit 308 can refuse to ask corresponding business to provide access service for Operational Visit.So as to effective solution in client stream Amount uprush (i.e. access frequency is uprushed) when, neatly limitation client access frequency, to protect access frequency control device Safety and stabilization.
It should be noted that frequency control server cluster can ask after receiving token application request from token application In extract Operational Visit request need access service server mark, according to pre-set service server mark with frequency The mapping relations between server identification are controlled, determine frequency control server identification corresponding with service server mark, from frequency control clothes It is engaged in obtaining the corresponding frequency control server of frequency control server identification in device cluster.Frequency control server can inquire the token bucket to prestore In token, when the frequency control server inquire in token bucket be not present token when, frequency control server to access frequency control fill The token application failure information for setting return, when frequency control server inquires, and token is not present in token bucket, frequency controls server The token needed for token application request is returned to access frequency control device.
Control unit 304, the token returned based on token application request for receiving frequency control server cluster, and according to To token ask corresponding business to provide access service for Operational Visit.
After being asked to frequency control server set pocket transmission token application, frequency, which controls server cluster, can inquire the token to prestore It whether there is token in bucket, when frequency control server cluster is inquired there are when token in token bucket, frequency is controlled server cluster and is based on Token application asks to return to token to control unit 304.Control unit 304 receives the token that frequency control server cluster returns, and Corresponding business is asked to provide access service for Operational Visit according to obtained token.The preset local of access frequency control device Token bucket can effectively share the load that frequency controls server cluster so that access frequency control device and frequency control server cluster Between there are one buffering, reduce client to frequency control server cluster access times, can greatly reduce frequency control server set The pressure of group can support the access buckles of bigger, while when frequency control server cluster goes wrong, access frequency control device Can by local token bucket control client access frequency, the reduction access frequency control device of maximum possible it is fault-tolerant Property.
In some embodiments, as shown in figure 8, control unit 304 may include storing sub-units 3041, obtain son list Member 3042 and offer subelement 3043 etc., specifically can be as follows:
Storing sub-units 3041, for storing obtained token to local token bucket;
Subelement 3042 is obtained, for obtaining the token needed for Operational Visit request from local token bucket;
Subelement 3043 is provided, for the token needed for the Operational Visit request got, is asked for Operational Visit Corresponding business provides the service of access.
Specifically, after receiving the token that frequency control server cluster is returned based on token application request, for the ease of right The access frequency of client is counted, and storing sub-units 3041 can store obtained token to local token bucket;Then It obtains subelement 3042 and obtains the required token of Operational Visit request from local token bucket, according to what is consumed in local token bucket Token counts the access frequency of client, and provide subelement 3043 can be according to needed for the Operational Visit request got Token, ask corresponding business to provide access service, the i.e. corresponding business of processing business access request for Operational Visit.
Optionally, subelement 3042 is obtained specifically to can be used for:Judge current time whether within the current token period;If Current time obtains the required token of Operational Visit request not within the current token period, then from local token bucket, and update is originally Token quantity in ground token bucket.
Can be the token setting term of validity in local token bucket, the term of validity of a token can be using primary or more It is secondary, or use within a preset period of time.It obtains subelement 3042 and obtains Operational Visit request institute from local token bucket When the token needed, it can be determined that whether current time needs to update the token quantity in local token bucket, that is, judges current time Whether within the current token period, if current time within the current token period, need not update in local token bucket Token quantity;If current time comes into next token cycle, from local token bucket reduces Operational Visit and ask Required token is sought, the token quantity in local token bucket is updated.When token quantity is updated successfully, can be provided for client Access service;When token quantity updates failure, preset times can be retried, if success, access service is provided for client, If failure, access service is not provided for client, and return to failure information to client.
From the foregoing, it will be observed that the embodiment of the present invention receives the carrying client mark of client transmission in the first receiving unit 301 When the Operational Visit request of knowledge, determination unit 302 can determine token bucket mark corresponding with client identification, and inquire and enable The corresponding local token bucket of board bucket mark;It is preset when determining that the access frequency of client is more than according to the token in local token bucket When threshold value, transmission unit 303 is asked to frequency control server set pocket transmission token application;Then control unit 304 receives frequency control clothes The token that business device cluster is returned based on token application request, and be that Operational Visit asks corresponding business to carry according to obtained token It is serviced for accessing.The program can safeguard the token in the corresponding local token bucket of each client according to client identification, with And the token in the token bucket to prestore, the access by the token in token bucket to client are safeguarded by frequency control server cluster Frequency control effectively, and improves the accuracy controlled access frequency.
The embodiment of the present invention also provides a kind of server, which can be any business in service server cluster Server, as shown in figure 12, it illustrates the structural schematic diagrams of the server involved by the embodiment of the present invention, specifically:
The server may include one or processor 401, one or more meters of more than one processing core The components such as memory 402, power supply 403 and the input unit 404 of calculation machine readable storage medium storing program for executing.Those skilled in the art can manage It solves, server architecture does not constitute the restriction to server shown in Figure 12, may include than illustrating more or fewer portions Part either combines certain components or different components arrangement.Wherein:
Processor 401 is the control centre of the server, utilizes each of various interfaces and the entire server of connection Part by running or execute the software program and/or module that are stored in memory 402, and calls and is stored in memory Data in 402, the various functions and processing data of execute server, to carry out integral monitoring to server.Optionally, locate Reason device 401 may include one or more processing cores;Preferably, processor 401 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 401.
Memory 402 can be used for storing software program and module, and processor 401 is stored in memory 402 by operation Software program and module, to perform various functions application and data processing.Memory 402 can include mainly storage journey Sequence area and storage data field, wherein storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created data according to server Deng.In addition, memory 402 may include high-speed random access memory, can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 402 can also include Memory Controller, to provide access of the processor 401 to memory 402.
Server further includes the power supply 403 powered to all parts, it is preferred that power supply 403 can pass through power management system System is logically contiguous with processor 401, to realize the work(such as management charging, electric discharge and power managed by power-supply management system Energy.Power supply 403 can also include one or more direct current or AC power, recharging system, power failure monitor electricity The random components such as road, power supply changeover device or inverter, power supply status indicator.
The server may also include input unit 404, which can be used for receiving the number or character letter of input Breath, and generation keyboard related with user setting and function control, mouse, operating lever, optics or trace ball signal are defeated Enter.
Although being not shown, server can also be including display unit etc., and details are not described herein.Specifically in the present embodiment, Processor 401 in server can according to following instruction, by the process of one or more application program is corresponding can It executes file to be loaded into memory 402, and the application program being stored in memory 402 is run by processor 401, to Realize various functions, it is as follows:
The Operational Visit request that client is sent is received, client identification is carried in Operational Visit request;Determining and client End identifies corresponding token bucket mark, and inquires local token bucket corresponding with token bucket mark;When according in local token bucket Token determine client access frequency be more than predetermined threshold value when, to frequency control server set pocket transmission token application request;It connects The token that frequency control server cluster is returned based on token application request is received, and is that Operational Visit request corresponds to according to obtained token Business provide access service.
From the foregoing, it will be observed that Operational Visit request of the embodiment of the present invention in the carrying client identification for receiving client transmission When, it may be determined that token bucket mark corresponding with client identification, and inquire local token bucket corresponding with token bucket mark;When When determining that the access frequency of client is more than predetermined threshold value according to the token in local token bucket, server set pocket transmission is controlled to frequency Token application is asked;Then the token that frequency control server cluster is returned based on token application request is received, and according to obtained order Board asks corresponding business to provide access service for Operational Visit.The program can safeguard each client according to client identification Token in corresponding local token bucket, and the token in the token bucket to prestore is safeguarded by frequency control server cluster, pass through Token in token bucket control effectively to the access frequency of client, improve access frequency is controlled it is accurate Property.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, the detailed description above with respect to access frequency control method is may refer to, details are not described herein again.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with It is completed by instructing, or controls relevant hardware by instructing and complete, which can be stored in one and computer-readable deposit In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be handled Device is loaded, to execute the step in any access frequency control method that the embodiment of the present invention is provided.For example, this refers to Order can execute following steps:
The Operational Visit request that client is sent is received, client identification is carried in Operational Visit request;Determining and client End identifies corresponding token bucket mark, and inquires local token bucket corresponding with token bucket mark;When according in local token bucket Token determine client access frequency be more than predetermined threshold value when, to frequency control server set pocket transmission token application request;It connects The token that frequency control server cluster is returned based on token application request is received, and is that Operational Visit request corresponds to according to obtained token Business provide access service.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include:Read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any access frequency that the embodiment of the present invention is provided can be executed Step in rate control method, it is thereby achieved that any access frequency control method institute that the embodiment of the present invention is provided The advantageous effect that can be realized, refers to the embodiment of front, details are not described herein.
A kind of access frequency control method, device and storage medium is provided for the embodiments of the invention above to have carried out in detail Thin to introduce, principle and implementation of the present invention are described for specific case used herein, and above example is said The bright method and its core concept for being merely used to help understand the present invention;Meanwhile for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (15)

1. a kind of access frequency control method, which is characterized in that including:
The Operational Visit request that client is sent is received, client identification is carried in the Operational Visit request;
It determines token bucket mark corresponding with the client identification, and inquires local token corresponding with token bucket mark Bucket;
When determining that the access frequency of the client is more than predetermined threshold value according to the token in the local token bucket, controlled to frequency Server set pocket transmission token application is asked;
The token that the frequency control server cluster is returned based on token application request is received, and is institute according to obtained token Stating Operational Visit asks corresponding business to provide the service of access.
2. access frequency control method according to claim 1, which is characterized in that the token that the basis obtains is described Operational Visit asks corresponding business to provide the step of accessing service:
Obtained token is stored to the local token bucket;
The token needed for the Operational Visit request is obtained from the local token bucket;
According to the token needed for the Operational Visit request got, corresponding business is asked to provide visit for the Operational Visit The service of asking.
3. access frequency control method according to claim 2, which is characterized in that described to be obtained from the local token bucket The step of taking the token needed for Operational Visit request include:
Judge current time whether within the current token period;
If current time not within the current token period, obtains needed for the Operational Visit request from the local token bucket Token, update the token quantity in the local token bucket.
4. access frequency control method according to claim 1, which is characterized in that described to control server set pocket transmission to frequency Token application ask the step of include:
Judge the client identification whether in preset white list;
If the client identification is in preset white list, to frequency control server set pocket transmission token application request.
5. access frequency control method according to claim 4, which is characterized in that if the client identification is pre- If white list in, then to frequency control server set pocket transmission token application ask the step of include:
When the client identification is in preset white list, token is produced in predetermined period;
When the token of production cannot meet the required token of the Operational Visit request, server set pocket transmission token is controlled to frequency Application request.
6. access frequency control method according to any one of claims 1 to 5, which is characterized in that the determination with it is described The corresponding token bucket mark of client identification, and after the step of inquiring local token bucket corresponding with token bucket mark, The method further includes:
When, there are when token, being obtained from the local token bucket needed for the Operational Visit request in the local token bucket Token;
Corresponding business is asked to provide access service for the Operational Visit according to the token got.
7. access frequency control method according to any one of claims 1 to 5, which is characterized in that described when according to local When token in token bucket determines that the access frequency of client is more than predetermined threshold value, server set pocket transmission token application is controlled to frequency After the step of request, the method further includes:
When token is not present in the token bucket that frequency control server cluster inquiry prestores, the frequency control server cluster is received The token application failure information returned based on token application request;
Based on the token application failure information, refuse to ask corresponding business to provide access service for the Operational Visit.
8. a kind of access frequency control device, which is characterized in that including:
First receiving unit, the Operational Visit request for receiving client transmission carry client in the Operational Visit request End mark;
Determination unit for determining token bucket mark corresponding with the client identification, and is inquired and is identified with the token bucket Corresponding local token bucket;
Transmission unit, for default when determining that the access frequency of the client is more than according to the token in the local token bucket When threshold value, to frequency control server set pocket transmission token application request;
Control unit, the token returned based on token application request for receiving the frequency control server cluster, and according to Obtained token asks corresponding business to provide access service for the Operational Visit.
9. access frequency control device according to claim 8, which is characterized in that described control unit includes:
Storing sub-units, for storing obtained token to the local token bucket;
Subelement is updated, for obtaining the token needed for the Operational Visit request from the local token bucket;
Subelement is provided, for the token needed for the Operational Visit request got, is asked for the Operational Visit Corresponding business provides the service of access.
10. access frequency control device according to claim 9, which is characterized in that the update subelement is specifically used for:
Judge current time whether within the current token period;
If current time not within the current token period, obtains needed for the Operational Visit request from the local token bucket Token, update the token quantity in the local token bucket.
11. access frequency control device according to claim 8, which is characterized in that the transmission unit includes:
Judgment sub-unit, for judging the client identification whether in preset white list;
Transmission sub-unit enables if for the client identification in preset white list to frequency control server set pocket transmission Board application is asked.
12. access frequency control device according to claim 11, which is characterized in that the transmission sub-unit is specifically used In:
When the client identification is in preset white list, token is produced in predetermined period;
When the token of production cannot meet the required token of the Operational Visit request, server set pocket transmission token is controlled to frequency Application request.
13. according to claim 8 to 12 any one of them access frequency control device, which is characterized in that the access frequency Control device further includes:
Acquiring unit, for when, there are when token, the business being obtained from the local token bucket in the local token bucket Token needed for access request;
Unit is provided, for asking corresponding business to provide access service for the Operational Visit according to the token got.
14. according to claim 8 to 12 any one of them access frequency control device, which is characterized in that the access frequency Control device further includes:
Second receiving unit, for when token is not present in the token bucket that frequency control server cluster inquiry prestores, receiving The token application failure information that the frequency control server cluster is returned based on token application request;
Refuse unit, for being based on the token application failure information, refuses to ask corresponding business to carry for the Operational Visit It is serviced for accessing.
15. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in 1 to 7 any one of them access frequency control method is required with perform claim.
CN201810191962.8A 2018-03-08 2018-03-08 Access frequency control method, device and storage medium Active CN108494703B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810191962.8A CN108494703B (en) 2018-03-08 2018-03-08 Access frequency control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810191962.8A CN108494703B (en) 2018-03-08 2018-03-08 Access frequency control method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108494703A true CN108494703A (en) 2018-09-04
CN108494703B CN108494703B (en) 2022-05-06

Family

ID=63338068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810191962.8A Active CN108494703B (en) 2018-03-08 2018-03-08 Access frequency control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108494703B (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109298939A (en) * 2018-09-26 2019-02-01 腾讯科技(深圳)有限公司 Access frequency control method, device, system and the server of distributed system
CN109587072A (en) * 2019-01-04 2019-04-05 中企动力科技股份有限公司 Distributed system overall situation speed limiting system and method
CN109787915A (en) * 2018-12-14 2019-05-21 北京三快在线科技有限公司 Flow control methods, device, electronic equipment and the storage medium of network access
CN109981779A (en) * 2019-03-27 2019-07-05 掌阅科技股份有限公司 Service providing method, server and computer storage medium
CN110213173A (en) * 2019-06-06 2019-09-06 北京百度网讯科技有限公司 Flow control methods and device, system, server, computer-readable medium
CN110276182A (en) * 2019-06-10 2019-09-24 必成汇(成都)科技有限公司 The implementation method of API distribution current limliting
CN110417888A (en) * 2019-07-30 2019-11-05 中国工商银行股份有限公司 Flow control methods, volume control device and electronic equipment
CN110535785A (en) * 2019-08-29 2019-12-03 郑州阿帕斯科技有限公司 A kind of control method, device and distributed system sending frequency
CN110618878A (en) * 2019-08-12 2019-12-27 网联清算有限公司 Final state notification speed control method and device
CN110943934A (en) * 2019-11-19 2020-03-31 上海钧正网络科技有限公司 Service request processing method, system, terminal and readable storage medium
CN110971470A (en) * 2019-12-27 2020-04-07 苏州思必驰信息科技有限公司 Weight-supporting private cloud service cluster current limiting method and system
CN111078391A (en) * 2018-10-22 2020-04-28 阿里巴巴集团控股有限公司 Service request processing method, device and equipment
CN111291367A (en) * 2018-12-06 2020-06-16 北京京东尚科信息技术有限公司 Access control method and system, electronic device and storage medium
CN111314238A (en) * 2020-02-03 2020-06-19 网银在线(北京)科技有限公司 Token management method and device, storage medium and electronic device
CN111343102A (en) * 2020-02-03 2020-06-26 中国银联股份有限公司 Flow rate control method, server-side server, client-side server and system
CN111352967A (en) * 2020-02-27 2020-06-30 携程旅游网络技术(上海)有限公司 Frequency control method, system, device and medium for sliding window algorithm
CN111404836A (en) * 2020-03-30 2020-07-10 北京小米移动软件有限公司 Data transmission control method, device, control center, server and medium
CN111641563A (en) * 2020-05-28 2020-09-08 深圳壹账通智能科技有限公司 Flow self-adaption method and system based on distributed scene
CN111770126A (en) * 2019-06-28 2020-10-13 北京京东尚科信息技术有限公司 Service request processing method, device and storage medium
CN111782692A (en) * 2020-06-01 2020-10-16 京东数字科技控股有限公司 Frequency control method and device
CN112104567A (en) * 2020-09-03 2020-12-18 中国银联股份有限公司 Flow control method, device, equipment and medium
CN113051079A (en) * 2021-03-31 2021-06-29 淄博职业学院 Computer overload protection device
CN113783923A (en) * 2021-03-31 2021-12-10 北京沃东天骏信息技术有限公司 Web page anti-brush processing method, device, equipment and storage medium
CN114553791A (en) * 2022-01-19 2022-05-27 浙江百应科技有限公司 External interface current limiting method and device, electronic equipment and storage medium
CN114826774A (en) * 2022-06-02 2022-07-29 天翼数字生活科技有限公司 Terminal device log request control method, server and system
CN115277577A (en) * 2022-09-28 2022-11-01 平安银行股份有限公司 Data processing method, data processing device, computer equipment and computer readable storage medium
CN115442432A (en) * 2022-09-06 2022-12-06 上海浦东发展银行股份有限公司 Control method, device, equipment and storage medium
CN115442432B (en) * 2022-09-06 2024-06-07 上海浦东发展银行股份有限公司 Control method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834786A (en) * 2010-04-15 2010-09-15 华为技术有限公司 Queue scheduling method and device
CN104219169A (en) * 2014-09-30 2014-12-17 杭州华三通信技术有限公司 CBQ (Class Based Queuing) scheduling method and device
US20140380330A1 (en) * 2013-06-25 2014-12-25 Amazon Technologies, Inc. Token sharing mechanisms for burst-mode operations
CN104580113A (en) * 2013-10-25 2015-04-29 腾讯科技(深圳)有限公司 Method and device for processing external request
CN107332861A (en) * 2017-08-11 2017-11-07 杭州亿方云网络科技有限公司 A kind of open platform architecture system based on OAuth agreements
CN107579926A (en) * 2017-10-20 2018-01-12 南京易捷思达软件科技有限公司 The QoS methods to set up of Ceph cloud storage systems based on token bucket algorithm

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834786A (en) * 2010-04-15 2010-09-15 华为技术有限公司 Queue scheduling method and device
US20140380330A1 (en) * 2013-06-25 2014-12-25 Amazon Technologies, Inc. Token sharing mechanisms for burst-mode operations
CN104580113A (en) * 2013-10-25 2015-04-29 腾讯科技(深圳)有限公司 Method and device for processing external request
CN104219169A (en) * 2014-09-30 2014-12-17 杭州华三通信技术有限公司 CBQ (Class Based Queuing) scheduling method and device
CN107332861A (en) * 2017-08-11 2017-11-07 杭州亿方云网络科技有限公司 A kind of open platform architecture system based on OAuth agreements
CN107579926A (en) * 2017-10-20 2018-01-12 南京易捷思达软件科技有限公司 The QoS methods to set up of Ceph cloud storage systems based on token bucket algorithm

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一溪酒: ""redis之频率限制"", 《HTTPS://WWW.JIANSHU.COM/P/C1B8CC61203E》 *

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109298939A (en) * 2018-09-26 2019-02-01 腾讯科技(深圳)有限公司 Access frequency control method, device, system and the server of distributed system
CN109298939B (en) * 2018-09-26 2021-04-20 腾讯科技(深圳)有限公司 Access frequency control method, device and system of distributed system and server
CN111078391A (en) * 2018-10-22 2020-04-28 阿里巴巴集团控股有限公司 Service request processing method, device and equipment
CN111291367A (en) * 2018-12-06 2020-06-16 北京京东尚科信息技术有限公司 Access control method and system, electronic device and storage medium
CN109787915A (en) * 2018-12-14 2019-05-21 北京三快在线科技有限公司 Flow control methods, device, electronic equipment and the storage medium of network access
CN109587072A (en) * 2019-01-04 2019-04-05 中企动力科技股份有限公司 Distributed system overall situation speed limiting system and method
CN109981779A (en) * 2019-03-27 2019-07-05 掌阅科技股份有限公司 Service providing method, server and computer storage medium
CN110213173A (en) * 2019-06-06 2019-09-06 北京百度网讯科技有限公司 Flow control methods and device, system, server, computer-readable medium
CN110213173B (en) * 2019-06-06 2023-03-24 北京百度网讯科技有限公司 Flow control method and device, system, server and computer readable medium
CN110276182A (en) * 2019-06-10 2019-09-24 必成汇(成都)科技有限公司 The implementation method of API distribution current limliting
CN111770126B (en) * 2019-06-28 2023-08-04 北京京东尚科信息技术有限公司 Service request processing method, device and storage medium
CN111770126A (en) * 2019-06-28 2020-10-13 北京京东尚科信息技术有限公司 Service request processing method, device and storage medium
CN110417888A (en) * 2019-07-30 2019-11-05 中国工商银行股份有限公司 Flow control methods, volume control device and electronic equipment
CN110618878B (en) * 2019-08-12 2022-02-01 网联清算有限公司 Final state notification speed control method and device
CN110618878A (en) * 2019-08-12 2019-12-27 网联清算有限公司 Final state notification speed control method and device
CN110535785A (en) * 2019-08-29 2019-12-03 郑州阿帕斯科技有限公司 A kind of control method, device and distributed system sending frequency
CN110943934A (en) * 2019-11-19 2020-03-31 上海钧正网络科技有限公司 Service request processing method, system, terminal and readable storage medium
CN110971470A (en) * 2019-12-27 2020-04-07 苏州思必驰信息科技有限公司 Weight-supporting private cloud service cluster current limiting method and system
CN111343102A (en) * 2020-02-03 2020-06-26 中国银联股份有限公司 Flow rate control method, server-side server, client-side server and system
CN111314238A (en) * 2020-02-03 2020-06-19 网银在线(北京)科技有限公司 Token management method and device, storage medium and electronic device
CN111314238B (en) * 2020-02-03 2023-12-05 网银在线(北京)科技有限公司 Token management method and device, storage medium and electronic device
CN111343102B (en) * 2020-02-03 2023-09-26 中国银联股份有限公司 Flow rate control method, server, client server and system
CN111352967A (en) * 2020-02-27 2020-06-30 携程旅游网络技术(上海)有限公司 Frequency control method, system, device and medium for sliding window algorithm
CN111352967B (en) * 2020-02-27 2024-02-06 携程旅游网络技术(上海)有限公司 Frequency control method, system, equipment and medium of sliding window algorithm
CN111404836A (en) * 2020-03-30 2020-07-10 北京小米移动软件有限公司 Data transmission control method, device, control center, server and medium
CN111404836B (en) * 2020-03-30 2023-09-12 北京小米移动软件有限公司 Data transmission control method, device, control center, server and medium
CN111641563B (en) * 2020-05-28 2022-11-01 深圳壹账通智能科技有限公司 Flow self-adaption method and system based on distributed scene
CN111641563A (en) * 2020-05-28 2020-09-08 深圳壹账通智能科技有限公司 Flow self-adaption method and system based on distributed scene
CN111782692A (en) * 2020-06-01 2020-10-16 京东数字科技控股有限公司 Frequency control method and device
CN111782692B (en) * 2020-06-01 2024-04-16 京东科技控股股份有限公司 Frequency control method and device
CN112104567A (en) * 2020-09-03 2020-12-18 中国银联股份有限公司 Flow control method, device, equipment and medium
CN112104567B (en) * 2020-09-03 2022-11-18 中国银联股份有限公司 Flow control method, device, equipment and medium
CN113051079B (en) * 2021-03-31 2022-03-01 淄博职业学院 Computer overload protection device
CN113783923A (en) * 2021-03-31 2021-12-10 北京沃东天骏信息技术有限公司 Web page anti-brush processing method, device, equipment and storage medium
CN113051079A (en) * 2021-03-31 2021-06-29 淄博职业学院 Computer overload protection device
CN114553791A (en) * 2022-01-19 2022-05-27 浙江百应科技有限公司 External interface current limiting method and device, electronic equipment and storage medium
CN114826774A (en) * 2022-06-02 2022-07-29 天翼数字生活科技有限公司 Terminal device log request control method, server and system
CN114826774B (en) * 2022-06-02 2024-01-30 天翼数字生活科技有限公司 Log request control method, server side and system for terminal equipment
CN115442432A (en) * 2022-09-06 2022-12-06 上海浦东发展银行股份有限公司 Control method, device, equipment and storage medium
CN115442432B (en) * 2022-09-06 2024-06-07 上海浦东发展银行股份有限公司 Control method, device, equipment and storage medium
CN115277577A (en) * 2022-09-28 2022-11-01 平安银行股份有限公司 Data processing method, data processing device, computer equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN108494703B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN108494703A (en) A kind of access frequency control method, device and storage medium
CN103384255B (en) The load-balancing method of cluster virtual machine, server and system
CN110276182A (en) The implementation method of API distribution current limliting
CN108924221A (en) The method and apparatus for distributing resource
US20140344460A1 (en) Brokering network resources
CN104623898B (en) A kind of method and game server into game transcript scene
CN110287660A (en) Access right control method, device, equipment and storage medium
US20060200469A1 (en) Global session identifiers in a multi-node system
CN106155812A (en) Method, device, system and the electronic equipment of a kind of resource management to fictitious host computer
CN104168333A (en) Working method of PROXZONE service platform
CN110276184A (en) A kind of cloud computing resources authorization method and device
CN110471749A (en) Task processing method, device, computer readable storage medium and computer equipment
CN105847277A (en) Service account share management method and system used for third party application
CN102868770A (en) Method, equipment and system for distributing interface
CN110308985A (en) The exclusive server resource management method, apparatus of cloud, equipment and storage medium
CN104518873A (en) Anonymous login method and device
CN110008694A (en) A kind of application security control method, device, equipment and readable storage medium storing program for executing
CN108205622A (en) The authority control method and device of a kind of application program for mobile terminal
CN111768174A (en) Activity management method, apparatus, device and medium
US20220286564A1 (en) Method and Apparatus for Dynamic Realtime Sharing of Credit Units for Online Charging
CN105635124A (en) Flow control method and device
CN105991571B (en) A kind of information processing method and device
CN113506100A (en) Alliance link data processing method and device, computer equipment and storage medium
Tang et al. Pricing model for dynamic resource overbooking in edge computing
CN109600254A (en) The generation method and related system of full link log

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