CN115543653A - Super network bank method and system based on MQ message distribution - Google Patents

Super network bank method and system based on MQ message distribution Download PDF

Info

Publication number
CN115543653A
CN115543653A CN202211135837.8A CN202211135837A CN115543653A CN 115543653 A CN115543653 A CN 115543653A CN 202211135837 A CN202211135837 A CN 202211135837A CN 115543653 A CN115543653 A CN 115543653A
Authority
CN
China
Prior art keywords
message
queue
sending
receiving
pmts
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.)
Pending
Application number
CN202211135837.8A
Other languages
Chinese (zh)
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 CN202211135837.8A priority Critical patent/CN115543653A/en
Publication of CN115543653A publication Critical patent/CN115543653A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/256Integrating or interfacing systems involving database management systems in federated or virtual databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a super network bank distributing method and system based on MQ message distribution, wherein the method is executed by an MQ message distribution system side, and the method comprises the following steps: monitoring messages in a PMTS message sending queue; when a message exists in the PMTS system message sending queue, taking out the message; analyzing the extracted message to obtain corresponding message characteristics; and selecting a corresponding message receiving and transmitting system queue according to the message characteristics, and transmitting the message to the message receiving and transmitting system through the message receiving and transmitting system queue, wherein a plurality of message receiving and transmitting systems are in one-to-one correspondence with a plurality of databases. By using the method of the application to carry out super network bank division, the existing codes do not need to be modified, and only the logic implementation codes need to be newly added in the newly added MQ message distribution system, so that the burden on the existing codes is not increased, a large amount of test work can be avoided, and the cost is reduced.

Description

Super network bank method and system based on MQ message distribution
Technical Field
The invention relates to the technical field of database partitioning, in particular to a super network bank partitioning method and system based on MQ message distribution.
Background
In the super online banking system of the bank at present, due to the fact that the amount of business is increased and the pressure of an original database is too large, the business needs to be shunted, namely two or more databases are adopted, and different businesses are limited to be operated in different databases.
The PMTS System is a Payment message transmission platform, is deployed in each commercial bank, and is used for performing message transmission with a System in a commercial bank line, and the super Internet Banking System, i.e., an Internet Banking Payment and clearing System (IBPS), mainly receives various Payment messages, information messages and management messages from the PMTS System.
Although the message sent from the PMTS can be shunted to different databases of the super internet bank system by modifying the code, modifying the code will increase the burden on the existing code, and will also require a lot of testing work, and the cost will increase.
Disclosure of Invention
In view of the above, the present invention provides a super internet banking method and system based on MQ message distribution to solve at least one of the above-mentioned problems.
In order to achieve the purpose, the invention adopts the following scheme:
according to a first aspect of the present invention, there is provided a super internet banking method based on MQ message distribution, the method being performed by an MQ message distribution system side, the method comprising: monitoring messages in a PMTS message sending queue; when a message exists in the PMTS system message sending queue, taking out the message; analyzing the extracted message to obtain corresponding message characteristics; and selecting a corresponding message receiving and transmitting system queue according to the message characteristics, and transmitting the message to the message receiving and transmitting system through the message receiving and transmitting system queue, wherein a plurality of message receiving and transmitting systems are in one-to-one correspondence with a plurality of databases.
According to a second aspect of the present invention, there is provided a super internet banking system based on MQ message distribution, the system comprising: the system comprises a PMTS system, an MQ message distribution system and a plurality of message receiving and transmitting systems, wherein the MQ message distribution system is respectively in communication connection with the PMTS system and the plurality of message receiving and transmitting systems, and is used for: monitoring the messages in the PMTS system message sending queue; when a message exists in the PMTS system message sending queue, taking out the message; analyzing the extracted message to obtain corresponding message characteristics; and selecting a corresponding message receiving and sending system queue according to the message characteristics, and sending the message to a corresponding message receiving and sending system through the message receiving and sending system queue.
According to a third aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
According to a fourth aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to a fifth aspect of the invention, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the above method.
According to the technical scheme, the super internet bank is partitioned by using the method, the existing code does not need to be modified, and only the logic implementation code needs to be newly added in the newly added MQ message distribution system, so that the load of the existing code cannot be increased, a large amount of test work can be avoided, and the cost 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 embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts. In the drawings:
fig. 1 is a schematic structural diagram of a super internet banking system based on MQ message distribution according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an MQ message distribution system provided by an embodiment of the present application;
fig. 3 is a flowchart illustrating a super internet banking method based on MQ message distribution according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a super internet banking method based on MQ message distribution according to another embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present 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 order to clarify the present application, the technical terms related to the present application are briefly described as follows:
the term "MQ messaging middleware," a supporting software system that provides synchronous or asynchronous, reliable messaging for application systems in a network environment based on queue and messaging techniques.
The term "message listening" means that the program automatically takes a message away when there is a message in the queue.
The term "message distribution" is similar to the process of splitting a message to re-forward a received message to a different route according to some rule.
The term "sub-base", before super network bank, one base for all services is changed into the requirement of operating two bases according to the services.
The terms S library and R library refer to two databases after the super Internet banking system is divided into libraries.
Fig. 1 is a schematic structural diagram of a super internet banking system based on MQ message distribution according to an embodiment of the present application, where the system includes: the PMTS system 100, the MQ message distribution system 200, the messaging system a, and the messaging system B, it should be noted that there may be more than two messaging systems in this application, and in this embodiment, for convenience of description, only two messaging systems are listed. As can be seen from fig. 1, the MQ message distribution system 200 is communicatively coupled to the PMTS system 100, the messaging system a, and the messaging system B, respectively.
In this embodiment, the messaging system a and the messaging system B and their corresponding databases represent the super internet banking system in the present application, wherein the message received by the messaging system a is set to be executed only on the R bank, and the message received by the messaging system B is set to be executed only on the S bank. The S library and the R library are two independent databases which are separated from the original database by the super Internet banking system.
Messages sent by the PMTS system 100 enter a PMTS system message send-out queue, which may comprise a plurality of queues, such as queues 1-4 in fig. 1, and the PMTS system may randomly send sent messages to the MQ message distribution system 200 through one of queues 1-4 according to a load balancing principle.
The MQ message distribution system 200 is a system added between the PMTS system and the super internet banking system in the present application, and is composed of an MQ message middleware. As shown in fig. 2, the MQ message distribution system 200 includes: the message interception unit 210, the message receiving unit 220, the message parsing unit 230, and the message sending unit 240 are connected in sequence.
The message interception unit 210 is configured to intercept a message in a PMTS system message sending queue.
The message receiving unit 220 is configured to take out a PMTS system message when the message exists in the message sending queue.
The message parsing unit 230 is configured to parse the message received by the message receiving unit 220 to obtain a corresponding message characteristic.
Preferably, in this embodiment, the message feature may include: the message type, the message length, etc. can be used as long as it can distinguish what service each message belongs to, that is, the message can be mapped to a specific service through the message characteristic, and the message receiving and transmitting system can process different service messages respectively, so that the message can be mapped to the corresponding message receiving and transmitting system. And then reflecting the mapping relation to code logic judgment through code programming to realize the purpose of message distribution.
The message sending unit 240 is configured to select a corresponding messaging system queue according to the message characteristics, and send the message taken out from the PMTS system message sending queue to the corresponding messaging system through the messaging system queue (i.e. the queue R or the queue S in fig. 1). After receiving the message, the message receiving and sending system performs corresponding operation on the corresponding database, so that the two separated databases respectively execute the message receiving corresponding to the two databases.
Preferably, the message sending unit 240 only sends the message to the messaging system queue, such as the queue R or the queue S in fig. 1, which is intercepted by the messaging systems a and B, for example, when the messaging system a intercepts a message in the queue R, the message is taken out from the queue R, and then the message is executed on the corresponding R bank.
According to the technical scheme, the super-network bank system based on MQ message distribution does not need to modify the existing codes, only needs to newly add logic implementation codes in the newly added MQ message distribution system, and therefore, the burden of the existing codes is not increased, a large amount of test work can be avoided, and the cost is reduced.
Fig. 3 is a schematic flow chart of a super internet banking method based on MQ message distribution according to an embodiment of the present application, where the method is performed by an MQ message distribution system side, and the method includes the steps of:
step S301: and intercepting the messages in the message sending queue of the PMTS system.
Step S302: and when the message exists in the PMTS system message sending queue, taking out the message.
Step S303: and analyzing the extracted message to obtain the corresponding message characteristic.
Step S304: selecting a corresponding message receiving and transmitting system queue according to the message characteristics, and transmitting the message to the message receiving and transmitting system through the message receiving and transmitting system queue, wherein the number of the message receiving and transmitting systems is multiple, and the message receiving and transmitting systems are in one-to-one correspondence with the databases.
According to the technical scheme, the super-network bank method based on MQ message distribution does not need to modify the existing codes, only needs to newly add logic implementation codes in a newly added MQ message distribution system, and therefore, the burden of the existing codes is not increased, a large amount of test work can be avoided, and the cost is reduced.
Fig. 4 is a schematic flowchart of a super internet banking method based on MQ message distribution according to another embodiment of the present application, where the method is executed by a MQ message distribution system side, and the method includes the steps of:
step S401: and intercepting the messages in the message sending queue of the PMTS system.
Preferably, the PMTS system message sending queue includes a plurality of queues, and the PMTS system sends the message to the plurality of queues according to a load balancing principle.
Step S402: and when the message exists in the PMTS system message sending queue, taking out the message.
Step S403: and analyzing the extracted message to obtain the corresponding message characteristic.
Preferably, the message characteristics in this step may include: message type, message length. . . .
Step S404: and selecting a corresponding message receiving and transmitting system queue according to the message characteristics, and transmitting the message to the message receiving and transmitting system queue.
Step S405: and the message receiving and sending system monitors the message receiving and sending system queue.
Step S406: when there is message in the queue of the receiving and transmitting system, the receiving and transmitting system takes out the message from it and executes it on the corresponding database.
According to the technical scheme, the super-network bank method based on MQ message distribution does not need to modify the existing codes, only needs to newly add logic implementation codes in a newly added MQ message distribution system, and therefore, the burden of the existing codes is not increased, a large amount of test work can be avoided, and the cost is reduced.
Fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present invention. The electronic device shown in fig. 5 is a general-purpose data processing apparatus comprising a general-purpose computer hardware structure including at least a processor 601 and a memory 602. The processor 601 and the memory 602 are connected by a bus 603. The memory 602 is adapted to store one or more instructions or programs executable by the processor 601. The one or more instructions or programs are executed by processor 601 to implement the steps in the above-described MQ message distribution-based super internet banking method.
The processor 601 may be a stand-alone microprocessor or a collection of one or more microprocessors. Thus, the processor 601 implements the processing of data and the control of other devices by executing commands stored in the memory 602 to thereby execute the method flows of the embodiments of the present invention as described above. The bus 603 connects the above components together, as well as to a display controller 604 and a display device and input/output (I/O) device 605. Input/output (I/O) device 605 may be a mouse, keyboard, modem, network interface, touch input device, motion sensitive input device, printer, and other devices known in the art. Typically, input/output (I/O) devices 605 are connected to the system through an input/output (I/O) controller 606.
The memory 602 may store, among other things, software components such as an operating system, communication modules, interaction modules, and application programs. Each of the modules and applications described above corresponds to a set of executable program instructions that perform one or more functions and methods described in embodiments of the invention.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the above-mentioned super internet banking method based on MQ message distribution.
Embodiments of the present invention further provide a computer program product, which includes a computer program/instruction, and the computer program/instruction, when executed by a processor, implement the steps of the above super internet banking method based on MQ message distribution.
In summary, the super internet bank partitioning method and system based on MQ message distribution provided by the application do not need to modify the existing codes, and only need to add a logic implementation code in the newly added MQ message distribution system, so that the load on the existing codes is not increased, a large amount of test work can be avoided, and the cost is reduced.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments which fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
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 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 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 provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and should not be used to limit the scope of the present invention, and any modifications, equivalents, 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 (11)

