CN111767144B - Transaction route determination method, device, equipment and system for transaction data - Google Patents
Transaction route determination method, device, equipment and system for transaction data Download PDFInfo
- Publication number
- CN111767144B CN111767144B CN202010585017.3A CN202010585017A CN111767144B CN 111767144 B CN111767144 B CN 111767144B CN 202010585017 A CN202010585017 A CN 202010585017A CN 111767144 B CN111767144 B CN 111767144B
- Authority
- CN
- China
- Prior art keywords
- configuration
- node
- transaction
- target
- route
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/505—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present disclosure provides a method, an apparatus, a device, and a system for determining a transaction route of transaction data, where a user may define route configurations of transaction data with different types and different attributes in advance, and the present disclosure is directed to a simple service scenario and a complex service scenario, where the user may define two route configurations, so as to ensure not only a requirement of quickly determining a transaction route of transaction data in the simple service scenario, but also a requirement of quickly determining a transaction route of transaction data in the complex service scenario, and ensure that configuration elements based on the transaction data in the complex service scenario are matched to accurate nodes, so as to ensure that different types of transaction data in the complex service scenario can be independently and accurately executed. The flexible configuration of transaction routes is realized, the service requirements of different service scenes are met, and the applicability is wider.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a system for determining a transaction route of transaction data.
Background
With the development of computer technology, more and more transaction data are processed by using a computer, and when the computer processes the transaction data, the computer needs to process the transaction request based on a certain routing rule. For some complex and diversified transaction requests, the routing rules also need to be flexible and changeable, for example: in recent years, the market of the bill transaction is vigorous, the market of the bill transaction gradually pushes out diversified transaction modules, and under the consideration of transaction execution independence and high availability, physical isolation deployment is realized on transaction deployment nodes, so that a set of flexibly configured routing strategies is required, diversified, extensible and efficient transaction routing strategies are supported, and a transaction processing mechanism of multi-cluster mixed deployment is supported.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method, an apparatus, a device, and a system for determining a transaction route of transaction data, which improve flexibility of transaction route configuration and accuracy of transaction data route determination.
In one aspect, embodiments of the present disclosure provide a transaction route determining method of transaction data, the method including:
acquiring a message number corresponding to the received transaction request data;
acquiring a target route configuration corresponding to the transaction request data according to the message number and a pre-stored route configuration; the routing configuration comprises mapping relations between different message numbers and node groups or mapping relations between different configuration elements and different node groups;
determining whether the target route configuration comprises configuration elements, if so, acquiring target configuration element character strings in the transaction request data;
and determining a target processing node corresponding to the transaction request data according to the target configuration element character string and the route configuration.
In another aspect, the present specification provides a transaction route determining apparatus for transaction data, comprising:
the message number acquisition module is used for acquiring a message number corresponding to the received transaction request data;
The route configuration acquisition module is used for acquiring the target route configuration corresponding to the transaction request data according to the message number and the pre-stored route configuration; the routing configuration comprises mapping relations between different message numbers and node groups or mapping relations between different configuration elements and different node groups;
a configuration element determining module, configured to determine whether the target routing configuration includes a configuration element, and if yes, acquire a target configuration element character string in the transaction request data;
and the node matching module is used for determining a target processing node corresponding to the transaction request data according to the target configuration element character string and the route configuration.
In yet another aspect, embodiments of the present disclosure provide a transaction route determination device for transaction data, including at least one processor and a memory for storing processor-executable instructions, which when executed by the processor implement a transaction route determination method for the transaction data described above.
In yet another aspect, embodiments of the present disclosure provide a transaction route determination system for transaction data, comprising:
the route configuration module is used for configuring the message information, the node information and the mapping relation between the message and the node;
The transaction admission module is used for carrying out format conversion and verification on the received transaction request data;
the transaction routing module is used for determining a target processing node corresponding to the received transaction request data based on the routing configuration configured by the routing configuration module;
the data storage module is used for storing the message information, the node information and the route configuration configured by the route configuration module.
The transaction route determining method, the device, the equipment and the system for transaction data provided by the specification can define the route configuration of the transaction data with different types and different attributes in advance by a user, and can define two route configurations aiming at a simple service scene and a complex service scene, so that the demand of rapidly determining the transaction route of the transaction data in the simple service scene can be ensured, the configuration elements based on the transaction data in the complex service scene can be ensured, the configuration elements are matched to accurate nodes, and the independent and accurate execution of the transaction data with different types in the complex service scene can be ensured. The flexible configuration of transaction routes is realized, the service requirements of different service scenes are met, and the applicability is wider.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of a transaction route determination method for transaction data provided by embodiments of the present description;
FIG. 2 is a flow diagram of route configuration acquisition in some embodiments of the present description;
FIG. 3 is a flow diagram of a transaction route determination system for transaction data in one embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a transaction routing device for transaction data in some embodiments of the present description;
fig. 5 is a block diagram of a hardware configuration of a transaction route determination server of transaction data in one embodiment of the present specification.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
With the development of computer technology, more and more transactions are processed by a computer, a user can submit transaction data at a client, and the transaction data is processed by a transaction route determining node, so that the transaction route determination of the transaction data needs to be processed sequentially according to the transaction data submitting time sequence or other transaction rules. As the variety of transaction data increases, the processing procedures and requirements of different data may be different, and different transaction data may require flexible and changeable routing policies.
Fig. 1 is a flow chart of an embodiment of a transaction route determining method for transaction data provided in an embodiment of the present disclosure. Although the description provides methods and apparatus structures as shown in the examples or figures described below, more or fewer steps or modular units may be included in the methods or apparatus, whether conventionally or without inventive effort. In the steps or the structures where there is no necessary causal relationship logically, the execution order of the steps or the module structure of the apparatus is not limited to the execution order or the module structure shown in the embodiments or the drawings of the present specification. The described methods or module structures may be implemented in a device, server or end product in practice, in a sequential or parallel fashion (e.g., parallel processor or multi-threaded processing environments, or even distributed processing, server cluster implementations) as shown in the embodiments or figures.
In a specific embodiment, as shown in fig. 1, in one embodiment of a transaction route determining method for transaction data provided in the present specification, the method may be applied to a terminal device such as a client, a server, and the like, and may specifically be a terminal such as a computer, a tablet computer, and a server, and the method may include the following steps:
step 102, obtaining a message number corresponding to the received transaction request data.
In a specific implementation process, the method in the embodiment of the present specification may be applied to a terminal device capable of determining a transaction route of transaction data, where the terminal device may receive transaction request data submitted by a user through a client, and the transaction request data may include: data information related to the transaction, such as transaction content, transaction mode, transaction time, transaction amount, etc., and transaction request data may be transmitted to the transaction route determination terminal in the form of a message. The embodiments of the present description are not limited to the specific content and type of transaction request data, such as: the transaction request data can be click transaction, anonymous click and the like in the bill transaction. Such as: the user submits an anonymous click transaction through the client, and after receiving the transaction request data, the user can acquire the message number of the transaction request data. The message number may be a code for identifying different types of messages based on service types of different transaction request data, that is, the message number may represent a service type to which the transaction request data corresponding to the message belongs, and the message number may specifically be a character with a certain rule, where different characters represent different service types. The service type may be understood as a feature capable of characterizing the transaction request data category to set the service type according to the service scenario of the transaction request data, for example: the dialogue offer transaction and the anonymous click transaction belong to different business types.
104, obtaining a target route configuration corresponding to the transaction request data according to the message number and a pre-stored route configuration; the routing configuration comprises mapping relations between different message numbers and node groups or mapping relations between different configuration elements and different node groups.
In a specific implementation process, in this embodiment of the present disclosure, route configuration information may be predefined and stored, where the route configuration may include a mapping relationship between different packet numbers and a node group, or a mapping relationship between different configuration elements and different node groups, a node group may include a plurality of nodes, and a processing node of the node serving as transaction data may be a terminal device capable of performing data processing, such as a computer, a server, or the like. Of course, other information may be included in the routing configuration, such as: node information, message information, and the like, and the embodiment of the present disclosure is not particularly limited. In some embodiments of the present disclosure, the routing configuration may provide two configuration policies, for simple application scenarios such as: business scenes with simpler transaction data or simpler message content, specifically, the business scenes are as follows: the dialogue quotation transaction type can define the mapping relation between the message number and the node group, namely, the message of one message number is processed by the nodes in one node group. For more complex application scenarios such as: business scenes with complex transaction data and complex transaction message content, specifically, the business scenes include: the anonymous click transaction type can define the configuration elements of the messages with different message numbers and the mapping relation between the configuration elements and different node groups. For example: the message with the message number of 001 corresponds to a simple application scenario, and the message with the message number of 001 can be directly configured in route configuration and corresponds to the node group with the node group number of 1. The message with the message number 002 corresponds to a complex application scenario, and configuration elements of the message with the message number 002 may be defined in the routing configuration, for example: service type, bill medium, bill type and deadline, and define the value of different configuration elements to correspond to different node groups. Wherein the configuration element may be a key element capable of characterizing a transaction request data traffic attribute or traffic characteristic.
After the transaction request data is received, a message number corresponding to the transaction request data is acquired, and a target route configuration corresponding to the transaction request data can be acquired based on the message number and a pre-stored route configuration. The target route configuration may include a node group or a node group number corresponding to the message number, or may be a configuration element corresponding to the message number.
Step 106, determining whether the target route configuration includes configuration elements, if yes, obtaining a target configuration element character string in the transaction request data.
In a specific implementation process, after determining a target route configuration of transaction request data according to a message number of the transaction request data, determining whether a configuration element is included in the target route configuration, if so, acquiring a corresponding target configuration element character string from the transaction request data. Such as: after the transaction request data is received, unified format conversion can be performed on the transaction request data, and according to the configuration elements in the target routing configuration of the transaction request data, a character combination at a designated position in the converted transaction request data can be obtained to be used as a target configuration element character string, or a combination of designated characters in the converted transaction request data can be obtained to be used as a target configuration element character string. Such as: if the message number of the transaction request data is 002, the routing configuration of the 002 message defines configuration elements: the service type, bill medium, bill type and deadline are BT01, bill medium M02, bill type MT01 and deadline 7D, and the target configuration element character string of the transaction request data is BT01M02MT017D.
And step 108, determining a target processing node corresponding to the transaction request data according to the target configuration element character string and the route configuration.
In a specific implementation process, after determining the target configuration element character string of the transaction request data, the node group corresponding to the transaction request data can be determined according to the relationship between the configuration element and the node group in the routing configuration, so that the target processing node can be further determined. For example: the routing configuration can define mapping relations between different configuration element character strings and node groups, and based on the configuration element character strings and the mapping relations of the transaction request data, the node group corresponding to the transaction request data is determined, and the target processing node is further determined. Such as: after determining the node group, one node can be arbitrarily selected from the node group corresponding to the transaction request data as a target processing node, or a node with relatively strong processing capability and relatively small current load can be selected as the target processing node according to the load, processing capability and the like of each node in the node group.
In some embodiments of the present disclosure, the determining, according to the target configuration element string and the routing configuration, a target processing node corresponding to the transaction request data includes:
Carrying out hash calculation on the target configuration element character string by utilizing a hash algorithm, and determining a hash value corresponding to the target configuration element character string;
matching the hash value corresponding to the target configuration element character string with the key value of each node group in the routing configuration to determine a target processing node group corresponding to the transaction request data;
and selecting one node from the target processing node group as the target processing node.
In a specific implementation process, key values of different node groups can be defined in the routing configuration, after a target configuration element character string of the transaction request data is obtained, a hash value corresponding to the target configuration element character string of the transaction request data is calculated through a hash algorithm, the hash value is matched with the key values of all the node groups in the routing configuration, and a target processing node group corresponding to the transaction request data is determined. Selecting a node from the target processing node group as a target processing node of the transaction request data, for example; and selecting one node from the target processing node group at will or screening one node based on a certain rule to serve as the target processing node. By carrying out hash calculation on the configuration element character string in the transaction request data and matching with the pre-defined route configuration, the configuration element character string characterizes the business attribute of the transaction request data, and the node corresponding to the transaction request data can be rapidly and accurately determined based on the hash calculation of the configuration element character string, so that the route determination efficiency of the transaction request data is improved, and the processing efficiency of the transaction request data is further improved.
Of course, in some embodiments of the present disclosure, if the obtained target routing configuration does not define a configuration element, the target processing node corresponding to the transaction request data may be determined directly according to the message number and the routing configuration of the transaction request data. For example: if no configuration element is defined in the routing configuration of the message number 001, it may indicate that the message corresponds to a relatively simple transaction scenario, and the node group corresponding to the message number 001 may be directly queried according to the stored routing configuration, that is, the routing configuration of the message number 001 does not include the configuration element, and then the node group corresponding to the message should be included. One node can be arbitrarily selected from the node group, or a node with relatively strong processing capacity and relatively small current load can be selected as a target processing node according to the load, processing capacity and the like of each node in the node group. The service requirement can be met by processing one message in the same group of nodes in the simple service scene, and for the simple service scene, the routing determination of the transaction request data can be realized by directly numbering the messages, so that the method is simple, and the routing of the transaction request data can be rapidly determined.
According to the transaction route determining method of the transaction data, which is provided by the embodiment of the specification, the user can define the route configuration of the transaction data with different types and different attributes in advance, and the user can define two route configurations aiming at a simple service scene and a complex service scene, so that the demand of rapidly determining the transaction route of the transaction data in the simple service scene can be ensured, the configuration elements based on the transaction data in the complex service scene can be ensured, the configuration elements are matched with accurate nodes, and the independent and accurate execution of the transaction data with different types in the complex service scene can be ensured. The flexible configuration of transaction routes is realized, the service requirements of different service scenes are met, and the applicability is wider.
On the basis of the above embodiments, in some embodiments of the present disclosure, the routing configuration further includes a routing policy lifecycle;
the method further comprises; and determining the validity period between the transaction request data and the target processing node according to the life cycle of the routing strategy.
In a specific implementation, in some embodiments of the present disclosure, when defining a routing configuration, a routing policy lifecycle of the corresponding routing configuration may also be defined, where the routing policy lifecycle may characterize an effective start time to an effective end time of the routing configuration. When determining a target processing node corresponding to the transaction request data, the validity period between the transaction request data and the target processing node can be determined according to the life cycle of the routing strategy in the routing configuration, and the service types required by the time node are as follows: transaction data of a product distribution class and the like can realize automatic dynamic switching of transaction request data among different nodes at different time nodes by defining a routing strategy life cycle.
For example: in the routing configuration, a node group with the number 2 corresponding to the transaction request data with the number 001 is defined, the routing policy life cycle of the routing configuration is defined as 1 month day in 2020 to 1 month in 2020 and 3 days in 2020, meanwhile, a node group with the number 3 corresponding to the transaction request data with the number 001 is defined, and the routing policy life cycle of the routing configuration is defined as 1 month in 2020 to 4 days in 2020 and 5 days in 2020. When the transaction request data with the message number of 001 is received on the 1 st month of 2020, the transaction request data can be routed to the node in the node group 2 for processing, and when the transaction request data with the message number of 001 reaches the 4 th month of 2020, the transaction request data is automatically switched to the node group 3 for processing. The function of automatic flow switching is realized.
On the basis of the above embodiments, in some embodiments of the present specification, the method further includes:
when the nodes are started, the health state of each node is determined through heartbeat detection;
if the unavailable node exists according to the health state of the node, the unavailable node is automatically isolated in the node group, so that the unavailable node cannot be used as the target processing node.
In a specific implementation process, the health state of each node can be determined by performing heartbeat detection and other modes on each node, if a node fails, that is, an unavailable node exists, the unavailable node can be isolated in a node group, the isolated node transaction request data cannot be routed, that is, when the transaction request data is received, and the corresponding target processing node is determined, the isolated node is not selected any more. For example: a certain node a in the node group 1 is isolated, and when the transaction route determined by the transaction request data is the node group 1 and one node in the node group 1 is selected as a target processing node, the node a cannot be selected. The problem that normal processing cannot be performed due to the fact that the nodes determined by the transaction request data are fault nodes is avoided in an automatic isolation mode, and the transaction request data are ensured to be processed safely, accurately and timely.
On the basis of the above embodiments, in some embodiments of the present specification, the method further includes:
storing the route configuration in a distributed cache and a database respectively;
when the route configuration is acquired, firstly acquiring the route configuration from the distributed cache;
If the route configuration is obtained from the distributed cache, the route configuration is obtained from the database.
In a specific implementation process, fig. 2 is a schematic flow chart of route configuration acquisition in some embodiments of the present disclosure, as shown in fig. 2, in some embodiments of the present disclosure, two storage modes of a distributed cache and a database are provided, when route configuration needs to be acquired, the route configuration may be acquired from the distributed cache, and if acquiring route configuration from the distributed cache fails, the route configuration acquisition failure is as follows: and if the distributed cache is unavailable or the acquired route configuration is empty, acquiring the route configuration from the database. The distributed cache supports quick access of an application layer, data processing efficiency can be improved, and data security can be ensured by database storage. By introducing the distributed cache, the hot spot configuration sharing and the real-time access are realized, the data cost and me efficiency is improved, the access pressure of the database is reduced, and the data sharing among the nodes is realized.
On the basis of the above embodiments, in some embodiments of the present specification, the method further includes: the method further comprises the steps of:
node information of each node and message information of different messages are pre-configured;
and carrying out node connection management based on the node information of each node, and carrying out message management based on the message information of the message.
In a specific implementation process, when defining the route configuration, node information of each node, such as; the node basic information, the node advanced attribute and the like are configured, and different message information such as: the message basic information, the message detail information and the like are configured. The configured node information and message information can be included in the routing configuration. The node basic information may include: the IP (domain name), port, node attribution type and node description of the node can realize the creation and management of the node connection through the configured node basic information. The node advanced attribute configuration may contain high availability mode information, connection mode information, heartbeat detection mechanism information, and the like. The method can realize the detection of the availability of the node and realize the automatic switching processing of the node when the node is abnormal through the advanced attribute configuration of the node. The message base information may include: message number, message type, channel, transmission direction, routing field formulation, etc. The message thread information may include a configuration of message thread elements, such as a transaction amount, institution, interest rate, and format requirements corresponding to the attributes. The unified management of the message can be realized through the configuration of the message information, the analysis of the message is realized, and the formatting verification and the like are performed on the message uploading content.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts of each embodiment are referred to each other, and each embodiment mainly describes differences from other embodiments. Reference is made to the description of parts of the method embodiments where relevant.
Based on the transaction route determination method of the transaction data, one or more embodiments of the present disclosure further provide a system for transaction route determination of the transaction data. The system may include systems (including distributed systems), software (applications), modules, components, servers, clients, etc. that employ the methods described in embodiments of the present specification in conjunction with the necessary hardware implementations. Based on the same innovative concepts, the embodiments of the present description provide means in one or more embodiments as described in the following embodiments. Because the implementation schemes and methods of the device for solving the problems are similar, the implementation of the device in the embodiments of the present disclosure may refer to the implementation of the foregoing method, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the systems, apparatus described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 3 is a flow chart illustrating a transaction route determination of transaction data by a transaction route determination system of transaction data in one embodiment of the present disclosure, as shown in FIG. 3, in some embodiments of the present disclosure a transaction route determination system of transaction data may be provided, which may include: the system comprises a route configuration module, a transaction admission module, a transaction route module and a data storage module, wherein:
as shown in fig. 3, when a user submits a transaction request through a client, the user enters a transaction admission module, the transaction admission module can realize transaction corrosion prevention, convert communication messages of different types in different channels into a unified format, verify the validity and safety of the messages, realize a message-level current limiting mechanism and ensure the usability of the overall route determining system. The transaction admittance module mainly comprises an admittance verification unit, a transaction checking unit and a communication flow limiting unit, wherein: the admission verification unit can check the signature of the request message and finish the message decryption operation according to the corresponding encryption and decryption algorithm. The transaction checking unit can perform deserialization on the request message according to the message contract format, and perform basic checking and compliance checking. The basic check comprises element format check, transaction time sequence, business element audit relation check and the like; the compliance check includes authority check, message private area and public area check, etc., such as whether the request message organization has corresponding transaction authority, whether the request organization is a generic organization of public area members. The communication current limiting unit can realize grouping according to the type of the communication message, and implement current limiting on the communication request based on the thread pool. Transaction concurrency is achieved by setting the thread pool size, which, if threads 10, corresponds to 10 concurrency processes, limiting the transaction requests based on the thread pool size.
After the transaction admission module performs message verification, the transaction routing module can determine the target processing node of the received transaction request data. The transaction routing module is mainly responsible for connection management with the transaction processing node, and realizes the relationship analysis of the communication message and the processing node, thereby realizing transaction forwarding. The method mainly comprises a route matching unit, a connection management unit and a route configuration initial unit, wherein: the route matching unit can coordinate the route configuration to match with the request message, and the converted JavaBean of the transaction admittance module is used for simultaneously calling the route configuration to acquire the corresponding route configuration (which can comprise node information, message information corresponding to the request message and route configuration information) so as to realize the matching of the communication message and the processing node and further forward the communication message to the appointed transaction node for processing. The route matching unit may include a read route configuration subunit and a custom route calculation subunit, where the read route configuration subunit is configured to obtain, according to a message number, configuration information of a message and a relationship between the message and a node from the distributed cache, and if the distributed cache is unavailable or does not hit in configuration, obtain the route configuration from the database. The self-defined route calculation subunit is configured to execute self-defined route calculation according to whether the route configuration element is "yes" or not, for example, a Hash algorithm is automatically implemented, and node matching is performed after a string formed by a plurality of configuration elements is converted into a Hash value. The connection management unit can coordinate the communication and connection management of the routing node and the transaction node, realizes the understanding coupling of the routing determination system and the connecting pipe, and is mainly used for connection management, heartbeat detection and transaction node health management. Connection management: the management transaction routing node is connected with a socket (a network programming interface independent of a protocol) built by the transaction processing node, and as shown in fig. 3, the connection management device can be connected to different transaction processing node clusters; heartbeat detection: the method is responsible for the connection establishment during the node starting and the connection maintenance through a heartbeat detection mechanism; transaction node health management: and identifying the node health state of the target transaction processing node through heartbeat detection, and if the target node is unavailable, automatically isolating the unavailable transaction node. And the route configuration initial unit is used for initializing the latest route information of the database from the database to the distributed cache when the route node is started. Based on the fixed-frequency process of Quatz (an open source job scheduling framework completely written by java), the data consistency check of the database and the distributed cache is realized, and the data synchronization is carried out on the condition of inconsistent data.
The data storage module is mainly used for storing the routing parameters and carrying out storage management through a database and a cache second level. The system consists of a cache storage unit and a database storage unit. The cache storage unit can realize cache processing of the rule data of the hot spot, and improves the access efficiency of the routing rule. The storage unit is used as a main data source for realizing the routing rule, and provides data support when the cache is not available.
In addition, the system provided by the embodiment of the specification can further comprise a routing configuration module, the routing configuration module can realize unified management of the message information and the node information, support flexible configuration of the message and the transaction processing node, and adapt to the differentiated processing requirements of multiple dimensions of the service (such as dimension combinations of service types, transaction modes, bill media and the like). The route configuration module is not shown in fig. 3, and is mainly divided into a node configuration unit and a route configuration unit, where:
the node configuration device can support the transaction routing module pair through the configuration of transaction node basic information and node advanced attribute configuration. The node basic information configuration mainly records basic information of transaction processing nodes, such as IP (domain name), port, node attribution type and node description of the nodes, and the transaction routing module can realize the creation and management of node connection through configuration information; the node advanced attribute configuration includes high availability mode information, connection mode information, heartbeat detection mechanism information, and the like. The transaction routing node realizes the detection of node availability through advanced attribute configuration, and realizes automatic switching of processing nodes when the node is abnormal. The message configuration unit can realize unified management of the message, and the transaction admission module can analyze the message and perform formatting verification on the content of the message by using the configuration information provided by the device. The basic information configuration of the message mainly comprises configuration of transaction message basic attributes, such as message numbers, message types, channels, transmission directions, routing field making and the like. The message detail information configuration mainly comprises the configuration of message detail elements, such as the format requirements corresponding to the amount, the organization, the interest rate and the attribute of the transaction.
The routing configuration unit mainly surrounds the node configuration unit and the message configuration unit, and achieves the relation configuration of the messages and the nodes, the relation configuration of key business elements in the messages and the corresponding relation configuration of the nodes, and the routing strategy effective period management. The relation configuration of the message and the nodes mainly aims at processing a message in the same group of nodes in a simple scene. If the message number 001 message is at a dialog bid type (dialog bid node 1..dialog bid N) node, as shown in table 1 below:
TABLE 1
Message numbering | Message element | Node group numbering |
001 | 2 |
For complex service scenarios, the correspondence between the service elements and the node groups in the message may also be configured. The configuration of the corresponding relation between key business elements and nodes in the message is mainly realized by forming a character string, namely a configuration element character string, through a plurality of key elements in the message, then performing a hash algorithm to realize conversion into a primary key, and realizing association with a group of nodes. If the configuration elements of the route in the basic information configuration of the message with the message number 002 are the service type (BT 01), the bill medium (M02), the bill type (MT 01) and the deadline (7D), a large character string BT01M02MT017D is formed first, hash values are calculated through hash, and the configuration of the relationship between the messages with different hash values and the nodes is as shown in the following table 2:
TABLE 2
Message numbering | Message element | Node group numbering |
002 | W | 2 |
002 | W1 | 3 |
002 | W2 | 4 |
The effective cycle management of the routing strategy mainly realizes the life cycle configuration of the configuration, as shown in the following table 3:
TABLE 3 Table 3
The invention mainly adopts technologies such as java, distributed cache and the like, and supports more transaction platforms. For the processing of high-frequency routing hot spot data, a distributed cache is introduced to improve the data access efficiency, and a database is used as a reduction scheme to realize the high availability of data service. The routing configuration is flexibly realized, the user is supported to carry out custom route writing, and the universality of the routing scheme is greatly expanded.
Fig. 4 is a schematic structural diagram of a transaction route determining device for transaction data in some embodiments of the present specification, and as shown in fig. 4, the transaction route determining device for transaction data provided in the present specification may include:
a message number obtaining module 41, configured to obtain a message number corresponding to the received transaction request data;
a route configuration obtaining module 42, configured to obtain a target route configuration corresponding to the transaction request data according to the packet number and a pre-stored route configuration; the routing configuration comprises mapping relations between different message numbers and node groups or mapping relations between different configuration elements and different node groups;
A configuration element determining module 43, configured to determine whether the target routing configuration includes a configuration element, and if yes, obtain a target configuration element string in the transaction request data;
the node matching module 44 is configured to determine, according to the target configuration element string and the route configuration, a target processing node corresponding to the transaction request data.
According to the transaction route determining device for transaction data, which is provided by the embodiment of the specification, a user can define route configurations of transaction data with different types and different attributes in advance, and the user can define two route configurations aiming at a simple service scene and a complex service scene, so that not only can the requirement of rapidly determining the transaction route of the transaction data in the simple service scene be ensured, but also the configuration elements based on the transaction data in the complex service scene can be ensured to be matched with accurate nodes, and the independent and accurate execution of the transaction data with different types in the complex service scene can be ensured. The flexible configuration of transaction routes is realized, the service requirements of different service scenes are met, and the applicability is wider.
It should be noted that the above-mentioned device according to the description of the corresponding method embodiment may also include other embodiments. Specific implementation manner may refer to the description of the corresponding method embodiments, which is not described herein in detail.
The embodiment of the specification also provides a transaction route determining device for transaction data, which comprises: at least one processor and a memory for storing processor-executable instructions, which when executed by the processor implement the information recommendation data processing method of the above embodiment, such as:
acquiring a message number corresponding to the received transaction request data;
acquiring a target route configuration corresponding to the transaction request data according to the message number and a pre-stored route configuration; the routing configuration comprises mapping relations between different message numbers and node groups or mapping relations between different configuration elements and different node groups;
determining whether the target route configuration comprises configuration elements, if so, acquiring target configuration element character strings in the transaction request data;
and determining a target processing node corresponding to the transaction request data according to the target configuration element character string and the route configuration.
It should be noted that the above description of the apparatus according to the method embodiment may also include other implementations. Specific implementation may refer to descriptions of related method embodiments, which are not described herein in detail.
The transaction route determining device for transaction data provided by the specification can also be applied to various data analysis processing systems. The system or server or terminal or device may be a separate server or may include a server cluster, a system (including a distributed system), software (applications), an actual operating device, a logic gate device, a quantum computer, etc. using one or more of the methods or one or more embodiments of the present description in combination with necessary hardware implementation. The detection system for reconciling discrepancy data may comprise at least one processor and a memory storing computer executable instructions that when executed by the processor perform the steps of the method described in any one or more of the embodiments described above.
The method embodiments provided in the embodiments of the present specification may be performed in a mobile terminal, a computer terminal, a server, or similar computing device. Taking the example of running on a server, fig. 5 is a block diagram of a hardware structure of a transaction route determining server of transaction data in one embodiment of the present specification, and the computer terminal may be the transaction route determining server of transaction data or the transaction route determining device of transaction data in the above embodiment. The server 10 as shown in fig. 5 may include one or more (only one is shown in the figure) processors 100 (the processors 100 may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA), a nonvolatile memory 200 for storing data, and a transmission module 300 for communication functions. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 5 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, server 10 may also include more or fewer components than shown in FIG. 5, for example, may also include other processing hardware such as a database or multi-level cache, a GPU, or have a different configuration than that shown in FIG. 5.
The nonvolatile memory 200 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the transaction routing method of transaction data in the embodiments of the present disclosure, and the processor 100 executes various functional applications and resource data updates by running the software programs and modules stored in the nonvolatile memory 200. The non-volatile memory 200 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the non-volatile memory 200 may further include memory located remotely from the processor 100, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, office and networks, mobile communication networks, and combinations thereof.
The transmission module 300 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission module 300 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The method or apparatus according to the foregoing embodiments provided in the present specification may implement service logic through a computer program and be recorded on a storage medium, where the storage medium may be read and executed by a computer, to implement effects of the solutions described in the embodiments of the present specification, for example:
acquiring a message number corresponding to the received transaction request data;
acquiring a target route configuration corresponding to the transaction request data according to the message number and a pre-stored route configuration; the routing configuration comprises mapping relations between different message numbers and node groups or mapping relations between different configuration elements and different node groups;
Determining whether the target route configuration comprises configuration elements, if so, acquiring target configuration element character strings in the transaction request data;
and determining a target processing node corresponding to the transaction request data according to the target configuration element character string and the route configuration.
The storage medium may include physical means for storing information, typically by digitizing the information before storing it in an electronic, magnetic, or optical medium. The storage medium may include: means for storing information using electrical energy such as various memories, e.g., RAM, ROM, etc.; devices for storing information using magnetic energy such as hard disk, floppy disk, magnetic tape, magnetic core memory, bubble memory, and USB flash disk; devices for optically storing information, such as CDs or DVDs. Of course, there are other ways of readable storage medium, such as quantum memory, graphene memory, etc.
The transaction route determining method or device for the transaction data provided in the embodiments of the present disclosure may be implemented in a computer by executing corresponding program instructions by a processor, for example, implemented on a PC side using the c++ language of a windows operating system, implemented on a linux system, or implemented on an intelligent terminal using, for example, android, iOS system programming languages, and implemented based on processing logic of a quantum computer.
It should be noted that, the descriptions of the apparatus, the computer storage medium, and the system according to the related method embodiments described in the foregoing description may further include other implementations, and specific implementation manners may refer to descriptions of corresponding method embodiments, which are not described herein in detail.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are referred to each other, and each embodiment is mainly described in a different manner from other embodiments. In particular, for a hardware + program class embodiment, the description is relatively simple as it is substantially similar to the method embodiment, and reference is made to the partial description of the method embodiment where relevant.
Embodiments of the present description are not limited to situations in which industry communication standards, standard computer resource data updates, and data storage rules must be met or described in one or more embodiments of the present description. Some industry standards or embodiments modified slightly based on the implementation described by the custom manner or examples can also realize the same, equivalent or similar or predictable implementation effect after modification of the above examples. Examples of data acquisition, storage, judgment, processing, etc., using these modifications or variations may still fall within the scope of alternative implementations of the examples of this specification.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a car-mounted human-computer interaction device, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Although one or more embodiments of the present description provide method operational steps as described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. In actual implementation of the apparatus or the terminal product, the methods illustrated in the embodiments or the drawings may be performed sequentially or in parallel (e.g., in a parallel processor or a multi-threaded processing environment, or even in a distributed resource data update environment). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element. The terms first, second, etc. are used to denote a name, but not any particular order.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, when one or more of the present description is implemented, the functions of each module may be implemented in the same piece or pieces of software and/or hardware, or a module that implements the same function may be implemented by a plurality of sub-modules or a combination of sub-units, or the like. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable resource data updating apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable resource data updating apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable resource data updating apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable resource data updating apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
One skilled in the relevant art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
One or more embodiments of the present specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are referred to each other, and each embodiment is mainly described in a different manner from other embodiments. In particular, for system embodiments, the description is relatively simple as it is substantially similar to method embodiments, and reference is made to the section of the method embodiments where relevant. In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present specification. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The foregoing is merely an example of one or more embodiments of the present specification and is not intended to limit the one or more embodiments of the present specification. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of the present specification, should be included in the scope of the claims.
Claims (8)
1. A method of determining a transaction route for transaction data, the method comprising:
acquiring a message number corresponding to the received transaction request data;
acquiring a target route configuration corresponding to the transaction request data according to the message number and a pre-stored route configuration; the routing configuration comprises mapping relations between different configuration elements and different node groups;
determining whether the target route configuration comprises configuration elements, if so, acquiring target configuration element character strings in the transaction request data;
determining a target processing node corresponding to the transaction request data according to the target configuration element character string and the route configuration;
the determining, according to the target configuration element string and the route configuration, a target processing node corresponding to the transaction request data includes:
Carrying out hash calculation on the target configuration element character string by utilizing a hash algorithm, and determining a hash value corresponding to the target configuration element character string;
matching the hash value corresponding to the target configuration element character string with the key value of each node group in the routing configuration to determine a target processing node group corresponding to the transaction request data;
and selecting one node from the target processing node group as the target processing node.
2. The method of claim 1, wherein the routing configuration further comprises a routing policy lifecycle;
the method further comprises; and determining the validity period between the transaction request data and the target processing node according to the life cycle of the routing strategy.
3. The method of claim 1, wherein the method further comprises:
when the nodes are started, the health state of each node is determined through heartbeat detection;
if the unavailable node exists according to the health state of the node, the unavailable node is automatically isolated in the node group, so that the unavailable node cannot be used as the target processing node.
4. The method of claim 1, wherein the method further comprises:
Storing the route configuration in a distributed cache and a database respectively;
when the route configuration is acquired, firstly acquiring the route configuration from the distributed cache;
if the route configuration is obtained from the distributed cache, the route configuration is obtained from the database.
5. The method of claim 1, wherein the method further comprises:
node information of each node and message information of different messages are pre-configured;
and carrying out node connection management based on the node information of each node, and carrying out message management based on the message information of the message.
6. A transaction route determination device for transaction data, comprising:
the message number acquisition module is used for acquiring a message number corresponding to the received transaction request data;
the route configuration acquisition module is used for acquiring the target route configuration corresponding to the transaction request data according to the message number and the pre-stored route configuration; the routing configuration comprises mapping relations between different configuration elements and different node groups;
a configuration element determining module, configured to determine whether the target routing configuration includes a configuration element, and if yes, acquire a target configuration element character string in the transaction request data;
The node matching module is used for determining a target processing node corresponding to the transaction request data according to the target configuration element character string and the route configuration;
the node matching module is specifically configured to:
carrying out hash calculation on the target configuration element character string by utilizing a hash algorithm, and determining a hash value corresponding to the target configuration element character string;
matching the hash value corresponding to the target configuration element character string with the key value of each node group in the routing configuration to determine a target processing node group corresponding to the transaction request data;
and selecting one node from the target processing node group as the target processing node.
7. A transaction route determination device for transaction data, comprising: at least one processor and a memory for storing processor-executable instructions which, when executed, implement the method of any one of claims 1-5.
8. A transaction route determination system for transaction data, comprising:
the route configuration module is used for configuring the message information, the node information and the mapping relation between the message and the node;
The transaction admission module is used for carrying out format conversion and verification on the received transaction request data;
the transaction routing module is used for determining a target processing node corresponding to the received transaction request data based on the routing configuration configured by the routing configuration module;
the data storage module is used for storing the message information, the node information and the route configuration configured by the route configuration module;
the routing configuration comprises mapping relations between different configuration elements and different node groups;
the transaction routing module is specifically configured to:
determining whether the target route configuration comprises configuration elements, if so, acquiring target configuration element character strings in the transaction request data;
carrying out hash calculation on the target configuration element character string by utilizing a hash algorithm, and determining a hash value corresponding to the target configuration element character string;
matching the hash value corresponding to the target configuration element character string with the key value of each node group in the routing configuration to determine a target processing node group corresponding to the transaction request data;
selecting a node from the target processing node group as the target processing node;
the target route configuration is obtained by the following steps:
Acquiring message information corresponding to the received transaction request data;
and acquiring target route configuration corresponding to the transaction request data according to the message information and the pre-stored route configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010585017.3A CN111767144B (en) | 2020-06-24 | 2020-06-24 | Transaction route determination method, device, equipment and system for transaction data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010585017.3A CN111767144B (en) | 2020-06-24 | 2020-06-24 | Transaction route determination method, device, equipment and system for transaction data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111767144A CN111767144A (en) | 2020-10-13 |
CN111767144B true CN111767144B (en) | 2023-08-25 |
Family
ID=72722068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010585017.3A Active CN111767144B (en) | 2020-06-24 | 2020-06-24 | Transaction route determination method, device, equipment and system for transaction data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111767144B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112256455A (en) * | 2020-10-30 | 2021-01-22 | 中国建设银行股份有限公司 | Method, medium and electronic device for optimizing transaction remote procedure call |
CN113011980B (en) * | 2021-03-30 | 2023-02-17 | 建信金融科技有限责任公司 | Transaction code request routing method and device of distributed transaction system |
WO2022216204A1 (en) * | 2021-04-06 | 2022-10-13 | Rz Capital Holding Ab | Method and apparatus for handling secure communication using blockchains in a communications network |
CN114119241A (en) * | 2022-01-27 | 2022-03-01 | 通联支付网络服务股份有限公司 | Channel transaction system |
CN116155818B (en) * | 2023-04-17 | 2023-06-20 | 中国工商银行股份有限公司 | Route scheduling method, system and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600148A (en) * | 2018-01-04 | 2018-09-28 | 中国银行股份有限公司 | A kind of transaction message processing method and processing device |
CN108628947A (en) * | 2018-04-02 | 2018-10-09 | 阿里巴巴集团控股有限公司 | A kind of business rule matched processing method, device and processing equipment |
CN109933626A (en) * | 2019-02-12 | 2019-06-25 | 平安科技(深圳)有限公司 | Data processing method, device and the financial transaction terminal of financial business |
CN110009470A (en) * | 2019-03-29 | 2019-07-12 | 中国银联股份有限公司 | A kind of settlement method and device |
CN110503555A (en) * | 2019-08-28 | 2019-11-26 | 中国工商银行股份有限公司 | The review method, apparatus and server of transaction data |
CN110601977A (en) * | 2019-08-29 | 2019-12-20 | 凡普数字技术有限公司 | Configuration method and device of routing strategy and storage medium |
CN111161067A (en) * | 2019-12-17 | 2020-05-15 | 京东数字科技控股有限公司 | Method and device for determining transaction route |
-
2020
- 2020-06-24 CN CN202010585017.3A patent/CN111767144B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600148A (en) * | 2018-01-04 | 2018-09-28 | 中国银行股份有限公司 | A kind of transaction message processing method and processing device |
CN108628947A (en) * | 2018-04-02 | 2018-10-09 | 阿里巴巴集团控股有限公司 | A kind of business rule matched processing method, device and processing equipment |
CN109933626A (en) * | 2019-02-12 | 2019-06-25 | 平安科技(深圳)有限公司 | Data processing method, device and the financial transaction terminal of financial business |
CN110009470A (en) * | 2019-03-29 | 2019-07-12 | 中国银联股份有限公司 | A kind of settlement method and device |
CN110503555A (en) * | 2019-08-28 | 2019-11-26 | 中国工商银行股份有限公司 | The review method, apparatus and server of transaction data |
CN110601977A (en) * | 2019-08-29 | 2019-12-20 | 凡普数字技术有限公司 | Configuration method and device of routing strategy and storage medium |
CN111161067A (en) * | 2019-12-17 | 2020-05-15 | 京东数字科技控股有限公司 | Method and device for determining transaction route |
Also Published As
Publication number | Publication date |
---|---|
CN111767144A (en) | 2020-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111767144B (en) | Transaction route determination method, device, equipment and system for transaction data | |
CN111767143B (en) | Transaction data processing method, device, equipment and system | |
CN110532020B (en) | Data processing method, device and system for micro-service arrangement | |
CN102982141B (en) | A kind of method and device realizing distributed data base agency | |
CN107577420B (en) | File processing method and device and server | |
TWI694700B (en) | Data processing method and device, user terminal | |
CN111064626B (en) | Configuration updating method, device, server and readable storage medium | |
CN110765165B (en) | Method, device and system for synchronously processing cross-system data | |
CN116305298B (en) | Method and device for managing computing power resources, storage medium and electronic equipment | |
WO2021139778A1 (en) | System scheduling workflow generation method, system, apparatus, and computer readable storage medium | |
CN109508912B (en) | Service scheduling method, device, equipment and storage medium | |
CN113256426B (en) | Data processing method, device, equipment and medium | |
WO2019223136A1 (en) | Data acquisition method and apparatus, and computer device and storage medium | |
CN109145053B (en) | Data processing method and device, client and server | |
CN105404530B (en) | It is a kind of to realize easy deployment and the system and method using private clound | |
CN112202829A (en) | Social robot scheduling system and scheduling method based on micro-service | |
CN110209732A (en) | Method of data synchronization and device of the relevant database to Hadoop database | |
CN112003922A (en) | Data transmission method and device | |
TW201933851A (en) | Service update method and device, system | |
CN109614271A (en) | Control method, device, equipment and the storage medium of multiple company-data consistency | |
CN103678591A (en) | Device and method for automatically executing multi-service receipt statistical treatment | |
CN115984022B (en) | Unified account checking method and device for distributed payment system | |
CN111930690A (en) | File generation method and device | |
CN111062814A (en) | Resource transfer method, device and system based on block chain | |
CN114629951A (en) | Address service switching method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |