Processing Method and Device for Online Transactions, Processor, and Electronic Device

By obtaining target queue information and strategies, determining and controlling target online transactions, the poor processing effect caused by the current limiting method in the existing technology is solved, and more efficient transaction processing is achieved.

CN115049488BActive Publication Date: 2025-06-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210655563.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2025-06-27
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

When the existing technology sends online transactions to the host in large quantities, the current limiting method is used to protect the processing environment, resulting in poor results in processing online transactions.

Method used

By obtaining target queue information and target policies, determine the target online transactions in multiple online transactions and perform disable or unban operations to dynamically control the ban and release of transactions.

Benefits of technology

It realizes dynamic and precise control of online transactions bans and releases during large-scale transactions, protects the processing environment, and improves the effectiveness of online transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115049488B_ABST
    Figure CN115049488B_ABST
Patent Text Reader

Abstract

The present application discloses a method and apparatus for processing online transactions, a processor, and an electronic device, which relate to the field of financial technology or other related fields. The method includes: obtaining target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in a target host, and the target policy is used to protect a target environment for processing the multiple online transactions; determining a target online transaction among the multiple online transactions according to the target queue information and the target policy; performing a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation, an unlocking operation; in the protected target environment, the target host executes the online transaction. Through the present application, the problem in the prior art that when a large number of online transactions are sent to the host, the environment for processing the online transactions is protected by means of current limiting, resulting in poor effect of processing the online transactions, is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fintech, and in particular, to a method and device for processing online transactions, a processor, and an electronic device. Background Art

[0002] Online transactions run in the middleware of the Customer Information Control System (CICS) of the host. If the concurrency of transactions is too high (for example, testers initiate a large number of transactions through an automated script), it will cause the host resources to be strained, and even the entire environment may become unavailable due to resource problems. In addition, since the host generally adopts a centralized processing mechanism and involves many applications and transaction processes at the same time, the resource management of the host is extremely important. In the related art, for transactions with excessive concurrency (also known as machine gun transactions), flow limiting is generally performed through a gateway or CICS.

[0003] However, flow limiting through a gateway or CICS cannot dynamically control the prohibition and release of host transactions (for example, flow limiting by proportion will reduce the success rate of normal transactions); in addition, there are also deficiencies in terms of precise control ability and operation convenience.

[0004] In view of the problem in the prior art that when a large number of online transactions are sent to the host, a flow limiting method is used to protect the environment for processing online transactions, resulting in poor effects in processing online transactions, no effective solution has been proposed yet. Summary of the Invention

[0005] The main object of the present application is to provide a method and device for processing online transactions, a processor, and an electronic device, so as to solve the problem in the prior art that when a large number of online transactions are sent to the host, a flow limiting method is used to protect the environment for processing online transactions, resulting in poor effects in processing online transactions.

[0006] To achieve the above object, according to one aspect of the present application, a method for processing online transactions is provided. The method includes: obtaining target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in the target host, and the target policy is used to protect the target environment for processing the multiple online transactions; determining a target online transaction among the multiple online transactions according to the target queue information and the target policy; performing a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation, an unlocking operation; in the protected target environment, the target host executes an online transaction.

[0007] Further, determining the target online transaction among the multiple online transactions according to the target queue information and the target policy includes: determining the target flow rate of each online transaction according to the target queue information; determining whether the target flow rate is greater than the first flow rate in the target policy; if the target flow rate is greater than the first flow rate, determining the transaction corresponding to the target flow rate as the target online transaction.

[0008] Further, performing a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation, an unlocking operation, including: performing the disabling operation on the target online transaction; after performing the disabling operation on the target online transaction, obtaining the current time; determining whether the current time reaches the time to unlock the first online transaction, where the first online transaction is the online transaction among the multiple online transactions that is disabled and is the same as or different from the target online transaction; if the current time reaches the time to unlock the first online transaction, performing the unlocking operation on the first online transaction to protect the target environment.

[0009] Further, after determining whether the target flow rate is greater than the first flow rate in the target policy, the method further includes: if the target flow rate is not greater than the first flow rate, obtaining the current time; determining whether the current time reaches the time to unlock the first online transaction; if the current time reaches the time to unlock the first online transaction, performing the unlocking operation on the first online transaction.

[0010] Further, after determining whether the current time reaches the time to unlock the first online transaction, the method further includes: if the current time does not reach the time to unlock the first online transaction, re-obtaining the target policy and the target queue information to protect the target environment by using the re-obtained target policy and target queue information.

[0011] Further, after performing the unlocking operation on the first online transaction, the method further includes: re-obtaining the target policy and the target queue information to protect the target environment by using the re-obtained target policy and target queue information.

[0012] Further, obtaining the target queue information includes: determining multiple online transactions to be processed in the target host; obtaining the attribute information of each online transaction; and obtaining the target queue information according to the attribute information of each online transaction.

[0013] Further, a customer information control system is included in the target host, and obtaining the attribute information of each online transaction includes: deploying a target application in a first area in the customer information control system, where the multiple online transactions are distributed in the first area; and collecting the attribute information of each online transaction through the target application.

[0014] To achieve the above object, according to another aspect of the present application, a processing device for online transactions is provided. The device includes: a first acquisition unit configured to acquire target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in the target host, and the target policy is used to protect a target environment for processing the multiple online transactions; a first determination unit configured to determine a target online transaction among the multiple online transactions according to the target queue information and the target policy; a first execution unit configured to perform a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation and an unlocking operation; and a second execution unit configured to, in the protected target environment, the target host executes an online transaction.

[0015] Further, the first determination unit includes: a first determination module configured to determine a target flow rate of each online transaction according to the target queue information; a first judgment module configured to judge whether the target flow rate is greater than a first flow rate in the target policy; and a second determination module configured to, if the target flow rate is greater than the first flow rate, determine the transaction corresponding to the target flow rate as the target online transaction.

[0016] Further, the first execution unit includes: a first execution module configured to perform the disabling operation on the target online transaction; a first acquisition module configured to acquire the current time after performing the disabling operation on the target online transaction; a second judgment module configured to judge whether the current time reaches the time for unlocking a first online transaction, where the first online transaction is a transaction disabled among the multiple online transactions and is the same as or different from the target online transaction; and a second execution module configured to, if the current time reaches the time for unlocking the first online transaction, perform the unlocking operation on the first online transaction to protect the target environment.

[0017] Further, the device further includes: a second acquisition unit configured to acquire the current time after judging whether the target flow rate is greater than the first flow rate in the target policy, if the target flow rate is not greater than the first flow rate; a first judgment unit configured to judge whether the current time reaches the time for unlocking the first online transaction; and a third execution unit configured to, if the current time reaches the time for unlocking the first online transaction, perform the unlocking operation on the first online transaction.

[0018] Further, the device further includes: a third obtaining unit, configured to, after determining whether the current time reaches the time to lift the ban on the first online transaction, if the current time does not reach the time to lift the ban on the first online transaction, re-obtain the target policy and the target queue information, so as to protect the target environment by using the re-obtained target policy and target queue information.

[0019] Further, the device further includes: a fourth obtaining unit, configured to, after performing the lifting operation on the first online transaction, re-obtain the target policy and the target queue information, so as to protect the target environment by using the re-obtained target policy and target queue information.

[0020] Further, the first obtaining unit includes: a third determining module, configured to determine a plurality of online transactions to be processed in the target host; a second obtaining module, configured to obtain attribute information of each of the online transactions; and a fourth determining module, configured to obtain the target queue information according to the attribute information of each of the online transactions.

[0021] Further, the target host includes a customer information control system, and the second obtaining module includes: a first deployment sub-module, configured to deploy a target application program in a first area in the customer information control system, where the plurality of online transactions are distributed in the first area; and a first collection sub-module, configured to collect the attribute information of each of the online transactions through the target application program.

[0022] To achieve the above object, according to another aspect of the present application, there is provided a processor, where the processor is used to run a program, and when the program runs, it executes the online transaction processing method described in any one of the above.

[0023] To achieve the above object, according to another aspect of the present application, there is provided an electronic device, where the electronic device includes one or more processors and a memory, and the memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the online transaction processing method described in any one of the above.

[0024] The present application can be applied to a target host and adopts the following steps: obtaining target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in the target host, and the target policy is used to protect the target environment for processing multiple online transactions; determining a target online transaction among the multiple online transactions according to the target queue information and the target policy; performing a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation and an unlocking operation; in the protected target environment, the target host executes the online transaction, solving the problem in the prior art that when a large number of online transactions are sent to the host, a flow-limiting method is adopted to protect the environment for processing online transactions, resulting in poor effects of processing online transactions. By determining the target online transaction according to the queue information and the policy and performing a disabling operation and / or an unlocking operation on the target online transaction, it is possible to dynamically and accurately control the prohibition and release of online transactions when a large number of online transactions are sent to the host, thereby protecting the environment for processing online transactions, and then in the protected environment, the host executes the online transaction, and further improving the effects of processing online transactions. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings constituting a part of this application are used to provide a further understanding of this application. The schematic embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation to this application. In the drawings:

[0026] Figure 1 is a flowchart of a method for processing online transactions according to an embodiment of this application;

[0027] Figure 2 is a schematic diagram of an optional device for processing online transactions according to an embodiment of this application;

[0028] Figure 3 is a flowchart of an optional method for processing online transactions according to an embodiment of this application;

[0029] Figure 4 is a schematic diagram of a device for processing online transactions according to an embodiment of this application;

[0030] Figure 5 is a schematic diagram of an electronic device according to an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0031] It should be noted that, without conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The following will refer to the drawings and combine the embodiments to detail this application.

[0032] To enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned accompanying drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data used can be interchanged under appropriate circumstances for the embodiments of this application described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0034] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and relevant users or institutions. Before obtaining relevant information, a request for acquisition needs to be sent to the aforementioned users or institutions through the interface, and after receiving the consent information feedback from the aforementioned users or institutions, the relevant information can be obtained.

[0035] For the convenience of description, some nouns or terms related to the embodiments of this application are described below:

[0036] Mainframe: It can be a large mainframe produced by International Business Machines Corporation (IBM), or it can be an IBM midrange or small server installed with the OS / 390 operating system.

[0037] Customer Information Control System (CICS): A mainframe transaction processing middleware developed by IBM. It can support On-Line Transaction Processing (OLTP), provide online transaction processing and transaction management for applications, enable highly concurrent online transactions, and offer real-time transaction requests and responses to users. Additionally, CICS is divided according to regions (REGION), such as Terminal owning region (TOR), Application owning region (AOR), etc.

[0038] Terminal owning region (TOR): Used to handle the network facilities and requirements of end-users. In use, based on transaction groups and routing configurations, the mainframe transactions passing through TOR can be distributed to the corresponding AORs for execution.

[0039] Application owning region (AOR): Responsible for handling user transactions and programs.

[0040] JOB job: Refers to a JOB job written in Job Control Language (JCL), including a HEAD job header and a BODY job body. Moreover, the BODY job body in a JOB job contains several STEP job steps, and each STEP job step implements one or more functions. That is, a HEAD job header plus one or more STEP job steps, concatenated together, can form a non-empty JOB job.

[0041] Job Entry Subsystem (JES): In the mainframe system, the scheduling and execution of all jobs, input and output information, etc. are managed through JES.

[0042] Dataset: The most basic storage unit on the mainframe, equivalent to a "file" in the fat file system.

[0043] The present invention will be described below in conjunction with preferred implementation steps. Figure 1 It is a flowchart of a method for processing online transactions provided according to an embodiment of the present application, as Figure 1 shown. The method includes the following steps:

[0044] Step S101, obtain target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in a target host, and the target policy is used to protect a target environment for processing the multiple online transactions.

[0045] For example, an export program can be deployed in TOR to collect transaction data, and the transaction data can include: the name and initiation time of each online transaction to be processed in an IBM mainframe, and the transaction data is transmitted to an output queue (the above-mentioned target queue information). And read the policy for protecting the environment for processing multiple online transactions, that is, read the protection policy (the above-mentioned target policy).

[0046] Step S102, determine a target online transaction among the multiple online transactions according to the target queue information and the target policy.

[0047] For example, parse the transaction data in the above output queue, and then identify the transactions that need to be disabled or lifted according to the protection policy.

[0048] Step S103, perform a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disable operation, a lift operation.

[0049] For example, disable and lift the identified transactions that need to be disabled or lifted by generating and submitting job jobs, so as to achieve the purpose of protecting the online environment.

[0050] Step S104, in the protected target environment, the target host executes online transactions.

[0051] For example, in the protected online environment, the IBM mainframe processes the online transactions to be processed in the IBM mainframe and not disabled.

[0052] Through the above steps S101 to S104, by determining the target online transaction according to the queue information and the policy, and performing a disable operation and / or a lift operation on the target online transaction, it is possible to dynamically and accurately control the prohibition and release of online transactions when a large number of online transactions are sent to the host, thereby protecting the environment for processing online transactions. Then, in the protected environment, the host executes online transactions, and thus the effect of processing online transactions can be improved.

[0053] In order to quickly and accurately obtain the attribute information of each online transaction, in the method for processing online transactions provided in the embodiment of the present application, the attribute information of each online transaction can also be obtained through the following steps: the target host includes a customer information control system, a target application program is deployed in a first area in the customer information control system, where multiple online transactions are distributed in the first area; the attribute information of each online transaction is collected through the target application program.

[0054] For example, Figure 2 is a schematic diagram of an optional on-line transaction processing device provided according to an embodiment of the present application, as Figure 2 shown, the optional on-line transaction processing device includes: a transaction 100, a gateway (GW) 200, and a host (IBM zOS) 300. Among them, the transaction 100 includes: transaction 1 (corresponding to Figure 2 101 in, that is, TRANS1), transaction 2 (corresponding to Figure 2 102 in, TRANS2), and transaction m (corresponding to Figure 2 103 in, that is, TRANSm); the IBM host 300 includes: TOR (corresponding to Figure 2 301 in), AOR1 (corresponding to Figure 2 302 in), AOR2 (corresponding to Figure 2 303 in), AORn (corresponding to Figure 2 304 in), an exit program (the above-mentioned target application program, corresponding to Figure 2 305 in, that is, exit), JES (corresponding to Figure 2 306 in), a data set (corresponding to Figure 2 307 in, that is, dataset), a decision and processing module (corresponding to Figure 2 308 in, that is, decision&process module), and a host job (corresponding to Figure 2 309 in, that is, job).

[0055] In addition, the exit program can be written in an efficient mainframe assembly language and can be deployed on the TOR. At the same time, functions such as collection of transaction data (such as attribute information such as the name of the transaction and the initiation time of the transaction) and socket transmission can be realized.

[0056] In summary, by deploying an efficient assembly exit program in CICS to obtain transaction data, the attribute information of each on-line transaction can be obtained quickly and accurately, and the overhead of obtaining transaction data can be reduced, and it is transparent to applications, developers, testers, and operation and maintenance personnel.

[0057] In order to protect the environment for processing on-line transactions, how to obtain the target queue information is also one of the key points. In the on-line transaction processing method provided by the embodiments of the present application, how to obtain the target queue information is further defined. The target queue information can be obtained by the following technical features: obtaining the target queue information includes: determining multiple on-line transactions to be processed in the target host; obtaining the attribute information of each on-line transaction; and obtaining the target queue information based on the attribute information of each on-line transaction.

[0058] For example, the information of each online transaction data to be processed in the IBM mainframe is collected through the export program 305 (such as attribute information such as the name of each transaction and the initiation time of each transaction), and then the attribute information such as the name of each collected transaction and the initiation time of each transaction is sent to the output queue of CICS (the above target queue information) through the socket.

[0059] In addition, the above decision-making and processing module is mainly responsible for parsing the data of the mainframe transactions, identifying the transactions that need to be disabled or lifted according to the protection policy, and then generating and submitting relevant job jobs. At the same time, it can realize the function of dynamically and accurately controlling the prohibition and release of mainframe transactions.

[0060] For example, as Figure 2 shown, specifically, the transaction message shown in Transaction 100: Transaction 1 (corresponding to Figure 2 101 in Figure 2 ), Transaction 2 (corresponding to Figure 2 102 in

[0061] Through the above solution, according to the attribute information of each online transaction, the output queue data can be obtained quickly and accurately. Thus, based on the output queue data and the protection policy, it is possible to effectively prevent a large number of transactions from being sent to the mainframe through scripts or other means, resulting in a situation where the mainframe resources are strained or even the environment becomes unavailable, that is, the environment for processing online transactions can be protected.

[0062] In order to accurately determine the target online transaction among multiple online transactions, in the online transaction processing method provided in the embodiments of the present application, the following method is adopted to determine the target online transaction among multiple online transactions: According to the target queue information, determine the target flow rate of each online transaction; Determine whether the target flow rate is greater than the first flow rate in the target policy; If the target flow rate is greater than the first flow rate, determine the transaction corresponding to the target flow rate as the target online transaction.

[0063] For example, the above decision and processing module reads the protection policy, reads the output queue data, and counts the transaction flow rate; Then determine whether there is a transaction that triggers the protection mechanism (for example: the number of initiated transactions per unit time exceeds the maximum allowed number); If there is a transaction that triggers the protection mechanism, use the transaction that triggers the protection mechanism as the target transaction.

[0064] In summary, according to the protection policy and the output queue data, the target online transaction among multiple online transactions can be obtained quickly and accurately.

[0065] In order to protect the environment for processing online transactions, how to perform a target operation on the target online transaction is also one of the key points. In the online transaction processing method provided in the embodiments of the present application, further limitations are imposed on how to perform a target operation on the target online transaction. How to perform a target operation on the target online transaction can be achieved by the following technical features: Perform a disable operation on the target online transaction; After performing the disable operation on the target online transaction, obtain the current time; Determine whether the current time has reached the time to lift the ban on the first online transaction, where the first online transaction is an online transaction among multiple online transactions that has been disabled and is the same as or different from the target online transaction; If the current time has reached the time to lift the ban on the first online transaction, perform a lift ban operation on the first online transaction to protect the target environment.

[0066] For example, if there is a transaction that triggers the protection mechanism, the decision and processing module generates a job for disabling the transaction; Then the job for disabling the transaction is submitted to JES for running; And the transaction is disabled on the corresponding TOR; Then determine whether there is a banned transaction that has reached the time to lift the ban. If there is a banned transaction that has reached the time to lift the ban, the decision and processing module generates a job for lifting the ban on the transaction; Then the job for lifting the ban on the transaction is submitted to JES for running; And the transaction is lifted the ban on the corresponding TOR.

[0067] Through the above solution, according to the protection policy, the output queue data, and the obtained current time, the target operation can be conveniently performed on the target online transaction, thereby protecting the environment for processing online transactions.

[0068] To protect the environment for processing online transactions, in the method for processing online transactions provided in the embodiments of the present application, after determining whether the target flow rate is greater than the first flow rate in the target policy, the following steps can also be used to perform an unlocking operation on the online transaction: If the target flow rate is not greater than the first flow rate, obtain the current time; determine whether the current time reaches the time for unlocking the first online transaction; if the current time reaches the time for unlocking the first online transaction, perform an unlocking operation on the first online transaction.

[0069] For example, if no transaction triggers the protection mechanism, directly determine whether there is a prohibited transaction whose unlocking time has arrived. If there is a prohibited transaction whose unlocking time has arrived, the decision and processing module generates a job for unlocking the transaction; then the job for unlocking the transaction is submitted to JES for running; and the transaction is unlocked on the corresponding TOR.

[0070] In summary, if no transaction triggers the protection mechanism, the target operation can be conveniently performed on the target online transaction based on the obtained current time, thereby protecting the environment for processing online transactions.

[0071] To protect the environment for processing online transactions, in the method for processing online transactions provided in the embodiments of the present application, after determining whether the current time reaches the time for unlocking the first online transaction, the following steps can also be used to re-obtain the target policy and target queue information: If the current time does not reach the time for unlocking the first online transaction, re-obtain the target policy and target queue information to protect the target environment by using the re-obtained target policy and target queue information.

[0072] For example, if there is no prohibited transaction whose unlocking time has arrived, the decision and processing module re-reads the protection policy, and the decision and processing module also re-reads the transaction information in the output queue; then the decision and processing module uses the re-read protection policy and the re-read transaction information in the output queue to determine whether the transaction triggers the protection mechanism (for example: the number of initiated transactions per unit time exceeds the maximum allowed number), and whether the prohibited transaction has reached the unlocking time.

[0073] In summary, if there is no prohibited transaction whose unlocking time has arrived, the protection policy and the transaction information in the output queue can be re-read, thereby protecting the environment for processing online transactions by using the re-read protection policy and the transaction information in the output queue.

[0074] To protect the environment for processing online transactions, in the method for processing online transactions provided in the embodiments of the present application, after performing an unlocking operation on the first online transaction, the following steps can also be used to re-obtain the target policy and target queue information: Re-obtain the target policy and target queue information to protect the target environment by using the re-obtained target policy and target queue information.

[0075] For example, if a transaction is lifted from the ban on the corresponding TOR, the decision-making and processing module rereads the protection policy, and the decision-making and processing module also rereads the transaction information in the output queue; then the decision-making and processing module uses the reread protection policy and the transaction information reread from the output queue to determine whether the transaction has triggered a protection mechanism (for example: the number of initiated transactions within a unit time exceeds the maximum allowed number), and whether the banned transaction has reached the time to lift the ban.

[0076] In summary, after performing the lift operation on the online transaction, the protection policy and the transaction information in the output queue can be reread, so that the environment for processing online transactions can be protected by using the reread protection policy and the transaction information in the output queue.

[0077] For example, Figure 3 is a flowchart of an optional online transaction processing method provided according to an embodiment of the present application. As Figure 3 shown, the optional online transaction processing method includes the following steps:

[0078] Step S301: Develop an efficient CICS exit program in mainframe assembly language and deploy it on the TOR;

[0079] Step S302: The exit program collects host transaction data;

[0080] Step S303: The exit program transmits the TOR name, the name of the transaction, and the initiation time of the transaction to the output queue of the TOR through a socket;

[0081] Step S304: Write the protection policy in the dataset;

[0082] Step S305: The decision-making and processing module reads the protection policy;

[0083] Step S306: The decision-making and processing module reads the transaction information in the output queue;

[0084] Step S307: The decision-making and processing module determines whether the transaction has triggered a protection mechanism (for example: the number of initiated transactions within a unit time exceeds the maximum allowed number), and whether the banned transaction has reached the time to lift the ban;

[0085] Step S308: Determine whether any transaction has triggered a protection mechanism. If so, execute Step S309; otherwise, execute Step S312;

[0086] Step S309: The decision-making and processing module generates a job for disabling the transaction;

[0087] Step S310: Submit the job for disabling the transaction to the JES for running;

[0088] Step S311, the transaction is disabled on the corresponding TOR;

[0089] Step S312, determine whether the prohibited transaction has reached the release time. If so, execute Step S313; otherwise, continue to execute Step S305;

[0090] Step S313, the decision and processing module generates a job for the released transaction;

[0091] Step S314, submit the job of the released transaction to JES for execution;

[0092] Step S315, the transaction is released on the corresponding TOR, and then continue to execute Step S305.

[0093] In summary, the online transaction processing method provided by the embodiments of the present application can be applied to a target host, and by obtaining target queue information and target policies, where the target queue information is used to represent the attributes of multiple online transactions to be processed in the target host, and the target policy is used to protect the target environment for processing multiple online transactions; according to the target queue information and the target policy, determine the target online transaction among the multiple online transactions; perform a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation, a releasing operation; in the protected target environment, the target host executes the online transaction, solving the problem in the prior art that when a large number of online transactions are sent to the host, a flow-limiting method is used to protect the environment for processing online transactions, resulting in poor effects in processing online transactions. By determining the target online transaction according to the queue information and the policy, and performing a disabling operation and / or a releasing operation on the target online transaction, it is possible to dynamically and accurately control the prohibition and release of online transactions when a large number of online transactions are sent to the host, thereby protecting the environment for processing online transactions, and then in the protected environment, the host executes the online transaction, and further improving the effect of processing online transactions.

[0094] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0095] The embodiments of the present application also provide an online transaction processing device. It should be noted that the online transaction processing device of the embodiments of the present application can be used to execute the online transaction processing method provided by the embodiments of the present application. The following introduces the online transaction processing device provided by the embodiments of the present application.

[0096] Figure 4 is a schematic diagram of the online transaction processing device according to the embodiments of the present application. As Figure 4As shown in the figure, the device includes: a first acquisition unit 401, a first determination unit 402, a first execution unit 403, and a second execution unit 404.

[0097] Specifically, the first acquisition unit 401 is configured to acquire target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in a target host, and the target policy is used to protect a target environment for processing multiple online transactions;

[0098] The first determination unit 402 is configured to determine a target online transaction among multiple online transactions according to the target queue information and the target policy;

[0099] The first execution unit 403 is configured to perform a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disable operation, an unlock operation;

[0100] The second execution unit 404 is configured to execute an online transaction on the target host in the protected target environment.

[0101] In summary, the online transaction processing device provided by the embodiment of the present application can be applied to a target host, and the first acquisition unit 401 acquires target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in the target host, and the target policy is used to protect the target environment for processing multiple online transactions; the first determination unit 402 determines a target online transaction among multiple online transactions according to the target queue information and the target policy; the first execution unit 403 performs a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disable operation, an unlock operation; the second execution unit 404 executes an online transaction on the target host in the protected target environment, solving the problem in the prior art that when a large number of online transactions are sent to the host, a flow-limiting method is used to protect the environment for processing online transactions, resulting in poor effects in processing online transactions. By determining the target online transaction according to the queue information and the policy, and performing a disable operation and / or an unlock operation on the target online transaction, it is possible to dynamically and accurately control the prohibition and release of online transactions when a large number of online transactions are sent to the host, thereby protecting the environment for processing online transactions, and then the host executes online transactions in the protected environment, and further improving the effect of processing online transactions.

[0102] Optionally, in the online transaction processing device provided by the embodiment of the present application, the first determination unit includes: a first determination module configured to determine the target flow rate of each online transaction according to the target queue information; a first judgment module configured to judge whether the target flow rate is greater than the first flow rate in the target policy; a second determination module configured to, if the target flow rate is greater than the first flow rate, determine the transaction corresponding to the target flow rate as the target online transaction.

[0103] Optionally, in the online transaction processing device provided in the embodiments of the present application, the first execution unit includes: a first execution module, configured to perform a disabling operation on a target online transaction; a first acquisition module, configured to acquire the current time after performing the disabling operation on the target online transaction; a second determination module, configured to determine whether the current time reaches the time to lift the ban on a first online transaction, where the first online transaction is a transaction that is disabled among multiple online transactions and is the same as or different from the target online transaction; a second execution module, configured to, if the current time reaches the time to lift the ban on the first online transaction, perform a lifting operation on the first online transaction to protect the target environment.

[0104] Optionally, in the online transaction processing device provided in the embodiments of the present application, the device further includes: a second acquisition unit, configured to acquire the current time if the target flow rate is not greater than the first flow rate in the target policy after determining whether the target flow rate is greater than the first flow rate in the target policy; a first determination unit, configured to determine whether the current time reaches the time to lift the ban on the first online transaction; a third execution unit, configured to, if the current time reaches the time to lift the ban on the first online transaction, perform a lifting operation on the first online transaction.

[0105] Optionally, in the online transaction processing device provided in the embodiments of the present application, the device further includes: a third acquisition unit, configured to, if the current time does not reach the time to lift the ban on the first online transaction after determining whether the current time reaches the time to lift the ban on the first online transaction, re-acquire the target policy and the target queue information to protect the target environment by using the re-acquired target policy and target queue information.

[0106] Optionally, in the online transaction processing device provided in the embodiments of the present application, the device further includes: a fourth acquisition unit, configured to re-acquire the target policy and the target queue information after performing a lifting operation on the first online transaction to protect the target environment by using the re-acquired target policy and target queue information.

[0107] Optionally, in the online transaction processing device provided in the embodiments of the present application, the first acquisition unit includes: a third determination module, configured to determine multiple online transactions to be processed in a target host; a second acquisition module, configured to acquire the attribute information of each online transaction; a fourth determination module, configured to obtain the target queue information according to the attribute information of each online transaction.

[0108] Optionally, in the online transaction processing device provided in the embodiments of the present application, the target host includes a customer information control system, and the second acquisition module includes: a first deployment sub-module, configured to deploy a target application program in a first area in the customer information control system, where multiple online transactions are distributed in the first area; a first collection sub-module, configured to collect the attribute information of each online transaction through the target application program.

[0109] The processing device for online transactions includes a processor and a memory. The above-mentioned first acquisition unit 401, first determination unit 402, first execution unit 403, second execution unit 404, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.

[0110] The processor contains a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set, and the processing effect of online transactions can be improved by adjusting the kernel parameters.

[0111] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of, for example, read-only memory (ROM) or flash memory (flash RAM). The memory includes at least one memory chip.

[0112] An embodiment of the present invention provides a processor for running a program, wherein the program, when running, executes the method for processing online transactions.

[0113] As Figure 5 shown, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining target queue information and a target policy, wherein the target queue information is used to represent the attributes of multiple online transactions to be processed in the target host, and the target policy is used to protect the target environment for processing the multiple online transactions; determining a target online transaction among the multiple online transactions according to the target queue information and the target policy; performing a target operation on the target online transaction to protect the target environment, wherein the target operation is one of the following: a disabling operation, an unlocking operation; in the protected target environment, the target host executes online transactions.

