CN117640521A - Transaction flow determination method, device, equipment and storage medium - Google Patents

Transaction flow determination method, device, equipment and storage medium Download PDF

Info

Publication number
CN117640521A
CN117640521A CN202311650595.0A CN202311650595A CN117640521A CN 117640521 A CN117640521 A CN 117640521A CN 202311650595 A CN202311650595 A CN 202311650595A CN 117640521 A CN117640521 A CN 117640521A
Authority
CN
China
Prior art keywords
transaction
company
historical
error
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311650595.0A
Other languages
Chinese (zh)
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311650595.0A priority Critical patent/CN117640521A/en
Publication of CN117640521A publication Critical patent/CN117640521A/en
Pending legal-status Critical Current

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a transaction flow determination method, a device, equipment and a storage medium, belonging to the technical field of flow control, wherein the method comprises the following steps: according to the historical transaction data, respectively determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company; historical transaction data refers to transaction data of a historical period; determining candidate transaction levels of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company; and limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the limiting proportion of the transaction flow of the transaction company in the current period. The invention realizes the real-time control of the transaction flow in the business transaction system under the condition that the load of the business transaction system does not exceed the upper limit of the capacity, exerts the maximum efficiency of the business transaction system, and further reduces the cost while ensuring the whole service capacity of the business transaction system.

Description

Transaction flow determination method, device, equipment and storage medium
Technical Field
The present invention relates to the field of flow control technologies, and in particular, to a transaction flow determining method, device, equipment and storage medium.
Background
Business transaction systems often agency sales of products from some transaction companies. When the explosive products are sold at fixed time, the online transaction traffic volume is increased rapidly, a large amount of service requests flow to a transaction company through a service transaction system in a short time, and the service transaction system has limited capacity and limited bearing concurrency, so that transaction data is blocked, even the service transaction system is crashed, and the service benefit is influenced.
In order to solve the above problems, when the business transaction system is abnormal, the overall service capability of the business transaction system is often improved by stopping or expanding service resources (such as the number of servers and the memory of a server CPU) on line, etc., but the real-time performance of current limitation is poor, and the business transaction system may be required to stop, the risk is larger, and the cost is high.
Disclosure of Invention
The invention provides a transaction flow determination method, a transaction flow determination device, transaction flow determination equipment and a transaction flow determination storage medium, so that real-time control of transaction flow in a business transaction system is realized, and cost is reduced while the overall service capacity of the business transaction system is ensured.
According to an aspect of the present invention, there is provided a transaction flow determination method, the method comprising:
according to the historical transaction data, respectively determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company; historical transaction data refers to transaction data of a historical period;
determining candidate transaction levels of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company;
and limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the limiting proportion of the transaction flow of the transaction company in the current period.
According to another aspect of the present invention, there is provided a transaction flow determination device, the device comprising:
the quantity determining module is used for respectively determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company according to the historical transaction data; historical transaction data refers to transaction data of a historical period;
the candidate transaction level determining module is used for determining candidate transaction levels of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company;
and the current limiting proportion determining module is used for limiting the transaction flow of the current period transaction company according to the candidate transaction level and the initial transaction level of the transaction company to obtain the current limiting proportion of the transaction flow of the current period transaction company.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the transaction flow determination method of any one of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to perform the transaction flow determination method of any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the historical transaction quantity and the historical error transaction quantity of at least one transaction company are respectively determined according to the historical transaction data; historical transaction data refers to transaction data of a historical period; determining candidate transaction levels of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company; and limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the limiting proportion of the transaction flow of the transaction company in the current period. According to the technical scheme, based on the transaction data of the historical period in the service transaction system, the current limiting proportion of the service transaction system to the transaction flow of each transaction company in the current period is determined, so that the real-time control of the transaction flow in the service transaction system is realized under the condition that the load of the service transaction system does not exceed the upper limit of the capacity of the service transaction system, the maximum efficiency of the service transaction system is exerted, and the cost is reduced while the integral service capacity of the service transaction system is ensured.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a transaction flow determination method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a transaction flow determination method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a transaction flow determining device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a transaction flow determination method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "target," "candidate," "history," "current," "first," and "second," etc. in the description and claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In addition, it should be noted that, in the technical scheme of the invention, the related processes of collection, storage, use, processing, transmission, provision, disclosure and the like of the historical transaction data and the like all conform to the regulations of related laws and regulations and do not violate the popular regulations.
Example 1
Fig. 1 is a flowchart of a transaction flow determination method according to an embodiment of the present invention, where the method may be applied to a case of limiting concurrent transaction flows in a transaction system when online transaction traffic is proliferated, and the method may be performed by a transaction flow determination device, which may be implemented in a hardware and/or software form and may be configured in an electronic device. As shown in fig. 1, the method includes:
s101, respectively determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company according to historical transaction data; historical transaction data refers to transaction data of historical periods.
Wherein the historical transaction data includes, but is not limited to, transaction date, transaction identification, transaction company identification, and error coding. The transaction identifier is used to uniquely identify the transaction. It should be noted that one transaction identifier corresponds to one transaction. The transaction company identification is used to uniquely identify the transaction company. It should be noted that, one transaction company identifier corresponds to one transaction company. The history period refers to the period previous to the current period; alternatively, the period length of the history period may be preset according to the actual service requirement, for example, the period length of the history period may be 30 seconds, and for example, the period length of the history period may be 1 minute. The historical transaction amount refers to the total number of transactions that the transaction company sent to the business transaction system in the historical period. The historical error transaction amount refers to the amount of transactions that the transaction company failed in the historical period. It should be noted that, for each transaction company, the historical transaction amount of the transaction company is greater than or equal to the historical error transaction amount of the transaction company.
Specifically, for each transaction company, the transaction company identifier of the transaction company may be used as a search condition, and the historical transaction quantity of the transaction company may be counted from the historical transaction data; similarly, the historical error transaction quantity of the transaction company can be counted from the historical transaction data by taking the error code in the historical transaction data and the transaction company identification of the transaction company as retrieval conditions. Wherein error coding refers to coding used to characterize the cause of errors in a failed transaction; alternatively, the error code may take the form of numbers, letters, or data plus letters, for example, the error code may take the form of ERR 001.
Alternatively, the total number of historical error transactions may be determined from the historical transaction data based on the error codes in the historical transaction data; comparing the total number of the historical error transactions with an error number threshold to obtain a first comparison result; and respectively determining the historical transaction quantity and the historical error transaction quantity of the at least one transaction company according to the first comparison result, the error code and the transaction company identification of the at least one transaction company.
Wherein the error number threshold refers to an upper limit of the amount of failed transactions allowed in the history period; alternatively, the error number threshold may be preset empirically, for example, the error number threshold may be 20, for example, and the error number threshold may be 30, which is not limited in the embodiment of the present invention.
Specifically, the error codes in the historical transaction data can be used as search conditions, and the total number of the historical error transactions can be determined from the historical transaction data; comparing the total number of the historical error transactions with an error number threshold to obtain a first comparison result; if the first comparison result is that the total number of the historical error transactions is greater than the error number threshold, for each transaction company, determining the historical transaction number and the historical error transaction number of the transaction company from the historical transaction data according to the error code and the transaction company identification of the transaction company. More specifically, for each transaction company, the historical transaction quantity of the transaction company is determined from the historical transaction data using the transaction company identification of the transaction company as a search condition, and the historical error transaction quantity of the transaction company is determined from the historical transaction data using the error code and the transaction company identification of the transaction company as a search condition. In addition, if the first comparison result is that the total number of the historical error transactions is less than or equal to the error number threshold, the subsequent operation steps are not executed.
It can be understood that when the total number of the historical error transactions in the historical transaction data exceeds the error number threshold, the historical transaction number and the historical error transaction number of each transaction company are further determined from the historical transaction data, and then the current limit proportion of the transaction flow of each transaction company in the current period is determined according to the historical transaction number and the historical error transaction number of each transaction company. The performance of the business system is maximally exerted under the condition that the business transaction system is allowed to have a small number of failed transactions.
S102, determining candidate transaction levels of the transaction companies according to the historical transaction quantity and the historical error transaction quantity of the transaction companies.
Where the candidate transaction level refers to the transaction level to be selected. It should be noted that, the higher the transaction level of the transaction company, the smaller the transaction traffic the transaction system allows the transaction company to pass.
Specifically, for each trading company, taking the quotient between the historical error trading quantity of the trading company and the historical trading quantity of the trading company as the error trading duty ratio of the trading company; and taking the error transaction duty ratio of the transaction company as an index, extracting the transaction level corresponding to the error transaction duty ratio of the transaction company from a mapping table between the error transaction duty ratio and the transaction level, and taking the transaction level as a candidate transaction level of the transaction company.
S103, limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the limiting proportion of the transaction flow of the transaction company in the current period.
The initial transaction level refers to a transaction level when a transaction company sends a transaction request to a business transaction system for the first time. The current limit ratio refers to the ratio of the transaction flow allowed to pass by the transaction company in the current period to the total transaction flow of the transaction company.
Specifically, for each trading company, a model may be determined based on the current limit proportion, and the current limit proportion of the trading flow of the trading company in the current period is obtained by limiting the trading flow of the trading company in the current period according to the candidate trading level of the trading company and the initial trading level of the trading company. The current limiting proportion determining model can be preset according to actual service requirements, and the current limiting proportion determining model is not particularly limited in the embodiment of the invention.
According to the technical scheme of the embodiment of the invention, the historical transaction quantity and the historical error transaction quantity of at least one transaction company are respectively determined according to the historical transaction data; historical transaction data refers to transaction data of a historical period; determining candidate transaction levels of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company; and limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the limiting proportion of the transaction flow of the transaction company in the current period. According to the technical scheme, based on the transaction data of the historical period in the service transaction system, the current limiting proportion of the service transaction system to the transaction flow of each transaction company in the current period is determined, so that the real-time control of the transaction flow in the service transaction system is realized under the condition that the load of the service transaction system does not exceed the upper limit of the capacity of the service transaction system, the maximum efficiency of the service transaction system is exerted, and the cost is reduced while the integral service capacity of the service transaction system is ensured.
On the basis of the above embodiment, as an alternative manner of the embodiment of the present invention, the trading level of the trading company in the next period of the current period may also be determined according to the trading level of the trading company in the current period.
Specifically, if the trading level of the trading company in the current period is greater than or equal to 2, dynamically adjusting the trading level of the trading company in the next period of the current period to reduce the trading level of the trading company by one step. For example, for trading company a, if the trading level of trading company a in the current period is 9, the trading level of trading company a in the next period of the current period is 8.
It can be understood that, according to the transaction level of the transaction company in the current period, the transaction level of the transaction company in the next period of the current period is determined, so that the dynamic adjustment of the transaction level of the transaction company in different periods of the on-line transaction traffic surge is realized, and the transaction traffic of the transaction company is limited to different degrees in different periods of the on-line transaction traffic surge, thereby ensuring the fairness of the transaction traffic.
Example two
Fig. 2 is a flowchart of a transaction flow determining method according to a second embodiment of the present invention, which further optimizes "determining a candidate transaction level of a transaction company according to a historical transaction number and a historical error transaction number of the transaction company" based on the above embodiment, and provides an alternative implementation manner. In the embodiments of the present invention, parts not described in detail may be referred to for related expressions of other embodiments. As shown in fig. 2, the method includes:
s201, respectively determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company according to the historical transaction data; historical transaction data refers to transaction data of historical periods.
S202, determining the current limit sign of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company.
Specifically, for each trading company, the current limit flag of the trading company may be determined to be 1 in the case where the number of historical erroneous trades by the trading company is greater than a preset proportion of the number of historical trades by the trading company. The preset proportion may be preset empirically, for example, the preset proportion may be two thirds, for example, the preset proportion may be one half, which is not particularly limited in the embodiment of the present invention.
Optionally, if the historical trading number of the trading company is greater than the threshold of the trading number of the company, determining that the current limit flag of the trading company is 1. The company transaction quantity threshold value refers to the upper limit of transaction flow of a transaction company; optionally, the threshold value of the transaction amount of the company may be preset according to the actual service requirement, which is not specifically limited in the embodiment of the present invention.
Optionally, the ratio between the historical error transaction number of the transaction company and the historical transaction number of the transaction company can be used as the error transaction ratio of the transaction company; if the historical error trading number is greater than the company error trading threshold and the error trading ratio is greater than the error trading ratio threshold, determining that the current limit flag of the trading company is 1.
The company error trading threshold value refers to the upper limit of the failed trading volume of a trading company; optionally, the threshold value of the company error transaction may be preset according to the actual service requirement, which is not specifically limited in the embodiment of the present invention. The threshold value of the error transaction ratio can be preset according to the actual service requirement, and the embodiment of the invention does not limit the error transaction ratio specifically.
Specifically, for each trading company, the ratio between the historical error trading number of the trading company and the historical trading number of the trading company is used as the error trading ratio of the trading company, namely:
wherein alpha is the error transaction ratio of the transaction company, S 1 For the historical error transaction quantity of the transaction company, S 2 Historical transaction amounts for the transaction company.
And if the historical error transaction quantity of the transaction company is larger than the company error transaction threshold value and the error transaction ratio of the transaction company is larger than the error transaction ratio threshold value, determining that the current limit mark of the transaction company is 1.
It can be understood that various influences of the historical transaction quantity and the historical error transaction quantity of the transaction company on the transaction company flow restriction are fully considered, so that the transaction flow of the transaction company can be more accurately restricted.
S203, determining candidate transaction levels of the transaction company according to the current limit sign and the historical error transaction quantity.
Specifically, if the current limit flag is 1, determining a candidate transaction level of the transaction company according to the historical error transaction number and the error number threshold.
Wherein the error number threshold refers to an upper limit of the amount of failed transactions allowed in the history period; alternatively, the error number threshold may be preset empirically, for example, the error number threshold may be 20, for example, and the error number threshold may be 30, which is not limited in the embodiment of the present invention.
More specifically, for each trading company, if the current limit flag of the trading company is 1, determining a candidate trading level of the trading company according to the historical error trading number of the trading company and the error number threshold value by the following formula:
wherein, level 1 For the candidate transaction level of the transaction company, S 1 For the historical error transaction quantity of the transaction company, S 0 Is the error number threshold.
S204, limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the limiting proportion of the transaction flow of the transaction company in the current period.
Specifically, the candidate transaction level may be compared with the initial transaction level of the transaction company to obtain a second comparison result; determining a target transaction level of the transaction company according to the second comparison result; and limiting the transaction flow of the current period transaction company according to the target transaction level to obtain the limiting proportion of the transaction flow of the current period transaction company. The target transaction level refers to the transaction level of the transaction company in the current period.
Specifically, for each transaction company, comparing the candidate transaction level of the transaction company with the initial transaction level of the transaction company to obtain a second comparison result; if the second comparison result is that the candidate transaction level of the transaction company is greater than the initial transaction level of the transaction company, the candidate transaction level of the transaction company is used as the target transaction level of the transaction company; otherwise, the initial transaction level of the transaction company is used as the target transaction level of the transaction company; according to the target transaction level, the transaction flow of the transaction company in the current period is limited by the following formula to obtain the limiting proportion of the transaction flow of the transaction company in the current period:
wherein y is the current limiting proportion, level of the transaction flow of the transaction company in the current period 2 A target transaction level for the transaction company.
The technical scheme of the embodiment of the invention provides a concrete method for limiting the transaction flow of a transaction company in the current period, and the current limiting proportion of the transaction flow of the transaction company in the current period is determined based on the historical transaction quantity and the historical error transaction quantity of the transaction company in the historical transaction data, so that the accurate limitation of the transaction flow of the transaction company in the current period is realized.
On the basis of the above embodiment, as an alternative way of the embodiment of the present invention, the current limiting proportion of the transaction flow of the transaction company in the current period may also be sent to the transaction company, so as to assist the related personnel of the transaction company to perform more reasonable processing on the transaction flow of the transaction company.
Example III
Fig. 3 is a schematic structural diagram of a transaction flow determining device according to a third embodiment of the present invention, where the embodiment is applicable to a case of limiting concurrent transaction flows in a transaction system when online transaction traffic is proliferated, and the device may be implemented in a hardware and/or software form and may be configured in an electronic device. As shown in fig. 3, the apparatus includes:
a quantity determining module 301, configured to determine, according to the historical transaction data, a historical transaction quantity and a historical error transaction quantity of at least one transaction company, respectively; historical transaction data refers to transaction data of a historical period;
a candidate transaction level determining module 302, configured to determine a candidate transaction level of the transaction company according to the historical transaction number and the historical error transaction number of the transaction company;
the current limit proportion determining module 303 is configured to limit the transaction flow of the current period transaction company according to the candidate transaction level and the initial transaction level of the transaction company, so as to obtain the current limit proportion of the transaction flow of the current period transaction company.
According to the technical scheme of the embodiment of the invention, the historical transaction quantity and the historical error transaction quantity of at least one transaction company are respectively determined according to the historical transaction data; historical transaction data refers to transaction data of a historical period; determining candidate transaction levels of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company; and limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the limiting proportion of the transaction flow of the transaction company in the current period. According to the technical scheme, based on the transaction data of the historical period in the service transaction system, the current limiting proportion of the service transaction system to the transaction flow of each transaction company in the current period is determined, so that the real-time control of the transaction flow in the service transaction system is realized under the condition that the load of the service transaction system does not exceed the upper limit of the capacity of the service transaction system, the maximum efficiency of the service transaction system is exerted, and the cost is reduced while the integral service capacity of the service transaction system is ensured.
Optionally, the number determining module 301 includes:
an error transaction total number determining unit for determining a history error transaction total number from the history transaction data according to the error codes in the history transaction data;
the first comparison result determining unit is used for comparing the total number of the historical error transactions with an error number threshold value to obtain a first comparison result;
the quantity determining unit is used for determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company according to the first comparison result, the error code and the transaction company identification of the at least one transaction company.
Optionally, the number determining unit is specifically configured to:
if the first comparison result is that the total number of the historical error transactions is greater than the error number threshold, for each transaction company, determining the historical transaction number and the historical error transaction number of the transaction company from the historical transaction data according to the error code and the transaction company identification of the transaction company.
Optionally, the candidate transaction level determination module 302 includes:
the current limit sign determining unit is used for determining the current limit sign of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company;
and the candidate transaction level determining unit is used for determining the candidate transaction level of the transaction company according to the current limit sign and the historical error transaction quantity.
Optionally, the flow-limiting sign determining unit is specifically configured to:
if the historical transaction quantity of the transaction company is larger than the total transaction quantity threshold value of the company, determining that the current limit sign of the transaction company is 1; or alternatively, the first and second heat exchangers may be,
taking the ratio between the historical wrong transaction quantity of the transaction company and the historical transaction quantity of the transaction company as the wrong transaction ratio of the transaction company;
if the historical error trading number is greater than the company error trading threshold and the error trading ratio is greater than the error trading ratio threshold, determining that the current limit flag of the trading company is 1.
Optionally, the candidate transaction level determining unit is specifically configured to:
if the current limit sign is 1, determining candidate transaction levels of the transaction company according to the historical error transaction quantity and the error quantity threshold value.
Optionally, the current limit proportion determining module 303 is specifically configured to:
comparing the candidate transaction level with the initial transaction level of the transaction company to obtain a second comparison result;
determining a target transaction level of the transaction company according to the second comparison result;
and limiting the transaction flow of the current period transaction company according to the target transaction level to obtain the limiting proportion of the transaction flow of the current period transaction company.
The transaction flow determination device provided by the embodiment of the invention can execute the transaction flow determination method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the transaction flow determination methods.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the transaction flow determination method.
In some embodiments, the transaction flow determination method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more of the steps of the transaction flow determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the transaction flow determination method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A transaction flow determination method, comprising:
according to the historical transaction data, respectively determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company; the historical transaction data refers to transaction data of a historical period;
determining candidate transaction levels of the transaction companies according to the historical transaction quantity and the historical error transaction quantity of the transaction companies;
and limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the limiting proportion of the transaction flow of the transaction company in the current period.
2. The method of claim 1, wherein determining the historical transaction amount and the historical error transaction amount of the at least one transaction company, respectively, based on the historical transaction data comprises:
determining a total number of historical error transactions from the historical transaction data based on the error codes in the historical transaction data;
comparing the total number of the historical error transactions with an error number threshold value to obtain a first comparison result;
and determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company according to the first comparison result, the error code and the transaction company identification of the at least one transaction company.
3. The method of claim 2, wherein the determining the historical transaction amount and the historical error transaction amount for the at least one transaction company based on the first comparison result, the error code, and the transaction company identification for the at least one transaction company, respectively, comprises:
and if the first comparison result is that the total number of the historical error transactions is larger than the error number threshold, determining the historical transaction number and the historical error transaction number of each transaction company from the historical transaction data according to the error codes and the transaction company identification of the transaction company.
4. The method of claim 1, wherein the determining the candidate transaction level for the transaction company based on the historical transaction amount and the historical error transaction amount for the transaction company comprises:
determining a current limit sign of the transaction company according to the historical transaction quantity and the historical error transaction quantity of the transaction company;
and determining candidate transaction levels of the transaction company according to the current limit sign and the historical error transaction quantity.
5. The method of claim 4, wherein determining the current limit sign of the trading company based on the historical trading quantity and the historical error trading quantity of the trading company comprises:
if the historical transaction quantity of the transaction company is greater than a company transaction quantity threshold, determining that the current limit sign of the transaction company is 1; or alternatively, the first and second heat exchangers may be,
taking the ratio between the historical error transaction quantity of the transaction company and the historical transaction quantity of the transaction company as the error transaction ratio of the transaction company;
and if the historical error transaction quantity is larger than a company error transaction threshold value and the error transaction ratio is larger than the error transaction ratio threshold value, determining that the current limit mark of the transaction company is 1.
6. The method of claim 4, wherein said determining a candidate transaction level for said transaction company based on said current limit flag and said historical number of erroneous transactions comprises:
and if the current limit mark is 1, determining a candidate transaction level of the transaction company according to the historical error transaction quantity and the error quantity threshold value.
7. The method according to claim 1, wherein limiting the transaction traffic of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain a current limiting proportion of the transaction traffic of the transaction company in the current period comprises:
comparing the candidate transaction level with the initial transaction level of the transaction company to obtain a second comparison result;
determining a target transaction level of the transaction company according to the second comparison result;
and limiting the transaction flow of the transaction company in the current period according to the target transaction level to obtain the limiting proportion of the transaction flow of the transaction company in the current period.
8. A transaction flow determination device, comprising:
the quantity determining module is used for respectively determining the historical transaction quantity and the historical error transaction quantity of at least one transaction company according to the historical transaction data; the historical transaction data refers to transaction data of a historical period;
the candidate transaction level determining module is used for determining candidate transaction levels of the transaction companies according to the historical transaction quantity and the historical error transaction quantity of the transaction companies;
and the current limiting proportion determining module is used for limiting the transaction flow of the transaction company in the current period according to the candidate transaction level and the initial transaction level of the transaction company to obtain the current limiting proportion of the transaction flow of the transaction company in the current period.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the transaction flow determination method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the transaction flow determination method of any one of claims 1-7.
CN202311650595.0A 2023-12-04 2023-12-04 Transaction flow determination method, device, equipment and storage medium Pending CN117640521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311650595.0A CN117640521A (en) 2023-12-04 2023-12-04 Transaction flow determination method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311650595.0A CN117640521A (en) 2023-12-04 2023-12-04 Transaction flow determination method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117640521A true CN117640521A (en) 2024-03-01

Family

ID=90031818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311650595.0A Pending CN117640521A (en) 2023-12-04 2023-12-04 Transaction flow determination method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117640521A (en)

Similar Documents

Publication Publication Date Title
CN115242731A (en) Message processing method, device, equipment and storage medium
CN115145587A (en) Product parameter checking method and device, electronic equipment and storage medium
CN115456634A (en) Data processing method and device, electronic equipment and storage medium
CN117640521A (en) Transaction flow determination method, device, equipment and storage medium
CN115617800A (en) Data reading method and device, electronic equipment and storage medium
CN115563310A (en) Method, device, equipment and medium for determining key service node
CN114999665A (en) Data processing method and device, electronic equipment and storage medium
CN113900731A (en) Request processing method, device, equipment and storage medium
CN117131353B (en) Method and device for determining out-of-tolerance electric energy meter, electronic equipment and storage medium
CN117493342B (en) Commodity data updating method, commodity data updating device, electronic equipment and storage medium
CN117634890A (en) Enterprise supply chain risk assessment method and device and electronic equipment
CN117609311A (en) Service degradation method, device, equipment and storage medium
CN117455192A (en) Department store matching method, device, equipment and storage medium
CN117236690A (en) Material supply risk determination method and device, electronic equipment and storage medium
CN116797234A (en) Method, device, equipment and storage medium for analyzing requirements
CN117611178A (en) Method, device, equipment and medium for processing transaction message packets
CN117632741A (en) Determination method and device of regression test case library, electronic equipment and storage medium
CN115840645A (en) Method, device, storage medium and electronic equipment for predicting load index
CN116720972A (en) System docking method and device, electronic equipment and storage medium
CN115907779A (en) Transaction proposal verification method, device, server and storage medium
CN117057795A (en) Account number-based account transfer method, device and equipment
CN117194498A (en) Data aggregation method and device, electronic equipment and storage medium
CN116915711A (en) Method, device, equipment and storage medium for expanding and protecting downstream service of dispatch service
CN116304075A (en) Target person matching method, device, equipment and medium based on knowledge graph
CN117668363A (en) Recommendation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination