Data processing method and device, electronic equipment and storage medium
By designing message routing rules in the gateway, the problem of communication and coordination between information creation nodes and non-innovation nodes is solved, the stability and service continuity of the second-generation payment system are achieved, and the transformation of information creation is supported.
Patent Information
- Application Number
- CN202510811603.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-07-18
AI Technical Summary
In the process of information creation transformation in the financial payment field, it is difficult to interact and coordinate messages between information creation nodes and non-information creation nodes, resulting in decentralized transaction processing, affecting the reliability and continuity of transactions.
Through the gateway, the message queue between the People's Bank Front Machine and the second-generation payment system is uniformly managed, and the routing rules for different types of messages are designed to ensure that the associated messages are processed in the same server, so as to achieve efficient coordinated message interaction between the information creation node and the non-information node.
It improves the stability and business continuity of the system, lays the foundation for the dual-track operation of information innovation nodes and non-information innovation nodes in the second-generation payment system, and provides reference and reference for information innovation transformation.
Smart Images

Figure CN120343100A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data processing, and in particular, to a data processing method, apparatus, electronic device, and storage medium. Background Art
[0002] In the field of financial payment, during the process of renovating the second-generation payment system with information technology application innovation, in order to ensure the continuity and stability of payment services, a dual-track operation plan needs to be adopted to achieve a smooth transition from the existing system architecture to the information technology application innovation architecture. However, there are difficulties in coordinating the message interactions between information technology application innovation nodes, non-information technology application innovation nodes, and gateways, which may lead to decentralized transaction processing and affect the reliability and continuity of transactions. Therefore, there is an urgent need for a data processing method that can efficiently coordinate the message interactions between information technology application innovation and non-information technology application innovation nodes and the central bank. Summary of the Invention
[0003] The present disclosure provides a data processing method, apparatus, electronic device, and storage medium to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present disclosure, there is provided a data processing method applied to a gateway, the method including: Determine the type of a first message sent by a message queue; the message queue includes a message queue corresponding to a central bank front-end processor; In response to the first message being a first-type message, determine a first routing rule corresponding to the first message; Based on the first routing rule, distribute the first message to a first server and / or a second server; Wherein, the first-type message includes at least one of a general confirmation message, an incoming payment message, a response message, a parameter change message, and a reconciliation message; the first server includes a server corresponding to an information technology application innovation node, and the second server includes a server corresponding to a non-information technology application innovation node.
[0005] In the above solution, the method further includes: Receive a second message sent by the first server and / or the second server; In response to the second message being a first-type message, register the second message in a message routing table, and send the second message to the message queue; In response to the second message being a second-type message, discard the second message.
[0006] In the above solution, after determining the first routing rule corresponding to the first message, the method further includes: Confirm whether the first message is a general confirmation message; In response to the first message being a general confirmation message, record the first message in a general message registration form; Alternatively, in response to the first message being a non-universal confirmation message, record the first message in the routing message registration table; Wherein, the universal message registration table and the routing message registration table are used to confirm the routing rules of other messages associated with the first message.
[0007] In the above solution, determining the first routing rule corresponding to the first message includes: In response to the first message including an incoming payment message, determine whether a third message corresponding to the first message exists; wherein, the first message is generated based on the third message and corresponds to the same transaction record; In response to the third message existing, determine that the routing rule corresponding to the first message is to route to the server corresponding to the third message; Alternatively, in response to the third message not existing, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
[0008] In the above solution, determining the first routing rule corresponding to the first message includes: In response to the first message including a reply message or a universal confirmation message, confirm whether transaction information corresponding to the first message exists based on the keyword in the first message; In response to the transaction information existing, determine that the first routing rule corresponding to the first message is to route to the server of the fourth message corresponding to the first message; the first message is a reply message or a universal confirmation message of the fourth message; In response to the transaction information not existing, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
[0009] In the above solution, determining the first routing rule corresponding to the first message includes: In response to the first message including a parameter change message, determine that the routing rule corresponding to the first message is to route to a first server and a second server; So that the first server and the second server update parameters based on the first message.
[0010] In the above solution, determining the first routing rule corresponding to the first message includes: In response to the first message including a reconciliation message, determine that the first routing rule corresponding to the first message is to send the first message to a preset server. According to a second aspect of the present disclosure, a data processing device is provided, which is applied to a gateway and includes: A type determination unit for determining the type of a first message sent by a message queue; the message queue includes a message queue corresponding to a front-end machine of the People's Bank of China. A routing determination unit for determining a first routing rule corresponding to the first message in response to the first message being a first-type message. A distribution unit for distributing the first message to a first server and / or a second server based on the first routing rule. Wherein, the first-type message includes at least one of a general confirmation message, an incoming payment message, a response message, a parameter change message, and a reconciliation message; the first server includes a server corresponding to an information innovation node, and the second server includes a server corresponding to a non-information innovation node.
[0011] According to a third aspect of the present disclosure, there is provided an electronic device, including: At least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the present disclosure.
[0012] According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method described in the present disclosure.
[0013] The data processing method of the present disclosure determines the type of a first message sent by a message queue; the message queue includes a message queue corresponding to a front-end machine of the People's Bank of China; in response to the first message being a first-type message, it determines a first routing rule corresponding to the first message; and distributes the first message to a first server and / or a second server based on the first routing rule. In this way, the gateway can achieve efficient coordinated message interaction between information innovation nodes, non-information innovation nodes, and the People's Bank of China, improving system stability and business continuity.
[0014] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. Description of the Drawings
[0015] By referring to the accompanying drawings and reading the following detailed description, the above and other purposes, features, and advantages of the exemplary embodiments of the present disclosure will become easily understood. In the drawings, several embodiments of the present disclosure are shown in an exemplary rather than restrictive manner, wherein: In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0016] Figure 1Shows the architecture diagram of the data processing system provided by the embodiments of the present disclosure; Figure 2 Shows the first alternative flowchart of the data processing method provided by the embodiments of the present disclosure; Figure 3 Shows the second alternative flowchart of the data processing method provided by the embodiments of the present disclosure; Figure 4 Shows the third alternative flowchart of the data processing method provided by the embodiments of the present disclosure; Figure 5 Shows the fourth alternative flowchart of the data processing method provided by the embodiments of the present disclosure; Figure 6 Shows the fifth alternative flowchart of the data processing method provided by the embodiments of the present disclosure; Figure 7 Shows the alternative structural diagram of the data processing device provided by the embodiments of the present disclosure; Figure 8 Shows the composition structure diagram of an electronic device according to an embodiment of the present disclosure. Detailed implementation manners
[0017] To make the objectives, features, and advantages of the present disclosure more obvious and understandable, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present disclosure.
[0018] In the following description, "some embodiments" are involved, which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0019] In the following description, the terms "first / second" only distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present disclosure described here can be implemented in an order other than that illustrated or described here.
[0020] Unless otherwise defined, all technical and scientific terms used in the present disclosure have the same meaning as commonly understood by those skilled in the technical field to which the present disclosure belongs. The terms used in the present disclosure are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0021] It should be understood that in the various embodiments of the present disclosure, the size of the serial number of each implementation process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
[0022] In the process of the second-generation payment system's trust innovation transformation, it is necessary to realize the dual-track operation of trust innovation nodes and non-trust innovation nodes to ensure the continuity and stability of payment services. However, the existing system architecture cannot directly support this dual-track operation mode. There are the following specific problems: 1. The trusted nodes and non-trusted nodes in the second-generation payment system need to interact with the People's Bank of China through messages at the same time, but there is a lack of a unified interface to manage these interactions.
[0023] 2. Transactions involving multiple message interactions may be distributed to different nodes for processing, affecting the reliability and continuity of the transaction.
[0024] 3. Lack of effective message routing mechanism, unable to ensure that related transactions can be processed on the same node.
[0025] These problems exist because the existing system architecture does not take into account the dual-track operation requirements during the transformation of trusted nodes, cannot support the parallel operation of trusted nodes and non-trusted nodes, and lacks the necessary message management and routing distribution mechanisms.
[0026] The data processing method described in the embodiment of the present disclosure is applied to a gateway, which is arranged between the PBOC front-end machine and the second-generation payment system, and is used to uniformly manage the message interaction between the message queue (Message Queue, MQ) of the PBOC front-end machine and the second-generation payment system, realize the two functions of outgoing and incoming reporting, and handle the communication forwarding and message routing distribution between the second-generation payment system and MQ.
[0027] Figure 1 The diagram shows an architecture diagram of a data processing system provided by an embodiment of the present disclosure.
[0028] like Figure 1 As shown, the data processing system includes a front-end processor of the People's Bank of China, a gateway, at least one first server (Linux server), at least one second server (non-Linux server), a channel gateway and a front-end channel. The at least one first server and the at least one second server constitute a second-generation system. Each server includes a transceiver subsystem. n represents the number of servers.
[0029] In some embodiments, the Linux server uses an Oracle database and the non-Linux server uses an OceanBase (OB) database.
[0030] The pedestrian front-end machine includes a task queue. The gateway is used to undertake the message transmission between the second-generation system and MQ. Specifically, it distributes the messages in MQ to the corresponding servers, or transmits the messages of the servers to MQ.
[0031] The gateway is a newly added component for the data processing system, and is used to implement the functions of transaction routing and message communication; each server includes an aggregation query component, which is used to integrate all query interfaces opened to the outside by the Xinchuang nodes (corresponding to non-Linux servers) and non-Xinchuang nodes (corresponding to Linux servers); the server also includes a reconciliation and settlement component, which is used for end-of-day reconciliation, end-of-day settlement, core detail reconciliation, and summary posting of collection at the end of the day; the server also includes a sending and receiving subsystem, which is used to implement the functions of retaining message packetization, signature addition, and signature verification, and stripping the MQ client communication module.
[0032] Figure 2 The first optional flowchart of the data processing method provided by the embodiment of the present disclosure is shown, and will be described according to each step.
[0033] Step S201, determine the type of the first message sent by the message queue.
[0034] In some embodiments, the gateway receives the first message sent by the message queue corresponding to the pedestrian front-end machine; and determines the type of the first message.
[0035] In some embodiments, the first message may include a first type of message and a second type of message; if the first message is a first type of message, the first message may include at least one of a general confirmation message, a receipt message, a response message, a confirmation message, a parameter change message, and a reconciliation message; the general confirmation message may include a 900 message; if the first message is a second type of message, the first message may include a communication response message, and the communication response message may include a 990 message.
[0036] Step S202, in response to the first message being a first type of message, determine the first routing rule corresponding to the first message.
[0037] In some embodiments, the second type of message is used to represent transaction confirmation or system status feedback, and does not need to be distributed to the first server or the second server. The first type of message needs to be distributed to the first server or the second server for processing by the first server or the second server; therefore, the gateway needs to confirm the first routing rule corresponding to the first message, and then confirm the server corresponding to the first message.
[0038] In some embodiments, different first-type messages correspond to different routing rules. For example, if the first-type message is an incoming payment message, it is necessary to confirm the outgoing payment message corresponding to the incoming payment message and the server that sends the outgoing payment message, and distribute the incoming payment message to this server; or if the first-type message is a response message or a general confirmation message, confirm the message corresponding to the response message or the general confirmation message and the server that issues this message, and distribute this message to this server.
[0039] Step S203: Distribute the first message to the first server and / or the second server based on the first routing rule.
[0040] In some embodiments, the gateway routes the first message based on the first routing rule, so that the first message is distributed to the server that processes the first message, ensuring that related messages (such as messages corresponding to the same transaction) are processed within the same server.
[0041] In this way, through the data processing method provided by the embodiments of the present disclosure, for the characteristics of messages in the second-generation payment system, different routing rules are designed, corresponding routing rules are configured for messages of complex transactions, the goal of multi-server processing of transactions in the second-generation payment system is achieved, a foundation is laid for the dual-track operation of the domestic innovation nodes and non-domestic innovation nodes in the second-generation payment system, and it also provides reference and inspiration for the domestic innovation transformation of subsequent other payment systems, helping the payment system to smoothly complete the domestic innovation transformation.
[0042] Figure 3 FIG. shows a second optional flowchart of the data processing method provided by the embodiments of the present disclosure, which will be described according to each step.
[0043] Step S301: Determine the type of the first message sent by the message queue.
[0044] In some embodiments, the gateway receives the first message sent by the message queue corresponding to the central bank front-end machine; and determines the type of the first message.
[0045] In some embodiments, the first message may include a first-type message and a second-type message; if the first message is a first-type message, the first message may include at least one of a general confirmation message, an incoming payment message, a response message, a confirmation message, a parameter change message, and a reconciliation message; the general confirmation message may include a 900 message; if the first message is a second-type message, the first message may include a communication response message, and the communication response message may include a 990 message.
[0046] Step S302: If the first message is a second-type message, discard the first message.
[0047] In some embodiments, the 990 message is used to represent a transaction confirmation or a system status feedback. The gateway receives a communication reply message from the message queue, indicating that the message queue has processed the message previously sent by the gateway. This message does not need to be sent to the first server or the second server and can be directly discarded and processed.
[0048] Step S303: In response to the first message being a first-type message, determine the first routing rule corresponding to the first message.
[0049] In some embodiments, if the first message is a first-type message, the first message needs to be distributed to the corresponding server for the corresponding server to process.
[0050] In some embodiments, confirming the first routing rule corresponding to the first message means confirming the target server of the first message.
[0051] In some alternative embodiments, in response to the first message including an incoming payment message, determine whether a third message corresponding to the first message exists; wherein the first message is generated based on the third message and corresponds to the same transaction record; in response to the third message existing, determine that the routing rule corresponding to the first message is to route to the server corresponding to the third message; or, in response to the third message not existing, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
[0052] In specific implementation, if the first message is an incoming payment message, it can be a self-initiated and self-received message or a non-self-initiated and self-received message; if it is a self-initiated and self-received message, there is a server that has sent an outgoing payment message (i.e., the third message) corresponding to the incoming payment message. In this scenario, the gateway determines whether the third message exists based on the key value, originating bank number, and incoming / outgoing account flag of the first message. If it exists, determine that the routing rule corresponding to the first message is to route to the server corresponding to the third message; if it does not exist, confirm the server that receives the first message based on the attribute information such as the key value and originating bank number of the first message, register the first message in the exception message table, and set the retransmission status, and re-confirm the corresponding third message after a certain time interval. Specifically, if the third message does not exist, it may be that the third message has not been registered or entered yet, and it can be re-confirmed after a certain time interval; it may also be that the self-initiated and self-received transaction judgment is incorrect, that is, the first message is not a self-initiated and self-received message, and the attribute of the first message is re-judged after a period of time; if the first message is a self-initiated and self-received message and the third message does not exist, confirm the server that receives the first message based on the attribute information such as the key value and originating bank number of the first message.
[0053] Specifically, if it is a self-originated and self-received message, it indicates that the originating institution and the receiving institution of the same transaction are the same. There must be a server that sends the originating message to the task queue through the gateway. The gateway determines the first routing rule of the first message, that is, the process of confirming the server that sends the originating message.
[0054] Alternatively, in specific implementation, if the first message is not a self-originated and self-received message, there is no corresponding receiving message, that is, there is no third message. Then the gateway determines the server that receives the first message based on the attribute information of the first message.
[0055] In some other alternative embodiments, in response to the first message including an acknowledgment message or a general confirmation message, it is confirmed whether the transaction information corresponding to the first message exists based on the keyword in the first message; in response to the existence of the transaction information, it is determined that the first routing rule corresponding to the first message is to route to the server of the fourth message corresponding to the first message; the first message is the acknowledgment message or the general confirmation message of the fourth message; in response to the non-existence of the transaction information, it is confirmed that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
[0056] In specific implementation, if the first message includes an acknowledgment message, a general confirmation message, or a confirmation type message, it may be a database query type message, such as a netting message, a general processing message, a debit acknowledgment message, etc. Then it is confirmed whether the transaction of the first message exists based on the keyword in the first message. If the transaction exists, it is confirmed that the first message is distributed to the server where the transaction is located; if the transaction does not exist, the first message is distributed to the default server, and the first message is registered in the exception message table. Optionally, in the exception message table, the retransmission times and the retransmission status of the first message are set to null.
[0057] In still some other embodiments, in response to the first message including a parameter change message, it is determined that the first routing rule corresponding to the first message is to route to the first server and the second server; so that the first server and the second server update the parameters based on the first message.
[0058] In specific implementation, the parameter change message is a message for the server, which may include a server upgrade message, a server update message, etc. The server needs to adjust relevant parameters based on the parameter change message. In this case, the server corresponding to the parameter change message is confirmed, and the parameter change message is routed to the relevant server. Optionally, there may be only one server that needs to upgrade or update the server based on the parameter change message, then only the parameter change message needs to be sent to this server; or, multiple servers need to upgrade or update the server based on the parameter change message, then the parameter change message needs to be sent to the multiple servers.
[0059] In some other embodiments, in response to the first message including a reconciliation message, it is determined that the first routing rule corresponding to the first message is to send the first message to a preset server.
[0060] Specifically, the reconciliation message includes a message that needs to be processed by a preset server (or a designated server). In this case, it is only necessary to route the first message to the preset server. Optionally, if the first message is a message that needs to be processed by a designated server, the first message is routed to that server.
[0061] Step S304, distribute the first message to the first server and / or the second server based on the first routing rule.
[0062] In some embodiments, the gateway routes the first message based on the first routing rule, so that the first message is distributed to the server that processes the first message, ensuring that related messages (such as messages corresponding to the same transaction) are processed within the same server.
[0063] Thus, through the data processing method provided by the embodiments of the present disclosure, different routing rules are designed for the characteristics of messages in the second-generation system, corresponding routing rules are configured for messages of complex transactions, the goal of multi-server transaction processing in the second-generation system is achieved, a foundation is laid for the dual-track operation of the domestic innovation nodes and non-domestic innovation nodes in the second-generation payment system, and it also provides reference for the domestic innovation transformation of other subsequent payment systems, helping the payment system to smoothly complete the domestic innovation transformation.
[0064] Figure 4 Fig. 3 shows a third optional flowchart of the data processing method provided by the embodiments of the present disclosure, which will be described according to each step.
[0065] Figure 4 The figure shows a flowchart of the gateway for outgoing messages.
[0066] Step S401, receive a second message sent by the first server and / or the second server.
[0067] In some embodiments, the gateway receives the second message sent by the transceiver subsystem of the first server and / or the second server.
[0068] Step S402, in response to the second message being a first-type message, register the second message in the message routing table and send the second message to the message queue.
[0069] In some embodiments, the gateway parses the prefix string of the second message to obtain the relevant information of the central bank front-end machine and the message type of the second message.
[0070] In response to the second message being a first-type message, register the second message in the message routing table and send the second message to the message queue corresponding to the corresponding front-end machine of the central bank.
[0071] In some alternative embodiments, in response to the gateway sending the second message to the message queue, return a response receipt message to the server that sent the second message.
[0072] In some other alternative embodiments, in response to the gateway sending the second message to the message queue, confirm whether a response receipt message for the second message is received from the message queue; in response to receiving the response receipt message, send the response receipt message to the corresponding server based on steps S201 to S203, or steps S301 to S304 (in this scenario, the corresponding server is the server that sent the second message).
[0073] Alternatively, in response to not receiving the response receipt message, register the second message in the exception message table.
[0074] Step S403, in response to the second message being a second-type message, discard the second message.
[0075] In response to the second message being a second-type message, discard the second message and end the process.
[0076] In some alternative embodiments, in response to the gateway discarding the second message, return a response receipt message to the server that sent the second message.
[0077] Figure 5 Fig. shows a fourth alternative flowchart of the data processing method provided by the embodiments of the present disclosure, which will be described according to each step.
[0078] Figure 5 The figure shows a flowchart of the gateway implementing incoming messages.
[0079] Step S501, the gateway obtains a first message.
[0080] In some embodiments, in response to the message transceiver switch being turned on, the gateway obtains the first message sent by the message queue.
[0081] In some other embodiments, in response to the message transceiver switch being turned off, end the process.
[0082] Step S502, confirm the type of the first message.
[0083] In some embodiments, the gateway confirms the type of the first message, and the first message includes a first-type message and a second-type message; the first-type message includes at least one of a general confirmation message, an incoming payment message, a response message, a parameter change message, and a reconciliation message; the second-type message includes a communication response message.
[0084] Step S503, in response to the first message being a communication response message, discard the first message and end the process.
[0085] Step S504, in response to the first message being a first-type message, confirm the first routing rule corresponding to the first message.
[0086] In some embodiments, in response to the first message being a first-type message, the gateway sends a second-type message, i.e., a 990 message, to the message queue.
[0087] In some embodiments, the gateway confirms the first routing rule of the first message. Specifically, the gateway confirms whether there is a service type configuration for the first message, that is, confirms the service type corresponding to the first message, and confirms the first routing rule based on the service type.
[0088] In specific implementation, if the first message corresponds to an incoming payment service, determine that the routing rule corresponding to the first message is to route to the server corresponding to the third message; or, in response to the non-existence of the third message, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
[0089] In specific implementation, if the first message corresponds to a database query service, determine that the first routing rule corresponding to the first message is to route to the server of the fourth message corresponding to the first message; the first message is a response message or a general confirmation message of the fourth message; or, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
[0090] In specific implementation, if the first message corresponds to a two-sided distribution service, that is, the first message needs to be distributed to the first server and the second server, determine that the routing rule corresponding to the first message is to route to the first server and the second server.
[0091] In specific implementation, if the first message corresponds to a specified routing service, determine that the first routing rule corresponding to the first message is to send the first message to a preset server.
[0092] Step S505, store the first message in the database.
[0093] In some embodiments, if the first message is a 900 message, the first message is stored in the general message registration form; if the first message is other messages (non-900 messages), the first message is stored in the message routing rule table.
[0094] In some alternative embodiments, the gateway further determines the storage result. If the storage fails and the reason for the failure is a unique key conflict, the error message of the storage failure is ignored and the subsequent steps are performed.
[0095] In some embodiments, if the storage is successful, or the storage fails due to a unique key conflict, the gateway performs special message processing steps.
[0096] Specifically, it includes updating the resending status of the resending transaction in the current exception routing table and the asynchronous task table. That is, ccms.801.001.01 / 02.
[0097] Step S506, send the first message.
[0098] In some embodiments, the gateway sends the first message to the transceiver subsystem of the first server and / or the second server.
[0099] In some alternative embodiments, the gateway can splice the first message to obtain a Transmission Control Protocol (TCP) message, and send the TCP message to the transceiver subsystem of the first server and / or the second server.
[0100] Step S507, confirm whether to receive the response message.
[0101] In some embodiments, after the carrier sends the first message, it confirms whether to receive the response message corresponding to the first message. If received, it confirms that the first message is successfully sent and the process ends.
[0102] If not received, the first message is registered in the exception message table, and the asynchronous framework resends the first message to the transceiver subsystem of the first server and / or the second server. The resending interval can be set to 1 minute, and the resending times can be set to 3.
[0103] In this way, through the data processing method provided by the embodiments of the present disclosure, aiming at the characteristics of the second-generation payment message, a routing distribution strategy of algorithm, database query, two-sided distribution, and specified routing is designed, corresponding routing rules are configured for the messages of complex transactions, the goal of multi-node processing of transactions in the second-generation payment is achieved, a foundation is laid for the dual-track operation of the second-generation payment for domestic information technology innovation and non-domestic information technology innovation, and it also provides reference and reference for the domestic information technology innovation transformation of subsequent other payment systems, helping the payment system to smoothly complete the domestic information technology innovation transformation.
[0104] Figure 6The fifth optional flowchart of the data processing method provided by the embodiments of the present disclosure is shown and will be described according to each part.
[0105] Figure 6 It is a flowchart intended to illustrate the routing rule corresponding to the confirmation message.
[0106] Step S601, confirm whether the routing rule of the first message exists.
[0107] In some embodiments, the gateway may confirm whether the routing rule of the first message exists based on the attribute information of the first message; the attribute information includes at least one of keyword, key value, originating line number, etc.; if a routing rule exists, further determine the routing rule based on the message type and execute one of steps S603 to S606; if no routing rule exists, execute step S602.
[0108] Step S602, send the first message to a preset server.
[0109] In some embodiments, if the first message does not have a corresponding routing rule, the first message is sent to a preset server and registered in the abnormal message table.
[0110] In the abnormal message table, set both the retransmission times and the retransmission status of the first message to null.
[0111] Step S603, determine the routing rule of the first message.
[0112] In some embodiments, the gateway confirms whether the first message is an incoming payment message, that is, the gateway confirms whether the first message is a message corresponding to a self-initiated and self-received transaction. If the first message is an incoming payment message, including the first incoming payment message of the transaction, such as general credit incoming payment, debit incoming payment, signed incoming payment, etc.
[0113] If the first message is a message corresponding to a self-initiated and self-received transaction, based on the key value, originating line number, and current / previous account flag (previous account) of the first message, confirm the original message in the database, that is, the previous account message (the third message) corresponding to the first message; if the previous account message is found, that is, the previous account message exists, set the server that sent the previous account message as the server that receives the first message, and determine the routing rule of the first message as routing to this server.
[0114] If the previous account message is not found, that is, the previous account message does not exist, register the first message in the abnormal message table and reconfirm the routing rule of the first message. In the abnormal message table, set both the retransmission times and the retransmission status of the first message to null.
[0115] If the first message is not a message corresponding to a self-initiated and self-received transaction, reconfirm the routing rule of the first message.
[0116] In some embodiments, the gateway confirms whether the first message is a database query message.
[0117] In some embodiments, the database query message includes a response message or a confirmation message of a transaction, such as a netting message, a general processing message, a debit response message, etc.
[0118] In some embodiments, the gateway queries the corresponding transaction information based on the keyword of the first message; if the transaction information is queried, that is, the transaction information exists, it is confirmed that the routing rule of the first message is to route to the server that sent the transaction information; if the transaction information does not exist, the first message is registered in the abnormal message table, and the routing rule of the first message is reconfirmed. In the abnormal message table, both the retransmission times and the retransmission status of the first message are set to null.
[0119] In some embodiments, the gateway confirms whether the first message is a two-sided distribution message.
[0120] In some embodiments, in response to the first message being a message that needs to be received by multiple servers (i.e., a two-sided distribution message), such as a parameter change message, it is determined that the routing rule of the first message is to route to the first server and the second server.
[0121] In some embodiments, the gateway confirms whether the first message is a specified routing message.
[0122] In some embodiments, the specified routing message includes a reconciliation message, which needs to be processed by a preset server (or a specified server). In this case, it is determined that the first routing rule corresponding to the first message is to send the first message to the preset server. Just route the first message to the preset server. Optionally, if the first message is a message that needs to be processed by a specified server, the first message is routed to that server.
[0123] Figure 7 The optional structural schematic diagram of the data processing device provided by the embodiments of the present disclosure is shown, and will be described according to each part.
[0124] In some embodiments, the data processing device 700 includes a type determination unit 701, a routing determination unit 702, and a distribution unit 703.
[0125] The type determination unit 701 is configured to determine the type of the first message sent by the message queue; the message queue includes the message queue corresponding to the front-end machine of the People's Bank of China. The routing determination unit 702 is configured to determine the first routing rule corresponding to the first message in response to the first message being a first-type message. The distribution unit 703 is configured to distribute the first message to the first server and / or the second server based on the first routing rule; Wherein, the first type of message includes at least one of a general confirmation message, an incoming payment message, a response message, a parameter change message, and a reconciliation message; the first server includes a server corresponding to an information innovation node, and the second server includes a server corresponding to a non-information innovation node.
[0126] The routing determination unit 702 is further configured to receive a second message sent by the first server and / or the second server; in response to the second message being a first type of message, register the second message in the message routing table, and send the second message to the message queue; in response to the second message being a second type of message, discard the second message.
[0127] The routing determination unit 702 is further configured to, after determining the first routing rule corresponding to the first message, confirm whether the first message is a general confirmation message; in response to the first message being a general confirmation message, record the first message in the general message registration table; or, in response to the first message not being a general confirmation message, record the first message in the routed message registration table; Wherein, the general message registration table and the routed message registration table are used to confirm the routing rules of other messages associated with the first message.
[0128] The routing determination unit 702 is specifically configured to, in response to the first message including an incoming payment message, determine whether a third message corresponding to the first message exists; wherein, the first message is generated based on the third message and corresponds to the same transaction record; In response to the third message existing, determine that the routing rule corresponding to the first message is to route to the server corresponding to the third message; Or, in response to the third message not existing, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
[0129] The routing determination unit 702 is specifically configured to, in response to the first message including a response message or a general confirmation message, confirm whether transaction information corresponding to the first message exists based on the keyword in the first message; In response to the transaction information existing, determine that the first routing rule corresponding to the first message is to route to the server of the fourth message corresponding to the first message; the first message is a response message or a general confirmation message of the fourth message; In response to the transaction information not existing, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
[0130] The routing determination unit 702 is specifically configured to, in response to the first message including a parameter change message, determine that the routing rule corresponding to the first message is to route to a first server and a second server; so that the first server and the second server update parameters based on the first message.
[0131] The routing determination unit 702 is specifically configured to, in response to the first message including a reconciliation message, determine that the first routing rule corresponding to the first message is to send the first message to a preset server.
[0132] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0133] Figure 8 FIG. shows a schematic block diagram of an exemplary electronic device 800 that can be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0134] As Figure 8 shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0135] A plurality of components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, an optical disc, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0136] The computing unit 801 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 executes the various methods and processes described above, such as the data processing method. For example, in some embodiments, the data processing method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the data processing method described above can be executed. Alternatively, in other embodiments, the computing unit 801 can be configured to execute the data processing method by any other suitable means (e.g., by means of firmware).
[0137] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), system-on-a-chip systems (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0138] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program code is executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0139] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0140] For purposes of providing an interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic, speech, or tactile input).
[0141] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0142] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is generated by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
[0143] It should be understood that the various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions of this disclosure can be achieved, and no limitation is imposed herein.
[0144] As described above, this is only the specific implementation manner of this disclosure, but the protection scope of this disclosure is not limited thereto. Any person skilled in the art within the technical scope disclosed by this disclosure can easily think of changes or substitutions, which should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure shall be subject to the protection scope of the claims.
Claims
1. A data processing method, characterized in that, Applied to a gateway, the method includes: Determine the type of the first message sent by the message queue; the message queue includes the message queue corresponding to the front-end processor of the People's Bank of China; In response to the first message being a first-type message, determine the first routing rule corresponding to the first message; Distribute the first message to the first server and / or the second server based on the first routing rule; Wherein, the first-type message includes at least one of a general confirmation message, an incoming payment message, a response message, a parameter change message, and a reconciliation message; the first server includes the server corresponding to the Xinchuang node, and the second server includes the server corresponding to the non-Xinchuang node.
2. The method according to claim 1, wherein The method further includes: Receive a second message sent by the first server and / or the second server; In response to the second message being a first-type message, register the second message in the message routing table and send the second message to the message queue; In response to the second message being a second-type message, discard the second message.
3. The method according to claim 1, wherein After determining the first routing rule corresponding to the first message, the method further includes: Confirm whether the first message is a general confirmation message; In response to the first message being a general confirmation message, record the first message in the general message registration table; Or, in response to the first message being a non-general confirmation message, record the first message in the routing message registration table; Wherein, the general message registration table and the routing message registration table are used to confirm the routing rules of other messages associated with the first message.
4. The method according to claim 1, wherein The determining of the first routing rule corresponding to the first message includes: In response to the first message including an incoming payment message, determine whether the third message corresponding to the first message exists; wherein, the first message is generated based on the third message and corresponds to the same transaction record; In response to the third message existing, determine that the routing rule corresponding to the first message is to route to the server corresponding to the third message; Or, in response to the third message not existing, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
5. The method according to claim 1, characterized in that, The determining of the first routing rule corresponding to the first message includes: In response to the first message including a response message or a general confirmation message, confirm whether the transaction information corresponding to the first message exists based on the keyword in the first message; In response to the transaction information existing, determine that the first routing rule corresponding to the first message is to route to the server of the fourth message corresponding to the first message; the first message is the response message or the general confirmation message of the fourth message; In response to the transaction information not existing, confirm that the routing rule corresponding to the first message is to route to the server determined based on the attribute information of the first message.
6. The method according to claim 1, wherein The determining of the first routing rule corresponding to the first message includes: In response to the first message including a parameter change message, determine that the routing rule corresponding to the first message is to route to the first server and the second server; so that the first server and the second server update the parameters based on the first message.
7. The method according to claim 1, wherein The determining of the first routing rule corresponding to the first message includes: In response to the first message including a reconciliation message, determining that the first routing rule corresponding to the first message is to send the first message to a preset server.
8. A data processing device, characterized in that, Applied to a gateway, the apparatus includes: A type determination unit, configured to determine the type of a first message sent by a message queue; the message queue includes a message queue corresponding to a front-end processor of the People's Bank of China. A routing determination unit, configured to determine the first routing rule corresponding to the first message in response to the first message being a first-type message. A distribution unit, configured to distribute the first message to a first server and / or a second server based on the first routing rule. Wherein, the first-type message includes at least one of a general confirmation message, an incoming payment message, a response message, a parameter change message, and a reconciliation message; the first server includes a server corresponding to an indigenous innovation node, and the second server includes a server corresponding to a non-indigenous innovation node.
9. An electronic device, characterized in that, Includes: At least one processor; And a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause a computer to execute the method according to any one of claims 1-7.
Citation Information
Patent Citations
Payment request processing method and system and storage medium
CN112825045A
Active-active processing method and system for large and small payment system
CN115484211A
Message instruction forwarding method and device, equipment and storage medium
CN118740924A
Routing Agent Platform with a 3-Tier Architecture for Diameter Communication Protocol in IP Networks
US20190288983A1
System and method for delivering financial services
US8112330B1