[0114] When the processor executes the program, the following steps are also implemented: determining a target online transaction among the multiple online transactions according to the target queue information and the target policy includes: determining the target flow rate of each online transaction according to the target queue information; judging whether the target flow rate is greater than the first flow rate in the target policy; if the target flow rate is greater than the first flow rate, determining the transaction corresponding to the target flow rate as the target online transaction.

[0115] When the processor executes the program, the following steps are also implemented: performing a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation, an unlocking operation, including: performing the disabling operation on the target online transaction; after performing the disabling operation on the target online transaction, obtaining the current time; determining whether the current time reaches the time for unlocking the first online transaction, where the first online transaction is a disabled transaction among the multiple online transactions and is the same as or different from the target online transaction; if the current time reaches the time for unlocking the first online transaction, then performing the unlocking operation on the first online transaction to protect the target environment.

[0116] When the processor executes the program, the following steps are also implemented: after determining whether the target flow rate is greater than the first flow rate in the target policy, the method further includes: if the target flow rate is not greater than the first flow rate, then obtaining the current time; determining whether the current time reaches the time for unlocking the first online transaction; if the current time reaches the time for unlocking the first online transaction, then performing the unlocking operation on the first online transaction.

[0117] When the processor executes the program, the following steps are also implemented: after determining whether the current time reaches the time for unlocking the first online transaction, the method further includes: if the current time does not reach the time for unlocking the first online transaction, then re-obtaining the target policy and the target queue information to protect the target environment by using the re-obtained target policy and target queue information.

[0118] When the processor executes the program, the following steps are also implemented: after performing the unlocking operation on the first online transaction, the method further includes: re-obtaining the target policy and the target queue information to protect the target environment by using the re-obtained target policy and target queue information.

[0119] When the processor executes the program, the following steps are also implemented: obtaining the target queue information includes: determining multiple online transactions to be processed in the target host; obtaining the attribute information of each online transaction; and obtaining the target queue information according to the attribute information of each online transaction.

[0120] When the processor executes the program, the following steps are also implemented: the target host includes a customer information control system, and obtaining the attribute information of each online transaction includes: deploying a target application program in a first area in the customer information control system, where the multiple online transactions are distributed in the first area; and collecting the attribute information of each online transaction through the target application program.

[0121] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0122] This application also provides a computer program product which, when executed on a data processing device, is adapted to execute a program initialized with the following method steps: obtaining target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in the target host, and the target policy is used to protect the target environment for processing the multiple online transactions; determining a target online transaction among the multiple online transactions according to the target queue information and the target policy; performing a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation, an unlocking operation; in the protected target environment, the target host executes the online transaction.

[0123] When executed on a data processing device, it is also adapted to execute a program initialized with the following method steps: determining a target online transaction among the multiple online transactions according to the target queue information and the target policy includes: determining the target flow rate of each online transaction according to the target queue information; judging whether the target flow rate is greater than a first flow rate in the target policy; if the target flow rate is greater than the first flow rate, determining the transaction corresponding to the target flow rate as the target online transaction.

[0124] When executed on a data processing device, it is also adapted to execute a program initialized with the following method steps: performing a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation, an unlocking operation includes: performing the disabling operation on the target online transaction; after performing the disabling operation on the target online transaction, obtaining the current time; judging whether the current time reaches the time to unlock a first online transaction, where the first online transaction is a transaction disabled among the multiple online transactions and is the same as or different from the target online transaction; if the current time reaches the time to unlock the first online transaction, performing the unlocking operation on the first online transaction to protect the target environment.

[0125] When executed on a data processing device, it is also adapted to execute a program initialized with the following method steps: after judging whether the target flow rate is greater than the first flow rate in the target policy, the method further includes: if the target flow rate is not greater than the first flow rate, obtaining the current time; judging whether the current time reaches the time to unlock the first online transaction; if the current time reaches the time to unlock the first online transaction, performing the unlocking operation on the first online transaction.

[0126] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: after determining whether the current time has reached the time to lift the ban on the first online transaction, the method further includes: if the current time has not reached the time to lift the ban on the first online transaction, re-obtain the target policy and the target queue information to protect the target environment by using the re-obtained target policy and target queue information.

[0127] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: after performing the operation of lifting the ban on the first online transaction, the method further includes: re-obtaining the target policy and the target queue information to protect the target environment by using the re-obtained target policy and target queue information.

[0128] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: obtaining the target queue information includes: determining a plurality of online transactions to be processed in the target host; obtaining the attribute information of each online transaction; and obtaining the target queue information according to the attribute information of each online transaction.

[0129] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: the target host includes a customer information control system, and obtaining the attribute information of each online transaction includes: deploying a target application program in a first area in the customer information control system, where the plurality of online transactions are distributed in the first area; and collecting the attribute information of each online transaction through the target application program.

[0130] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0131] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate for implementing in the processFigure 1 means for a process or processes and / or boxes Figure 1 for the functions specified in a box or boxes.

[0132] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means that implement the functions in the process Figure 1 for a process or processes and / or boxes Figure 1 specified in a box or boxes.

[0133] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus, such that a series of operational steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions in the process Figure 1 for a process or processes and / or boxes Figure 1 specified in a box or boxes.

[0134] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0135] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.

[0136] Computer-readable media includes both permanent and non-permanent, removable and non-removable media implemented by any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0137] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0138] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0139] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for processing an online transaction, characterized in that, The method is applied to a target host and includes: Obtaining target queue information and a target policy, where the target queue information is used to represent the attributes of multiple online transactions to be processed in the target host, and the target policy is used to protect a target environment for processing the multiple online transactions; Determining a target online transaction among the multiple online transactions according to the target queue information and the target policy; Performing a target operation on the target online transaction to protect the target environment, where the target operation is one of the following: a disabling operation, an unlocking operation; In the protected target environment, the target host executes online transactions; Determining a target online transaction among the multiple online transactions according to the target queue information and the target policy includes: determining a target flow rate of each online transaction according to the target queue information; determining whether the target flow rate is greater than a first flow rate in the target policy; if the target flow rate is greater than the first flow rate, determining the transaction corresponding to the target flow rate as the target online transaction; Performing a target operation on the target online transaction to protect the target environment includes: performing the disabling operation on the target online transaction; after performing the disabling operation on the target online transaction, obtaining the current time; determining whether the current time reaches the time to unlock a first online transaction, where the first online transaction is an online transaction disabled among the multiple online transactions and is the same as or different from the target online transaction; if the current time reaches the time to unlock the first online transaction, performing the unlocking operation on the first online transaction to protect the target environment.

2. The method according to claim 1, characterized in that, After determining whether the target flow rate is greater than the first flow rate in the target policy, the method further includes: If the target flow rate is not greater than the first flow rate, obtaining the current time; Determining whether the current time reaches the time to unlock the first online transaction; If the current time reaches the time to unlock the first online transaction, performing the unlocking operation on the first online transaction.

3. The method according to claim 1 or 2, characterized in that, After determining whether the current time reaches the time to unlock the first online transaction, the method further includes: If the current time does not reach the time to unlock the first online transaction, re-obtaining the target policy and the target queue information to protect the target environment by using the re-obtained target policy and target queue information.

4. The method according to claim 1 or 2, characterized in that, After performing the unlocking operation on the first online transaction, the method further includes: Re-obtaining the target policy and the target queue information to protect the target environment by using the re-obtained target policy and target queue information.

5. The method according to claim 1, wherein Obtaining target queue information includes: Determining multiple online transactions to be processed in the target host; Obtaining attribute information of each online transaction; Obtaining the target queue information according to the attribute information of each online transaction.

6. The method according to claim 5, wherein The target host includes a customer information control system, and obtaining attribute information of each online transaction includes: Deploy a target application in a first area of the customer information control system, wherein a plurality of online transactions are distributed in the first area; Collect attribute information of each online transaction through the target application.

7. A processing device for online transactions, characterized in that, The device is applied in a target host and includes: A first acquisition unit, configured to acquire target queue information and a target policy, wherein the target queue information is used to represent attributes of a plurality of online transactions to be processed in the target host, and the target policy is used to protect a target environment for processing the plurality of online transactions; A first determination unit, configured to determine a target online transaction among the plurality of online transactions according to the target queue information and the target policy; A first execution unit, configured to perform a target operation on the target online transaction to protect the target environment, wherein the target operation is one of the following: a disable operation, an unlock operation; A second execution unit, configured to execute an online transaction in the target host in the protected target environment; The first determination unit includes: a first determination module, configured to determine a target flow rate of each online transaction according to the target queue information; a first judgment module, configured to judge whether the target flow rate is greater than a first flow rate in the target policy; a second determination module, configured to, if the target flow rate is greater than the first flow rate, determine the transaction corresponding to the target flow rate as the target online transaction; The first execution unit includes: a first execution module, configured to perform the disable operation on the target online transaction; a first acquisition module, configured to acquire the current time after performing the disable operation on the target online transaction; a second judgment module, configured to judge whether the current time reaches the time for unlocking a first online transaction, wherein the first online transaction is a transaction disabled among the plurality of online transactions and is the same as or different from the target online transaction; a second execution module, configured to, if the current time reaches the time for unlocking the first online transaction, perform the unlock operation on the first online transaction to protect the target environment.

8. A processor, characterized in that, The processor is used to run a program, wherein when the program runs, it executes the processing method of the online transaction according to any one of claims 1 to 6.

9. An electronic device, characterized in that, It includes one or more processors and a memory, and the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the processing method of the online transaction according to any one of claims 1 to 6.

10. A computer program product comprising computer instructions, characterized in that, When the computer instruction is executed by the processor, it implements the processing method of the online transaction according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Transaction processing method and device and computer readable storage medium

    CN114282915A

  • Transaction process processing method and device, processor and electronic equipment

    CN114549205A