CN114640503A - Application system verification method and device, computer equipment and storage medium - Google Patents

Application system verification method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114640503A
CN114640503A CN202210163785.9A CN202210163785A CN114640503A CN 114640503 A CN114640503 A CN 114640503A CN 202210163785 A CN202210163785 A CN 202210163785A CN 114640503 A CN114640503 A CN 114640503A
Authority
CN
China
Prior art keywords
message
response message
asynchronous
new system
request
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
CN202210163785.9A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202210163785.9A priority Critical patent/CN114640503A/en
Publication of CN114640503A publication Critical patent/CN114640503A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure relates to a verification method and device of an application system, a computer device and a storage medium. The method comprises the steps of obtaining a request message by receiving a transaction request, then synchronously forwarding the request message to an original system, and receiving a synchronous response message fed back by the original system after receiving the request message. Meanwhile, the request message is forwarded to a new system, and an asynchronous response message fed back by the new system after receiving the request message is received. And comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system, verifying on an application side of the system, checking whether output elements of the new system and the original system after processing the same request are consistent, and quickly and accurately verifying the translation correctness of the new system and the original system.

Description

Application system verification method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of big data intelligent analysis technology, and in particular, to a verification method and apparatus for an application system, a computer device, and a storage medium.
Background
The bank application system is used as a key information infrastructure, and the safe and stable operation of the bank application system is particularly important. In the process of carrying out localization or basic software and hardware integral translation on a bank application system with high requirements on safety and reliability, in order to keep a transaction line stable and reduce the influence on components of a peripheral system, the translation system is generally required to not change the original business and processing logic on the transaction line, keep an external interface unchanged and realize smooth migration. Of which verification of correctness after administration is particularly important.
At present, a method for verifying the translation correctness of a bank application system generally switches transactions from an old system to a new system in batches according to a switching strategy and performs service verification, and rollback or version repair operation is performed when the service verification fails. The translation of the bank application system is to verify the correctness of the migration as much as possible before the new system formally provides the service to the outside, the existing method has the data consistency check at the database side, and the quantity of database tables and the quantity of rows are compared by using a third-party data comparison tool; comparing the consistency of the data before data extraction and after playback; and carrying out data block consistency comparison on the database table by adopting a timestamp segmentation mode without stopping. The existing database side verification cannot detect whether the elements output by the new system and the old system after processing the same request are consistent or not, and cannot quickly and accurately verify the new system and the original system.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device, and a storage medium for verifying an application system, which can perform verification on the application side of the system and check whether output elements of a new system and an original system after processing the same request are consistent.
In a first aspect, the present disclosure provides a method for verifying an application system. The method comprises the following steps:
receiving a transaction request, and obtaining a request message according to the transaction request;
forwarding the request message to an original system, and receiving a synchronous response message fed back by the original system after receiving the request message, wherein the forwarding comprises synchronous forwarding;
forwarding the request message to a new system, and receiving an asynchronous response message fed back by the new system after receiving the request message;
respectively acquiring message objects of the synchronous response message and the asynchronous response message, wherein the message objects are obtained by analyzing a message sequence in a character string form;
and comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system.
In one embodiment, the forwarding the request packet to a new system, and the receiving an asynchronous response packet fed back by the new system after receiving the request packet includes:
and asynchronously forwarding the request message to an asynchronous forwarding module, and receiving an asynchronous response message fed back by the asynchronous forwarding module after receiving the request message, wherein the asynchronous forwarding module synchronously forwards the request message to a new system.
In one embodiment, after forwarding the request packet to a new system and receiving an asynchronous response packet fed back by the new system after receiving the request packet, the method further includes:
sending the synchronous response message and the asynchronous response message to a message recording module, wherein the message recording module is used for storing the synchronous response message and the asynchronous response message;
comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system, wherein the verification result comprises:
and comparing the message object of the synchronous response message and the message object of the asynchronous response message stored in the message recording module to obtain a verification result of the service application consistency of the original system and the new system.
In one embodiment, the message recording module is configured to store the synchronous response message and the asynchronous response message, and includes:
respectively acquiring the characteristic information of the synchronous response message and the asynchronous response message, wherein the characteristic information comprises the combination of a unique mark number of the message and a message service code field;
storing the characteristic information of the synchronous response message in an identification field of an original system, wherein the identification field of the original system is obtained by an index corresponding to the original system;
and storing the characteristic information of the asynchronous response message in an identification field of a new system, wherein the identification field of the new system is obtained through an index corresponding to the new system.
In one embodiment, the message recording module is configured to store the synchronous response message and the asynchronous response message, and further includes:
and storing the synchronous response message in a message field of an original system, and storing the asynchronous response message in a message field of a new system.
In one embodiment, the method further comprises:
and comparing the message object of the synchronous response message with the message object of the asynchronous response message according to a preset rule to obtain a verification result of the service application consistency of the original system and the new system, wherein the preset rule comprises a custom comparison message node path and a message time field.
In a second aspect, the present disclosure also provides an authentication apparatus for an application system. The device comprises:
the transaction request receiving module is used for receiving a transaction request and obtaining a request message according to the transaction request;
a synchronous response message module, configured to forward the request message to an original system, and receive a synchronous response message fed back by the original system after receiving the request message, where the forwarding includes synchronous forwarding;
the asynchronous response message module is used for forwarding the request message to a new system and receiving an asynchronous response message fed back by the new system after receiving the request message;
a message object obtaining module, configured to obtain message objects of the synchronous response message and the asynchronous response message, respectively, where the message objects are obtained by analyzing a message sequence in a character string form;
and the comparison module is used for comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system.
In one embodiment, the asynchronous response message module is specifically configured to:
and asynchronously forwarding the request message to an asynchronous forwarding module, and receiving an asynchronous response message fed back by the asynchronous forwarding module after receiving the request message, wherein the asynchronous forwarding module synchronously forwards the request message to a new system.
In one embodiment, after the asynchronous response message module, the apparatus further includes:
the storage module is used for sending the synchronous response message and the asynchronous response message to a message recording module, and the message recording module is used for storing the synchronous response message and the asynchronous response message;
comparing the synchronous response message with the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system, wherein the verification result comprises:
and the result module is used for comparing the message object of the synchronous response message and the message object of the asynchronous response message stored in the message recording module to obtain a verification result of the service application consistency of the original system and the new system.
In one embodiment, the storage module is specifically configured to:
respectively acquiring the characteristic information of the synchronous response message and the asynchronous response message, wherein the characteristic information comprises the combination of a unique mark number of the message and a message service code field;
storing the characteristic information of the synchronous response message in an identification field of an original system, wherein the identification field of the original system is obtained by an index corresponding to the original system;
and storing the characteristic information of the asynchronous response message in an identification field of a new system, wherein the identification field of the new system is obtained through an index corresponding to the new system.
In one embodiment, the storage module is further configured to: and storing the synchronous response message in a message field of an original system, and storing the asynchronous response message in a message field of a new system.
In one embodiment, the apparatus further comprises:
and the preset rule module is used for comparing the message object of the synchronous response message with the message object of the asynchronous response message according to a preset rule to obtain a verification result of the service application consistency of the original system and the new system, wherein the preset rule comprises a user-defined comparison message node path and a message time field.
In a third aspect, the present disclosure also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the method according to any of the embodiments of the present disclosure when executing the computer program.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method of any one of the embodiments of the present disclosure.
In a fifth aspect, the present disclosure also provides a computer program product. The computer program product comprising a computer program that when executed by a processor implements the method of any of the embodiments of the present disclosure.
According to the implementation scheme provided by the disclosure, a request message is obtained by receiving a transaction request, and then the request message is synchronously forwarded to an original system, and then a synchronous response message fed back by the original system after receiving the request message is received. Meanwhile, the request message is forwarded to a new system, and an asynchronous response message fed back by the new system after receiving the request message is received. Respectively acquiring message objects of the synchronous response message and the asynchronous response message, wherein the message objects are obtained by analyzing a message sequence in a character string form; and comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system. The embodiment can verify on the application side of the system, does not need to switch the transaction from the original system to the new system in batches according to the switching strategy to verify the business, can check whether the output elements of the new system and the original system after processing the same request are consistent, can quickly and accurately verify the translation correctness of the new system and the original system, and realizes the smooth migration of the new system and the original system.
Drawings
In order to more clearly illustrate the embodiments of the present specification 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 described in the specification, and other drawings can be obtained by those skilled in the art without inventive labor.
FIG. 1 is a diagram of an application environment in which a method for authenticating an application system is implemented in one embodiment;
FIG. 2 is a flow diagram that illustrates a method for validating an application system, according to one embodiment;
FIG. 3 is a flow diagram that illustrates a method for validating an application system, according to one embodiment;
FIG. 4 is a flowchart illustrating a method for validating an application system in one embodiment;
FIG. 5 is a flowchart illustrating a method for validating an application system in one embodiment;
FIG. 6 is a system diagram illustrating a method for authentication of an application system in one embodiment;
FIG. 7 is a diagram illustrating a storage system in a method for authenticating an application system according to an embodiment;
FIG. 8 is a block diagram showing the configuration of an authentication apparatus of an application system in one embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not intended to limit the disclosure.
The verification method of the application system provided by the embodiment of the disclosure can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The terminal 102 receives the transaction request and obtains a request message according to the transaction request. The terminal 102 forwards the request message to an original system in the server 104, and receives a synchronous response message fed back by the original system after receiving the request message, wherein the forwarding includes synchronous forwarding. The terminal 102 forwards the request message to a new system in the server 104, and receives an asynchronous response message fed back by the new system after receiving the request message. The terminal 102 respectively obtains the message objects of the synchronous response message and the asynchronous response message, and the message objects are obtained by analyzing the message sequence in the form of character strings; and comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In an embodiment, as shown in fig. 2, a method for verifying an application system is provided, which is described by taking the method as an example for being applied to the terminal in fig. 1, and includes the following steps:
s202, receiving a transaction request, and obtaining a request message according to the transaction request.
Wherein receiving the transaction request may comprise receiving the transaction request from a front-end system, for example receiving the transaction request from a banking application.
Specifically, the request message may be obtained according to the received transaction request.
S204, forwarding the request message to the original system, and receiving a synchronous response message fed back by the original system after receiving the request message, wherein the forwarding comprises synchronous forwarding.
The synchronous forwarding may include a communication mode in which the sender sends data and the receiver sends a next data packet after sending a response. The original system may comprise an original banking application system, such as a banking channel system, a channel integration system, a product system, and the like, on-line processing system of banking business.
Specifically, the request packet may be forwarded to an original banking channel system, a channel integration system, a product system, and other banking online processing systems in a synchronous forwarding manner, and a synchronous response packet fed back by the original system after receiving the request packet is received.
S206, the request message is forwarded to a new system, and an asynchronous response message fed back by the new system after receiving the request message is received.
The new system may include a new bank application system, for example, a banking channel system, a channel integration system, a product system, and other banking online processing systems.
Specifically, the request packet may be forwarded to a new system, and an asynchronous response packet fed back by the new system after receiving the request packet is received.
S208, respectively obtaining the message objects of the synchronous response message and the asynchronous response message, wherein the message objects are obtained by analyzing the message sequence in the form of character strings.
Specifically, the message object of the synchronous response message and the message object of the asynchronous response message can be obtained by analyzing the message sequence in the form of the character string.
S210, comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system.
The comparing of the message object of the synchronous response message and the message object of the asynchronous response message may include comparing the number of fields and the value of the message field.
Specifically, the verification result of the service application consistency between the original system and the new system can be obtained by comparing the number of fields and the message field value of the message object of the synchronous response message and the message object of the asynchronous response message.
In the verification method of the application system, a request message is obtained by receiving a transaction request, and then the request message is synchronously forwarded to the original system, and a synchronous response message fed back by the original system after receiving the request message is received. Meanwhile, the request message is forwarded to a new system, and an asynchronous response message fed back by the new system after receiving the request message is received. Comparing the synchronous response message with the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system, verifying on an application side of the system without batch switching of transactions from the original system to the new system according to a switching strategy to verify the service, checking whether output elements of the new system and the original system after processing the same request are consistent, quickly and accurately verifying the translation correctness of the new system and the original system, and realizing smooth migration of the new system and the original system.
In one embodiment, step S206 forwards the request packet to a new system, and receiving an asynchronous response packet fed back by the new system after receiving the request packet includes:
and asynchronously forwarding the request message to an asynchronous forwarding module, and receiving an asynchronous response message fed back by the asynchronous forwarding module after receiving the request message, wherein the asynchronous forwarding module synchronously forwards the request message to a new system.
The asynchronous forwarding of the request message to the asynchronous forwarding module can be realized by means of a message queue. The asynchronous forwarding module may be deployed in different clusters of machines.
Specifically, the request packet may be asynchronously forwarded to the asynchronous forwarding module in a message queue manner, an asynchronous response packet fed back by the asynchronous forwarding module after receiving the request packet is received, and the asynchronous forwarding module synchronously forwards the request packet to the new system.
In this embodiment, by forwarding the request packet to the asynchronous forwarding module asynchronously, verification can be performed on the application side of the system and it can be checked whether the output elements of the new system and the original system after processing the same request are consistent.
In an embodiment, as shown in fig. 3, step S206 forwards the request packet to a new system, and after receiving an asynchronous response packet fed back by the new system after receiving the request packet, the method further includes the following steps:
s302, sending the synchronous response message and the asynchronous response message to a message recording module, wherein the message recording module is used for storing the synchronous response message and the asynchronous response message.
Specifically, the synchronous response message and the asynchronous response message may be sent to a message recording module, and the synchronous response message and the asynchronous response message may be stored in the message recording module.
Step S210 is to obtain the message objects of the synchronous response message and the asynchronous response message, where the message objects are obtained by analyzing a message sequence in a character string form, and the step includes:
s304, comparing the message object of the synchronous response message and the message object of the asynchronous response message stored in the message recording module to obtain a verification result of the service application consistency of the original system and the new system.
Specifically, the message object of the synchronous response message stored in the message recording module and the message object of the asynchronous response message may be compared, and a result of verifying the service application consistency between the original system and the new system may be obtained according to a result of the comparison.
In this embodiment, the synchronous response packet and the asynchronous response packet are sent to a packet recording module, and the synchronous response packet and the asynchronous response packet are stored in the packet recording module, so that the translation correctness of the new system and the original system can be quickly and accurately verified.
In an embodiment, as shown in fig. 4, the message recording module is configured to store the synchronous response message and the asynchronous response message, and includes:
s402, respectively obtaining the characteristic information of the synchronous response message and the asynchronous response message, wherein the characteristic information comprises the combination of the unique mark number of the message and the message service code field.
Specifically, the unique identifier and the combination of the message service code field of the synchronous response message and the asynchronous response message may be obtained respectively.
S404, storing the characteristic information of the synchronous response message in an identification field of an original system, wherein the identification field of the original system is obtained through an index corresponding to the original system.
Specifically, the combination of the unique identifier of the synchronization response packet and the packet service code field may be stored in an identification field of the original system, where the identification field of the original system is obtained through an index corresponding to the original system.
S406, storing the characteristic information of the asynchronous response message in an identification field of a new system, wherein the identification field of the new system is obtained through an index corresponding to the new system.
Specifically, the unique identifier of the asynchronous response packet and the packet service code field may be stored in an identification field of the new system, where the identification field of the new system is obtained through an index corresponding to the new system.
In this embodiment, by storing the combination of the unique identifier and the message service code field of the synchronous response message and the asynchronous response message in the identifier field corresponding to the system, the verification can be performed on the application side of the system, and it can be checked whether the output elements of the new system and the original system after processing the same request are consistent, so that the verification of the translation correctness of the new system and the original system can be performed quickly and accurately.
In one embodiment, the message recording module is configured to store the synchronous response message and the asynchronous response message, and further includes:
and storing the synchronous response message in a message field of an original system, and storing the asynchronous response message in a message field of a new system.
Specifically, the synchronous response message may be stored in the message field of the original system, and the asynchronous response message may be stored in the message field of the new system.
In this embodiment, the synchronous response packet is stored in the packet field of the original system, and the asynchronous response packet is stored in the packet field of the new system, so that the translation correctness of the new system and the original system can be quickly and accurately verified.
In one embodiment, the method further comprises:
and comparing the message object of the synchronous response message with the message object of the asynchronous response message according to a preset rule to obtain a verification result of the service application consistency of the original system and the new system, wherein the preset rule comprises a user-defined comparison message node path and a message time field.
Specifically, the message object of the synchronous response message and the message object of the asynchronous response message may be compared according to a user-defined comparison message node path and a time field of the message, so as to obtain a verification result of the service application consistency between the original system and the new system.
In this embodiment, the message object of the synchronous response message and the message object of the asynchronous response message are compared according to a custom comparison message node path and a time field of the message, so that verification can be performed on the application side of the system and whether output elements of a new system and an original system after processing the same request are consistent or not can be checked.
In one embodiment, as shown in fig. 5, there is provided a method for verifying an application system, the method comprising the steps of:
s502, receiving a transaction request, and obtaining a request message according to the transaction request.
S504, the request message is forwarded to the original system, and a synchronous response message fed back by the original system after receiving the request message is received, wherein the forwarding includes synchronous forwarding.
S506, asynchronously forwarding the request packet to an asynchronous forwarding module, and receiving an asynchronous response packet fed back by the asynchronous forwarding module after receiving the request packet, wherein the asynchronous forwarding module synchronously forwards the request packet to a new system.
S508, respectively obtaining the message objects of the synchronous response message and the asynchronous response message, wherein the message objects are obtained by analyzing the message sequence in the form of character strings.
S510, comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system.
S512, respectively obtaining the characteristic information of the synchronous response message and the asynchronous response message, wherein the characteristic information comprises the combination of the unique mark number of the message and the message service code field.
And S514, storing the characteristic information of the synchronous response message in an identification field of the original system, wherein the identification field of the original system is obtained by an index corresponding to the original system.
S516, storing the characteristic information of the asynchronous response message in an identification field of a new system, wherein the identification field of the new system is obtained through an index corresponding to the new system.
S518, respectively obtaining the message objects of the synchronous response message and the asynchronous response message, wherein the message objects are obtained by analyzing a message sequence in a character string form.
S520, comparing the message object of the synchronous response message with the message object of the asynchronous response message according to a preset rule to obtain a verification result of the service application consistency of the original system and the new system, wherein the preset rule comprises a user-defined comparison message node path and a message time field.
In an embodiment, as shown in fig. 6, a system diagram of a verification method for an application system is provided, and the embodiment provides three functional modules, namely, message double sending, message recording, and message automatic comparison. The message double-sending module has the main functions of synchronously forwarding the request to the old system for processing according to the request parameters and asynchronously forwarding the original request to the new system, and the result is based on the old system, and the response messages of the new system and the old system are all sent to the message recording module through the message queue and support the dynamic modification of the parameters during the operation. The message recording module is mainly responsible for recording the received message information to a file storage system for subsequent message comparison and use. The message comparison module automatically compares the response message files of the file storage system and updates the comparison result to the file storage system, and technicians can check the comparison result through pages. Fig. 7 is a schematic diagram of a storage system in the authentication method of the application system in one embodiment. The new system and the original system respectively correspond to an index in the file storage system, the response message of the new system is stored under the NEWSYS index, the response message of the original system is stored under the OLDSYS index, the identification field stores the unique identification of the message, and the message field stores the whole response message.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least some of the steps in the figures may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or at least partially in sequence with other steps or other steps.
Based on the same inventive concept, the embodiment of the present disclosure further provides an application system verification apparatus for implementing the above-mentioned application system verification method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in the embodiments of the verification device for one or more application systems provided below can be referred to the limitations of the verification method for the application system in the above description, and are not described herein again.
In one embodiment, as shown in fig. 8, there is provided an authentication apparatus 800 of an application system, including: a transaction request receiving module 802, a synchronous response message module 804, an asynchronous response message module 806, a message object obtaining module 808, and a comparing module 810, wherein:
the transaction request receiving module 802 is configured to receive a transaction request and obtain a request message according to the transaction request.
A synchronous response message module 804, configured to forward the request message to an original system, and receive a synchronous response message fed back by the original system after receiving the request message, where the forwarding includes synchronous forwarding.
An asynchronous response message module 806 is configured to forward the request message to a new system, and receive an asynchronous response message fed back by the new system after receiving the request message.
A message object obtaining module 808, configured to obtain the message objects of the synchronous response message and the asynchronous response message, respectively, where the message objects are obtained by analyzing a message sequence in a character string form;
a comparing module 810, configured to compare the message object of the synchronous response message with the message object of the asynchronous response message, so as to obtain a verification result of service application consistency between the original system and the new system.
In one embodiment, the asynchronous response packet module is specifically configured to:
and asynchronously forwarding the request message to an asynchronous forwarding module, and receiving an asynchronous response message fed back by the asynchronous forwarding module after receiving the request message, wherein the asynchronous forwarding module synchronously forwards the request message to a new system.
In one embodiment, before the message object obtaining module, the apparatus further includes:
the storage module is used for sending the synchronous response message and the asynchronous response message to a message recording module, and the message recording module is used for storing the synchronous response message and the asynchronous response message;
comparing the synchronous response message with the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system, wherein the verification result comprises:
and the result module is used for comparing the message object of the synchronous response message and the message object of the asynchronous response message stored in the message recording module to obtain a verification result of the service application consistency of the original system and the new system.
In one embodiment, the storage module is specifically configured to:
respectively acquiring the characteristic information of the synchronous response message and the asynchronous response message, wherein the characteristic information comprises the combination of a unique mark number of the message and a message service code field;
storing the characteristic information of the synchronous response message in an identification field of an original system, wherein the identification field of the original system is obtained by an index corresponding to the original system;
and storing the characteristic information of the asynchronous response message in an identification field of a new system, wherein the identification field of the new system is obtained through an index corresponding to the new system.
In one embodiment, the storage module is further configured to: and storing the synchronous response message in a message field of an original system, and storing the asynchronous response message in a message field of a new system.
In one embodiment, the apparatus further comprises:
and the preset rule module is used for comparing the message object of the synchronous response message with the message object of the asynchronous response message according to a preset rule to obtain a verification result of the service application consistency of the original system and the new system, wherein the preset rule comprises a user-defined comparison message node path and a message time field.
The modules in the verification device of the application system may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of authentication of an application system. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration associated with the disclosed aspects and does not constitute a limitation on the computing device to which the disclosed aspects apply, as a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present disclosure are information and data that are authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, databases, or other media used in the embodiments provided by the present disclosure may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases involved in embodiments provided by the present disclosure may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the various embodiments provided in this disclosure may be, without limitation, general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, or the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present disclosure, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present disclosure. It should be noted that various changes and modifications can be made by one skilled in the art without departing from the spirit of the disclosure, and these changes and modifications are all within the scope of the disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.

