CN110210786B - Method and device for processing advance wind control - Google Patents

Method and device for processing advance wind control Download PDF

Info

Publication number
CN110210786B
CN110210786B CN201910516572.8A CN201910516572A CN110210786B CN 110210786 B CN110210786 B CN 110210786B CN 201910516572 A CN201910516572 A CN 201910516572A CN 110210786 B CN110210786 B CN 110210786B
Authority
CN
China
Prior art keywords
target
request data
request
wind control
global
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910516572.8A
Other languages
Chinese (zh)
Other versions
CN110210786A (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.)
Hundsun Technologies Inc
Original Assignee
Hundsun Technologies Inc
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 Hundsun Technologies Inc filed Critical Hundsun Technologies Inc
Priority to CN201910516572.8A priority Critical patent/CN110210786B/en
Publication of CN110210786A publication Critical patent/CN110210786A/en
Application granted granted Critical
Publication of CN110210786B publication Critical patent/CN110210786B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0635Risk analysis of enterprise or organisation activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Technology Law (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Air Conditioning Control Device (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a method and a device for processing advanced wind control, wherein the method comprises the following steps: receiving a target transaction request sent by a terminal in a current concurrent period, distributing the target transaction request to a thread in a thread pool, and calling the thread as a target thread; according to the receiving sequence of the transaction requests, giving a target global sequence number to the request data of the target transaction request, and storing the request data of the target transaction request and the target global sequence number into a global request data array and a component corresponding to the target thread identifier; request data before the target global sequence number is extracted from the global request data array to form a request data set, and accumulated data of the current day are obtained; calculating a set of wind control factors based on the current day accumulated data, the set of requested data, and a calculation rule. The method and the device can carry out wind control processing on the transaction request in a public and accurate manner.

Description

Method and device for processing advance wind control
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing advance wind control.
Background
The prior wind control system is a wind control platform positioned between a plurality of terminals and the transaction system.
The multiple terminals can send transaction requests to the advanced wind control system, and the advanced wind control system utilizes multiple threads in the thread pool to process multiple transaction requests in a concurrent mode in the current concurrent period. Because the multiple threads of the thread pool are invisible, the receiving sequence of the multiple transaction requests in the current concurrent cycle cannot be known by the advanced wind control system.
Therefore, in the prior art, in the process of processing a transaction request by the prior wind control system, the request data of the transaction request occurring before the transaction request in the current concurrent period is not considered, and only the historical accumulated data of the current day is considered, so that the wind control factor is calculated according to the accumulated data of the current day and the calculation rule.
However, the request data for a transaction request that has occurred before the transaction request in the current concurrency cycle also affects the wind control factor. Without considering the request data of the transaction request that has occurred before the transaction request in the current concurrent period, the wind control factor calculated in the current concurrent period may be inaccurate.
In the current concurrent period, under the condition that different transaction requests use inaccurate wind control factors to carry out wind control processing, the problems of sometimes too tight and sometimes loose wind control processing can be caused, so that the wind control system cannot realize wind control processing fairly and accurately in advance.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for pre-wind-control processing, which can fairly and accurately perform wind-control processing on a transaction request.
In order to achieve the above object, the present application provides the following technical features:
a method of pre-emptive pneumatic control processing, comprising:
receiving a target transaction request sent by a terminal in a current concurrent period, distributing the target transaction request to a thread in a thread pool, and calling the thread as a target thread;
according to the receiving sequence of the transaction requests, giving a target global sequence number to the request data of the target transaction request, and storing the request data of the target transaction request and the target global sequence number into a global request data array and a component corresponding to the target thread identifier;
request data before the target global sequence number is extracted from the global request data array to form a request data set, and accumulated data of the current day are obtained;
calculating a set of wind control factors based on the current day accumulated data, the set of requested data, and a calculation rule.
Optionally, the global request data array includes a plurality of elements corresponding to a plurality of threads in the thread pool one to one.
Optionally, the method further includes:
the target thread processes the target transaction request;
after the target thread finishes processing the target transaction request, accumulating the request data of the target transaction request on the basis of the data accumulated on the same day;
and clearing the request data corresponding to the target transaction request in the global request data array.
Optionally, the assigning a target global sequence number to the request data of the target transaction request according to the receiving sequence of the transaction requests includes:
according to the receiving sequence of the transaction requests, giving a sequentially increasing unique global serial number to the request data of the target transaction request;
and taking the unique global sequence number as the target global sequence number.
Optionally, the extracting, from the global request data array, request data before the target global sequence number to form a request data set includes:
copying the request data of each component and the corresponding global sequence number from the global request data array;
performing sorting operation on the request data of each group element according to the global sequence number;
and forming the request data set by a plurality of request data smaller than the target global sequence number.
Optionally, after the calculating the set of wind control factors based on the current day accumulated data, the request data set and the calculation rule, performing a wind control operation on the transaction request based on the set of wind control factors;
the executing of the wind control operation on the transaction request based on the wind control factor set comprises:
and under the condition that at least one wind control factor in the wind control factor set meets a threshold value condition, performing wind control processing on the target transaction request.
Optionally, if at least one of the wind control factors in the wind control factor set does not satisfy a threshold condition, performing wind control processing on the target transaction request, including:
under the condition that at least one wind control factor in the wind control factor set does not meet a threshold condition, performing alarm processing on the target transaction request, and updating the alarm times of a user corresponding to the target transaction request;
after running in a plurality of concurrent cycles, if the alarm times of the user reach preset times, intercepting a transaction request sent by the user.
An advance wind control processing apparatus comprising:
the receiving unit is used for receiving a target transaction request sent by the terminal in the current concurrent cycle, distributing the target transaction request to a thread in the thread pool, and calling the thread as a target thread;
the sequence number giving unit is used for giving a target global sequence number to the request data of the target transaction request according to the receiving sequence of the transaction requests;
the storage unit is used for storing the request data and the target global sequence number of the target transaction request into a global request data array and a group element corresponding to the target thread identifier;
the extraction unit is used for extracting the request data before the target global sequence number from the global request data array to form a request data set and acquiring the accumulated data of the day;
and the calculating unit is used for calculating a wind control factor set based on the current accumulated data, the request data set and a calculating rule.
Optionally, the global request data array includes a plurality of elements corresponding to a plurality of threads in the thread pool one to one.
Optionally, the target thread processes the target transaction request; the device further comprises:
the accumulation unit is used for accumulating the request data of the target transaction request on the basis of the data accumulated on the same day after the target thread finishes processing the target transaction request;
and the clearing unit is used for clearing the request data corresponding to the target transaction request in the global request data array.
Optionally, the sequence number giving unit is specifically configured to: according to the receiving sequence of the transaction requests, giving a sequentially increasing unique global serial number to the request data of the target transaction request; and taking the unique global sequence number as the target global sequence number.
Optionally, the extracting unit includes:
the copying unit is used for copying the request data of each component and the corresponding global serial number from the global request data array;
the sequencing unit is used for executing sequencing operation on the request data of each group element according to the global sequence number;
and the composition unit is used for composing a plurality of request data smaller than the target global sequence number into the request data set.
Optionally, the apparatus further comprises:
a wind control unit, configured to perform a wind control operation on the transaction request based on the wind control factor set after the wind control factor set is calculated based on the current day accumulated data, the request data set, and a calculation rule;
the execution of the wind control operation on the transaction request based on the wind control factor set in the wind control unit specifically includes: and under the condition that at least one wind control factor in the wind control factor set meets a threshold value condition, performing wind control processing on the target transaction request.
Optionally, the wind control unit includes:
the warning unit is used for performing warning processing on the target transaction request and updating the warning times of a user corresponding to the target transaction request under the condition that at least one wind control factor in the wind control factor set does not meet a threshold condition;
and the intercepting unit is used for intercepting the transaction request sent by the user if the alarm times of the user reach preset times after the operation of a plurality of concurrent cycles.
An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform a prior-wind processing method via execution of the executable instructions.
A storage medium for storing a software program, the software program being operable to implement a pre-emptive pneumatic handling method.
Through the technical means, the following beneficial effects can be realized:
in order to solve the problem that a plurality of threads of a thread pool are invisible, a global request data array is preset, and the global request data array comprises a plurality of component elements which are in one-to-one correspondence with the plurality of threads in the thread pool and is used for storing request data of processing transaction requests by the threads.
Because the threads of the thread pool can access the global request data array, the mutual visibility among different threads of the thread pool can be realized through the global request data array, and the prior wind control system can extract the request data before the target global sequence number from the global request data array.
In the process of calculating the wind control factor, the prior wind control system can comprehensively consider the current accumulated data and the request data before the target transaction request, so that the calculated wind control factor is more accurate, and the prior wind control system can more fairly and accurately realize wind control processing.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a wind-controlled processing system disclosed in an embodiment of the present application;
fig. 2 is a flowchart of a method for pre-existing wind control processing according to an embodiment of the present application;
fig. 3 is a flowchart of a prior-event wind control processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The present application provides a wind-controlled processing system, see fig. 1, comprising:
a plurality of terminals 100, a prior wind system 200 and a transaction system 300.
The prior wind control system 200 connects a plurality of terminals 100 and the transaction system 300. Several terminals 100 may send transaction requests to the prior wind control system 300, and the prior wind control system 300 processes the transaction requests and obtains the wind control factor set. Under the condition that the wind control factor set meets the threshold value condition, the transaction request is indicated to have risks, and wind control processing is carried out on the transaction request; and under the condition that the wind control factor set does not meet the threshold condition, the transaction request is not at risk, and the transaction request is sent to the transaction system.
In order to solve the problem that a plurality of threads of a thread pool are invisible, a global request data array is preset, and the global request data array comprises a plurality of component elements which are in one-to-one correspondence with the plurality of threads in the thread pool and is used for storing request data of processing transaction requests by the threads.
Optionally, the number of elements of the global request data array is consistent with the number of threads in the thread pool. For example, a thread pool has 5 threads (not representing a real scenario, but merely an illustrative example), then the global request data array has 5 elements, one for each element.
See table 1 for an illustrative example of a global request data array for a thread pool with 5 threads.
TABLE 1
Thread identification Thread 1 Thread 2 Thread 3 Thread 4 Thread 5
Component identifier Component No. 1 Component 2 Component 3 Component 4 Component 5
Data content Air conditioner Air conditioner Air conditioner Air conditioner Air conditioner
Initially, the data content in each component is empty. The prior wind control system stores the global request data array and stores the correspondence between the elements and the threads in the global request data array, so as to apply the global request data array in the embodiment shown in fig. 2.
The application provides a prior wind control processing method, which is applied to a prior wind control system in a wind control processing system shown in fig. 1.
Since the prior wind control system can process transaction requests sent by a plurality of terminals, and the processing process for each transaction request is consistent, the present embodiment takes a target transaction request as an example for detailed description.
Referring to fig. 2, the advanced wind control processing method includes:
step S201: the terminal 100 sends a target transaction request to the prior wind system 200.
Step S202: the prior wind control system 200 receives a target transaction request sent by the terminal in the current concurrency period.
The prior wind control system usually processes several transaction requests according to a concurrency period, which is called as the current concurrency period. It is to be understood that there is also a concurrency period before the current concurrency period, referred to as the last concurrency period for ease of reference.
Step S203: the prior wind control system 200 allocates the target transaction request to a thread in the thread pool and calls the thread as the target thread.
The advanced wind control system 200 concurrently processes a plurality of transaction requests by using the thread pool, and after receiving a target transaction request, allocates the target transaction request to a thread in the thread pool by using a load balancing strategy. For ease of reference, the thread in the thread pool that processes the target transaction request is referred to as the target thread.
Step S204: and the advance wind control system 200 assigns a target global serial number to the request data of the target transaction request according to the receiving sequence of the transaction requests.
It is understood that the transaction requests received by the prior wind control system 200 have a chronological order, and the prior wind control system 200 records the chronological order of the transaction requests. For example, the sequence of the received transaction requests is recorded by incrementing the sequence number.
After receiving the target transaction request, the advance wind control system 200 may assign a target global serial number to the target transaction request according to the receiving sequence of the recorded transaction requests. For example, the prior wind control system 200 assigns a unique global serial number that is sequentially incremented to the request data of the target transaction request according to the receiving sequence of the transaction requests, and uses the unique global serial number as the target global serial number.
For example, if the global serial number of the transaction request recorded by the prior wind control system 200 is 9, a unique global serial number of 10 may be assigned to the target transaction request, and 10 may be used as the target global serial number.
And setting a global serial number by taking the day as a unit under the condition that the wind control processing system is used for financial transaction. I.e. a global sequence number that is sequentially incremented is set for receiving transaction requests during the time of day. The global sequence number is cleared after the first day is finished so as to reset the global sequence number in the next day.
Step S205: the prior wind control system 200 stores the request data and the target global sequence number of the target transaction request into a global request data array and a group element corresponding to the target thread identifier.
In order to facilitate the visibility of the threads of the thread pool, the embodiment stores the request data and the target global sequence number of the target transaction request into the group element corresponding to the target thread identifier in the global request data array.
Continuing with the example above, the global request data array has 5 elements, and assuming that the target thread is thread 1, the target thread corresponds to element 1 in the global request data array. The request data of the target transaction request and the target global sequence number 10 are stored in group 1.
It is understood that, for other transaction requests, the operations of steps S201 to S205 are also performed, so that different threads in the thread pool store the request data and the global sequence number of the transaction request being processed into the global request data array.
Referring to table 2, an illustrative example of a global request data array is shown after storing request data and a target global sequence number 10 for a target transaction request.
TABLE 2
Thread identification Thread 1 Threading2 Thread 3 Thread 4 Thread 5
Component identifier Component No. 1 Component 2 Component 3 Component 4 Component 5
Data content Request data 10 Request data 11 Request data 8 Request data 2 Request data 5
It can be understood that, in the process of processing transaction requests by threads, the threads may have different processing time lengths when processing different transaction requests, some transaction requests are simple and therefore have short processing time, and some transaction requests are complex and have long processing time.
For example, the transaction request processed by the thread 4 has a longer processing time, and the thread 4 is still processing the transaction request in the current concurrent cycle; for example, request data 1 (which has been cleared in the global request data array), since the time for the thread to process transaction request 1 is short, request data 1 is cleared in the global request data array after the thread processing is finished.
In the current concurrency period, the request data stored in the global request data array is a plurality of concurrent requests of the current concurrency period. For example, taking table 2 as an example, in the current concurrency period, transaction request 2, transaction request 5, transaction request 8, transaction request 10, and transaction request 11 are concurrent transaction requests.
It can be understood that, since the threads of the thread pool can all access the global request data array, the threads of the thread pool can be visible to each other through the global request data array.
Step S206: the prior wind control system 200 extracts the request data before the target global sequence number from the global request data array to form a request data set, and obtains the accumulated data of the day.
The prior wind control system 200 accumulates data from the storage space on the same day, that is, the sum of the data accumulated in the concurrent period that has occurred before the current concurrent period on the same day.
It is known from the background art that, in the embodiment, when calculating the wind control factor, not only the data accumulated on the day needs to be considered, but also the request data of the transaction request that has occurred before the target transaction request in the current concurrence period needs to be acquired.
Since the precedence order of the transaction requests in the prior wind control system is arranged in an increasing manner, the request data for which a transaction request has occurred before the target transaction request can be obtained in this manner: and extracting the request data before the target global sequence number from the global request data array to form a request data set.
A specific implementation of step S206 is described below:
s1: and copying the request data of each component and the corresponding global sequence number from the global request data array.
And copying the request data of each component and the corresponding global sequence number from the global request data array so as to avoid the change of the global request data array and conveniently execute the sequencing operation of the step SS.
S2: performing sorting operation on the request data of each group element according to the global sequence number;
and according to the size sequence of the global sequence numbers, performing sorting operation on the request data of each component so as to screen out the request data before the target global sequence number.
S3: and forming the request data set by a plurality of request data smaller than the target global sequence number.
Since the global sequence numbers are arranged in an increasing manner, the request book of the transaction request before the target transaction request is necessarily request data smaller than the target global sequence number, and therefore a plurality of request data smaller than the target global sequence number are grouped into the request data set.
Continuing with the above example, in the case of a target global sequence number of 10, transaction request 2, transaction request 5, and transaction request 8 are acquired to form a request data set.
Step S207: calculating a set of wind control factors based on the current day accumulated data, the set of requested data, and a calculation rule.
And adding a request data set on the basis of the current day accumulated data to obtain updated current day accumulated data, and calculating a wind control factor set by combining a preset calculation rule on the basis of the updated current day accumulated data.
The calculation rules and calculation methods for the wind control factor sets are already mature technologies, and the calculation rules for the wind control factors are different in different application scenarios, so that the detailed description is omitted here.
Step S208: the prior wind control system 200 performs a wind control operation on the transaction request based on the set of wind control factors.
It can be understood that each wind control factor in the wind control factor set has a wind control threshold, if the wind control factor exceeds the corresponding wind control threshold, that is, the wind control condition is satisfied, it indicates that the target transaction request has a risk on the wind control factor, and if the wind control factor does not exceed the corresponding wind control threshold, that is, the wind control condition is not satisfied, it indicates that the target transaction request has no risk on the wind control factor.
After judging the relationship between each wind control factor in the wind control factor set and a wind control threshold value, the wind control system judges that the target transaction request is subjected to wind control processing if at least one wind control factor in the wind control factor set meets the threshold value condition; and if all the wind control factors in the wind control factor set do not meet the threshold condition, sending a transaction request to a transaction system.
According to the technical characteristics, the application has the following beneficial effects:
in order to solve the problem that a plurality of threads of a thread pool are invisible, a global request data array is preset, and the global request data array comprises a plurality of component elements which are in one-to-one correspondence with the plurality of threads in the thread pool and is used for storing request data of processing transaction requests by the threads.
Because the threads of the thread pool can access the global request data array, the mutual visibility among different threads of the thread pool can be realized through the global request data array, and the prior wind control system can extract the request data before the target global sequence number from the global request data array.
In the process of calculating the wind control factor, the prior wind control system can comprehensively consider the current accumulated data and the request data before the target transaction request, so that the calculated wind control factor is more accurate, and the prior wind control system can more fairly and accurately realize wind control processing.
Referring to fig. 3, the present application further provides a prior wind control processing apparatus, including:
a receiving unit 31, configured to receive a target transaction request sent by a terminal in a current concurrent cycle, allocate the target transaction request to a thread in a thread pool, and call the thread as a target thread;
a serial number assigning unit 32, configured to assign a target global serial number to the request data of the target transaction request according to a receiving sequence of the transaction requests;
the storage unit 33 is configured to store the request data and the target global sequence number of the target transaction request in a global request data array and in a component corresponding to the target thread identifier;
the extracting unit 34 is configured to obtain the current accumulated data, extract the request data before the target global sequence number from the global request data array, and form a request data set;
a calculating unit 35, configured to calculate a set of wind control factors based on the current day accumulated data, the requested data set, and a calculation rule.
The global request data array comprises a plurality of elements which are in one-to-one correspondence with a plurality of threads in the thread pool.
A cumulative unit 36, configured to process the target transaction request by the target thread; and after the target thread finishes processing the target transaction request, accumulating the request data of the target transaction request on the basis of the data accumulated on the same day.
An emptying unit 37, configured to empty the request data corresponding to the target transaction request in the global request data array.
The sequence number assigning unit 32 includes: according to the receiving sequence of the transaction requests, giving a sequentially increasing unique global serial number to the request data of the target transaction request; and taking the unique global sequence number as the target global sequence number.
Wherein, the extracting unit 34 includes:
a copy unit 341, configured to copy the request data of each component and the corresponding global sequence number from the global request data array;
the sorting unit 342 is configured to perform a sorting operation on the request data of each component according to the global sequence number;
a composing unit 343, configured to compose a plurality of request data smaller than the target global sequence number into the request data set.
The advanced wind control processing device further comprises:
a wind control unit 38, configured to perform a wind control operation on the transaction request based on the wind control factor set;
wherein the execution of the wind control operation on the transaction request by the wind control unit 38 based on the wind control factor set includes: and under the condition that at least one wind control factor in the wind control factor set meets a threshold value condition, performing wind control processing on the target transaction request.
Wherein, if at least one of the wind control factors in the wind control factor set does not satisfy the threshold condition, then performing wind control processing on the target transaction request includes:
the warning unit is used for performing warning processing on the target transaction request and updating the warning times of a user corresponding to the target transaction request under the condition that at least one wind control factor in the wind control factor set does not meet a threshold condition;
and the intercepting unit is used for intercepting the transaction request sent by the user if the alarm times of the user reach preset times after the operation of a plurality of concurrent cycles.
The present application further provides an electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the prior wind control processing method shown in FIG. 2 via execution of the executable instructions.
A storage medium for storing a software program that can be used to implement the prior-air-control processing method shown in fig. 2.
The functions described in the method of the present embodiment, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. 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 application. Thus, the present application 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 (16)

1. A method for pre-emptive pneumatic control processing, comprising:
receiving a target transaction request sent by a terminal in a current concurrent period, distributing the target transaction request to a thread in a thread pool, and calling the thread as a target thread;
according to the receiving sequence of the transaction requests, giving a target global sequence number to the request data of the target transaction request, and storing the request data of the target transaction request and the target global sequence number into a global request data array and a component corresponding to the target thread identifier;
request data before the target global sequence number is extracted from the global request data array to form a request data set, and accumulated data of the current day are obtained;
calculating a set of wind control factors based on the current day accumulated data, the set of requested data, and a calculation rule.
2. The method of claim 1, wherein the global request data array includes a plurality of elements in a one-to-one correspondence with a plurality of threads in the thread pool.
3. The method of claim 1 or 2, further comprising:
the target thread processes the target transaction request;
after the target thread finishes processing the target transaction request, accumulating the request data of the target transaction request on the basis of the data accumulated on the same day;
and clearing the request data corresponding to the target transaction request in the global request data array.
4. The method of claim 3, wherein said assigning a target global sequence number to the request data of the target transaction request in the order in which the transaction requests are received comprises:
according to the receiving sequence of the transaction requests, giving a sequentially increasing unique global serial number to the request data of the target transaction request;
and taking the unique global sequence number as the target global sequence number.
5. The method of claim 4, wherein the extracting the request data prior to the target global sequence number from the global request data array to form a request data set comprises:
copying the request data of each component and the corresponding global sequence number from the global request data array;
performing sorting operation on the request data of each group element according to the global sequence number;
and forming the request data set by a plurality of request data smaller than the target global sequence number.
6. The method of claim 1, wherein after said calculating a set of wind control factors based on the current day's cumulative data, the set of requested data, and calculation rules, further comprising performing a wind control operation on the target transaction request based on the set of wind control factors;
executing a wind-controlled operation on the target transaction request based on the wind-controlled factor set comprises:
and under the condition that at least one wind control factor in the wind control factor set meets a threshold value condition, performing wind control processing on the target transaction request.
7. The method of claim 6, wherein if at least one of the set of wind control factors does not satisfy a threshold condition, then windingly processing the target transaction request comprises:
under the condition that at least one wind control factor in the wind control factor set does not meet a threshold condition, performing alarm processing on the target transaction request, and updating the alarm times of a user corresponding to the target transaction request;
after running in a plurality of concurrent cycles, if the alarm times of the user reach preset times, intercepting a transaction request sent by the user.
8. A prior-air-control processing apparatus, comprising:
the receiving unit is used for receiving a target transaction request sent by the terminal in the current concurrent cycle, distributing the target transaction request to a thread in the thread pool, and calling the thread as a target thread;
a sequence number assigning unit for assigning a target global sequence number to the request data of the target transaction request according to the receiving sequence of the transaction requests,
the storage unit is used for storing the request data and the target global sequence number of the target transaction request into a global request data array and a group element corresponding to the target thread identifier;
the extraction unit is used for extracting the request data before the target global sequence number from the global request data array to form a request data set and acquiring the accumulated data of the day;
and the calculating unit is used for calculating a wind control factor set based on the current accumulated data, the request data set and a calculating rule.
9. The apparatus of claim 8, wherein the global request data array comprises a plurality of elements in a one-to-one correspondence with a plurality of threads in the thread pool.
10. The apparatus of claim 8 or 9, wherein the target thread processes the target transaction request; the device further comprises:
the accumulation unit is used for accumulating the request data of the target transaction request on the basis of the data accumulated on the same day after the target thread finishes processing the target transaction request;
and the clearing unit is used for clearing the request data corresponding to the target transaction request in the global request data array.
11. The apparatus of claim 10, wherein the sequence number assigning unit is specifically configured to: according to the receiving sequence of the transaction requests, giving a sequentially increasing unique global serial number to the request data of the target transaction request; and taking the unique global sequence number as the target global sequence number.
12. The apparatus of claim 11, wherein the extraction unit comprises:
the copying unit is used for copying the request data of each component and the corresponding global serial number from the global request data array;
the sequencing unit is used for executing sequencing operation on the request data of each group element according to the global sequence number;
and the composition unit is used for composing a plurality of request data smaller than the target global sequence number into the request data set.
13. The apparatus of claim 8, wherein the apparatus further comprises:
a wind control unit, configured to perform a wind control operation on the transaction request based on the wind control factor set after the wind control factor set is calculated based on the current day accumulated data, the request data set, and a calculation rule;
the executing, by the wind control unit, the wind control operation on the target transaction request based on the wind control factor set specifically includes: and under the condition that at least one wind control factor in the wind control factor set meets a threshold value condition, performing wind control processing on the target transaction request.
14. The apparatus of claim 13, wherein the wind control unit comprises:
the warning unit is used for performing warning processing on the target transaction request and updating the warning times of a user corresponding to the target transaction request under the condition that at least one wind control factor in the wind control factor set does not meet a threshold condition;
and the intercepting unit is used for intercepting the transaction request sent by the user if the alarm times of the user reach preset times after the operation of a plurality of concurrent cycles.
15. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of pre-wind processing according to any of claims 1-7 via execution of the executable instructions.
16. A storage medium for storing a software program operable to implement the pre-emptive pneumatic processing method of any one of claims 1 to 7.
CN201910516572.8A 2019-06-14 2019-06-14 Method and device for processing advance wind control Active CN110210786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910516572.8A CN110210786B (en) 2019-06-14 2019-06-14 Method and device for processing advance wind control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910516572.8A CN110210786B (en) 2019-06-14 2019-06-14 Method and device for processing advance wind control

Publications (2)

Publication Number Publication Date
CN110210786A CN110210786A (en) 2019-09-06
CN110210786B true CN110210786B (en) 2021-07-09

Family

ID=67792822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910516572.8A Active CN110210786B (en) 2019-06-14 2019-06-14 Method and device for processing advance wind control

Country Status (1)

Country Link
CN (1) CN110210786B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588405A (en) * 2004-08-31 2005-03-02 杭州恒生电子股份有限公司 Data processing device and method for risk control system
CN107316134A (en) * 2017-06-16 2017-11-03 深圳乐信软件技术有限公司 A kind of risk control method, device, server and storage medium
CN107862425A (en) * 2017-08-29 2018-03-30 平安普惠企业管理有限公司 Air control collecting method, equipment, system and readable storage medium storing program for executing
CN109544037A (en) * 2018-12-19 2019-03-29 上海金融期货信息技术有限公司 It is a kind of without intrusive securities futures trading air control gateway system in advance
CN109767227A (en) * 2018-12-28 2019-05-17 深圳市讯联智付网络有限公司 The system and method for payment risk intelligent decision and control is realized by RDS

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090043637A1 (en) * 2004-06-01 2009-02-12 Eder Jeffrey Scott Extended value and risk management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588405A (en) * 2004-08-31 2005-03-02 杭州恒生电子股份有限公司 Data processing device and method for risk control system
CN107316134A (en) * 2017-06-16 2017-11-03 深圳乐信软件技术有限公司 A kind of risk control method, device, server and storage medium
CN107862425A (en) * 2017-08-29 2018-03-30 平安普惠企业管理有限公司 Air control collecting method, equipment, system and readable storage medium storing program for executing
CN109544037A (en) * 2018-12-19 2019-03-29 上海金融期货信息技术有限公司 It is a kind of without intrusive securities futures trading air control gateway system in advance
CN109767227A (en) * 2018-12-28 2019-05-17 深圳市讯联智付网络有限公司 The system and method for payment risk intelligent decision and control is realized by RDS

Also Published As

Publication number Publication date
CN110210786A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN107741882B (en) Task allocation method and device and electronic equipment
CN107958349B (en) Task allocation method and device, computer equipment and storage medium
CN103810045B (en) Resource allocation methods, explorer, Resource Server and system
CN106447080A (en) Order distribution method and device and order processing system
CN111080126A (en) Task allocation method and device
CN109597800B (en) Log distribution method and device
CN106339802A (en) Task allocation method, task allocation device and electronic equipment
CN112150023A (en) Task allocation method, device and storage medium
CN113360269A (en) Task allocation method, device, server and storage medium
US20190065368A1 (en) Memory reclaiming method and apparatus
CN111078413A (en) Timed task execution method and device, computer equipment and storage medium
CN110210786B (en) Method and device for processing advance wind control
CN106169148B (en) Customer service method and device
CN112399352B (en) Cheating behavior identification method, device and storage medium
CN206480045U (en) A kind of customer care server and customer service system
CN111124672A (en) Data distribution method based on Redis cluster and related equipment
CN107730364A (en) user identification method and device
CN111612520A (en) Resource processing method, device, server and storage medium
CN107369088B (en) Method and device for processing account transaction
CN116362750A (en) Data screening method and device, electronic equipment and storage medium
CN115796523A (en) Resource allocation method and device
CN111967798B (en) Method, device and equipment for distributing experimental samples and computer readable storage medium
CN107145495B (en) Method and device for dynamically adjusting parameter rules
CN104200556B (en) Queuing treatment method, device and system
CN114157717A (en) Micro-service dynamic current limiting system and method

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