CN108712350B - Flow control method and device capable of automatically regulating and controlling in real time based on custom rule - Google Patents
Flow control method and device capable of automatically regulating and controlling in real time based on custom rule Download PDFInfo
- Publication number
- CN108712350B CN108712350B CN201810569412.5A CN201810569412A CN108712350B CN 108712350 B CN108712350 B CN 108712350B CN 201810569412 A CN201810569412 A CN 201810569412A CN 108712350 B CN108712350 B CN 108712350B
- Authority
- CN
- China
- Prior art keywords
- flow control
- current
- flow
- value
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2475—Traffic characterised by specific attributes, e.g. priority or QoS for supporting traffic characterised by the type of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2483—Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a flow control method capable of automatically regulating and controlling in real time based on a custom rule, wherein when a transaction message is received, the flow control rule in a shared memory is traversed, and when a target flow control rule corresponding to the transaction message does not exist in the shared memory, the flow control is not carried out, and the transaction is directly processed; and when the target flow control rule exists, acquiring a target flow control strategy which corresponds to the transaction message and the target flow control rule in the shared memory at the same time, acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in the target flow control strategy, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value, and controlling the flow of the transaction according to the current flow value, the current maximum flow value and the maximum flow threshold value in the target flow control strategy. The method and the device realize flow control according to the current flow, the reference flow value threshold and the emergency flow threshold in practical application, so that the flow control is more intelligent, efficient and flexible.
Description
Technical Field
The invention relates to the technical field of flow control, in particular to a flow control method and a flow control device capable of automatically regulating and controlling in real time based on a custom rule.
Background
With the rapid development of network technologies, internet financial transactions have grown at an alarming rate. In order to timely and effectively process these increasing transactions, limited resources need to be fully and efficiently utilized, and therefore, reasonable and effective flow control needs to be performed on high-concurrency and high-flow transactions so as to ensure that the transactions are orderly processed. Meanwhile, with the rise of network sales promotion such as twenty-one, the situation that multiple merchants trade at the same time or a single merchant trade at the same time goes high can occur, so that the strategy needs to be timely and effectively adjusted according to specific situations, and the requirement of each merchant can be met as far as possible on the premise that the overall stability of the system is not affected.
The current flow control method is almost realized in a network layer, the flow control based on roles is realized by analyzing an access request in the network layer, a gateway is deployed between a user and a website server, the flow control is realized by a user verification and access control module of the gateway, only network layer access control mechanisms such as IP, ports, user names and certificates can be provided, the specific request content of an application layer cannot be analyzed, the flow control cannot be automatically regulated and controlled through specific application scenes, the rule is single, the self-adaptive regulation and expansion cannot be realized, and the method has limitation in practical application.
Disclosure of Invention
In view of this, the invention provides a flow control method and device capable of real-time automatic regulation and control based on a custom rule, which makes the flow control rule in practical application, so that the flow control is more intelligent, efficient and flexible.
In order to achieve the above purpose, the invention provides the following specific technical scheme:
a flow control method capable of being automatically regulated and controlled in real time based on a custom rule comprises the following steps:
traversing the flow control rules in the shared memory when receiving the transaction message;
judging whether a target flow control rule corresponding to the transaction message exists in a shared memory;
if not, directly processing the transaction corresponding to the transaction message without flow control;
if the transaction message exists, acquiring a target flow control strategy which corresponds to the transaction message and the target flow control rule in the shared memory at the same time, and acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in the target flow control strategy, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value;
judging whether the value obtained by adding 1 to the current flow value is larger than the current maximum flow value or not;
if the current maximum flow value is not larger than the current maximum flow value, adding 1 to the current flow value, and processing the transaction corresponding to the transaction message;
if the current flow value is larger than the current maximum flow value, judging whether the value obtained by adding 1 to the current flow value is larger than the maximum flow threshold value;
if the current flow is larger than the maximum flow threshold, prompting that the current flow is full, and the transaction corresponding to the transaction message is in a waiting state;
and if the current flow value is not greater than the maximum flow threshold value, adding 1 to the current flow value, updating the current maximum flow value according to a preset rule, and processing the transaction corresponding to the transaction message.
Optionally, the determining whether the target traffic control rule corresponding to the transaction packet exists in the shared memory includes:
acquiring a label of a current flow control rule, wherein the current flow control rule is a current traversing flow control rule;
judging whether the label exists in the transaction message or not;
if the label does not exist, judging whether the current flow control rule is the last flow control rule in the shared memory;
if the flow control rule is the last flow control rule, ending traversal of the flow control rules in the shared memory, and if the flow control rule corresponding to the transaction message is not detected, judging that the target flow control rule corresponding to the transaction message does not exist in the shared memory;
if not, taking the next flow control rule of the current flow control rule in the shared memory as a new current flow control rule, and returning to execute the label for acquiring the current flow control rule;
if the label exists, the current flow control rule is judged to be the target flow control rule corresponding to the transaction message, and the judgment whether the current flow control rule is the last flow control rule in the shared memory is returned to be executed.
Optionally, the obtaining of the target traffic control policy in the shared memory, which corresponds to the transaction packet and the target traffic control rule at the same time, includes:
acquiring a label in a target flow control rule corresponding to the transaction message and a corresponding label value in the transaction message;
and traversing the flow control strategy in the shared memory, and acquiring the target flow control strategy which simultaneously comprises the label in the target flow control rule corresponding to the transaction message and the corresponding label value in the transaction message.
Optionally, when a plurality of target traffic control policies exist in the shared memory, the method further includes:
acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in all the target flow control strategies, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value;
judging whether each target flow control strategy has a target flow control strategy of which the value obtained by adding 1 to the current flow value is larger than the corresponding maximum flow threshold value;
if yes, prompting that the current flow is full, and the transaction corresponding to the transaction message is in a waiting state;
if not, traversing each target flow control strategy, and acquiring a current target flow control strategy, wherein the current target flow control strategy is the currently traversed target flow control strategy;
judging whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not;
if the current flow value is not larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, and judging whether the current target flow control strategy is the last flow control strategy in all the target flow control strategies;
if so, processing the transaction corresponding to the transaction message;
if not, determining the next target flow control strategy of the current target flow control strategy in all the target flow control strategies as a new current target flow control strategy, and returning to execute the judgment whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not;
if the current flow value is larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, updating the current maximum flow value in the current target flow control strategy according to a preset rule, and returning to execute the judgment of whether the current target flow control strategy is the last target flow control strategy in all the target flow control strategies.
Optionally, the method further includes:
monitoring the flow of the transaction object corresponding to each flow control strategy in the shared memory in real time;
for each flow control strategy, when the monitored flow of the transaction object in the preset time period is smaller than the reference flow threshold value in the flow control strategy, the reference flow threshold value is used as the current maximum flow value in the flow control strategy.
Optionally, the flow control rules and the flow control policies are stored, updated, added, deleted, and edited based on the shared memory in the distributed memory object cache system.
A flow control device capable of being automatically regulated and controlled in real time based on a custom rule comprises:
the traversing unit is used for traversing the flow control rules in the shared memory when the transaction message is received;
the first judging unit is used for judging whether a target flow control rule corresponding to the transaction message exists in the shared memory;
if the transaction message does not exist, triggering a transaction processing unit for directly processing the transaction corresponding to the transaction message without flow control;
if the transaction message exists, triggering an obtaining unit, which is used for obtaining a target flow control strategy which is simultaneously corresponding to the transaction message and the target flow control rule in the shared memory, and obtaining a current flow value, a current maximum flow value and a maximum flow threshold value in the target flow control strategy, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value;
the second judging unit is used for judging whether the value obtained by adding 1 to the current flow value is larger than the current maximum flow value or not;
if the current maximum flow value is not larger than the maximum flow value, triggering a first rule updating unit for adding 1 to the current flow value and processing the transaction corresponding to the transaction message;
if the current flow value is larger than the current maximum flow value, triggering a third judging unit for judging whether the value obtained by adding 1 to the current flow value is larger than the maximum flow threshold value;
if the current flow rate is greater than the maximum flow rate threshold value, triggering a prompting unit for prompting that the current flow rate is full and the transaction corresponding to the transaction message is in a waiting state;
and if the current flow value is not greater than the maximum flow threshold value, triggering a second rule updating unit, and adding 1 to the current flow value, updating the current maximum flow value according to a preset rule, and processing the transaction corresponding to the transaction message.
Alternatively to this, the first and second parts may,
the first judging unit is specifically configured to acquire a label of a current flow control rule, where the current flow control rule is a flow control rule that is currently being traversed; judging whether the label exists in the transaction message or not; if the label does not exist, judging whether the current flow control rule is the last flow control rule in the shared memory; if the flow control rule is the last flow control rule, ending traversal of the flow control rules in the shared memory, and if the flow control rule corresponding to the transaction message is not detected, judging that the target flow control rule corresponding to the transaction message does not exist in the shared memory; if not, taking the next flow control rule of the current flow control rule in the shared memory as a new current flow control rule, and returning to execute the label for acquiring the current flow control rule; if the label exists, the current flow control rule is judged to be the target flow control rule corresponding to the transaction message, and the judgment whether the current flow control rule is the last flow control rule in the shared memory is returned to be executed.
Optionally, the obtaining unit is specifically configured to obtain a tag in a target flow control rule corresponding to the transaction message and a corresponding tag value in the transaction message; and traversing the flow control strategy in the shared memory, and acquiring the target flow control strategy which simultaneously comprises the label in the target flow control rule corresponding to the transaction message and the corresponding label value in the transaction message.
Optionally, when a plurality of target traffic control policies exist in the shared memory, the apparatus further includes:
the flow control unit is used for acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in all the target flow control strategies, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value; judging whether each target flow control strategy has a target flow control strategy of which the value obtained by adding 1 to the current flow value is larger than the corresponding maximum flow threshold value; if yes, prompting that the current flow is full, and the transaction corresponding to the transaction message is in a waiting state; if not, traversing each target flow control strategy, and acquiring a current target flow control strategy, wherein the current target flow control strategy is the currently traversed target flow control strategy; judging whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not; if the current flow value is not larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, and judging whether the current target flow control strategy is the last flow control strategy in all the target flow control strategies; if so, processing the transaction corresponding to the transaction message; if not, determining the next target flow control strategy of the current target flow control strategy in all the target flow control strategies as a new current target flow control strategy, and returning to execute the judgment whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not; if the current flow value is larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, updating the current maximum flow value in the current target flow control strategy according to a preset rule, and returning to execute the judgment of whether the current target flow control strategy is the last target flow control strategy in all the target flow control strategies.
Optionally, the apparatus further comprises:
the monitoring unit is used for monitoring the flow of the transaction object corresponding to each flow control strategy in the shared memory in real time; for each flow control strategy, when the monitored flow of the transaction object in the preset time period is smaller than the reference flow threshold value in the flow control strategy, the reference flow threshold value is used as the current maximum flow value in the flow control strategy.
Optionally, the apparatus stores, updates, adds, deletes, and edits the flow control rule and the flow control policy based on a shared memory in the distributed memory object cache system.
Compared with the prior art, the invention has the following beneficial effects:
the flow control method based on the self-defined rule and capable of automatically regulating and controlling in real time, disclosed by the invention, stores all flow control rules and flow control strategies in a shared memory, and realizes flow control in an actual application scene. When a transaction message is received, when a target flow control rule corresponding to the transaction message does not exist in the shared memory, flow control is not carried out, the transaction is directly processed, and when the target flow control rule corresponding to the transaction message and a target flow control strategy exist in the shared memory, flow control is carried out on the transaction according to the target flow control strategy. The flow control strategy comprises a current flow value, a current maximum flow value and a maximum flow threshold value, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value, and when the sum of the current flow value plus 1 is larger than the current flow value and smaller than the maximum flow threshold value, the current maximum flow value is adjusted to realize real-time automatic regulation and control of the flow.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a flow control method capable of real-time automatic regulation and control based on a custom rule disclosed in an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining whether a target traffic control rule corresponding to a transaction message exists in a shared memory according to an embodiment of the present invention;
FIG. 3 is a flow chart of another flow control method capable of automatic real-time regulation based on customized rules according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a flow control device capable of automatically adjusting and controlling in real time based on a customized rule according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present embodiment discloses a flow control method capable of automatically controlling in real time based on a custom rule, which is applied to a control device between a client and a server or applied to a control device in a server, and the method specifically includes the following steps:
s101: traversing the flow control rules in the shared memory when receiving the transaction message;
the transaction message is sent to the server by the client when a transaction occurs, and the transaction message comprises information such as a transaction code, a merchant number, a transaction channel and the like.
All flow control rules are stored in the shared memory, and the flow control rules are formulated according to actual application scenes, such as flow control according to merchant numbers, flow control according to transaction channels, flow control according to merchant regions and the like.
S102: judging whether a target flow control rule corresponding to the transaction message exists in a shared memory;
the target flow control rule is a flow control rule corresponding to the current transaction message so as to distinguish other flow control rules in the shared memory.
If not, executing S103: directly processing the transaction corresponding to the transaction message without flow control;
it can be understood that, when the target flow control rule corresponding to the transaction message does not exist in the shared memory, it indicates that the transaction corresponding to the transaction message does not need to perform flow control, and can be directly processed.
Specifically, the transaction is sent to a transaction processing queue, and the transaction processing queue processes the transaction according to a certain sequence.
If so, S104: acquiring a target flow control strategy which corresponds to the transaction message and the target flow control rule in a shared memory at the same time, and acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in the target flow control strategy;
the flow control policy is a control rule for flow control under different flow control rules, that is, the flow control rule indicates what label (e.g., merchant number, transaction channel, etc.) is used for flow control, and the flow control policy specifically defines that specific flow control is performed on a transaction with a certain label value for the flow control rule. For example: the label in the flow control rule is a transaction channel, and the flow control strategy performs specific flow control on the transaction of the personal online bank transaction channel.
The maximum flow threshold is the sum of the reference flow threshold and the emergency flow threshold.
Taking the flow control according to the number of the merchants as an example, assuming that N merchant access systems are provided, a reference flow threshold value is set for each merchant, and is marked as ji(i from 1 to N), and simultaneously setting a flow control parameter for each merchant, and recording the flow control parameter as ci(i ranges from 1 to N). The total flow threshold of the system is denoted as Z, and the total flow threshold Z includes two parts: the sum J of the N merchant reference flow thresholds and the emergency total flow Y, namely Z is J + Y, wherein,for each merchant jiIn other words, the flow control parameter c can be set according to the set flow control parameter ciDividing part of emergency flow threshold value Y from emergency total flow Yi,yiIs calculated byThis yiThe value is the maximum emergency flow that the merchant can divide.
For commercial tenant jiIn other words, if the transaction message is from the merchant jiThe flow control rule corresponding to the transaction message includes the merchant jiIt should be noted that the current maximum flow value is the minimum reference flow threshold value, and the current maximum flow value is the maximum flow threshold value.
S105: judging whether the value obtained by adding 1 to the current flow value is larger than the current maximum flow value or not;
if not, executing S106: adding 1 to the current flow value, and processing the transaction corresponding to the transaction message;
specifically, the current flow value in the flow control rule corresponding to the transaction message is added by 1, so as to update the flow control rule.
If the current maximum flow value is larger than the current maximum flow value, executing S107: judging whether the value obtained by adding 1 to the current flow value is larger than the maximum flow threshold value or not;
if the maximum flow rate is greater than the maximum flow rate threshold, executing S109: prompting that the current flow is full and the transaction corresponding to the transaction message is in a waiting state;
and when the current flow value in the target flow control strategy is smaller than the maximum flow threshold value after the flow is released by other transactions controlled by the target flow control strategy, processing the transaction according to the target flow control strategy.
It will be appreciated that when a transaction is processed, the transaction occupies traffic, and when the transaction is completed, the traffic occupied by the transaction is released. The current flow value in the flow control policy represents the sum of all traffic occupied currently controlled by the flow control policy.
The value obtained by adding 1 to the current flow value is greater than the maximum flow threshold value, which indicates that the flow exceeds the maximum flow control if the transaction is processed, at this time, the transaction is not processed temporarily, the current flow is prompted to be full, and the transaction corresponding to the transaction message is in a waiting state.
And if the waiting time of the transaction is greater than the preset waiting time threshold, prompting that the transaction is abnormal overtime.
If not, executing S108: and adding 1 to the current flow value, updating the current maximum flow value according to a preset rule, and processing the transaction corresponding to the transaction message.
It should be further noted that the method further includes:
monitoring the flow of the transaction object corresponding to each flow control strategy in the shared memory in real time;
for each flow control strategy, when the monitored flow of the transaction object in the preset time period is smaller than the reference flow threshold value in the flow control strategy, the reference flow threshold value is used as the current maximum flow value in the flow control strategy.
Specifically, the transaction object corresponding to the flow control policy is a transaction object having a tag value of the flow control policy, for example, if the tag value in the flow control policy is a merchant number a, the transaction object corresponding to the flow control policy is all transactions of the merchant a.
Also taking the above-mentioned flow control according to the merchant number as an example, if a certain merchant (e.g. merchant i) is found to reach the reference flow threshold j during operation when the real-time transaction flow reaches the reference flow threshold jiThe system automatically and progressively increases the merchant flow threshold until the threshold reaches ji+yiContinuously detecting the transaction flow of the merchant i, if the transaction flow is at the reference flow threshold j in a period of timeiThe system automatically changes its flow threshold to the reference flow threshold ji。
It is understood that the current maximum flow value may be a reference flow threshold value, or may be a flow value obtained by gradually increasing the flow rate based on the reference flow threshold value.
For example, in an e-commerce system, if the total amount threshold Z of the system is 14000, the unit is ten thousand (the same applies below). There are 4 merchants A, B, C, D in total, and their benchmark traffic thresholds are: 4000. 2000, 1000, respectively, according to the above formula Z J + Y, J4000 +2000+1000+1000, 8000, respectively, the emergency flow Y is 6000. According to past business experience, the flow control parameters of 4 merchants are respectively set as 4, 2, 1 and 1, so that the maximum increasable threshold value of the merchant A is obtainedI.e. yA3000, then this merchant maximum threshold 7000(4000+ 3000). During the operation of the system, if it is detected that the real-time traffic of the merchant a reaches the reference traffic threshold 4000, the system automatically and gradually increases the threshold until 7000 is reached. If the system detects that the real-time traffic of merchant a has remained below 4000 for a period of time, the system automatically restores the traffic threshold of a to the baseline threshold 4000. Similarly, the maximum increasable traffic thresholds for the merchant B, C, D are: 3500. 1750, 1750.
In this embodiment, since the flow control parameter is set for the merchants in advance, and this parameter reflects the possibility of the flow rate rush of each merchant, even if merchants A, C, D promote sales at the same time within a certain period of time (for example, twenty-one), the requirements of each merchant can be met as much as possible within the system tolerance range, and the phenomenon that some large merchant flows are too busy and some small merchant flows are still vacant does not occur. On the other hand, if it is known that a certain merchant has a transaction flood peak and other merchants are basically unchanged in a certain period (for example, merchant B is a railway department system, and the transaction flood peak occurs during the ticket robbing in the spring festival and is expected to exceed the maximum threshold 5500), the flow control parameter may be temporarily increased so that the merchant can cope with the transaction flood peak without affecting other systems.
It should be further noted that the flow control rules and the flow control policies are stored, updated, added, deleted, and edited based on the shared memory in the distributed memory object cache system memcache. By using the memcache, the flow control rules and the flow control strategies for searching and updating the shared memory have high hit rate, the searching speed is greatly improved, the servers and the nodes thereof can be dynamically added and removed, and the rule strategies on the nodes are rapidly deployed to other available nodes, so that the correctness and the integrity of the data in the shared memory are ensured.
Referring to fig. 2, the determining whether the target traffic control rule corresponding to the transaction message exists in the shared memory includes the following steps:
s201: acquiring a label of a current flow control rule, wherein the current flow control rule is a current traversing flow control rule;
a flow control rule represents a flow limitation condition, specifically a tag in the transaction message, and is therefore the basis of the flow control policy. Such as: the rule "TransCode" indicates that the flow control is performed under the condition of "< Ebank >/< TransCode >" in the above-sent message.
The strategy represents the control rule of the specific flow control under different limiting conditions, is a specific control strategy extended by a rule, and is a unit of the flow control. Such as: rulebake ═ TransCode, "PROXYKEY ═ 0001," MAXFLOW ═ 10000 "is a policy that represents that concurrent transactions with a TransCode of 0001 cannot exceed 10000. Wherein, the transaction code is the label of flow control.
Taking an e-commerce system as an example, when processing transactions, each transaction can be represented by a transaction message, such as:
{"Message":{"Version":"V3.0.3","Format":"JSON","Merchant":{"ECMercha ntType":"EBUS"},"Common":{"Channel":"Perbank"},"TrxRequest":{"TrxType": "ABCRegCardPay","RequestID":"14007529552531425794","MerchantNo":"1038 81234560010","PwdField":"123456","AcctNo":"6228300010053046","AccType": "403","AccName":"XX","AccProCod":"11","AccOpenBranch":"112233","CardDu eDate":"2020","PID":"123456","CertificateNo":"142703","CertificateType":"I","P MMNo":"EP001","CustSingleQuota":"1000","CustDayQuota":"5000","MediaTyp e":"2","Signature":"12345"}}}
the attribute Channel represents the Channel of the transaction, which can be assigned as Perbank (personal internet bank), Corbank (enterprise internet bank) and the like, the attribute MerchantNo represents the merchant number of the transaction, and each merchant accessing the electronic commerce system has a fixed commerce number. If a merchant a (merchant number 103881234560010) needs to do a sales promotion in a certain period of time, its peak transaction amount is greatly increased, and the processing capability of the e-commerce system is not changed, if the flow control is not performed for the merchant a, the user experience of other merchants will be affected.
For a merchant a who needs to make sales promotion, we set the rule RULEKEY as "MerchantNo", that is: the merchant number is used as a label for the traffic control rule, and the merchant number of each merchant is fixed, so that the traffic control rule and the policy do not need to be changed even if the user accessing the merchant is random. For this rule, a policy RULEKEY ═ MerchantNo ", PROXYKEY ═ 103881234560010", MAXFLOW ═ 12000000 "may be established, which indicates that the concurrent transaction amount of the business number 103881234560010 (i.e., the business a) cannot exceed 1200 ten thousand (this maximum transaction amount is established in consideration of the specific situation of business promotion and the enduring capability of the actual application).
S202: judging whether the label exists in the transaction message or not;
if the tag does not exist, executing S203: judging whether the current flow control rule is the last flow control rule in the shared memory;
if yes, executing S204: ending traversal of the flow control rules in the shared memory, and judging that the target flow control rules corresponding to the transaction messages do not exist in the shared memory if the flow control rules corresponding to the transaction messages are not detected;
if not, executing S205: taking the next flow control rule of the current flow control rule in the shared memory as a new current flow control rule, and returning to execute S201;
if the label exists, executing S206: and judging that the current flow control rule is the target flow control rule corresponding to the transaction message, and returning to execute S203.
On this basis, the obtaining of the target traffic control policy corresponding to the transaction packet and the target traffic control rule in the shared memory in the embodiment includes:
acquiring a label in a target flow control rule corresponding to the transaction message and a corresponding label value in the transaction message;
and traversing the flow control strategy in the shared memory, and acquiring the target flow control strategy which simultaneously comprises the label in the target flow control rule corresponding to the transaction message and the corresponding label value in the transaction message.
It should be noted that, the present invention can control traffic from multiple parties, for example, control traffic of multiple merchants, and can set flow control rules about dimensions such as payment channels, merchant numbers, merchant areas, and the like in a shared memory by setting tags such as transaction codes, merchant numbers, and the like in a transaction message, so as to implement flow control in multiple application scenarios.
On this basis, the present embodiment discloses another flow control method capable of automatically adjusting and controlling in real time based on a custom rule, and when a plurality of target flow control policies exist in a shared memory, please refer to fig. 3, where the method includes the following steps:
s301: traversing the flow control rules in the shared memory when receiving the transaction message;
s302: judging whether a target flow control rule corresponding to the transaction message exists in a shared memory;
if not, go to step S303: directly processing the transaction corresponding to the transaction message without flow control;
if yes, executing S304: acquiring current flow values, current maximum flow values and maximum flow threshold values in all target flow control strategies;
the maximum flow threshold is the sum of the baseline flow threshold and the emergency flow threshold.
S305: judging whether each target flow control strategy has a target flow control strategy of which the value obtained by adding 1 to the current flow value is larger than the corresponding maximum flow threshold value;
that is, if there is a target flow control policy in which the value obtained by adding 1 to the current flow value is greater than the corresponding maximum flow threshold value, it indicates that the flow control will be exceeded if the transaction is processed, and at this time, it indicates that the transaction is abnormal.
If yes, executing S306: prompting that the current flow is full and the transaction corresponding to the transaction message is in a waiting state;
if not, go to step S307: traversing each target flow control strategy and acquiring a current target flow control strategy;
the current target flow control strategy is a target flow control strategy which is currently traversed.
S308: judging whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not;
if not, executing S309: adding 1 to the current flow value in the current target flow control strategy;
s310: judging whether the current target flow control strategy is the last target flow control strategy in all target flow control strategies;
if it is the last target traffic control policy, the step S311 is executed: processing the transaction corresponding to the transaction message;
if not, executing S312: determining the next target traffic control strategy of the current target traffic control strategies in all the target traffic control strategies as a new current target traffic control strategy, and returning to execute S308;
if the current maximum flow value is larger than the current maximum flow value, executing S313: and adding 1 to the current flow value in the current target flow control strategy, updating the current maximum flow value in the current target flow control strategy according to a preset rule, and returning to execute S310.
Take an example that the transaction message corresponds to 2 flow control rules, where the flow control rule a performs flow control according to the merchant number, and the flow control rule B performs flow control according to the transaction channel. If the value obtained by adding 1 to the current flow value in the flow control strategy A corresponding to the flow control rule A is smaller than the current maximum flow value, updating the current flow value in the flow control strategy A; and if the value obtained by adding 1 to the current flow value in the flow control strategy B corresponding to the flow control rule B is larger than the current maximum flow value and smaller than the maximum flow threshold value, updating the current flow value and the current maximum flow value in the flow control strategy B.
Referring to fig. 4, a flow control method based on a customized rule and capable of real-time automatic regulation and control is disclosed in the foregoing embodiments, and this embodiment correspondingly discloses a flow control device based on a customized rule and capable of real-time automatic regulation and control, including:
a traversing unit 401, configured to traverse a flow control rule in the shared memory when receiving the transaction packet;
a first determining unit 402, configured to determine whether a flow control rule corresponding to the transaction packet exists in a shared memory;
if not, triggering a transaction processing unit 403 for directly processing the transaction corresponding to the transaction message without flow control;
if the traffic flow exists, the trigger obtaining unit 404 is configured to obtain a target traffic control policy in the shared memory, where the target traffic control policy corresponds to the transaction packet and the target traffic control rule at the same time, and obtain a current traffic value, a current maximum traffic value, and a maximum traffic threshold in the target traffic control policy, where the maximum traffic threshold is a sum of a reference traffic threshold and an emergency traffic threshold;
a second determining unit 405, configured to determine whether a value obtained by adding 1 to the current flow value is greater than the current maximum flow value;
if the current maximum flow value is not greater than the maximum flow value, triggering a first rule updating unit 406, which is used for adding 1 to the current flow value and processing the transaction corresponding to the transaction message;
if the current maximum flow value is larger than the maximum flow value, triggering a third judging unit 407, configured to judge whether a value obtained by adding 1 to the current flow value is larger than the maximum flow threshold;
if the current flow rate is greater than the maximum flow rate threshold, triggering a prompting unit 408 for prompting that the current flow rate is full and the transaction corresponding to the transaction message is in a waiting state;
if the current flow value is not greater than the maximum flow threshold value, triggering a second rule updating unit 409 for adding 1 to the current flow value, updating the current maximum flow value according to a preset rule, and processing the transaction corresponding to the transaction message.
Optionally, the first determining unit 402 is specifically configured to obtain a label of a current flow control rule, where the current flow control rule is a flow control rule currently being traversed; judging whether the label exists in the transaction message or not; if the label does not exist, judging whether the current flow control rule is the last flow control rule in the shared memory; if the flow control rule is the last flow control rule, ending traversal of the flow control rules in the shared memory, and if the flow control rule corresponding to the transaction message is not detected, judging that the target flow control rule corresponding to the transaction message does not exist in the shared memory; if not, taking the next flow control rule of the current flow control rule in the shared memory as a new current flow control rule, and returning to execute the label for acquiring the current flow control rule; if the label exists, the current flow control rule is judged to be the target flow control rule corresponding to the transaction message, and the judgment whether the current flow control rule is the last flow control rule in the shared memory is returned to be executed.
Optionally, the obtaining unit 404 is specifically configured to obtain a tag in a target flow control rule corresponding to the transaction message and a corresponding tag value in the transaction message; and traversing the flow control strategy in the shared memory, and acquiring the target flow control strategy which simultaneously comprises the label in the target flow control rule corresponding to the transaction message and the corresponding label value in the transaction message.
Optionally, when a plurality of target traffic control policies exist in the shared memory, the apparatus further includes:
the flow control unit is used for acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in all the target flow control strategies, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value; judging whether each target flow control strategy has a target flow control strategy of which the value obtained by adding 1 to the current flow value is larger than the corresponding maximum flow threshold value; if yes, prompting that the current flow is full, and the transaction corresponding to the transaction message is in a waiting state; if not, traversing each target flow control strategy, and acquiring a current target flow control strategy, wherein the current target flow control strategy is the currently traversed target flow control strategy; judging whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not; if the current flow value is not larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, and judging whether the current target flow control strategy is the last flow control strategy in all the target flow control strategies; if so, processing the transaction corresponding to the transaction message; if not, determining the next target flow control strategy of the current target flow control strategy in all the target flow control strategies as a new current target flow control strategy, and returning to execute the judgment whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not; if the current flow value is larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, updating the current maximum flow value in the current target flow control strategy according to a preset rule, and returning to execute the judgment of whether the current target flow control strategy is the last target flow control strategy in all the target flow control strategies.
Optionally, the apparatus stores, updates, adds, deletes, and edits the flow control rule and the flow control policy based on a shared memory in the distributed memory object cache system.
The flow control device capable of automatically adjusting and controlling in real time based on the customized rule disclosed by the embodiment stores all the flow control rules and the flow control strategies in the shared memory, so that the flow control in an actual application scene is realized. When a transaction message is received, when a target flow control rule corresponding to the transaction message does not exist in the shared memory, flow control is not carried out, the transaction is directly processed, and when the target flow control rule corresponding to the transaction message and a target flow control strategy exist in the shared memory, flow control is carried out on the transaction according to the target flow control strategy. The flow control strategy comprises a current flow value, a current maximum flow value and a maximum flow threshold value, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value, and when the sum of the current flow value plus 1 is larger than the current flow value and smaller than the maximum flow threshold value, the current maximum flow value is adjusted to realize real-time automatic regulation and control of the flow.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A flow control method capable of being automatically regulated and controlled in real time based on a custom rule is characterized by comprising the following steps:
traversing the flow control rules in the shared memory when receiving the transaction message;
judging whether a target flow control rule corresponding to the transaction message exists in a shared memory;
if not, directly processing the transaction corresponding to the transaction message without flow control;
if the transaction message exists, acquiring a target flow control strategy which corresponds to the transaction message and the target flow control rule in the shared memory at the same time, and acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in the target flow control strategy, wherein the minimum current maximum flow value is a reference flow threshold value, the maximum current maximum flow value is a maximum flow threshold value, and the maximum flow threshold value is the sum of the reference flow threshold value and an emergency flow threshold value;
judging whether the value obtained by adding 1 to the current flow value is larger than the current maximum flow value or not;
if the current maximum flow value is not larger than the current maximum flow value, adding 1 to the current flow value, and processing the transaction corresponding to the transaction message;
if the current flow value is larger than the current maximum flow value, judging whether the value obtained by adding 1 to the current flow value is larger than the maximum flow threshold value;
if the current flow is larger than the maximum flow threshold, prompting that the current flow is full, and the transaction corresponding to the transaction message is in a waiting state;
if the current flow value is not greater than the maximum flow threshold value, adding 1 to the current flow value, updating the current maximum flow value according to a preset rule, and processing the transaction corresponding to the transaction message;
the preset rule is that the flow rate is gradually increased to a maximum flow rate threshold value on the basis of a reference flow rate threshold value;
when a plurality of target traffic control policies exist in the shared memory, the method further includes:
acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in all the target flow control strategies, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value;
judging whether each target flow control strategy has a target flow control strategy of which the value obtained by adding 1 to the current flow value is larger than the corresponding maximum flow threshold value;
if yes, prompting that the current flow is full, and the transaction corresponding to the transaction message is in a waiting state;
if not, traversing each target flow control strategy, and acquiring a current target flow control strategy, wherein the current target flow control strategy is the currently traversed target flow control strategy;
judging whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not;
if the current flow value is not larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, and judging whether the current target flow control strategy is the last flow control strategy in all the target flow control strategies;
if the target flow control strategy is the last target flow control strategy, processing the transaction corresponding to the transaction message;
if not, determining the next target flow control strategy of the current target flow control strategy in all the target flow control strategies as a new current target flow control strategy, and returning to execute the judgment whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not;
if the current flow value is larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, updating the current maximum flow value in the current target flow control strategy according to a preset rule, and returning to execute the judgment of whether the current target flow control strategy is the last target flow control strategy in all the target flow control strategies.
2. The method according to claim 1, wherein the determining whether the target traffic control rule corresponding to the transaction message exists in the shared memory comprises:
acquiring a label of a current flow control rule, wherein the current flow control rule is a current traversing flow control rule;
judging whether the label exists in the transaction message or not;
if the label does not exist, judging whether the current flow control rule is the last flow control rule in the shared memory;
if the flow control rule is the last flow control rule, ending traversal of the flow control rules in the shared memory, and if the flow control rule corresponding to the transaction message is not detected, judging that the target flow control rule corresponding to the transaction message does not exist in the shared memory;
if not, taking the next flow control rule of the current flow control rule in the shared memory as a new current flow control rule, and returning to execute the label for acquiring the current flow control rule;
if the label exists, the current flow control rule is judged to be the target flow control rule corresponding to the transaction message, and the judgment whether the current flow control rule is the last flow control rule in the shared memory is returned to be executed.
3. The method of claim 2, wherein the obtaining the target traffic control policy in the shared memory corresponding to the transaction packet and the target traffic control rule at the same time comprises:
acquiring a label in a target flow control rule corresponding to the transaction message and a corresponding label value in the transaction message;
and traversing the flow control strategy in the shared memory, and acquiring the target flow control strategy which simultaneously comprises the label in the target flow control rule corresponding to the transaction message and the corresponding label value in the transaction message.
4. The method of claim 1, further comprising:
monitoring the flow of the transaction object corresponding to each flow control strategy in the shared memory in real time;
for each flow control strategy, when the monitored flow of the transaction object in the preset time period is smaller than the reference flow threshold value in the flow control strategy, the reference flow threshold value is used as the current maximum flow value in the flow control strategy.
5. The method of claim 1, wherein the flow control rules and the flow control policies are stored, updated, added, deleted, and edited based on shared memory in the distributed memory object caching system.
6. The utility model provides a flow control device that can real-time automatic regulation and control based on custom rule which characterized in that includes:
the traversing unit is used for traversing the flow control rules in the shared memory when the transaction message is received;
the first judging unit is used for judging whether a target flow control rule corresponding to the transaction message exists in the shared memory;
if the transaction message does not exist, triggering a transaction processing unit for directly processing the transaction corresponding to the transaction message without flow control;
if the transaction message exists, triggering an obtaining unit, which is used for obtaining a target flow control strategy which is in the shared memory and corresponds to the transaction message and the target flow control rule at the same time, and obtaining a current flow value, a current maximum flow value and a maximum flow threshold value in the target flow control strategy, wherein the minimum current maximum flow value is a reference flow threshold value, the maximum current maximum flow value is a maximum flow threshold value, and the maximum flow threshold value is the sum of the reference flow threshold value and an emergency flow threshold value;
the second judging unit is used for judging whether the value obtained by adding 1 to the current flow value is larger than the current maximum flow value or not;
if the current maximum flow value is not larger than the maximum flow value, triggering a first rule updating unit for adding 1 to the current flow value and processing the transaction corresponding to the transaction message;
if the current flow value is larger than the current maximum flow value, triggering a third judging unit for judging whether the value obtained by adding 1 to the current flow value is larger than the maximum flow threshold value;
if the current flow rate is greater than the maximum flow rate threshold value, triggering a prompting unit for prompting that the current flow rate is full and the transaction corresponding to the transaction message is in a waiting state;
if the current flow value is not greater than the maximum flow threshold value, triggering a second rule updating unit, which is used for adding 1 to the current flow value, updating the current maximum flow value according to a preset rule, and processing the transaction corresponding to the transaction message;
the preset rule is that the flow rate is gradually increased to a maximum flow rate threshold value on the basis of a reference flow rate threshold value;
when a plurality of target traffic control policies exist in the shared memory, the apparatus further includes:
the flow control unit is used for acquiring a current flow value, a current maximum flow value and a maximum flow threshold value in all the target flow control strategies, wherein the maximum flow threshold value is the sum of a reference flow threshold value and an emergency flow threshold value; judging whether each target flow control strategy has a target flow control strategy of which the value obtained by adding 1 to the current flow value is larger than the corresponding maximum flow threshold value; if yes, prompting that the current flow is full, and the transaction corresponding to the transaction message is in a waiting state; if not, traversing each target flow control strategy, and acquiring a current target flow control strategy, wherein the current target flow control strategy is the currently traversed target flow control strategy; judging whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not; if the current flow value is not larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, and judging whether the current target flow control strategy is the last flow control strategy in all the target flow control strategies; if the target flow control strategy is the last target flow control strategy, processing the transaction corresponding to the transaction message; if not, determining the next target flow control strategy of the current target flow control strategy in all the target flow control strategies as a new current target flow control strategy, and returning to execute the judgment whether the value obtained by adding 1 to the current flow value in the current target flow control strategy is larger than the current maximum flow value or not; if the current flow value is larger than the current maximum flow value, adding 1 to the current flow value in the current target flow control strategy, updating the current maximum flow value in the current target flow control strategy according to a preset rule, and returning to execute the judgment of whether the current target flow control strategy is the last target flow control strategy in all the target flow control strategies.
7. The apparatus of claim 6,
the first judging unit is specifically configured to acquire a label of a current flow control rule, where the current flow control rule is a flow control rule that is currently being traversed; judging whether the label exists in the transaction message or not; if the label does not exist, judging whether the current flow control rule is the last flow control rule in the shared memory; if the flow control rule is the last flow control rule, ending traversal of the flow control rules in the shared memory, and if the flow control rule corresponding to the transaction message is not detected, judging that the target flow control rule corresponding to the transaction message does not exist in the shared memory; if not, taking the next flow control rule of the current flow control rule in the shared memory as a new current flow control rule, and returning to execute the label for acquiring the current flow control rule; if the label exists, the current flow control rule is judged to be the target flow control rule corresponding to the transaction message, and the judgment whether the current flow control rule is the last flow control rule in the shared memory is returned to be executed.
8. The apparatus of claim 7,
the acquiring unit is specifically configured to acquire a tag in a target flow control rule corresponding to the transaction message and a corresponding tag value in the transaction message; and traversing the flow control strategy in the shared memory, and acquiring the target flow control strategy which simultaneously comprises the label in the target flow control rule corresponding to the transaction message and the corresponding label value in the transaction message.
9. The apparatus of claim 7, further comprising:
the monitoring unit is used for monitoring the flow of the transaction object corresponding to each flow control strategy in the shared memory in real time; for each flow control strategy, when the monitored flow of the transaction object in the preset time period is smaller than the reference flow threshold value in the flow control strategy, the reference flow threshold value is used as the current maximum flow value in the flow control strategy.
10. The apparatus of claim 7, wherein the apparatus stores, updates, adds, deletes, and edits flow control rules and flow control policies based on shared memory in the distributed memory object caching system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810569412.5A CN108712350B (en) | 2018-06-05 | 2018-06-05 | Flow control method and device capable of automatically regulating and controlling in real time based on custom rule |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810569412.5A CN108712350B (en) | 2018-06-05 | 2018-06-05 | Flow control method and device capable of automatically regulating and controlling in real time based on custom rule |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108712350A CN108712350A (en) | 2018-10-26 |
CN108712350B true CN108712350B (en) | 2022-04-05 |
Family
ID=63870446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810569412.5A Active CN108712350B (en) | 2018-06-05 | 2018-06-05 | Flow control method and device capable of automatically regulating and controlling in real time based on custom rule |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108712350B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166371B (en) * | 2019-05-16 | 2022-11-22 | 北京达佳互联信息技术有限公司 | Flow control method and device, electronic equipment and storage medium |
CN110599136B (en) * | 2019-09-20 | 2023-07-25 | 腾讯科技(深圳)有限公司 | Block chain transaction pool flow control method and device |
CN111741016B (en) * | 2020-07-23 | 2020-12-08 | 南京梦饷网络科技有限公司 | Method, computing device, and computer storage medium for managing application interfaces |
CN112258172B (en) * | 2020-10-16 | 2024-06-25 | 多点(深圳)数字科技有限公司 | Payment automatic degradation method based on machine learning |
CN112995052B (en) * | 2021-04-25 | 2021-08-06 | 北京世纪好未来教育科技有限公司 | Flow control method and related device |
CN113179222A (en) * | 2021-04-30 | 2021-07-27 | 康键信息技术(深圳)有限公司 | Current-limiting control method, device and equipment for hotspot data and storage medium |
CN115361339B (en) * | 2022-08-15 | 2024-03-01 | 中国工商银行股份有限公司 | Flow control method, device, electronic equipment and storage medium |
CN116094979A (en) * | 2022-12-23 | 2023-05-09 | 华能信息技术有限公司 | Policy route management method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894348A (en) * | 2010-07-20 | 2010-11-24 | 中兴通讯股份有限公司 | Self-expanded online transaction system and implementing method thereof |
CN104090823A (en) * | 2014-06-09 | 2014-10-08 | 中国建设银行股份有限公司 | Flow control method and device for computer system |
CN105389729A (en) * | 2015-12-15 | 2016-03-09 | 中国建设银行股份有限公司 | Precise control system and method for transaction flow |
CN107707488A (en) * | 2017-10-25 | 2018-02-16 | 北京数码视讯支付技术有限公司 | Payment online transaction flow control method, flow limiting server and client |
-
2018
- 2018-06-05 CN CN201810569412.5A patent/CN108712350B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894348A (en) * | 2010-07-20 | 2010-11-24 | 中兴通讯股份有限公司 | Self-expanded online transaction system and implementing method thereof |
CN104090823A (en) * | 2014-06-09 | 2014-10-08 | 中国建设银行股份有限公司 | Flow control method and device for computer system |
CN105389729A (en) * | 2015-12-15 | 2016-03-09 | 中国建设银行股份有限公司 | Precise control system and method for transaction flow |
CN107707488A (en) * | 2017-10-25 | 2018-02-16 | 北京数码视讯支付技术有限公司 | Payment online transaction flow control method, flow limiting server and client |
Also Published As
Publication number | Publication date |
---|---|
CN108712350A (en) | 2018-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108712350B (en) | Flow control method and device capable of automatically regulating and controlling in real time based on custom rule | |
CN111124819B (en) | Method and device for full link monitoring | |
CN101394307B (en) | Method, apparatus and system for on-line user amount statistic | |
CN102769549A (en) | Network security monitoring method and device | |
CN108052824B (en) | Risk prevention and control method and device and electronic equipment | |
EP2036029A1 (en) | System and method for monitoring trading | |
CN104811473B (en) | A kind of method, system and management system for creating virtual non-volatile storage medium | |
CN111277640B (en) | User request processing method, device, system, computer equipment and storage medium | |
CN107886352B (en) | Advertisement settlement method and system | |
WO2019174185A1 (en) | Electronic device, dynamic code request processing method and storage medium | |
CN110956500B (en) | Method and system for reducing advertisement request time consumption in advertisement real-time bidding system | |
CN110717761B (en) | Data processing method and device and computer storage medium | |
CN115378713B (en) | Block chain application early warning defense method, storage medium and electronic equipment | |
CN110070392B (en) | User loss early warning method and device | |
CN106612263B (en) | Method and equipment for processing application access request | |
CN113886506A (en) | Method and device for customer attribution management | |
CN110460593B (en) | Network address identification method, device and medium for mobile traffic gateway | |
CN112637046A (en) | Message pushing method and routing device | |
CN109246121B (en) | Attack defense method and device, Internet of things equipment and computer readable storage medium | |
CN111144961A (en) | Billing method and device based on cloud billing equipment | |
US11869073B1 (en) | Adaptive probability matrix | |
JP6146279B2 (en) | Data distribution apparatus and data distribution method | |
CN117857465B (en) | Data processing method, device, equipment, storage medium and program product | |
CN116074202B (en) | Slice information processing method, equipment and computer readable storage medium | |
CN114499998B (en) | Security protection method, device, electronic device and storage medium |
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 |