CN113269558A - Transaction processing method and device in distributed system - Google Patents

Transaction processing method and device in distributed system Download PDF

Info

Publication number
CN113269558A
CN113269558A CN202110709986.XA CN202110709986A CN113269558A CN 113269558 A CN113269558 A CN 113269558A CN 202110709986 A CN202110709986 A CN 202110709986A CN 113269558 A CN113269558 A CN 113269558A
Authority
CN
China
Prior art keywords
customer
transaction
client
field
processing
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.)
Granted
Application number
CN202110709986.XA
Other languages
Chinese (zh)
Other versions
CN113269558B (en
Inventor
朱江波
池振强
汤东波
胡佳锋
韩天阳
黄天立
丁彤
冯春阳
王强
贾哲
刘猛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202110709986.XA priority Critical patent/CN113269558B/en
Priority claimed from CN202110709986.XA external-priority patent/CN113269558B/en
Publication of CN113269558A publication Critical patent/CN113269558A/en
Application granted granted Critical
Publication of CN113269558B publication Critical patent/CN113269558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Development Economics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and a device for processing transactions in a distributed system, which can be used in the field of distributed technology, and the method comprises the following steps: determining the frequent region of the client, and setting a region field corresponding to the client information of each client in the client set; predicting the next transaction time of the customer, and setting a time field corresponding to the customer information of each customer in the customer set; predicting the next transaction service of the customer, and setting a service field corresponding to the customer information of each customer in the customer set; generating resource configuration data for a distributed subsystem that processes customer transactions; when a customer conducts transaction at the bank APP terminal, the transaction is routed to a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of the customer, and the customer transaction is processed by using the resource configuration data of the distributed subsystem. The invention can reduce the pressure of transaction system processing transaction under large transaction amount.

Description

Transaction processing method and device in distributed system
Technical Field
The present invention relates to the field of distributed technologies, and in particular, to a method and an apparatus for processing transactions in a distributed system.
Background
In the current bank distributed transaction system, the large data volume and the high concurrency are two important characteristics, and great pressure is caused on the stable operation of the system. How to allocate resources in advance and reduce the system pressure under large transaction amount is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a transaction processing method in a distributed system, which is used for reducing the pressure of transaction processing of a transaction system under a large transaction amount, and comprises the following steps:
acquiring historical transaction data of a customer set in a bank, wherein the historical transaction data comprises a historical transaction place, historical transaction time and historical transaction business;
determining frequent areas of the customers according to the historical transaction places, and setting an area field corresponding to the customer information of each customer in the customer set;
predicting the next transaction time of the customer according to the historical transaction time, and setting a time field corresponding to the customer information of each customer in the customer set;
predicting the next transaction service of the customer according to the historical transaction service, and setting a service field corresponding to the customer information of each customer in the customer set;
generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to the customer information of each customer in a customer set;
when a customer conducts transaction at the bank APP terminal, the transaction is routed to a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of the customer, and the customer transaction is processed by using the resource configuration data of the distributed subsystem.
The embodiment of the invention provides a device for processing transactions in a distributed system, which is used for reducing the pressure of processing transactions in the transaction system under large transaction amount, and comprises the following components:
the historical transaction data acquisition module is used for acquiring historical transaction data of a customer in a bank, wherein the historical transaction data comprises a historical transaction place, historical transaction time and historical transaction business;
the historical transaction data acquisition module is used for acquiring historical transaction data of a customer set in a bank, wherein the historical transaction data comprises historical transaction places, historical transaction time and historical transaction services;
the first customer information setting module is used for determining the frequent region of the customer according to the historical transaction place and setting a region field corresponding to the customer information of each customer in the customer set;
the second customer information setting module is used for predicting the next transaction time of the customer according to the historical transaction time and setting a time field corresponding to the customer information of each customer in the customer set;
the third customer information setting module is used for predicting the next transaction service of the customer according to the historical transaction service and setting a service field corresponding to the customer information of each customer in the customer set;
the resource allocation module is used for generating resource allocation data of a distributed subsystem for processing the client transaction according to the area field, the time field and the service field corresponding to the client information of each client in the client set;
and the transaction processing module is used for routing the transaction to a distributed subsystem for processing the transaction of the client according to the area field, the time field and the service field corresponding to the client information of the client when the client conducts the transaction at the bank APP terminal, and processing the transaction of the client by using the resource configuration data of the distributed subsystem.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the method for transaction processing in the distributed system.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the method for processing a transaction in the distributed system is stored in the computer-readable storage medium.
In the embodiment of the invention, historical transaction data of a customer set in a bank is acquired, wherein the historical transaction data comprises a historical transaction place, historical transaction time and historical transaction business; determining frequent areas of the customers according to the historical transaction places, and setting an area field corresponding to the customer information of each customer in the customer set; predicting the next transaction time of the customer according to the historical transaction time, and setting a time field corresponding to the customer information of each customer in the customer set; predicting the next transaction service of the customer according to the historical transaction service, and setting a service field corresponding to the customer information of each customer in the customer set; generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to the customer information of each customer in a customer set; when a customer conducts transaction at the bank APP terminal, the transaction is routed to a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of the customer, and the customer transaction is processed by using the resource configuration data of the distributed subsystem. In the embodiment, the transaction of the client is from the fixed route to the distributed subsystem corresponding to the area field corresponding to the client information of the client, namely the distributed subsystem corresponding to the frequently-located area of the client, so that the performance of the transaction system can be greatly improved, and the pressure caused by large data volume and high concurrency is reduced; in addition, the resource configuration data can be obtained according to the time field and the service field corresponding to the customer information of the customer, so that the transaction processing efficiency of the customer is further improved, and the pressure caused by large data volume and high concurrency is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a flow diagram of a method of transaction processing in a distributed system in accordance with an embodiment of the present invention;
FIG. 2 is a detailed flow diagram of a method for transaction processing in a distributed system in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus for transaction processing in a distributed system in accordance with an embodiment of the present invention;
FIG. 4 is another schematic diagram of an apparatus for transaction processing in a distributed system according to an embodiment of the invention;
FIG. 5 is a diagram of a computer device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are used in an open-ended fashion, i.e., to mean including, but not limited to. Reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is for illustrative purposes to illustrate the implementation of the present application, and the sequence of steps is not limited and can be adjusted as needed.
Terms related to the embodiments of the present invention are explained below.
Distributed subsystem: and the subsystem of the distributed transaction system is used for processing the transaction of the client. A distributed system may include multiple distributed subsystems, and the multiple distributed subsystems are deployed in different regions, such as in shanghai, beijing, shenzhen, chengdu, and the like.
Bank APP terminal: a system provided by a bank on which a customer can make transactions.
Fig. 1 is a flowchart of a method for processing a transaction in a distributed system according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, acquiring historical transaction data of a customer set in a bank, wherein the historical transaction data comprises a historical transaction place, historical transaction time and historical transaction business;
step 102, determining frequent areas of the customers according to the historical trading places, and setting area fields corresponding to the customer information of each customer in the customer set;
103, predicting the next transaction time of the customer according to the historical transaction time, and setting a time field corresponding to the customer information of each customer in the customer set;
step 104, predicting the next transaction service of the customer according to the historical transaction service, and setting a service field corresponding to the customer information of each customer in the customer set;
105, generating resource configuration data of a distributed subsystem for processing customer transaction according to an area field, a time field and a service field corresponding to the customer information of each customer in the customer set;
and 106, when the customer makes a transaction at the bank APP terminal, routing the transaction to a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of the customer, and processing the customer transaction by using the resource configuration data of the distributed subsystem.
In the embodiment of the invention, the transaction of the client is from the fixed route to the distributed subsystem corresponding to the area field corresponding to the client information of the client, namely the frequently-located distributed subsystem corresponding to the area of the client, so that the performance of the transaction system can be greatly improved, and the pressure caused by large data volume and high concurrency is reduced; in addition, the resource configuration data can be obtained according to the time field and the service field corresponding to the customer information of the customer, so that the transaction processing efficiency of the customer is further improved, and the pressure caused by large data volume and high concurrency is reduced.
In one embodiment, the historical transaction data is from any one of a bank outlet, a bank terminal, and a mobile banking point in any combination. For example, a cell phone bank may locate and therefore obtain location information, i.e., transaction locations, from which the customer's frequent region may be determined.
In one embodiment, determining the frequent location of the customer based on the historical transaction locations comprises:
estimating the probability of the customer in a plurality of areas according to the historical trading places;
and determining the area with the highest probability as the frequent area of the client.
One area may be a large area such as shanghai and beijing, or may be several small areas of a city, and may be defined according to the density of the distributed subsystem deployment. An area includes a plurality of transaction locations. The probability of the customer in each area can be calculated according to the ratio of the number of times of the transaction places appearing in one area to the total number of times of the transactions.
In one embodiment, the frequent region is a region set, and the region set comprises a plurality of frequent regions;
determining the area with the highest probability as the frequent area of the client, comprising the following steps: and determining the areas with the highest probability as the area set of the client.
In step 102, an area field corresponding to the customer information of each customer in the customer set is set, wherein the field can be a certain field of the customer information, so that the transaction routing can be completed on the premise of not changing the existing customer information data.
In an embodiment, the method further comprises:
when a customer conducts transaction at the bank APP terminal, if the customer location information can be obtained, the transaction is routed to the distributed subsystem closest to the location information for processing. By doing so, transactions can be better and faster processed.
In an embodiment, the method further comprises:
if the positioning information of the client in the set duration is not in the frequent region of the client, updating the frequent region of the client;
and updating the area field corresponding to the client information of the client according to the frequent area of the client.
In an embodiment, the method further comprises:
constructing a main area subsystem of a client;
and synchronizing the transaction of the client in the distributed subsystem to the main area subsystem according to a set period.
In the embodiment, the main region subsystem is arranged to facilitate statistics of historical transaction data of the customer, construct a user portrait and realize accurate pushing of the customer.
In step 103, the next transaction time of the customer is predicted according to the historical transaction time, for example, a customer prefers to go to a banking outlet to handle a financial transaction on weekends.
In one embodiment, predicting the next transaction service of the customer based on the historical transaction service comprises:
and determining the next transaction service of the current transaction service of each client according to the dependency relationship of the transaction service in the historical transaction service of each client.
The dependency is based on the sequence of the transactions processed by the customers after a period of time in the historical transaction data of the bank. For example, most customers transact a certain insurance service several days after transacting a certain financial service. Then client a may predict that it is likely to go to transact an insurance service after transacting the financial service for the first few days.
In an embodiment, the method further comprises:
setting a transaction combination field corresponding to the customer information of the customer according to the historical transaction data of the customer set, wherein the transaction combination field is the combination of an area field, a time field and a service field;
and generating resource configuration data of the distributed subsystems for processing the client transaction according to the transaction combination field.
The above embodiment provides another process for generating resource allocation data, which is different from the process from step 101 to step 106, where the process from step 101 to step 106 is a process for performing resource allocation by predicting area, time and transaction services respectively, and the above embodiment is a joint prediction process, i.e. predicting that a customer may go to a certain website to handle a certain financial transaction service on weekdays.
In an embodiment, before generating resource configuration data of a distributed subsystem for processing a customer transaction according to an area field, a time field and a service field corresponding to customer information of each customer in a customer set, the method further includes:
determining a corresponding relation between services and resources according to historical transaction data of a client set;
generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to customer information of each customer in a customer set, wherein the resource configuration data comprises the following steps: and generating resource configuration data of a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of each customer in the customer set and the corresponding relation.
In the above embodiment, more specifically, the probability that the client appears in one area at one time to perform one transaction may be calculated according to the area field, the time field, and the service field, and the resource configuration data of the distributed subsystem that processes the client transaction may be generated according to the probability and the correspondence.
In an embodiment, generating resource configuration data of a distributed subsystem for processing a customer transaction according to an area field, a time field and a service field corresponding to customer information of each customer in a customer set and the corresponding relationship includes:
for each client in the client set, determining a distributed subsystem for processing the client transaction according to the area field corresponding to the client information of the client;
determining resource configuration data corresponding to the client in the distributed subsystem according to the time field and the service field corresponding to the client information of the client and the corresponding relation;
and generating resource configuration data of all the distributed subsystems for processing the customer transaction according to the resource configuration data corresponding to each distributed subsystem.
In an embodiment, determining resource configuration data corresponding to the client in the distributed subsystem according to a time field and a service field corresponding to the client information of the client and the correspondence includes:
searching a relevant client of the client according to historical transaction data of the client, wherein the client and the relevant client form a client cluster corresponding to the client;
and determining the resource configuration data corresponding to the client in the distributed subsystem according to the time field and the service field corresponding to the client information of the client, the corresponding relation and the scale of the client cluster corresponding to the client.
The method for searching the associated client of the client comprises the following steps:
(1) two parties of each transaction, such as an transferring party and a transferring party of a transfer account, are screened out from historical transaction businesses of a plurality of clients of a bank.
(2) For each transaction party, respectively extracting the transaction time, the transaction place and the transaction type of the transaction parties in the historical transaction service and the transaction amount;
(3) if there are a considerable number of transactions showing that both people have handled the same business within a certain time range and a certain area, and the transaction amounts are close, it can be determined that both parties to the transaction are associated customers.
The above method can expand the scope, for example, if both client a and client b have business with clients c and d, then it can also be considered whether client a and client b are associated clients.
In an embodiment, the method further comprises:
and predicting the frequent region, the next transaction time and the next transaction service of the client according to the historical transaction data of the client and the historical transaction data of the associated client.
In the embodiment, historical transaction data of the associated customers are added to predict the transaction elements of the customers, so that the prediction accuracy is improved, namely, the frequent region, the next transaction time and the next transaction service corresponding to the customers are regarded as a set, and the frequent region, the next transaction time and the next transaction service of the associated customers are directly added to the set.
In an embodiment, the method further comprises:
when a customer conducts transaction at a bank APP terminal, recording the actual transaction place, transaction time and transaction service of the customer;
comparing the actual transaction place, transaction time and transaction service of the customer with the frequent region, predicted next transaction time and predicted next transaction service of the customer to determine the prediction accuracy of the customer;
determining a set of customers for which the prediction accuracy is greater than a threshold for all customers in the set of customers;
generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to customer information of each customer in a customer set, wherein the resource configuration data comprises the following steps:
and generating resource configuration data of a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of each customer in the customer set with the prediction accuracy larger than the threshold value.
In the above embodiment, when the total resources are not sufficient, the prediction results with high prediction accuracy are screened out, and then the resources are allocated. Through the above process, the clients with accurate prediction can be reserved, and a part of the clients with wrong prediction can be discarded.
Based on the above embodiments, fig. 2 is a detailed flowchart of a transaction processing method in a distributed system according to an embodiment of the present invention, including:
step 201, acquiring historical transaction data of a customer set in a bank, wherein the historical transaction data comprises a historical transaction place, historical transaction time and historical transaction business;
step 202, estimating the probability of the customer in a plurality of areas according to the historical trading places;
step 203, determining the area with the maximum probability as the frequent area of the client;
step 204, setting an area field corresponding to the client information of the client according to the frequently-located area of the client;
step 205, predicting the next transaction time of the customer according to the historical transaction time, and setting a time field corresponding to the customer information of the customer;
step 206, predicting the next transaction service of the customer according to the historical transaction service, and setting a service field corresponding to the customer information of the customer;
step 207, determining the corresponding relation between the service and the resource according to the historical transaction data of the customer set;
step 208, for each client in the client set, determining a distributed subsystem for processing the client transaction according to the area field corresponding to the client information of the client;
step 209, searching the associated clients of the client according to the historical transaction data of the client, wherein the client and the associated clients form a client cluster corresponding to the client;
step 210, determining resource configuration data corresponding to the client in the distributed subsystem according to the time field and the service field corresponding to the client information of the client, the corresponding relationship and the scale of the client cluster corresponding to the client;
step 211, generating resource allocation data of all distributed subsystems for processing the customer transaction according to the resource allocation data corresponding to each distributed subsystem;
step 212, when the customer makes a transaction at the bank APP terminal, judging whether the customer's positioning information can be obtained, if not, turning to step 213, otherwise, turning to step 214;
step 213, routing the transaction to a distributed subsystem for processing the client transaction according to the area field, the time field and the service field corresponding to the client information of the client, and processing the client transaction by using the resource configuration data of the distributed subsystem;
step 214, the transaction is routed to the distributed subsystem closest to the location information for processing.
Of course, it is understood that the above embodiments may have other combinations of steps, and all the related modifications are within the scope of the present invention.
In summary, in the method provided in the embodiment of the present invention, historical transaction data of a customer set in a bank is obtained, where the historical transaction data includes a historical transaction location, a historical transaction time, and a historical transaction service; determining frequent areas of the customers according to the historical transaction places, and setting an area field corresponding to the customer information of each customer in the customer set; predicting the next transaction time of the customer according to the historical transaction time, and setting a time field corresponding to the customer information of each customer in the customer set; predicting the next transaction service of the customer according to the historical transaction service, and setting a service field corresponding to the customer information of each customer in the customer set; generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to the customer information of each customer in a customer set; when a customer conducts transaction at the bank APP terminal, the transaction is routed to a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of the customer, and the customer transaction is processed by using the resource configuration data of the distributed subsystem. In the embodiment, the transaction of the client is from the fixed route to the distributed subsystem corresponding to the area field corresponding to the client information of the client, namely the distributed subsystem corresponding to the frequently-located area of the client, so that the performance of the transaction system can be greatly improved, and the pressure caused by large data volume and high concurrency is reduced; in addition, the resource configuration data can be obtained according to the time field and the service field corresponding to the customer information of the customer, so that the transaction processing efficiency of the customer is further improved, and the pressure caused by large data volume and high concurrency is reduced.
The embodiment of the invention also provides a device for processing the transaction in the distributed system, the principle of which is similar to that of the method for processing the transaction in the distributed system, and the description is omitted here.
Fig. 3 is a schematic diagram of an apparatus for processing a transaction in a distributed system according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes:
a historical transaction data obtaining module 301, configured to obtain historical transaction data of a customer set at a bank, where the historical transaction data includes a historical transaction location, a historical transaction time, and a historical transaction service;
the first customer information setting module 302 is used for determining the frequent region of the customer according to the historical transaction place and setting a region field corresponding to the customer information of each customer in the customer set;
the second customer information setting module 303 is configured to predict next transaction time of the customer according to the historical transaction time, and set a time field corresponding to the customer information of each customer in the customer set;
a third customer information setting module 304, configured to predict next transaction service of a customer according to the historical transaction service, and set a service field corresponding to the customer information of each customer in the customer set;
a resource allocation module 305, configured to generate resource allocation data of a distributed subsystem for processing a client transaction according to an area field, a time field, and a service field corresponding to client information of each client in a client set;
and the transaction processing module 306 is used for routing the transaction to a distributed subsystem for processing the transaction of the client according to the area field, the time field and the service field corresponding to the client information of the client when the client conducts the transaction at the bank APP terminal, and processing the transaction of the client by using the resource configuration data of the distributed subsystem.
In an embodiment, the resource configuration module is further configured to:
setting a transaction combination field corresponding to the customer information of the customer according to the historical transaction data of the customer set, wherein the transaction combination field is the combination of an area field, a time field and a service field;
and generating resource configuration data of the distributed subsystems for processing the client transaction according to the transaction combination field.
In an embodiment, the resource configuration module is further configured to:
determining a corresponding relation between services and resources according to historical transaction data of a client set;
and generating resource configuration data of a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of each customer in the customer set and the corresponding relation.
In an embodiment, the resource configuration module is further configured to:
for each client in the client set, determining a distributed subsystem for processing the client transaction according to the area field corresponding to the client information of the client;
determining resource configuration data corresponding to the client in the distributed subsystem according to the time field and the service field corresponding to the client information of the client and the corresponding relation;
and generating resource configuration data of all the distributed subsystems for processing the customer transaction according to the resource configuration data corresponding to each distributed subsystem.
In an embodiment, the resource configuration module is further configured to:
searching a relevant client of the client according to historical transaction data of the client, wherein the client and the relevant client form a client cluster corresponding to the client;
and determining the resource configuration data corresponding to the client in the distributed subsystem according to the time field and the service field corresponding to the client information of the client, the corresponding relation and the scale of the client cluster corresponding to the client.
Fig. 4 is another schematic diagram of an apparatus for transaction processing in a distributed system in which the present invention is implemented, and in one embodiment, the apparatus further includes a client screening module 307, configured to:
when a customer conducts transaction at a bank APP terminal, recording the actual transaction place, transaction time and transaction service of the customer;
comparing the actual transaction place, transaction time and transaction service of the customer with the frequent region, predicted next transaction time and predicted next transaction service of the customer to determine the prediction accuracy of the customer;
determining a set of customers for which the prediction accuracy is greater than a threshold for all customers in the set of customers;
the resource configuration module is further configured to: and generating resource configuration data of a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of each customer in the customer set with the prediction accuracy larger than the threshold value.
In an embodiment, the apparatus further comprises a main area subsystem build module 308 to:
constructing a main area subsystem of a client;
and synchronizing the transaction of the client in the distributed subsystem to the main area subsystem according to a set period.
In summary, in the apparatus provided in the embodiment of the present invention, historical transaction data of a customer set in a bank is obtained, where the historical transaction data includes a historical transaction location, a historical transaction time, and a historical transaction service; determining frequent areas of the customers according to the historical transaction places, and setting an area field corresponding to the customer information of each customer in the customer set; predicting the next transaction time of the customer according to the historical transaction time, and setting a time field corresponding to the customer information of each customer in the customer set; predicting the next transaction service of the customer according to the historical transaction service, and setting a service field corresponding to the customer information of each customer in the customer set; generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to the customer information of each customer in a customer set; when a customer conducts transaction at the bank APP terminal, the transaction is routed to a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of the customer, and the customer transaction is processed by using the resource configuration data of the distributed subsystem. In the embodiment, the transaction of the client is from the fixed route to the distributed subsystem corresponding to the area field corresponding to the client information of the client, namely the distributed subsystem corresponding to the frequently-located area of the client, so that the performance of the transaction system can be greatly improved, and the pressure caused by large data volume and high concurrency is reduced; in addition, the resource configuration data can be obtained according to the time field and the service field corresponding to the customer information of the customer, so that the transaction processing efficiency of the customer is further improved, and the pressure caused by large data volume and high concurrency is reduced.
An embodiment of the present invention further provides a computer device, and fig. 5 is a schematic diagram of a computer device in an embodiment of the present invention, where the computer device is capable of implementing all steps in the method for transaction processing in a distributed system in the foregoing embodiment, and the computer device specifically includes the following contents:
a processor (processor)501, a memory (memory)502, a communication Interface (Communications Interface)503, and a communication bus 504;
the processor 501, the memory 502 and the communication interface 503 complete mutual communication through the communication bus 504; the communication interface 503 is used for implementing information transmission between related devices such as server-side devices, detection devices, and user-side devices;
the processor 501 is used to call the computer program in the memory 502, and when the processor executes the computer program, the processor implements all the steps of the method for processing the transaction in the distributed system in the above embodiment.
An embodiment of the present invention also provides a computer-readable storage medium, which can implement all the steps of the method for transaction processing in a distributed system in the above-mentioned embodiment, and the computer-readable storage medium stores thereon a computer program, which, when executed by a processor, implements all the steps of the method for transaction processing in a distributed system in the above-mentioned embodiment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing 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 data processing 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 data processing 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.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of transaction processing in a distributed system, comprising:
acquiring historical transaction data of a customer set in a bank, wherein the historical transaction data comprises a historical transaction place, historical transaction time and historical transaction business;
determining frequent areas of the customers according to the historical transaction places, and setting an area field corresponding to the customer information of each customer in the customer set;
predicting the next transaction time of the customer according to the historical transaction time, and setting a time field corresponding to the customer information of each customer in the customer set;
predicting the next transaction service of the customer according to the historical transaction service, and setting a service field corresponding to the customer information of each customer in the customer set;
generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to the customer information of each customer in a customer set;
when a customer conducts transaction at the bank APP terminal, the transaction is routed to a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of the customer, and the customer transaction is processed by using the resource configuration data of the distributed subsystem.
2. A method of transaction processing in a distributed system as claimed in claim 1, further comprising:
setting a transaction combination field corresponding to the customer information of the customer according to the historical transaction data of the customer set, wherein the transaction combination field is the combination of an area field, a time field and a service field;
and generating resource configuration data of the distributed subsystems for processing the client transaction according to the transaction combination field.
3. The method of transaction processing in a distributed system as claimed in claim 1, further comprising, before generating resource configuration data for a distributed subsystem processing a customer transaction based on the area field, time field and business field corresponding to the customer information for each customer in the set of customers:
determining a corresponding relation between services and resources according to historical transaction data of a client set;
generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to customer information of each customer in a customer set, wherein the resource configuration data comprises the following steps: and generating resource configuration data of a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of each customer in the customer set and the corresponding relation.
4. The method of transaction processing in a distributed system according to claim 3, wherein generating resource configuration data of a distributed subsystem for processing a client transaction according to an area field, a time field and a service field corresponding to the client information of each client in the client set and the correspondence comprises:
for each client in the client set, determining a distributed subsystem for processing the client transaction according to the area field corresponding to the client information of the client;
determining resource configuration data corresponding to the client in the distributed subsystem according to the time field and the service field corresponding to the client information of the client and the corresponding relation;
and generating resource configuration data of all the distributed subsystems for processing the customer transaction according to the resource configuration data corresponding to each distributed subsystem.
5. The method of claim 4, wherein determining the resource allocation data of the client in the distributed subsystem according to the time field and the service field corresponding to the client information of the client and the correspondence relationship comprises:
searching a relevant client of the client according to historical transaction data of the client, wherein the client and the relevant client form a client cluster corresponding to the client;
and determining the resource configuration data corresponding to the client in the distributed subsystem according to the time field and the service field corresponding to the client information of the client, the corresponding relation and the scale of the client cluster corresponding to the client.
6. A method of transaction processing in a distributed system as claimed in claim 1, further comprising:
when a customer conducts transaction at a bank APP terminal, recording the actual transaction place, transaction time and transaction service of the customer;
comparing the actual transaction place, transaction time and transaction service of the customer with the frequent region, predicted next transaction time and predicted next transaction service of the customer to determine the prediction accuracy of the customer;
determining a set of customers for which the prediction accuracy is greater than a threshold for all customers in the set of customers;
generating resource configuration data of a distributed subsystem for processing customer transactions according to an area field, a time field and a service field corresponding to customer information of each customer in a customer set, wherein the resource configuration data comprises the following steps:
and generating resource configuration data of a distributed subsystem for processing the customer transaction according to the area field, the time field and the service field corresponding to the customer information of each customer in the customer set with the prediction accuracy larger than the threshold value.
7. A method of transaction processing in a distributed system as claimed in claim 1, further comprising:
constructing a main area subsystem of a client;
and synchronizing the transaction of the client in the distributed subsystem to the main area subsystem according to a set period.
8. An apparatus for transaction processing in a distributed system, comprising:
the historical transaction data acquisition module is used for acquiring historical transaction data of a customer set in a bank, wherein the historical transaction data comprises historical transaction places, historical transaction time and historical transaction services;
the first customer information setting module is used for determining the frequent region of the customer according to the historical transaction place and setting a region field corresponding to the customer information of each customer in the customer set;
the second customer information setting module is used for predicting the next transaction time of the customer according to the historical transaction time and setting a time field corresponding to the customer information of each customer in the customer set;
the third customer information setting module is used for predicting the next transaction service of the customer according to the historical transaction service and setting a service field corresponding to the customer information of each customer in the customer set;
the resource allocation module is used for generating resource allocation data of a distributed subsystem for processing the client transaction according to the area field, the time field and the service field corresponding to the client information of each client in the client set;
and the transaction processing module is used for routing the transaction to a distributed subsystem for processing the transaction of the client according to the area field, the time field and the service field corresponding to the client information of the client when the client conducts the transaction at the bank APP terminal, and processing the transaction of the client by using the resource configuration data of the distributed subsystem.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 7.
CN202110709986.XA 2021-06-25 Method and device for processing transaction in distributed system Active CN113269558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110709986.XA CN113269558B (en) 2021-06-25 Method and device for processing transaction in distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110709986.XA CN113269558B (en) 2021-06-25 Method and device for processing transaction in distributed system

Publications (2)

Publication Number Publication Date
CN113269558A true CN113269558A (en) 2021-08-17
CN113269558B CN113269558B (en) 2024-06-28

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208893A (en) * 2022-05-23 2022-10-18 中国银行股份有限公司 Resource scheduling method and device

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516778A (en) * 2012-06-18 2014-01-15 国际商业机器公司 Method and system for risk-based dynamic geo-location based replication of services in cloud computing
CN103685072A (en) * 2013-11-27 2014-03-26 中国电子科技集团公司第三十研究所 Method for quickly distributing network flow
CN104217088A (en) * 2013-05-30 2014-12-17 中国电信股份有限公司 Optimizing method and system of mobile service resources of operator
CN105340311A (en) * 2014-06-05 2016-02-17 华为技术有限公司 Network device, apparatus and method for network traffic prediction
US20170193410A1 (en) * 2016-01-04 2017-07-06 Bank Of America Corporation Alternative channel selection based on predictive work flow
CN108537941A (en) * 2018-03-30 2018-09-14 深圳市零度智控科技有限公司 Bank queuing management method and system, server and storage medium
CN108683692A (en) * 2018-03-16 2018-10-19 阿里巴巴集团控股有限公司 A kind of service request processing method and device
CN109919755A (en) * 2019-02-15 2019-06-21 中国银行股份有限公司 Mobile banking's dot data processing method, server and system
CN110796399A (en) * 2020-01-03 2020-02-14 支付宝(杭州)信息技术有限公司 Resource allocation method and device based on block chain
CN110874797A (en) * 2018-08-31 2020-03-10 阿里巴巴集团控股有限公司 Resource allocation method and resource allocation device
CN111210053A (en) * 2019-12-20 2020-05-29 中国银行股份有限公司 Resource information configuration method and device and server
CN111598360A (en) * 2020-07-24 2020-08-28 北京淇瑀信息科技有限公司 Service policy determination method and device and electronic equipment
CN111967971A (en) * 2020-08-18 2020-11-20 中国银行股份有限公司 Bank client data processing method and device
CN112085266A (en) * 2020-08-28 2020-12-15 云粒智慧科技有限公司 Government affair data processing method and device, electronic equipment and storage medium
CN112101674A (en) * 2020-09-22 2020-12-18 广东睿盟计算机科技有限公司 Resource allocation matching method, device, equipment and medium based on group intelligent algorithm
CN112101675A (en) * 2020-09-22 2020-12-18 广东睿盟计算机科技有限公司 Method, device, equipment and medium for measuring resource configuration reasonableness based on KL divergence
CN112738851A (en) * 2020-12-16 2021-04-30 北京邮电大学 Intelligent resource allocation system based on prediction mobile edge network and allocation method thereof

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516778A (en) * 2012-06-18 2014-01-15 国际商业机器公司 Method and system for risk-based dynamic geo-location based replication of services in cloud computing
CN104217088A (en) * 2013-05-30 2014-12-17 中国电信股份有限公司 Optimizing method and system of mobile service resources of operator
CN103685072A (en) * 2013-11-27 2014-03-26 中国电子科技集团公司第三十研究所 Method for quickly distributing network flow
CN105340311A (en) * 2014-06-05 2016-02-17 华为技术有限公司 Network device, apparatus and method for network traffic prediction
US20170193410A1 (en) * 2016-01-04 2017-07-06 Bank Of America Corporation Alternative channel selection based on predictive work flow
CN108683692A (en) * 2018-03-16 2018-10-19 阿里巴巴集团控股有限公司 A kind of service request processing method and device
CN108537941A (en) * 2018-03-30 2018-09-14 深圳市零度智控科技有限公司 Bank queuing management method and system, server and storage medium
CN110874797A (en) * 2018-08-31 2020-03-10 阿里巴巴集团控股有限公司 Resource allocation method and resource allocation device
CN109919755A (en) * 2019-02-15 2019-06-21 中国银行股份有限公司 Mobile banking's dot data processing method, server and system
CN111210053A (en) * 2019-12-20 2020-05-29 中国银行股份有限公司 Resource information configuration method and device and server
CN110796399A (en) * 2020-01-03 2020-02-14 支付宝(杭州)信息技术有限公司 Resource allocation method and device based on block chain
CN111598360A (en) * 2020-07-24 2020-08-28 北京淇瑀信息科技有限公司 Service policy determination method and device and electronic equipment
CN111967971A (en) * 2020-08-18 2020-11-20 中国银行股份有限公司 Bank client data processing method and device
CN112085266A (en) * 2020-08-28 2020-12-15 云粒智慧科技有限公司 Government affair data processing method and device, electronic equipment and storage medium
CN112101674A (en) * 2020-09-22 2020-12-18 广东睿盟计算机科技有限公司 Resource allocation matching method, device, equipment and medium based on group intelligent algorithm
CN112101675A (en) * 2020-09-22 2020-12-18 广东睿盟计算机科技有限公司 Method, device, equipment and medium for measuring resource configuration reasonableness based on KL divergence
CN112738851A (en) * 2020-12-16 2021-04-30 北京邮电大学 Intelligent resource allocation system based on prediction mobile edge network and allocation method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208893A (en) * 2022-05-23 2022-10-18 中国银行股份有限公司 Resource scheduling method and device
CN115208893B (en) * 2022-05-23 2024-04-16 中国银行股份有限公司 Resource scheduling method and device

Similar Documents

Publication Publication Date Title
CN110717076B (en) Node management method, device, computer equipment and storage medium
CN111277639B (en) Method and device for maintaining data consistency
WO2016110121A1 (en) Method and device for data rasterization and method and device for analyzing user behavior
CN106055630A (en) Log storage method and device
CN110809317A (en) Multi-source dynamic grid network RTK positioning method, system, terminal and storage medium
CN112764920A (en) Edge application deployment method, device, equipment and storage medium
CN112615793A (en) Data current limiting method and device
CN114172966A (en) Service calling method and device and service processing method and device under unitized architecture
CN114282011A (en) Knowledge graph construction method and device, and graph calculation method and device
CN110347973B (en) Method and device for generating information
CN112306695A (en) Data processing method and device, electronic equipment and computer storage medium
CN112433757A (en) Method and device for determining interface calling relationship
CN113269558A (en) Transaction processing method and device in distributed system
CN113269558B (en) Method and device for processing transaction in distributed system
CN110909072B (en) Data table establishment method, device and equipment
CN111400520A (en) Construction method of face recognition library, face payment method, device and system
CN116414628A (en) Transaction request processing method and device in new and old system switching process
CN115510366A (en) Business message pushing method and device, computer equipment and storage medium
CN114968950A (en) Task processing method and device, electronic equipment and medium
CN111866171B (en) Message processing method, device, electronic equipment and medium
CN114579054A (en) Data processing method and device, electronic equipment and computer readable medium
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN111813833A (en) Real-time two-degree communication relation data mining method
US8347203B1 (en) Methods and systems for defining a form navigational structure
CN115022324B (en) Method and system for processing network point cluster based on edge calculation

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