1. A super internet banking method based on MQ message distribution, characterized in that the method is executed by an MQ message distribution system side, and the method comprises:
monitoring messages in a PMTS message sending queue;
when a message exists in the PMTS system message sending queue, taking out the message;
analyzing the extracted message to obtain corresponding message characteristics;
selecting a corresponding message receiving and transmitting system queue according to the message characteristics, and transmitting the message to the message receiving and transmitting system through the message receiving and transmitting system queue, wherein the number of the message receiving and transmitting systems is multiple, and the message receiving and transmitting systems are in one-to-one correspondence with the databases.
2. The MQ message distribution-based super-net banking method according to claim 1, wherein the PMTS system message issuance queue comprises a plurality of queues to which the PMTS system issues messages according to a load balancing principle.
3. The MQ message distribution-based super-net banking method of claim 1, wherein sending the message to the messaging system through the messaging system queue comprises: and sending the message to the message receiving and sending system queue, wherein the message receiving and sending system queue is intercepted by the message receiving and sending system, and the message is taken out when the message receiving and sending system intercepts the message in the message receiving and sending system queue.
4. The MQ message distribution-based super-net banking method of claim 1, wherein the message characteristics comprise a message type.
5. A super internet banking system based on MQ message distribution, the system comprising: the system comprises a PMTS system, an MQ message distribution system and a plurality of message receiving and transmitting systems, wherein the MQ message distribution system is respectively in communication connection with the PMTS system and the plurality of message receiving and transmitting systems, and is used for: monitoring the messages in the PMTS system message sending queue; when a message exists in the PMTS system message sending queue, taking out the message; analyzing the extracted message to obtain corresponding message characteristics; and selecting a corresponding message receiving and sending system queue according to the message characteristics, and sending the message to a corresponding message receiving and sending system through the message receiving and sending system queue.
6. The MQ message distribution-based super-net banking system according to claim 5, wherein the PMTS system message issuance queue comprises a plurality of queues to which the PMTS system issues messages according to a load balancing principle.
7. The MQ message distribution-based super-network banking system of claim 5, wherein the MQ message distribution system sending the message to the messaging system through the messaging system queue comprises: and sending the message to the message receiving and sending system queue, wherein the message receiving and sending system queue is intercepted by the message receiving and sending system, and the message is taken out when the message receiving and sending system intercepts the message in the message receiving and sending system queue.
8. The MQ message distribution-based super-net banking system according to claim 5, wherein the message features comprise: the type of the message.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
11. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the steps of the method of any of claims 1 to 4.
CN202211135837.8A 2022-09-19 2022-09-19 Super network bank method and system based on MQ message distribution Pending CN115543653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211135837.8A CN115543653A (en) 2022-09-19 2022-09-19 Super network bank method and system based on MQ message distribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211135837.8A CN115543653A (en) 2022-09-19 2022-09-19 Super network bank method and system based on MQ message distribution

Publications (1)

Publication Number Publication Date
CN115543653A true CN115543653A (en) 2022-12-30

Family

ID=84727432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211135837.8A Pending CN115543653A (en) 2022-09-19 2022-09-19 Super network bank method and system based on MQ message distribution

Country Status (1)

Country Link
CN (1) CN115543653A (en)

Similar Documents

Publication Publication Date Title
US11503109B2 (en) Processing an operation with a plurality of processing steps
WO2002019148A2 (en) Automated system and method for designing model based architectures of information systems
CN111045911B (en) Performance test method, performance test device, storage medium and electronic equipment
CN107168749A (en) A kind of Compilation Method, device, equipment and computer-readable recording medium
AU2020399282B2 (en) Controlling transaction requests between applications and servers
CN103324713A (en) Data processing method and device in multistage server and data processing system
CN105761039A (en) Method for processing express delivery information big data
JP4495688B2 (en) Verification system
CN111984505A (en) Operation and maintenance data acquisition engine and acquisition method
CN114742000A (en) SoC chip verification system, verification method and device based on FPGA cluster
CN111290942A (en) Pressure testing method, device and computer readable medium
US11881996B2 (en) Input and output for target device communication
CN111767126A (en) System and method for distributed batch processing
CN110807058B (en) Method and system for exporting data
CN115543653A (en) Super network bank method and system based on MQ message distribution
CN115328457A (en) Method and device for realizing form page based on parameter configuration
CN110928679B (en) Resource allocation method and device
CN112115118B (en) Database pressure measurement optimization method and device, storage medium and electronic equipment
CN114070889A (en) Configuration method, traffic forwarding method, device, storage medium, and program product
CN113961641A (en) Database synchronization method, device, equipment and storage medium
CN113434278A (en) Data aggregation system, method, electronic device, and storage medium
US9098557B2 (en) Application accelerator
CN109818767B (en) Method and device for adjusting Redis cluster capacity and storage medium
CN111200529A (en) System and method for improving access efficiency of gold tax disk group
KR100756448B1 (en) Message routing transaction System and the transaction method thereof

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