Claims (15)

1. A method for authenticating an application system, the method comprising:
receiving a transaction request, and obtaining a request message according to the transaction request;
forwarding the request message to an original system, and receiving a synchronous response message fed back by the original system after receiving the request message, wherein the forwarding comprises synchronous forwarding;
forwarding the request message to a new system, and receiving an asynchronous response message fed back by the new system after receiving the request message;
respectively acquiring message objects of the synchronous response message and the asynchronous response message, wherein the message objects are obtained by analyzing a message sequence in a character string form;
and comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system.
2. The method of claim 1, wherein forwarding the request message to a new system, and receiving an asynchronous response message fed back by the new system after receiving the request message comprises:
and asynchronously forwarding the request message to an asynchronous forwarding module, and receiving an asynchronous response message fed back by the asynchronous forwarding module after receiving the request message, wherein the asynchronous forwarding module synchronously forwards the request message to a new system.
3. The method of claim 1, wherein after forwarding the request packet to a new system and receiving an asynchronous response packet fed back by the new system after receiving the request packet, the method further comprises:
sending the synchronous response message and the asynchronous response message to a message recording module, wherein the message recording module is used for storing the synchronous response message and the asynchronous response message;
comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system, wherein the verification result comprises:
and comparing the message object of the synchronous response message and the message object of the asynchronous response message stored in the message recording module to obtain a verification result of the service application consistency of the original system and the new system.
4. The method of claim 3, wherein the message recording module for storing the synchronous response message and the asynchronous response message comprises:
respectively acquiring the characteristic information of the synchronous response message and the asynchronous response message, wherein the characteristic information comprises the combination of a unique mark number of the message and a message service code field;
storing the characteristic information of the synchronous response message in an identification field of an original system, wherein the identification field of the original system is obtained by an index corresponding to the original system;
and storing the characteristic information of the asynchronous response message in an identification field of a new system, wherein the identification field of the new system is obtained through an index corresponding to the new system.
5. The method of claim 3, wherein the message recording module for storing the synchronous response message and the asynchronous response message further comprises:
and storing the synchronous response message in a message field of an original system, and storing the asynchronous response message in a message field of a new system.
6. The method of claim 1, further comprising:
and comparing the message object of the synchronous response message with the message object of the asynchronous response message according to a preset rule to obtain a verification result of the service application consistency of the original system and the new system, wherein the preset rule comprises a user-defined comparison message node path and a message time field.
7. An apparatus for authenticating an application system, the apparatus comprising:
the transaction request receiving module is used for receiving a transaction request and obtaining a request message according to the transaction request;
a synchronous response message module, configured to forward the request message to an original system, and receive a synchronous response message fed back by the original system after receiving the request message, where the forwarding includes synchronous forwarding;
an asynchronous response message module, configured to forward the request message to a new system, and receive an asynchronous response message fed back by the new system after receiving the request message;
a message object obtaining module, configured to obtain message objects of the synchronous response message and the asynchronous response message, respectively, where the message objects are obtained by analyzing a message sequence in a character string form;
and the comparison module is used for comparing the message object of the synchronous response message with the message object of the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system.
8. The apparatus of claim 7, wherein the asynchronous response message module is specifically configured to:
and asynchronously forwarding the request message to an asynchronous forwarding module, and receiving an asynchronous response message fed back by the asynchronous forwarding module after receiving the request message, wherein the asynchronous forwarding module synchronously forwards the request message to a new system.
9. The apparatus of claim 7, wherein after the asynchronous response message module, the apparatus further comprises:
the storage module is used for sending the synchronous response message and the asynchronous response message to a message recording module, and the message recording module is used for storing the synchronous response message and the asynchronous response message;
comparing the synchronous response message with the asynchronous response message to obtain a verification result of the service application consistency of the original system and the new system, wherein the verification result comprises:
and the result module is used for comparing the message object of the synchronous response message and the message object of the asynchronous response message stored in the message recording module to obtain a verification result of the service application consistency of the original system and the new system.
10. The apparatus of claim 9, wherein the storage module is specifically configured to:
respectively acquiring the characteristic information of the synchronous response message and the asynchronous response message, wherein the characteristic information comprises the combination of a unique mark number of the message and a message service code field;
storing the characteristic information of the synchronous response message in an identification field of an original system, wherein the identification field of the original system is obtained by an index corresponding to the original system;
and storing the characteristic information of the asynchronous response message in an identification field of a new system, wherein the identification field of the new system is obtained through an index corresponding to the new system.
11. The apparatus of claim 9, wherein the storage module is further configured to: and storing the synchronous response message in a message field of an original system, and storing the asynchronous response message in a message field of a new system.
12. The apparatus of claim 7, further comprising:
and the preset rule module is used for comparing the message object of the synchronous response message with the message object of the asynchronous response message according to a preset rule to obtain a verification result of the service application consistency of the original system and the new system, wherein the preset rule comprises a user-defined comparison message node path and a message time field.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
14. 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 6.
15. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202210163785.9A 2022-02-22 2022-02-22 Application system verification method and device, computer equipment and storage medium Pending CN114640503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210163785.9A CN114640503A (en) 2022-02-22 2022-02-22 Application system verification method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210163785.9A CN114640503A (en) 2022-02-22 2022-02-22 Application system verification method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114640503A true CN114640503A (en) 2022-06-17

