Business data processing method and device, electronic equipment and storage medium
By using a long-connection communication process to push business data in the banking system, the transaction timeliness problem caused by communication delays between the host and the platform server was solved, and more efficient business data processing was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INDUSTRIAL AND COMMERCIAL BANK OF CHINA
- Filing Date
- 2022-11-30
- Publication Date
- 2026-04-21
AI Technical Summary
In traditional banking systems, communication delays between the host computer and the platform server can cause network jitter or anomalies, leading to a decrease in the timeliness of business transactions and affecting customer experience.
By obtaining the process batch number, the long-connection communication process pushes business data to the platform server, generates communication messages, and proceeds directly to subsequent processing without waiting for confirmation of the sending status.
It reduced the overall time for business data processing and improved the timeliness of business data processing.
Smart Images

Figure CN115934378B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of computer technology, intelligent operation and maintenance, and finance, and more specifically, to a business data processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] Currently, traditional banking systems use centralized mainframe systems, where core business transactions run on the mainframe. In contrast, notification and messaging platforms are open platforms. During a transaction, the system waits for the communication interface to confirm the message was sent successfully or failed before proceeding to the next step. Because of the inherent communication latency between the mainframe and the platform, network fluctuations or platform server malfunctions can prolong communication time, reducing the overall timeliness of business transactions and impacting customer experience. Summary of the Invention
[0003] In view of the above, this disclosure provides a business data processing method, apparatus, electronic device, readable storage medium, and computer program product.
[0004] One aspect of this disclosure provides a business data processing method, including: in response to a target batch process being in a running state, obtaining the process batch number of the target batch process; invoking the target batch process and using the process batch number to determine a target message from a message detail table, wherein the target message includes target business data, a target application number, and a target batch number, and the target batch number and the process batch number belong to the same batch; filling the target business data and the target application number from the target message into a message template to generate a communication message; and sending the communication message to a gateway, wherein the gateway is configured to parse the communication message, obtain the target business data and the target application number, and invoking a long-connection communication process associated with the target application number to push the target business data to a platform server.
[0005] According to embodiments of this disclosure, the method further includes: receiving transaction data from a host via a communication interface, wherein the transaction data has a corresponding application number; determining a batch range corresponding to the application number based on a parameter configuration table; generating a batch number for the transaction data based on the batch range; recording the transaction data, the application number, and the batch number in the message detail table; and sending feedback information to the host, wherein the feedback information indicates that the transaction has been completed.
[0006] According to embodiments of this disclosure, the method further includes: obtaining the running status of multiple batch processes by polling, wherein the target batch process belongs to multiple batch processes; for each batch process, determining the stop runtime of the batch process when the batch process is in a dormant state; and controlling the batch process to enter the startup state when the stop runtime is greater than or equal to a preset dormant duration.
[0007] According to embodiments of this disclosure, the method further includes: for each batch process, when the batch process is in a running state, obtaining process processing information of the batch process from a data table; and when the process processing information satisfies a first process termination condition, controlling the batch process to enter a dormant state.
[0008] According to an embodiment of this disclosure, the first process termination condition includes: the processing time of the batch process is greater than or equal to a processing time threshold; or the number of messages processed by the batch process is greater than or equal to a message number threshold.
[0009] According to an embodiment of this disclosure, the message detail table also records the message sending status of the message; the method further includes: when the message in the message detail table meets the second process termination condition, controlling the batch process to enter a dormant state.
[0010] According to an embodiment of this disclosure, the second process termination condition includes: all messages in the message detail table are marked as sent; or all messages in the message detail table belonging to the same batch as the process batch number are marked as sent.
[0011] According to embodiments of this disclosure, the method further includes: receiving a data push result returned by the gateway; and modifying the message sending status of the target message in the message details table based on the data push result.
[0012] Another aspect of this disclosure provides a business data processing apparatus, comprising: an acquisition module, configured to acquire the process batch number of the target batch process in response to the target batch process being in a running state; a determination module, configured to invoke the target batch process and, using the process batch number, determine a target message from a message detail table, wherein the target message includes target business data, a target application number, and a target batch number, and the target batch number and the process batch number belong to the same batch; a generation module, configured to fill the target business data and the target application number from the target message into a message template to generate a communication message; and a sending module, configured to send the communication message to a gateway, wherein the gateway is configured to parse the communication message, acquire the target business data and the target application number, and invoke a long-connection communication process associated with the target application number to push the target business data to a platform server.
[0013] Another aspect of this disclosure provides an electronic device, including: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors cause the one or more processors to perform the method as described above.
[0014] Another aspect of this disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed, are used to implement the method described above.
[0015] Another aspect of this disclosure provides a computer program product including computer-executable instructions that, when executed, implement the method described above.
[0016] According to embodiments of this disclosure, during the process of a target batch process being started, the process batch number of the message to be sent is obtained from the target batch process of the business transaction. Based on the process batch number, the target message belonging to the same batch as the process batch number is determined from the message detail table. Then, the target business data and target application number in the target message are filled into the message template to generate a communication message, which is then sent to the gateway. The gateway parses the communication message to obtain the target business data and target application number, so that the gateway can select the appropriate long-connection communication process to send the target business data based on the target application number. Through the above technical means, when conducting a business transaction, it is not necessary to confirm the status of the target business data being sent to the platform server before proceeding with subsequent business data processing, thus reducing the overall processing time of business data processing. Therefore, it at least partially overcomes the technical problems of long communication time and low overall timeliness of business data processing in related technologies, effectively improving the timeliness of business data processing. Attached Figure Description
[0017] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0018] Figure 1 This schematically illustrates an exemplary system architecture for displaying click counts on the left side of a webpage, to which the methods and apparatus of this disclosure can be applied;
[0019] Figure 2 A flowchart illustrating a business data processing method according to an embodiment of the present disclosure is shown schematically.
[0020] Figure 3 A flowchart illustrating a business data processing method according to another embodiment of this disclosure is shown schematically;
[0021] Figure 4 This schematically illustrates a flowchart of a batch process sequentially executing a first process termination condition for polling checks in a business data processing method according to an embodiment of the present disclosure;
[0022] Figure 5 This schematically illustrates a flowchart of a batch process sequentially executing a second process termination condition for polling checks in a business data processing method according to an embodiment of the present disclosure;
[0023] Figure 6 A block diagram of a business data processing apparatus according to an embodiment of the present disclosure is schematically shown; and
[0024] Figure 7 A block diagram of an electronic device suitable for implementing a business data processing method according to an embodiment of the present disclosure is shown schematically. Detailed Implementation
[0025] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0026] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0027] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0028] When using expressions such as "at least one of A, B, and C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). Similarly, when using expressions such as "at least one of A, B, or C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, or C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0029] Currently, traditional banking systems use centralized mainframe systems to process business data. Specifically, when processing business data, the centralized mainframe system calls a communication interface to obtain the target business data to be sent for the transaction. Then, using a long-lived communication channel, it pushes the target business data to the platform server. Only after confirming whether the target business data was successfully sent to the platform server does it proceed to the next step of business processing. Because the need to confirm the sending status of the target business data causes communication delays, the overall timeliness of business data processing decreases in the event of network jitter or platform server malfunctions, thus affecting customer experience.
[0030] In view of the above, embodiments of this disclosure provide a business data processing method, a business data processing apparatus, an electronic device, a readable storage medium, and a computer program product. The method includes, in response to a target batch process being in a running state, obtaining the process batch number of the target batch process; invoking the target batch process and using the process batch number to determine a target message from a message detail table, wherein the target message includes target business data, a target application number, and a target batch number, and the target batch number and the process batch number belong to the same batch; filling the target business data and target application number from the target message into a message template to generate a communication message; and sending the communication message to a gateway, wherein the gateway is configured to parse the communication message, obtain the target business data and the target application number, and invoking a long-connection communication process associated with the target application number to push the target business data to a platform server.
[0031] It should be noted that the business data processing method and apparatus determined in the embodiments of this disclosure can be used in the fields of computer technology, intelligent operation and maintenance, or finance. The business data processing method and apparatus determined in the embodiments of this disclosure can also be used in any field other than computer technology, intelligent operation and maintenance, and finance. The application fields of the business data processing method and apparatus determined in the embodiments of this disclosure are not limited.
[0032] In the technical solution disclosed herein, the acquisition, storage, and application of user personal information comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals.
[0033] In the technical solution disclosed herein, the user's authorization or consent is obtained before acquiring or collecting the user's personal information.
[0034] Figure 1 This illustration schematically depicts an exemplary system architecture to which business data processing methods and apparatus can be applied according to embodiments of this disclosure. It should be noted that... Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.
[0035] like Figure 1 As shown, the system architecture 100 according to this embodiment may include hosts 101, 102, and 103, a network 104, and a platform server 105. The network 104 serves as a medium for providing communication links between hosts 101, 102, and 103 and the platform server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0036] Users can use hosts 101, 102, and 103 to interact with the platform server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on hosts 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and / or social media platforms (for example only). Users generate business data by operating the various communication client applications on hosts 101, 102, and 103.
[0037] Hosts 101, 102, and 103 can be various electronic devices with displays, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0038] Platform server 105 can be a server that provides various services. For example, platform server 105 can process business data generated by users using communication client applications in hosts 101, 102, and 103, and return the processing results to hosts 101, 102, and 103.
[0039] It should be noted that the business data processing method provided in this embodiment can generally be executed by hosts 101, 102, or 103. Correspondingly, the business data processing device provided in this embodiment can generally be located in hosts 101, 102, or 103. Alternatively, the business data processing method provided in this embodiment can also be executed by a client device, server, or server cluster that is different from hosts 101, 102, and 103 and capable of communicating with hosts 101, 102, 103, and / or platform server 105. Correspondingly, the business data processing device provided in this embodiment can also be located in a client device, server, or server cluster that is different from hosts 101, 102, and 103 and capable of communicating with hosts 101, 102, 103, and / or platform server 105. It should be understood that... Figure 1 The number of hosts, networks, and platform servers shown is merely illustrative. Depending on implementation needs, any number of hosts, networks, and platform servers can be included.
[0040] Figure 2 A flowchart illustrating a business data processing method according to an embodiment of the present disclosure is shown schematically.
[0041] like Figure 2 As shown, the method includes operations S201 to S204.
[0042] In operation S201, in response to the target batch process being in the started state, the process batch number of the target batch process is obtained.
[0043] In operation S202, the target batch process is invoked. Using the process batch number, the target message is determined from the message details table. The target message includes target business data, target application number, and target batch number. The target batch number and the process batch number belong to the same batch.
[0044] In operation S203, the target service data and target application number from the target message are filled into the message template to generate a communication message.
[0045] In operation S204, a communication message is sent to the gateway. The gateway is configured to parse the communication message, obtain the target service data and the target application number, and call the long-connection communication process associated with the target application number to push the target service data to the platform server.
[0046] According to embodiments of this disclosure, the application number is a number assigned to a platform application, and there can be a one-to-one correspondence between the application number and the platform application.
[0047] According to embodiments of this disclosure, a batch number can be supplemented by two parts: a batch code and a range code. For example, a batch number can be represented as 0001-002. 0001 is the batch code, used to confirm whether the target batch number and the process batch number belong to the same batch based on whether the batch codes are the same. 002 is the range code, which is randomly assigned according to the batch range when generating the batch number.
[0048] According to embodiments of this disclosure, the host starts multiple processes to push target messages in parallel, and the number of each process is the batch number. The data processed by each process does not affect each other.
[0049] According to embodiments of this disclosure, the message detail table stores target message data, including target service data, target application number, and target batch number. The target batch number and process batch number belong to the same batch. The target service data includes the message body and the sending status of the target message, where the sending status includes pending sending, successful sending, or failed sending, which is not limited here.
[0050] According to embodiments of this disclosure, a gateway can refer to a device that enables network interconnection at or above the network layer, and a gateway can perform functions such as message parsing, communication, and resource configuration.
[0051] Specifically, the resource configuration function can refer to storing configuration files locally on the gateway. The configuration files can configure multiple target application numbers corresponding to the IP addresses of multiple platform servers, as well as the number of connections to be established with each platform server.
[0052] The communication function refers to the gateway's ability to establish long-term communication with the platform server. The gateway can obtain all target application numbers and the number of connections to be established with each platform server from the configuration file, establish a set of long-term connections between each target application number and each platform server, and store the component information of the target application number and the long-term connection.
[0053] The message parsing function refers to the gateway's ability to parse communication messages sent by the host, obtain the target service data and the target application number, and call the long-connection communication process associated with the target application number to push the target service data to the platform server.
[0054] According to embodiments of this disclosure, during the process of a target batch process being started, the process batch number of the message to be sent is obtained from the target batch process of the business transaction. Based on the process batch number, the target message belonging to the same batch as the process batch number is determined from the message detail table. Then, the target business data and target application number in the target message are filled into the message template to generate a communication message, which is then sent to the gateway. The gateway parses the communication message to obtain the target business data and target application number, so that the gateway can select the appropriate long-connection communication process to send the target business data based on the target application number. Through the above technical means, when conducting a business transaction, it is not necessary to confirm the status of the target business data being sent to the platform server before proceeding with the subsequent business data processing, thus reducing the overall processing time of business data processing. Therefore, it at least partially overcomes the technical problems of long communication time and low overall timeliness of business data processing in related technologies, effectively improving the timeliness of business data processing.
[0055] Figure 3 A flowchart illustrating a business data processing method according to another embodiment of the present disclosure is shown.
[0056] like Figure 3 As shown, the method 300 may further include operations S301 to S305.
[0057] In operation S301, the business data processing method also includes receiving business data from the host for transaction business using a communication interface, and the business data contains a corresponding application number.
[0058] In operation S302, based on the parameter configuration table, the batch range corresponding to the application number in the business data is determined.
[0059] In operation S303, batch numbers for business data are generated based on batch range.
[0060] When operating S304, record the business data, application number, and batch number in the message details table.
[0061] In operation S305, a feedback message indicating that the transaction has been completed is sent to the host.
[0062] According to embodiments of this disclosure, during the interaction process with the host via the communication interface, the host receives transaction data from the host, records the corresponding application number and the generated batch number in the message details table, and then receives feedback indicating that the transaction has been completed. The host can continue processing the transaction without pushing the business data to the platform server, reducing the overall processing time and improving the timeliness of business data processing.
[0063] Figure 4A schematic diagram illustrating a batch process workflow according to an embodiment of the present disclosure is shown.
[0064] like Figure 4 As shown, the batch process workflow may include operations S401 to S405.
[0065] In operation S401, determine the running status of the batch process. If the batch process is determined to be in a dormant state, execute operation S402. If the batch process is determined to be in a running state, execute operation S404. In operation S402, determine whether the stop runtime of the batch process is greater than or equal to the preset sleep duration. If the stop runtime of the batch process is determined to be greater than or equal to the preset sleep duration, execute operation S403. If the stop runtime of the batch process is determined to be less than the preset sleep duration, execute operation S404.
[0066] When operating S403, control the batch process to enter the startup state.
[0067] In operation S404, determine whether the batch process has been completed. If it is determined that the batch process has been completed, execute operation S405. If it is determined that the batch process has not been completely completed, retrieve the messages for the next batch and return to execute operation S401.
[0068] When operating S405, control the batch process to enter a sleep state.
[0069] According to embodiments of this disclosure, the business data processing method further includes obtaining the running status of multiple batch processes by polling, wherein the target batch process belongs to multiple batch processes.
[0070] According to embodiments of this disclosure, the running states of a batch process include a dormant state and a running state.
[0071] According to embodiments of this disclosure, for each batch process, when the batch process is in a dormant state, the stop runtime of the batch process is determined; when the stop runtime is greater than or equal to a preset dormant duration, the batch process is controlled to enter the start state, and the completion status of the batch process is determined.
[0072] According to embodiments of this disclosure, for each batch process, when the batch process is in a dormant state, the stop runtime of the batch process is determined, and when the stop runtime is less than a preset dormant duration, the completion status of the batch process is determined.
[0073] According to embodiments of this disclosure, when determining the completion status of a batch process, if all batch processes are completed, the batch process is controlled to enter a sleep state; if not all batch processes are completed, the running status of the batch process is obtained, and a polling check is initiated.
[0074] Figure 5 A schematic diagram illustrating a batch process workflow according to another embodiment of the present disclosure is shown.
[0075] like Figure 5 As shown, the batch process workflow may include operations S501 to S509.
[0076] When operating S501, for each batch process, while the batch process is in the started state, the process processing information of the batch process is obtained from the data table.
[0077] In operation S502, it is determined whether the processing time of the batch process is greater than or equal to the processing time threshold.
[0078] In operation S503, determine whether the number of messages processed by the batch process is greater than or equal to the message number threshold.
[0079] In operation S504, determine the message sending status of all messages in the message details table.
[0080] When operating S505, the data of the message to be processed is obtained from the message details table, the message to be processed is filled into the message template, and a communication message is generated.
[0081] When operating S506, a communication message for sending pending messages is sent to the gateway to determine the status of the pending message sending.
[0082] In operation S507, it is determined whether the number of retries for sending the message to be processed is greater than or equal to the retry threshold.
[0083] In operation S508, update the message sending status in the message details table and update the number of messages processed by the batch process.
[0084] When operating S509, the batch process saves its running state before entering a hibernation state.
[0085] Execute operation S501: If the batch process is in the started state, retrieve the process processing information of the batch process from the data table. Execute operation S502: Determine whether the processing time of the batch process is greater than or equal to the processing time threshold. If the processing time of the batch process is less than the processing time threshold, execute operation S503: Determine whether the number of messages processed by the batch process is greater than or equal to the message number threshold. If the number of messages processed by the batch process is less than the message number threshold, execute operation S504: Determine the message sending status of all messages in the message details table, where the message sending status can be either successfully sent or failed.
[0086] If there are pending messages in the message details table, operation S505 is executed to retrieve the data of the pending messages from the message details table, populate the pending messages into the message template, and generate a communication message. Then, operation S506 is executed to send the communication message of the pending messages to the gateway and determine the sending status of the pending messages, where the message sending status can be either successfully sent or failed.
[0087] If the sending of a pending message fails, execute operation S507 to determine whether the number of retries for sending the pending message is greater than or equal to the retry threshold. If the number of retries for sending the pending message is less than the retry threshold, return to execute operation S506; if the number of retries for sending the pending message is greater than or equal to the retry threshold, execute operation S508 to update the message sending status in the message details table, update the number of messages processed by the batch process, and return to execute operation S502.
[0088] After the above operations are completed, if the processing time of the batch process is greater than or equal to the processing time threshold, and the number of messages processed by the batch process is greater than or equal to the number of messages threshold, operation S509 is executed, the batch process enters a sleep state, the running state is saved before entering the sleep state, and finally the batch process ends.
[0089] According to embodiments of this disclosure, for each batch process, when the batch process is in the started state, the process processing information of the batch process is obtained from the data table.
[0090] According to embodiments of this disclosure, process processing information includes the processing time of a batch process or the number of messages processed by the batch process.
[0091] According to embodiments of this disclosure, when the process processing information meets the first process termination condition, that is, the processing time of the batch process is greater than or equal to the processing time threshold; or the number of messages processed by the batch process is greater than or equal to the number of messages threshold, the batch process is controlled to enter a sleep state, and the running state is saved before sleep.
[0092] According to embodiments of this disclosure, the message details table also records the message sending status, which includes whether the message was sent successfully or failed.
[0093] According to the embodiments of this disclosure, when a message in the message detail table meets the second process termination condition, that is, when the message sending status of all messages in the message detail table is indicated as sent; or when the message sending status of messages in the message detail table belonging to the same batch as the process batch number is indicated as sent, the batch process is controlled to enter a dormant state, and the running state is saved before dormancy.
[0094] According to the embodiments of this disclosure, if a message in the message detail table does not meet the second process termination condition, that is, if there is a message to be processed in the message detail table, the message to be processed is filled into the message template, a communication message is generated, and then a communication message for sending the message to be processed is sent to the gateway to determine the sending status of the message to be processed.
[0095] According to the embodiments of this disclosure, when a message to be processed has been successfully sent, the message sending status in the message details table is updated, the number of messages processed by the batch process is updated, and the process processing information of the batch process is obtained again.
[0096] According to embodiments of this disclosure, in the event that a message to be processed has failed to be sent, the number of retries for sending the message to be processed is determined.
[0097] According to embodiments of this disclosure, if the number of retries for sending pending messages is greater than or equal to the retry threshold, the message sending status in the message details table is updated, and the number of messages processed by the batch process is updated, and the process processing information of the batch process is obtained again; if the number of retries for sending pending messages is less than the retry threshold, a communication message for sending pending messages is sent to the gateway to determine the sending status of pending messages.
[0098] According to embodiments of this disclosure, a data push result returned by the gateway is received, and the message sending status of the target message in the message details table is modified based on the data push result.
[0099] According to embodiments of this disclosure, the sending status of the target message includes successful sending or failed sending. In the case of successful sending, the message sending status in the message details table is updated to successful sending. In the case of failed sending, information such as the returned error code, message sending failure status, and number of message sending failures is updated in the message details table.
[0100] Figure 6 A block diagram of a business data processing apparatus according to an embodiment of the present disclosure is shown schematically.
[0101] like Figure 6 As shown, the business data processing device includes an acquisition module 601, a determination module 602, a generation module 603, and a sending module 604.
[0102] The acquisition module 601 is used to acquire the process batch of the target batch process in response to the target batch process being in the started state.
[0103] The determination module 602 is used to call the target batch process and use the process batch number to determine the target message from the message details table. The target message includes target business data, target application number and target batch number. The target batch number and the process batch number belong to the same batch.
[0104] The generation module 603 is used to fill the target business data and target application number in the target message into the message template to generate a communication message.
[0105] The sending module 604 is used to send communication messages to the gateway, wherein the gateway is configured to parse the communication messages, obtain the target service data and the target application number, and call the long connection communication process associated with the target application number to push the target service data to the platform server.
[0106] According to embodiments of this disclosure, during the process of a target batch process being started, the process batch number of the message to be sent is obtained from the target batch process of the business transaction. Based on the process batch number, the target message belonging to the same batch as the process batch number is determined from the message detail table. Then, the target business data and target application number in the target message are filled into the message template to generate a communication message, which is then sent to the gateway. The gateway parses the communication message to obtain the target business data and target application number, so that the gateway can select the corresponding long-connection communication process to send the target business data based on the target application number. Through the above technical means, when conducting a business transaction, the target message belonging to the same batch as the process batch number is determined from the message detail table based on the process batch number and sent to the gateway in the form of a communication message. After processing, the gateway pushes the target business data to the platform server. There is no need to confirm the status of the target business data being sent to the platform server before proceeding with subsequent business data processing. This reduces the overall processing time of business data processing and improves the timeliness of business data processing. Therefore, it at least partially overcomes the technical problems of long communication time and low overall timeliness of business data processing in related technologies, effectively improving the timeliness of business data processing.
[0107] According to embodiments of this disclosure, the business data processing apparatus further includes a first processing module, a second processing module, a third processing module, a fourth processing module, and a fifth processing module.
[0108] The first processing module is used to receive transaction data from the host via a communication interface, wherein the transaction data has a corresponding application number.
[0109] The second processing module is used to determine the batch range corresponding to the application number based on the parameter configuration table.
[0110] The third processing module is used to generate batch numbers for business data based on batch ranges.
[0111] The fourth processing module is used to record business data, application number, and batch number in the message details table.
[0112] The fifth processing module is used to send feedback information to the host, whereby the feedback information indicates that the transaction has been completed.
[0113] According to embodiments of this disclosure, the business data processing apparatus further includes a first control module, a second control module, and a third control module.
[0114] The first control module is used to obtain the running status of multiple batch processes by polling, wherein the target batch process belongs to multiple batch processes.
[0115] The second control module is used to determine the stop runtime of each batch process when the batch process is in a dormant state.
[0116] The third control module is used to control the batch process to enter the startup state when the stop runtime is greater than or equal to the preset hibernation time.
[0117] According to embodiments of this disclosure, the business data processing apparatus further includes a fourth control module and a fifth control module.
[0118] The fourth control module is used to retrieve process processing information of each batch process from the data table when the batch process is in the running state; and
[0119] The fifth control module is used to control the batch of processes to enter a sleep state when the process processing information meets the termination conditions of the first process.
[0120] According to embodiments of this disclosure, the fifth control module includes a first control unit and a second control unit.
[0121] The first control unit is used to ensure that the processing time of the batch process is greater than or equal to the processing time threshold.
[0122] The second control unit is used when the number of messages processed by the batch process is greater than or equal to the message number threshold.
[0123] According to embodiments of this disclosure, the business data processing apparatus further includes a sixth control module, used to control the batch process to enter a dormant state when the message in the message detail table meets the second process termination condition.
[0124] According to embodiments of this disclosure, the sixth control module includes a third control unit and a fourth control unit.
[0125] The third control unit is used to indicate that the message sending status of all messages in the message details table is "sent".
[0126] The fourth control unit is used to indicate that the message sending status of messages belonging to the same batch as the process batch number in the message details table is "sent".
[0127] According to embodiments of this disclosure, the business data processing apparatus further includes a first push module and a second push module.
[0128] The first push module is used to receive the data push results returned by the gateway.
[0129] The second push module is used to modify the message sending status of the target message in the message details table based on the data push results.
[0130] Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be implemented by dividing them into multiple modules. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as hardware circuitry, such as Field Programmable Gate Arrays (FPGAs), Programmable Logic Arrays (PLAs), Systems-on-Chip, Systems-on-Substrate, Systems-on-Package, Application-Specific Integrated Circuits (ASICs), or implemented in hardware or firmware by any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.
[0131] For example, any plurality of the acquisition module 601, determination module 602, generation module 603, and transmission module 604 can be combined into one module / unit / subunit, or any one of these modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functionality of one or more of these modules / units / subunits can be combined with at least part of the functionality of other modules / units / subunits and implemented in one module / unit / subunit. According to embodiments of the present disclosure, at least one of the acquisition module 601, determination module 602, generation module 603, and transmission module 604 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the acquisition module 601, determination module 602, generation module 603, and sending module 604 may be implemented at least partially as a computer program module that can perform corresponding functions when the computer program module is run.
[0132] It should be noted that the business data processing device part in the embodiments of this disclosure corresponds to the business data processing method part in the embodiments of this disclosure. The description of the business data processing device part is specifically referred to in the business data processing method part, and will not be repeated here.
[0133] Figure 7 A block diagram of an electronic device suitable for implementing a business data processing method according to an embodiment of the present disclosure is shown schematically. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0134] like Figure 7 As shown, a computer electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage portion 708 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0135] RAM 703 stores various programs and data required for the operation of electronic device 700. Processor 701, ROM 702, and RAM 703 are interconnected via bus 704. Processor 701 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 702 and / or RAM 703. It should be noted that the programs may also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0136] According to embodiments of this disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to a bus 704. The electronic device 700 may also include one or more of the following components connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0137] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by processor 701, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0138] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0139] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0140] For example, according to embodiments of this disclosure, a computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0141] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods provided in the embodiments of this disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the business data processing methods provided in the embodiments of this disclosure.
[0142] When the computer program is executed by the processor 701, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0143] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 709, and / or installed from a removable medium 711. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0144] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0145] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not expressly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0146] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A business data processing method, comprising: In response to the target batch process being in the started state, the process batch number of the target batch process is obtained; The target batch process is invoked, and the target message is determined from the message details table using the process batch number. The target message includes target business data, target application number, and target batch number, and the target batch number and the process batch number belong to the same batch. The target service data and target application number from the target message are filled into the message template to generate a communication message; and The communication message is sent to the gateway, wherein the gateway is configured to parse the communication message, obtain the target service data and the target application number, and call the long connection communication process associated with the target application number to push the target service data to the platform server. The method further includes: The running status of multiple batch processes is obtained by polling, wherein the target batch process belongs to multiple batch processes; For each of the batch processes, if the batch process is in a dormant state, determine the stop duration of the batch process; and If the stop runtime is greater than or equal to the preset sleep duration, the batch process is controlled to enter the startup state.
2. The method according to claim 1, further comprising: The system receives transaction data from the host via a communication interface, wherein the transaction data has a corresponding application number. Based on the parameter configuration table, determine the batch range corresponding to the application number; Based on the batch range, generate the batch number of the business data; The business data, the application number, and the batch number are recorded in the message details table; and A feedback message is sent to the host, wherein the feedback message indicates that the transaction has been completed.
3. The method according to claim 1, further comprising: For each batch process, if the batch process is in the started state, the process processing information of the batch process is obtained from the data table; as well as When the process processing information meets the first process termination condition, the batch process is controlled to enter a hibernation state.
4. The method according to claim 3, wherein, The first process termination conditions include: The processing time of the batch process is greater than or equal to the processing time threshold; or The number of messages processed by the batch process is greater than or equal to the message count threshold.
5. The method according to claim 3, wherein, The message details table also records the message sending status; The method further includes: If the message in the message details table meets the second process termination condition, the batch process is controlled to enter a dormant state.
6. The method according to claim 5, wherein, The second process termination conditions include: All messages in the message details table are indicated as sent; or In the message details table, messages belonging to the same batch as the process batch number are all marked as "sent".
7. The method according to claim 5, further comprising: Receive the data push result returned by the gateway; as well as Based on the data push results, modify the message sending status of the target message in the message details table.
8. A business data processing apparatus, comprising: The acquisition module is used to acquire the process batch number of the target batch process in response to the target batch process being in the started state; The determination module is used to call the target batch process and determine the target message from the message details table using the process batch number. The target message includes target business data, target application number and target batch number, and the target batch number and the process batch number belong to the same batch. The generation module is used to fill the target service data and the target application number from the target message into the message template to generate a communication message; and The sending module is used to send the communication message to the gateway, wherein the gateway is configured to parse the communication message, obtain the target service data and the target application number, and call the long connection communication process associated with the target application number to push the target service data to the platform server. The device further includes: The first control module is used to obtain the running status of multiple batch processes by polling, wherein the target batch process belongs to multiple batch processes; The second control module is configured to determine the stop duration of each batch process when the batch process is in a dormant state; and The third control module is used to control the batch process to enter the startup state when the stop runtime is greater than or equal to the preset hibernation duration.
9. An electronic device, comprising: One or more processors; Memory, used to store one or more instructions. When the one or more instructions are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
11. A computer program product comprising computer-executable instructions, which, when executed, are used to implement the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Message processing method, device, system and terminal
CN106992940A
Wireless public network based terminal upgrading method
CN108683541A