CN113110983B - Transaction system time delay processing method and device, computer equipment and storage medium - Google Patents

Transaction system time delay processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113110983B
CN113110983B CN202110355720.XA CN202110355720A CN113110983B CN 113110983 B CN113110983 B CN 113110983B CN 202110355720 A CN202110355720 A CN 202110355720A CN 113110983 B CN113110983 B CN 113110983B
Authority
CN
China
Prior art keywords
component
time
order
time delay
entrusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110355720.XA
Other languages
Chinese (zh)
Other versions
CN113110983A (en
Inventor
韦伟
周基鑫
张静华
杨栩
金春芃
苗咏
宿旭升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Huarui Software Co ltd
Shenzhen Huarui Distributed Technology Co ltd
Original Assignee
Shanghai Huarui Software Co ltd
Shenzhen Huarui Distributed Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Huarui Software Co ltd, Shenzhen Huarui Distributed Technology Co ltd filed Critical Shanghai Huarui Software Co ltd
Priority to CN202110355720.XA priority Critical patent/CN113110983B/en
Publication of CN113110983A publication Critical patent/CN113110983A/en
Application granted granted Critical
Publication of CN113110983B publication Critical patent/CN113110983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application relates to a processing method and a processing device for transaction system time delay, computer equipment and a storage medium, wherein when a consignment order is received by a transaction system, a consignment identifier of the consignment order is obtained, and the transaction system comprises a plurality of components; acquiring the starting time and the ending time of each component for processing the entrusted order; connecting each starting time and each ending time in series according to the entrusting identification to obtain message path data corresponding to the entrusting order; and counting the time delay of each component according to the message path data to obtain the time delay of the trading system, so that the accurate measurement of the time delay of each component in the trading system is realized, a data base is provided for optimizing the performance of the trading system, and the performance of the trading system is improved, so that the timeliness of the trading system is improved. Meanwhile, the time delay of each component and the time delay of the transaction system are accurately monitored.

Description

Transaction system time delay processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a transaction system delay, a computer device, and a storage medium.
Background
With the development of computer technology, more and more trade order consignees replace manual trade order consignment by quantitative trading and programmed trading, and the time and data for consignment of trade orders mainly depend on various business messages on the market for corresponding decision processing. Therefore, the transaction order consignee has an increasing demand for the timeliness of the transaction system for processing the transaction order.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a processing method, an apparatus, a computer device and a storage medium capable of improving timeliness of a transaction system.
A method for processing transaction system latency, the method comprising:
when the transaction system receives a consignment order, acquiring a consignment identifier of the consignment order, wherein the transaction system comprises a plurality of components;
acquiring the starting time and the ending time of each component for processing the entrusted order;
connecting each starting time and each ending time in series according to the entrusting identification to obtain message path data corresponding to the entrusting order;
and counting the time delay of each component according to the message path data to obtain the time delay of the transaction system.
In one embodiment, the method further comprises:
calculating the time interval of the starting time and the ending time of each component according to the entrusted identification to obtain the time delay of each component;
when the transaction system is in fault, comparing the time delay of each component with a preset time delay threshold value, and determining the component with the time delay larger than the time delay threshold value as a fault component.
In one embodiment, the obtaining a start time and an end time for each of the components to process the delegated order includes:
acquiring a first timestamp of arrival of the delegation order at each of the components;
obtaining a second timestamp of the leave of the delegated order from each of the components;
the step of connecting each starting time and each ending time in series according to the delegation identifier to obtain message path data corresponding to the delegation order includes:
and connecting each first time stamp and each second time stamp in series according to the entrusting identification to obtain uplink path data corresponding to the entrusting order.
In one embodiment, the obtaining a start time and an end time for each of the components to process the delegated order includes:
acquiring a third timestamp of arrival of confirmation information of the entrusted order at each component;
obtaining a fourth timestamp of the acknowledgment information leaving each of the components;
the obtaining of the message path data corresponding to the delegation order by serially connecting the starting time and the ending time according to the delegation identifier includes:
and connecting each third time stamp and each fourth time stamp in series according to the entrusting identification to obtain downlink path data corresponding to the entrusting order.
In one embodiment, the method further comprises:
counting the number of the first time stamps of each component, and determining the throughput condition of each component according to the counting result;
and judging whether the bearing pressure of each component reaches a bottleneck threshold value according to the throughput condition of each component, and adding a new component for the component reaching the bottleneck threshold value.
In one embodiment, the components of the transaction system include a reimbursement services component; the method further comprises the following steps:
counting the number of second time stamps of the report service assembly, and judging whether a counting result triggers a flow rate control condition of a trading post butt joint assembly;
if so, increasing the flow rate weight for the transaction system.
In one embodiment, the components of the transaction system further comprise a transaction gateway deployed on the same server as the listing service component; or
And ensuring the time synchronization of the transaction gateway and the report service component based on a high-precision time synchronization protocol.
A transaction system latency processing apparatus, the apparatus comprising:
the entrusting identification obtaining module is used for obtaining an entrusting identification of an entrusting order when the trading system receives the entrusting order, and the trading system comprises a plurality of components;
a start and end time obtaining module, configured to obtain a start time and an end time at which each component processes the delegation order;
a start and end time series module, configured to perform series connection on each start time and each end time according to the delegation identifier, so as to obtain message path data corresponding to the delegation order;
and the component time delay counting module is used for counting the time delay of each component according to the message path data to obtain the time delay of the transaction system.
A computer device comprising a memory storing a computer program and a processor implementing the above-mentioned method steps when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method steps.
According to the processing method and device, the computer equipment and the storage medium for the transaction system time delay, when the transaction system receives an entrusting order, an entrusting identification of the entrusting order is obtained, and the transaction system comprises a plurality of components; acquiring the starting time and the ending time of each component for processing the entrusted order; connecting each starting time and each ending time in series according to the entrusting identification to obtain message path data corresponding to the entrusting order; and counting the time delay of each component according to the message path data to obtain the time delay of the trading system, so that the accurate measurement of the time delay of each component in the trading system is realized, a data base is provided for optimizing the performance of the trading system, and the performance of the trading system is improved, so that the timeliness of the trading system is improved. Meanwhile, the time delay of each component and the time delay of the transaction system are accurately monitored.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a method for processing latency in a transaction system;
FIG. 2 is a flow diagram illustrating a method for processing latency of the transaction system in one embodiment;
FIG. 3 is a flow diagram illustrating a method for processing latency of the transaction system in one embodiment;
FIG. 4 is a flowchart illustrating a step of obtaining uplink path data according to an embodiment;
fig. 5 is a schematic flow chart illustrating a step of acquiring downlink path data according to an embodiment;
FIG. 6 is a schematic flow chart illustrating a method for processing latency of the transaction system in accordance with another embodiment;
FIG. 7 is a block diagram showing the structure of a processing device for processing the delay of the transaction system in one embodiment;
FIG. 8 is a diagram showing an internal configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The processing method for the transaction system time delay can be applied to the application environment shown in fig. 1. The trading system 110 includes, among other things, a trading gateway 112, a trading engine 114, and an inventory services component 116. The transaction gateway 112, transaction engine 114, and reporting services component 116 may serve as various components of a transaction system. When the trading system receives a commit order, the trading gateway 112 can number each commit order, obtaining the commit identifier of the commit order. Each component in the trading system correspondingly processes the entrusted order, acquisition points can be preset at the starting position and the ending position of each component for processing the entrusted order, the timestamp information of each component is acquired through the preset acquisition points, each component in the trading system can be connected with the time delay statistic component 120, and the time delay statistic component 120 acquires the timestamp information of each component. The time stamp information of each component includes a delegation identifier of the delegation order, a start time when the component processes the delegation order, and an end time when the component has finished processing the delegation order. Therefore, each starting time and each ending time are connected in series according to the entrusting identification to obtain message path data corresponding to the entrusting order; and according to the message path data, counting the time delay of each component to obtain the time delay of the transaction system. The time delay of the trading system comprises an uplink time delay and a downlink time delay, wherein the uplink time delay refers to the time delay of the entrusted order from entering the trading system to leaving the report service component to be transmitted to the exchange gateway, and the uplink time delay is the key for determining whether the entrusted order can be delivered to the exchange as soon as possible. The downstream delay is the delay from the exchange gateway sending confirmation of the order to the trading system to leaving the trading system to send to the investor's client (such as the order management system).
In one embodiment, as shown in fig. 2, a method for processing the transaction system latency is provided, which is described by taking the method as an example applied to the latency statistics component 120 in fig. 1, and includes the following steps:
s210, when the trading system receives the entrusting order, acquiring an entrusting identification of the entrusting order.
Wherein the transaction system comprises several components, such as a transaction gateway, a transaction engine and an offer service component. Specifically, the trading system is connected with the order management system, the order management system sends the entrusted orders to the trading system, the trading system receives the entrusted orders, the trading system sets entrusted identifiers for each entrusted order, and the entrusted identifiers can be order numbers.
S220, acquiring the starting time and the ending time of processing the consignment order by each component.
Where the starting time may be the time that the order was received for each component that the order passed. The end time may be the time the delegated order was processed by the current component and passed to the next component, i.e., left the current component. Specifically, as each order passes through the components of the trading system, each component processes the order accordingly. And when the entrusting order reaches each component, acquiring the starting time of processing the entrusting order by each component. And collecting the finish time of the leave of the entrusted order when the entrusted order is processed and leaves each component.
And S230, connecting each starting time and each ending time in series according to the entrusting identification to obtain message path data corresponding to the entrusting order.
Specifically, when each component processes the entrusted order, the entrusted identification of the entrusted order is also collected, so that for any entrusted order, the entrusted order can be serially connected sequentially according to the entrusted identification at the starting time and the ending time of each component to form message path data corresponding to the entrusted order. Illustratively, when an entrusted order sequentially enters a starting time G1 of a trading gateway, leaves a finishing time G2 of the trading gateway, enters a starting time T3 of a trading engine, leaves a finishing time T4 of the trading engine, enters a starting time O5 of a report service component, and leaves a finishing time O6 of the report service component, the times are concatenated according to an order number to obtain message path data corresponding to the entrusted order, which can be represented as G1O6. It can be understood that, in this embodiment, the start times and the end times are serially connected according to the delegation identifier, and the start times and the end times are serially connected according to a time sequence to generate corresponding message path data.
S240, counting the time delay of each component according to the message path data to obtain the time delay of the transaction system.
Specifically, each starting time and each ending time are connected in series according to the entrusting identification to obtain message path data corresponding to the entrusting order, so that calculation is performed according to each component of the message path data, the overall time delay of the trading system can be obtained, and the time delay of each component in the trading system can be obtained by calculating the time delay by taking each component as an individual. Continuing with the example of message path data G1O6, G1O6 may be understood as G1G2+ G2T3+ T3T4+ T4O5+ O5O6. The latency of the order within the trading system can be represented by G1O6, G1G2 within the trading gateway, T3T4 within the trading engine, and O5O6 within the reporting service component.
According to the processing method for the time delay of the trading system, when the trading system receives the entrusting order, the entrusting identification of the entrusting order is obtained, and the trading system comprises a plurality of components; acquiring the starting time and the ending time of each component for processing the entrusted order; connecting each starting time and each ending time in series according to the entrusting identification to obtain message path data corresponding to the entrusting order; the time delay of each component is counted according to the message path data to obtain the time delay of the trading system, so that the time delay of each component in the trading system is accurately measured, a data base is provided for optimizing the performance of the trading system, and the performance of the trading system is improved, so that the timeliness of the trading system is improved. Meanwhile, the time delay of each component and the time delay of the transaction system are accurately monitored.
In one embodiment, as shown in fig. 3, the method further comprises the steps of:
and S310, calculating the time interval of the starting time and the ending time of each component according to the entrusted identification to obtain the time delay of each component.
Specifically, as each order passes through the components of the trading system, each component processes the order accordingly. And when the entrusting order reaches each component, acquiring the starting time of processing the entrusting order by each component. And collecting the finish time of the leave of the entrusted order when the entrusted order is processed and leaves each component. And aiming at any component, calculating the time interval by utilizing the starting time of entering the component and the ending time of leaving the component according to the entrusting identification of the entrusting order, and obtaining the time delay of the component. For example, the time difference obtained by subtracting the starting time of entering the component from the ending time of leaving the component is the delay of the component.
And S320, when the transaction system has a fault, comparing the time delay of each component with a preset time delay threshold value, and determining the component with the time delay larger than the time delay threshold value as a fault component.
Specifically, by setting the entrusting identifier for the entrusting order and acquiring the starting time and the ending time of processing the order by each component, the time difference between the starting time and the ending time can be calculated according to the entrusting identifier. In some embodiments, the approximate range of the delay of each component may be obtained according to past practical experience and test experience, and the delay threshold may be set. Each component has a respective latency threshold. And aiming at any component, comparing the time delay of the component with the time delay threshold value of the component, and if the time delay of the component is greater than the time delay threshold value of the component, determining that the component is a fault component. If the component's latency is not greater than the component's latency threshold, then the component is determined to be a normal component.
In the embodiment, the time interval of the starting time and the ending time of each component is calculated according to the entrusted identification, so that the time delay of each component is obtained; when the transaction system is in fault, the time delay of each component is compared with a preset time delay threshold value, and the component with the time delay larger than the time delay threshold value is determined as a fault component. The fault position can be quickly and accurately positioned, and the stability of the transaction system is ensured.
In one embodiment, as shown in fig. 4, obtaining the start time and the end time for each component to process the delegation order includes:
s410, acquiring a first time stamp of the arrival of the entrusted order at each component.
S420, obtaining a second time stamp of the leave of the entrusted order from each component.
The transaction system time delay comprises an uplink time delay and a downlink time delay, the uplink time delay refers to the time delay between the entrusting order entering the transaction system and leaving the report service report to the exchange gateway, and the uplink time delay is a key parameter for determining whether the entrusting order can be delivered to the exchange as soon as possible. Specifically, the trading system is connected with the order management system, and the order management system sends the entrusted order to the trading system. When the entrusted order enters the transaction system from the order management system, the entrusted order needs to enter each component in sequence for processing. When each component starts to process the request order, the request order is ordered, and a first time stamp of the request order reaching each component is obtained. And after the components finish processing the entrusted order, when the entrusted order leaves the components, dotting the entrusted order and acquiring a second time stamp of the entrusted order leaving the components.
According to the entrusting identification, each starting time and each ending time are connected in series to obtain message path data corresponding to the entrusting order, and the method comprises the following steps:
and S430, connecting the first time stamps and the second time stamps in series according to the entrusting identification to obtain uplink path data corresponding to the entrusting order.
Specifically, when each component processes the entrusted order, the entrusted identification of the entrusted order is also collected, so that for any entrusted order, the entrusted order can be serially connected through the first time stamp and the second time stamp of each component according to the entrusted identification to form uplink path data corresponding to the entrusted order. The message path data G1O6 as mentioned before can be understood as upstream path data corresponding to the order of the order.
In one embodiment, as shown in FIG. 5, obtaining the start time and the end time for each component to process the delegation order includes:
and S510, acquiring a third time stamp of the confirmation information of the entrusted order reaching each component.
And S520, acquiring a fourth time stamp of the confirmation information leaving each component.
The trading system delay comprises an uplink delay and a downlink delay, wherein the downlink delay is the delay from the time when the confirmation information of the entrusting order is sent to the trading system from the trading exchange gateway to the time when the confirmation information leaves the trading system and is sent to the client (such as an order management system) where the investor is located. In particular, the exchange system is not only connected to the order management system, but also to the exchange gateway. And receiving confirmation information corresponding to the entrusted order sent by the exchange through the exchange gateway transaction system. When the confirmation information enters the trading system from the exchange gateway, the entrusted order needs to enter each component in turn for processing. When each component starts processing the request order, the request order is ordered, and a third time stamp when the confirmation information reaches each component is acquired. And after the components finish processing the entrusted order and when the confirmation information leaves the components, dotting the entrusted order and acquiring a fourth time stamp of the confirmation information leaving the components. Illustratively, the confirmation message sequentially enters the starting time O7 of the newspaper service component, leaves the ending time O8 of the newspaper service component, enters the starting time T9 of the transaction engine, leaves the ending time T10 of the transaction engine, enters the starting time G11 of the transaction gateway, and leaves the ending time G12 of the transaction gateway.
According to the entrusting identification, each starting time and each ending time are connected in series to obtain message path data corresponding to the entrusting order, and the method comprises the following steps:
and S530, connecting the third time stamps and the fourth time stamps in series according to the entrusting identification to obtain downlink path data corresponding to the entrusting order.
Specifically, when each component processes the confirmation information, the entrusting identification of the entrusting order is also collected, so that for any entrusting order, the confirmation information can be serially connected sequentially through the third timestamp and the fourth timestamp of each component according to the entrusting identification to form downlink path data corresponding to the entrusting order. Illustratively, the start time O7, the end time O8, the start time T9, the end time T10, the start time G11, and the end time G12 are connected in series to form the downstream path data O7G12 corresponding to the request order, and the O7G12 may be understood as O7O8+ O8T9+ T9T10+ T10TG11+ G11G12. The time delay of the confirmation information inside the transaction system can be represented by O7G12, G11G12 inside the transaction gateway, T9T10 inside the transaction engine, and O7O8 inside the report service component.
In one embodiment, as shown in fig. 6, the method further comprises the steps of:
s610, counting the number of the first time stamps of each component, and determining the throughput condition of each component according to the counting result.
S620, judging whether the bearing pressure of each component reaches a bottleneck threshold value according to the throughput condition of each component, and adding new components for the components reaching the bottleneck threshold value.
Specifically, when each component starts processing the request order, the request order is put, and a first timestamp of the arrival of the request order at each component is acquired. And counting the number of the first time stamps of each component in preset time to obtain the handling condition of each component, so that the bearing pressure of each component is known. According to the difference of the throughput condition of each component, whether the bearing pressure of each component reaches the bottleneck in advance is determined, and therefore whether the pressure is relieved by increasing the number of the instances of the components is determined. Illustratively, for example, the dotting conditions of the transaction gateway, the transaction engine and the reimbursement service component in a certain time period are 30000/s, 25000/s and 25000/s respectively, which indicates that the processing capacity of the transaction engine cannot keep pace with the gateway, and at this time, it may be considered to add a transaction engine to share the pressure to solve the bottleneck problem.
In this embodiment, the throughput condition of each component is determined according to the statistical result by counting the number of the first timestamps of each component. And judging whether the bearing pressure of each component reaches a bottleneck threshold value according to the handling condition of each component, adding a new component for the component reaching the bottleneck threshold value, solving the bottleneck problem, improving the processing capacity of the transaction system and improving the user experience.
In one embodiment, the components of the transaction system include an offer service component. The method further comprises the following steps: counting the number of the second time stamps of the report service assembly, and judging whether the counting result triggers a flow rate control condition of the exchange docking assembly; if so, increasing the flow rate weight for the transaction system.
The report service component is connected with the exchange gateway, and each connection is provided with flow rate weight control. The dotting rate of the report service component can be combined to judge whether the flow rate weight needs to be increased or not. "flow rights" represents the claim of orders assigned, and this value does not refer to the rate at which orders are declared, but rather to the amount of orders allowed in transit. Specifically, after the report service component completes processing of the consignment order, when the consignment order leaves the report service component, the consignment order is checked, the number of second time stamps of the report service component is counted, and whether the counting result triggers a flow rate control condition of a component connected with a trading post is judged; if so, increasing the flow rate weight for the transaction system.
In the embodiment, the number of the second time stamps of the report service component is counted, and whether the counting result triggers the flow rate control condition of the exchange docking component is judged; and if the trigger is detected, increasing the flow rate weight value for the transaction system so as to prevent the sudden increase of the service from triggering the flow control of the exchange gateway and influencing the experience effect of the user transaction.
In one embodiment, the components of the trading system further include a trading gateway, the trading gateway being deployed on the same server as the offer service component. Or, based on a high-precision time synchronization protocol, ensuring the time synchronization of the transaction gateway and the report service component.
Specifically, the message path data G1O6 delay has a requirement for deployment, that is, the transaction gateway component and the report service component need to be deployed on the same server node, so that the validity of time can be guaranteed. If the transaction gateway component and the report service component are not in the same server, a PTP (Precision Time Protocol) timing service is required to be used for real-Time calibration between the server in which the transaction gateway component is deployed and the server in which the report service component is deployed, so that the deviation between the servers is ensured to be within one microsecond.
In one embodiment, the application provides a method for processing transaction system time delay. The transaction system comprises a transaction gateway, a transaction engine and an offer service component. The transaction gateway, transaction engine, and reporting service components may be implemented as separate components of a transaction system. The transaction gateway, transaction engine, and reporting services component may be deployed on the same server. If the transaction gateway, the transaction engine and the report service component are deployed on different servers, the transaction gateway and the report service component are ensured to be time-synchronized based on a high-precision time synchronization protocol. The method comprises the following steps:
s702, when the transaction system receives an order form, acquiring an order identification of the order form, wherein the transaction system comprises a plurality of components;
s704, acquiring first time stamps of the entrusted orders reaching all the components;
s706, acquiring a second time stamp of the entrusted order leaving each component;
and S708, connecting the first time stamps and the second time stamps in series according to the entrustment identification to obtain uplink path data corresponding to the entrustment order.
S710, acquiring a third timestamp of the confirmation information of the entrusted order reaching each component;
s712, acquiring a fourth timestamp of the confirmation information leaving each component;
and S714, connecting the third time stamps and the fourth time stamps in series according to the entrusting identification to obtain downlink path data corresponding to the entrusting order.
S716, calculating the time interval of the starting time and the ending time of each component according to the entrusted identification to obtain the time delay of each component;
and S718, when the transaction system fails, comparing the time delay of each component with a preset time delay threshold value, and determining the component with the time delay larger than the time delay threshold value as a failed component.
S720, counting the number of the first time stamps of each component, and determining the handling condition of each component according to the counting result;
and S722, judging whether the bearing pressure of each component reaches a bottleneck threshold value according to the throughput condition of each component, and adding a new component for the component reaching the bottleneck threshold value.
S724, counting the number of second time stamps of the report service assembly, and judging whether a counting result triggers a flow rate control condition of the exchange docking assembly;
and S726, if the trigger is triggered, increasing the flow rate weight for the transaction system.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
In one embodiment, as shown in fig. 7, there is provided a processing apparatus 700 for transaction system latency, comprising: a delegation identification obtaining module 710, a start and end time obtaining module 720, a start and end time series module 730, and a component delay statistics module 740, wherein:
an entrusting identifier obtaining module 710, configured to obtain an entrusting identifier of an entrusting order when the trading system receives the entrusting order, where the trading system includes a plurality of components;
a start and end time obtaining module 720, configured to obtain a start time and an end time when each component processes the delegation order;
a start-end time concatenation module 730, configured to concatenate the start times and the end times according to the delegation identifier, to obtain message path data corresponding to the delegation order;
and the component delay counting module 740 is configured to count the delay of each component according to the message path data to obtain the delay of the transaction system.
In one embodiment, the processing apparatus further comprises:
the time interval calculation module is used for calculating the time interval of the starting time and the ending time of each component according to the entrusted identification to obtain the time delay of each component;
and the fault component determining module is used for comparing the time delay of each component with a preset time delay threshold value when the transaction system has a fault, and determining the component with the time delay larger than the time delay threshold value as a fault component.
In one embodiment, the time of beginning and end obtaining module 720 is further configured to obtain a first timestamp of arrival of the delegation order at each of the components; obtaining a second timestamp of the leave of the delegated order from each of the components;
the start-end time concatenation module 730 is further configured to concatenate the first timestamps and the second timestamps according to the delegation identifier, so as to obtain uplink path data corresponding to the delegation order.
In an embodiment, the time of beginning and end obtaining module 720 is further configured to obtain a third timestamp of arrival of the confirmation information of the delegation order at each of the components; obtaining a fourth timestamp of the departure of the acknowledgement information from each of the components;
the start-end time concatenation module 730 is further configured to concatenate the third timestamps and the fourth timestamps according to the delegation identifier, so as to obtain downlink path data corresponding to the delegation order.
In one embodiment, the processing apparatus further comprises:
the throughput condition determining module is used for counting the number of the first time stamps of each component and determining the throughput condition of each component according to the counting result;
and the component adding module is used for judging whether the bearing pressure of each component reaches a bottleneck threshold value according to the throughput condition of each component and adding a new component for the component reaching the bottleneck threshold value.
In one embodiment, the components of the transaction system include an offer service component; the processing apparatus further includes:
the flow rate control triggering module is used for counting the number of the second time stamps of the report service assembly and judging whether the counting result triggers the flow rate control condition of the exchange docking assembly;
and the flow rate weight increasing module is used for increasing the flow rate weight for the transaction system if the flow rate weight increasing module is triggered.
In one embodiment, the components of the transaction system further include a transaction gateway deployed on the same server as the listing service component. Or alternatively
And ensuring the time synchronization of the transaction gateway and the report service component based on a high-precision time synchronization protocol.
For the specific limitation of the processing device for the transaction system time delay, reference may be made to the above limitation on the processing method for the transaction system time delay, and details are not described here. All or part of each module in the processing device of the transaction system time delay can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of processing a transaction system latency. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, a computer device is provided, comprising a memory in which a computer program is stored and a processor, which when executing the computer program performs the method steps in the above embodiments.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method steps of the above-mentioned embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (7)

1. A transaction system time delay processing method is characterized by comprising the following steps:
when an entrusting order is received, acquiring an entrusting identification of the entrusting order, wherein the transaction system comprises a plurality of components;
acquiring the starting time and the ending time of each component for processing the entrusted order;
connecting each starting time and each ending time in series according to the entrusting identification to obtain message path data corresponding to the entrusting order;
counting the time delay of each component according to the message path data to obtain the time delay of the transaction system;
calculating the time interval of the starting time and the ending time of each component according to the entrusted identification to obtain the time delay of each component; when the transaction system fails, comparing the time delay of each component with a preset time delay threshold value, and determining the component with the time delay larger than the time delay threshold value as a failed component;
obtaining a first time stamp when the entrusted order reaches each component, and obtaining a second time stamp when the entrusted order leaves each component;
counting the number of the first time stamps of each component, and determining the throughput condition of each component according to the counting result; judging whether the bearing pressure of each component reaches a bottleneck threshold value according to the throughput condition of each component, and adding a new component for the component reaching the bottleneck threshold value;
counting the number of second time stamps of the report service assembly, and judging whether a counting result triggers a flow rate control condition of the exchange docking assembly or not; and if so, increasing the flow rate weight for the transaction system.
2. The method of claim 1, wherein obtaining a start time and an end time for each of the components to process the delegated order comprises:
the step of connecting each starting time and each ending time in series according to the delegation identifier to obtain message path data corresponding to the delegation order includes:
and connecting each first time stamp and each second time stamp in series according to the entrusting identification to obtain uplink path data corresponding to the entrusting order.
3. The method of claim 2, wherein obtaining a start time and an end time for each of the components to process the delegated order comprises:
acquiring a third timestamp of arrival of confirmation information of the entrusted order at each component;
obtaining a fourth timestamp of the departure of the acknowledgement information from each of the components;
the obtaining of the message path data corresponding to the delegation order by serially connecting the starting time and the ending time according to the delegation identifier includes:
and connecting each third time stamp and each fourth time stamp in series according to the entrusting identification to obtain downlink path data corresponding to the entrusting order.
4. The method of claim 3, wherein the components of the transaction system further comprise a transaction gateway deployed on the same server as the reimbursement service component; or based on a high-precision time synchronization protocol, ensuring the time synchronization of the transaction gateway and the report service component.
5. A transaction system latency processing apparatus, the apparatus comprising:
the entrusting identification obtaining module is used for obtaining an entrusting identification of an entrusting order when the trading system receives the entrusting order, and the trading system comprises a plurality of components;
a start and end time acquisition module for acquiring the start time and the end time of processing the entrusted order by each component;
a start and end time series module, configured to perform series connection on each start time and each end time according to the delegation identifier, so as to obtain message path data corresponding to the delegation order;
the component time delay counting module is used for counting the time delay of each component according to the message path data to obtain the time delay of the transaction system;
calculating the time interval of the starting time and the ending time of each component according to the entrusted identification to obtain the time delay of each component; when the transaction system fails, comparing the time delay of each component with a preset time delay threshold value, and determining the component with the time delay larger than the time delay threshold value as a failed component;
acquiring a first time stamp of the entrusted order reaching each component, and acquiring a second time stamp of the entrusted order leaving each component;
counting the number of the first time stamps of each component, and determining the throughput condition of each component according to the counting result; judging whether the bearing pressure of each component reaches a bottleneck threshold value according to the throughput condition of each component, and adding a new component for the component reaching the bottleneck threshold value;
counting the number of second time stamps of the report service assembly, and judging whether a counting result triggers a flow rate control condition of the exchange docking assembly or not; and if so, increasing the flow rate weight for the transaction system.
6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 4.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202110355720.XA 2021-04-01 2021-04-01 Transaction system time delay processing method and device, computer equipment and storage medium Active CN113110983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110355720.XA CN113110983B (en) 2021-04-01 2021-04-01 Transaction system time delay processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110355720.XA CN113110983B (en) 2021-04-01 2021-04-01 Transaction system time delay processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113110983A CN113110983A (en) 2021-07-13
CN113110983B true CN113110983B (en) 2023-04-11

Family

ID=76713375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110355720.XA Active CN113110983B (en) 2021-04-01 2021-04-01 Transaction system time delay processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113110983B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904820A (en) * 2012-09-25 2013-01-30 上海证券交易所 Extensible traffic control data interaction method and system
CN111309571A (en) * 2020-02-12 2020-06-19 深圳华锐金融技术股份有限公司 Service data control method, device, computer equipment and storage medium
CN112101803A (en) * 2020-09-21 2020-12-18 腾讯科技(深圳)有限公司 Business process monitoring method, device, system, equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11451647B2 (en) * 2016-12-27 2022-09-20 Chicago Mercantile Exchange Inc. Message processing protocol which mitigates optimistic messaging behavior
CN109087082B (en) * 2018-07-23 2020-06-23 阿里巴巴集团控股有限公司 Financial transaction execution method and device based on block chain and electronic equipment
US20200034929A1 (en) * 2018-07-26 2020-01-30 Nasdaq, Inc. In-Order Processing of Transactions
CN109656574B (en) * 2018-11-27 2021-10-29 深圳华锐金融技术股份有限公司 Transaction time delay measurement method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904820A (en) * 2012-09-25 2013-01-30 上海证券交易所 Extensible traffic control data interaction method and system
CN111309571A (en) * 2020-02-12 2020-06-19 深圳华锐金融技术股份有限公司 Service data control method, device, computer equipment and storage medium
CN112101803A (en) * 2020-09-21 2020-12-18 腾讯科技(深圳)有限公司 Business process monitoring method, device, system, equipment and medium

Also Published As

Publication number Publication date
CN113110983A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN109656574B (en) Transaction time delay measurement method and device, computer equipment and storage medium
US20150207877A1 (en) Time synchronization client, a system and a non-transitory computer readable medium
CN112311628B (en) Network speed measuring method, system, network equipment and storage medium
CN110928880B (en) Data processing method, device, terminal and medium based on block chain
CN112187393B (en) PON bus time synchronization method and device, computer equipment and storage medium
CN111490843B (en) Time checking method and device, computer equipment and storage medium
US20190104174A1 (en) Load processing method and apparatus
CN103995901B (en) A kind of method for determining back end failure
CN113110983B (en) Transaction system time delay processing method and device, computer equipment and storage medium
CN108964822B (en) Method and system for acquiring network time in parallel by multiple schemes
CN112702219A (en) Internet of things network monitoring method, device, equipment and storage medium
CN111600774B (en) Consumption delay determination method, system, device, equipment and readable storage medium
CN112751722B (en) Data transmission quality monitoring method and system
CN111064613B (en) Network fault detection method and device
CN108696446B (en) Method and device for updating flow characteristic information and central node server
CN114422407B (en) Network testing method, system, terminal and storage medium
CN111757371A (en) Statistical method of transmission delay, server and storage medium
CN108880913A (en) A kind of management method of traffic characteristic, device and central node server
CN113568781B (en) Database error processing method and device and database cluster access system
CN112258184B (en) Method, apparatus, electronic device and readable storage medium for freezing blockchain network
CN110198228A (en) A kind of failure monitoring method, device, server and storage medium
CN113807697A (en) Alarm association-based order dispatching method and device
CN113221151A (en) Data processing method and device based on block chain and storage medium
CN113965489B (en) Link timeout detection method, device, computer equipment and storage medium
CN112860763B (en) Real-time streaming data processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 2301, building 5, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Huarui Distributed Technology Co.,Ltd.

Applicant after: Shanghai Huarui Software Co.,Ltd.

Address before: Room 2301, building 5, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN ARCHFORCE FINANCIAL TECHNOLOGY Co.,Ltd.

Applicant before: Shanghai Huarui Software Co.,Ltd.

GR01 Patent grant
GR01 Patent grant