Family

ID=81946774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210163785.9A Pending CN114640503A (en) 2022-02-22 2022-02-22 Application system verification method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114640503A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115643314A (en) * 2022-10-21 2023-01-24 中电金信软件有限公司 System alternation information confirmation method and system
CN115988105A (en) * 2022-11-02 2023-04-18 南京金阵微电子技术有限公司 General stream comparison method, verification platform, storage medium and electronic device
CN116360846A (en) * 2022-12-05 2023-06-30 北京白驹易行科技有限公司 Correctness comparison method and system for micro-service change

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130117289A1 (en) * 2011-11-09 2013-05-09 Sap Ag Content migration framework
CN110365729A (en) * 2018-04-10 2019-10-22 青岛海信智能商用系统股份有限公司 The push of response type message, method of reseptance and response type message push system
CN110942377A (en) * 2019-12-06 2020-03-31 北京思特奇信息技术股份有限公司 Method and system for implementing asynchronous verification of telecom CRM (customer relationship management) service
CN113364806A (en) * 2021-06-30 2021-09-07 深圳前海微众银行股份有限公司 Service interface migration verification method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130117289A1 (en) * 2011-11-09 2013-05-09 Sap Ag Content migration framework
CN110365729A (en) * 2018-04-10 2019-10-22 青岛海信智能商用系统股份有限公司 The push of response type message, method of reseptance and response type message push system
CN110942377A (en) * 2019-12-06 2020-03-31 北京思特奇信息技术股份有限公司 Method and system for implementing asynchronous verification of telecom CRM (customer relationship management) service
CN113364806A (en) * 2021-06-30 2021-09-07 深圳前海微众银行股份有限公司 Service interface migration verification method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115643314A (en) * 2022-10-21 2023-01-24 中电金信软件有限公司 System alternation information confirmation method and system
CN115643314B (en) * 2022-10-21 2024-02-23 中电金信软件有限公司 System alternating information confirmation method and system
CN115988105A (en) * 2022-11-02 2023-04-18 南京金阵微电子技术有限公司 General stream comparison method, verification platform, storage medium and electronic device
CN115988105B (en) * 2022-11-02 2023-11-07 南京金阵微电子技术有限公司 Universal stream comparison method, verification platform, storage medium and electronic device
CN116360846A (en) * 2022-12-05 2023-06-30 北京白驹易行科技有限公司 Correctness comparison method and system for micro-service change
CN116360846B (en) * 2022-12-05 2023-11-17 北京白驹易行科技有限公司 Correctness comparison method and system for micro-service change

Similar Documents

Publication Publication Date Title
CN108319719B (en) Database data verification method and device, computer equipment and storage medium
CN114640503A (en) Application system verification method and device, computer equipment and storage medium
CN112445596B (en) Data importing method, system and storage medium based on multithreading
CN112631884A (en) Pressure measurement method and device based on data synchronization, computer equipment and storage medium
CN114637611A (en) Information processing method and device based on message queue and computer equipment
CN114089921A (en) Power system data storage method and device, computer equipment and storage medium
CN110765131A (en) Data compression method and device for goods source data, computer equipment and storage medium
CN116010926A (en) Login authentication method, login authentication device, computer equipment and storage medium
CN114928620A (en) User information synchronization method, device, equipment, storage medium and program product
CN107704557B (en) Processing method and device for operating mutually exclusive data, computer equipment and storage medium
CN111914065B (en) Short message content verification method, device, computer system and computer readable medium
CN112199350B (en) Function verification method and device based on data screening, computer equipment and medium
CN112073174B (en) Communication account decryption method, device, equipment, storage medium and information interaction system
JP2014235583A (en) Data migration system and data migration method
CN118096171A (en) Data gray level verification method, device, computer equipment, medium and product
CN111401840B (en) Method, apparatus, device and computer readable medium for generating guarantor information
CN111414162B (en) Data processing method, device and equipment thereof
CN113821449A (en) System testing method and device and electronic equipment
CN116011029A (en) Information verification method, information verification device, computer equipment and storage medium
CN114218191A (en) System function migration method and device, computer equipment and storage medium
CN116880869A (en) System interface updating method, device, computer equipment and storage medium
CN116701184A (en) Socket compatibility testing method and device, computer equipment and storage medium
CN114138196A (en) Power system data storage method and device, computer equipment and storage medium
CN116662263A (en) Data receiving and processing method and device and computer equipment
CN116842541A (en) Data encryption and decryption processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination