Method, device and equipment for processing message data and computer readable medium
By comparing the inherited message fields of design messages and production messages, establishing mapping relationships, obtaining message differences fields and updating production messages, the R&D errors caused by design messages and production messages are solved, and the comparison efficiency is improved and accuracy ensure the correct processing of financial business data.
Patent Information
- Application Number
- CN202411333731.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-03
AI Technical Summary
The differences between design messages and production messages in the prior art lead to errors or defects in the R&D process, and the manual comparison is inefficient.
By obtaining the source data of design messages and production messages, identifying and comparing their inherited messages fields, establishing field mapping relationships, obtaining message differences fields, and using the difference fields to build migration data to update production messages.
It improves the efficiency and accuracy of message comparison, reduces manual intervention, ensures the consistency of design messages and production messages, and avoids errors in financial services processing.
Smart Images

Figure CN119248724A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a method, device, equipment and computer-readable medium for processing message data. Background Art
[0002] In the R&D process, the design stage and the production stage are interdependent. In the design stage, the corresponding design message is created according to the design requirements. The design message contains various attributes and specifications of the product. In the R&D stage, the corresponding interface is developed according to the production message to respond to the production message.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: due to the differences between design messages and production messages, manual comparison of design messages and production messages may lead to errors or defects in the research and development process. Summary of the invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus, device and computer-readable medium for processing message data, which can improve the efficiency and accuracy of message comparison.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing message data is provided, comprising:
[0006] In response to a business request for processing message data, source data of a design message and source data of a production message are obtained;
[0007] Identifying an inherited message of the design message according to the source data of the design message, and obtaining an inherited message field of the design message according to the inherited message of the design message, and identifying an inherited message of the production message according to the source data of the production message, and obtaining an inherited message field of the production message according to the inherited message of the production message;
[0008] The inherited message field of the design message is compared with the inherited message field of the production message to obtain a message difference field, so as to construct migration data of the production message according to the message difference field, and update the production message using the migration data.
[0009] The step of obtaining the source data of the design message and the source data of the production message in response to the service request for processing the message data includes:
[0010] In response to a business request for processing message data, obtaining in the business request a physical subsystem identifier, a service component identifier, and a production date identifier of the design message, and a physical subsystem identifier, a code engineering name identifier, and a code branch identifier of the production message;
[0011] The source data of the design message is queried and obtained according to the physical subsystem identifier, service component identifier and production date identifier of the design message, and the source data of the production message is queried and obtained according to the physical subsystem identifier, code project name identifier and code branch identifier of the production message.
[0012] The identifying the inherited message of the design message according to the source data of the design message, and obtaining the inherited message field of the design message according to the inherited message of the design message, and identifying the inherited message of the production message according to the source data of the production message, and obtaining the inherited message field of the production message according to the inherited message of the production message, includes:
[0013] Identifying an inherited message of the design message according to a label of the source data of the design message, and acquiring an inherited message field of the design message by parsing a label attribute of the inherited message of the design message;
[0014] The inherited message of the production message is identified according to the label of the source data of the production message, and the inherited message field of the production message is obtained by parsing the label attribute of the inherited message of the production message.
[0015] The comparing the inherited message field of the design message with the inherited message field of the production message to obtain the message difference field includes:
[0016] Establishing a field mapping relationship between the inherited message fields of the design message and the inherited message fields of the production message;
[0017] According to the field mapping relationship, the inherited message field of the design message and the inherited message field of the production message are compared to obtain the type of the message difference field and the position of the message difference field.
[0018] The obtaining of source data of the design message and source data of the production message includes:
[0019] Traversing the document tree of the source data of the design message to search for the design message node, and parsing the design message node to obtain the message format of the source data of the design message, the message content of the source data of the design message, and the message attributes of the source data of the design message;
[0020] Traversing the document tree of the source data of the production message to find the production message node, and parsing the production message node to obtain the message format of the source data of the production message, the message content of the source data of the production message, and the message attributes of the source data of the production message;
[0021] The comparing the inherited message field of the design message with the inherited message field of the production message to obtain the message difference field includes:
[0022] Comparing the message format of the source data of the design message with the message format of the source data of the production message to obtain a message difference format;
[0023] Comparing the message content of the source data of the design message with the message content of the source data of the production message to obtain message difference content;
[0024] Comparing the message attributes of the source data of the design message with the message attributes of the source data of the production message to obtain message difference attributes;
[0025] The inherited message field of the design message is compared with the inherited message field of the production message to obtain a message difference field, and the message difference field is updated with the message difference content.
[0026] The step of constructing the migration data of the production message according to the message difference field, and updating the production message using the migration data, includes:
[0027] Establishing a mapping relationship between the data in the historical production message and the updated production message based on the message difference field, and identifying the migration data of the production message based on the mapping relationship;
[0028] The production message is updated according to the full migration or incremental migration determined by the data volume of the migration data of the production message.
[0029] The step of obtaining the source data of the design message and the source data of the production message in response to the service request for processing the message data also includes:
[0030] Before using the production message to process the financial service data, sending a service request for processing the message data;
[0031] The step of constructing the migration data of the production message according to the message difference field, and updating the production message using the migration data, includes:
[0032] Constructing migration data of the production message according to the message difference field, storing the migration data in a pipeline database, and updating the production message according to the pipeline database according to an update cycle;
[0033] After the production message is updated, the updated production message is used to process the financial business data.
[0034] According to a second aspect of an embodiment of the present invention, there is provided a device for processing message data, including:
[0035] An acquisition module, used for acquiring source data of a design message and source data of a production message in response to a business request for processing message data;
[0036] an identification module, used to identify an inherited message of the design message according to the source data of the design message, and obtain the inherited message field of the design message according to the inherited message of the design message, and to identify an inherited message of the production message according to the source data of the production message, and obtain the inherited message field of the production message according to the inherited message of the production message;
[0037] A comparison module is used to compare the inherited message field of the design message with the inherited message field of the production message to obtain the message difference field, so as to construct the migration data of the production message according to the message difference field, and update the production message using the migration data.
[0038] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for processing message data, including:
[0039] one or more processors;
[0040] a storage device for storing one or more programs,
[0041] When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.
[0042] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described above is implemented.
[0043] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the program is executed by a processor, the method as described above provided by an embodiment of the present invention is implemented.
[0044] An embodiment of the above invention has the following advantages or beneficial effects: in response to a business request for processing message data, the source data of the design message and the source data of the production message are obtained; the inherited message of the design message is identified according to the source data of the design message, and the inherited message field of the design message is obtained according to the inherited message of the design message, and the inherited message of the production message is identified according to the source data of the production message, and the inherited message field of the production message is obtained according to the inherited message of the production message; the inherited message field of the design message is compared with the inherited message field of the production message to obtain the message difference field, so as to construct the migration data of the production message according to the message difference field, and update the production message using the migration data. By using the inherited message of the message to compare the inherited message field, the efficiency and accuracy of message comparison can be improved.
[0045] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0047] Figure 1 is a schematic diagram of the main flow of a method for processing message data according to an embodiment of the present invention;
[0048] Figure 2 is a schematic diagram of a process of obtaining source data of a design message and source data of a production message according to an embodiment of the present invention;
[0049] Figure 3 is a schematic diagram of a process for obtaining inherited message fields according to an embodiment of the present invention;
[0050] Figure 4 It is a flow chart of comparing the inherited message fields of a design message and the inherited message fields of a production message according to an embodiment of the present invention;
[0051] Figure 5 is another schematic diagram of a process of obtaining source data of a design message and source data of a production message according to an embodiment of the present invention;
[0052] Figure 6 is another flow chart of comparing the inherited message fields of a design message and the inherited message fields of a production message according to an embodiment of the present invention;
[0053] Figure 7 is a schematic diagram of the main structure of a device for processing message data according to an embodiment of the present invention;
[0054] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0055] Fig. 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description. The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0057] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0058] At present, string matching or rule-based message comparison is usually adopted, which is easily affected by the message format and structure, resulting in errors in the accuracy of the comparison results between the design message and the production message. In addition, manual intervention is required in the message comparison process, which is inefficient.
[0059] In order to solve the low efficiency and high error rate of message comparison, the following technical solution in the embodiment of the present invention can be adopted.
[0060] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of the main flow of a method for processing message data according to an embodiment of the present invention, in which message comparison is achieved by comparing inherited message fields. Figure 1 As shown in 100, the following steps are specifically included:
[0061] S101. In response to a service request for processing message data, source data of a design message and source data of a production message are acquired.
[0062] A message is a unit of data exchanged and transmitted in a network, that is, a block of data to be sent at one time. A message contains the complete data information to be sent, and its length is very inconsistent, unlimited and variable.
[0063] In the process of processing financial business data, the interaction of financial business data between servers is realized through messages. In order to improve the efficiency of financial business processing, it is necessary to compare the design message and the production message.
[0064] The design message refers to the design state of the message, that is, the message in the design stage. The production message refers to the production state of the message, that is, the message in the production stage.
[0065] By comparing production messages with design messages, it is possible to avoid the risk that upstream and downstream financial business systems are not developed in accordance with the message format agreed upon in the design phase during the financial business development phase, which may cause upstream and downstream financial transaction calls to fail and thus trigger production events.
[0066] In one embodiment of the present invention, in response to a service request for processing message data, the source data of the design message and the source data of the production message are obtained. That is, after receiving the service request for processing message data, the source data of the design message and the source data of the production message can be obtained.
[0067] See also Figure 2 That is 200, Figure 2 The flowchart of obtaining source data of a design message and source data of a production message according to an embodiment of the present invention includes the following steps:
[0068] S201. In response to a business request for processing message data, obtain in the business request a physical subsystem identifier, a service component identifier, and a production date identifier of a design message, and a physical subsystem identifier, a code project name identifier, and a code branch identifier of a production message.
[0069] After receiving the business request for processing message data, in order to obtain the source data of the design message, the physical subsystem identifier, service component identifier and production date identifier of the design message are obtained in the business request. In order to obtain the source data of the production message, the physical subsystem identifier, code project name identifier and code branch identifier of the production message are obtained in the business request.
[0070] S202. Query and obtain the source data of the design message according to the physical subsystem identifier, service component identifier and production date identifier of the design message, and query and obtain the source data of the production message according to the physical subsystem identifier, code project name identifier and code branch identifier of the production message.
[0071] According to the physical subsystem identifier, service component identifier and production date identifier of the design message, the design message is queried from an Instrumentation Test Module (ITM) database by calling a query service interface to obtain source data of the design message.
[0072] According to the physical subsystem identifier, code project name identifier, and code branch identifier of the production message, use the gitclone command to go to the code repository, query and obtain the source data of the production message.
[0073] exist Figure 2 In the embodiment, message parameters are obtained from the service request for different messages to query and obtain source data of the message.
[0074] S102. Identify an inherited message of the design message according to the source data of the design message, and obtain the inherited message field of the design message according to the inherited message of the design message; and identify an inherited message of the production message according to the source data of the production message, and obtain the inherited message field of the production message according to the inherited message of the production message.
[0075] The inheritance message is a message including an inheritance relationship structure, and the relationship between messages is described through the inheritance relationship. The received source data is parsed to identify the inheritance message structure.
[0076] Specifically, the inherited message of the design message is identified according to the source data of the design message, and the inherited message fields of the design message are obtained according to the inherited message of the design message; and the inherited message of the production message is identified according to the source data of the production message, and the inherited message fields of the production message are obtained according to the inherited message of the production message.
[0077] See also Figure 3 That is 300, Figure 3 1 is a schematic diagram of a process for obtaining inherited message fields according to an embodiment of the present invention. Specifically, the following steps are included:
[0078] S301. Identify an inherited message of a design message according to a label of source data of the design message, and obtain an inherited message field of the design message by parsing a label attribute of the inherited message of the design message.
[0079] The inherited message of the design message is identified according to the label of the source data of the design message. As an example, the label of the source data of the design message includes an abstract label.
[0080] Inheritance messages have a special structure in code engineering. In the message XML, the outermost layer of the inheritance message is usually the abstract tag, and the inner layer of the inheritance message is normal structure and other tags. The inheritance message is identified by parsing the abstract tag.
[0081] After the inherited message is identified, the inherited message field of the design message is obtained by parsing the label attribute of the inherited message of the design message. As an embodiment, the label attribute of the inherited message includes the extends attribute of the outermost mapping label of the inherited message.
[0082] The inherited message identifier is obtained by parsing the extends attribute of the outermost mapping tag of the inherited message, and then the inherited message field of the design message is obtained through the inherited message identifier.
[0083] S302: Identify the inherited message of the production message according to the label of the source data of the production message, and obtain the inherited message field of the production message by parsing the label attribute of the inherited message of the production message.
[0084] The message inheriting the production message is identified according to the label of the source data of the production message. As an example, the label of the source data of the production message includes an abstract label.
[0085] Inheritance messages have a special structure in code engineering. In the message XML, the outermost layer of the inheritance message is usually the abstract tag, and the inner layer of the inheritance message is normal structure and other tags. The inheritance message is identified by parsing the abstract tag.
[0086] After the inherited message is identified, the inherited message field of the production message is obtained by parsing the label attribute of the inherited message of the production message. As an embodiment, the label attribute of the inherited message includes the extends attribute of the outermost mapping label of the inherited message.
[0087] The inherited message identifier is obtained by parsing the extends attribute of the outermost mapping tag of the inherited message, and then the inherited message field of the production message is obtained through the inherited message identifier.
[0088] exist Figure 3 In an embodiment of the present invention, the inherited message field of the design message and the inherited message field of the production message are respectively identified, so as to achieve message comparison by comparing the inherited message fields.
[0089] S103 . Compare the inherited message fields of the design message with the inherited message fields of the production message to obtain message difference fields, construct migration data of the production message according to the message difference fields, and update the production message using the migration data.
[0090] In an embodiment of the present invention, by comparing the inherited message fields of the design message and the inherited message fields of the production message, the message difference fields are obtained, the migration data of the production message is constructed according to the message difference fields, and the production message is updated using the migration data.
[0091] As an example, the production message is updated according to the message difference field to ensure the consistency of the design message and the production message. As another example, considering the wide application range of the production message, the design message can also be updated according to the message difference field to avoid affecting the normal use of the production message, thereby ensuring the consistency of the design message and the production message.
[0092] See also Figure 4 That is 400, Figure 4 The following is a flow chart of comparing the inherited message fields of a design message and the inherited message fields of a production message according to an embodiment of the present invention. Specifically, the following steps are included:
[0093] S401. Establish a field mapping relationship between an inherited message field of a design message and an inherited message field of a production message.
[0094] In order to compare the inherited message fields of the two messages, a field mapping relationship between the inherited message fields of the design message and the inherited message fields of the production message may be established according to the field name, field type, and field position.
[0095] S402. According to the field mapping relationship, compare the inherited message fields of the design message with the inherited message fields of the production message to obtain the types of the message difference fields and the positions of the message difference fields.
[0096] After the field mapping relationship is established, the inherited message fields of the design message and the inherited message fields of the production message can be compared according to the field mapping relationship to obtain the types and positions of the message difference fields.
[0097] Specifically, comparing the inherited message fields of the design message and the inherited message fields of the production message includes: comparing the names of the inherited message fields, comparing the types of the inherited message fields, comparing whether the values of the inherited message fields meet preset conditions, and comparing the attributes of the inherited message fields.
[0098] exist Figure 4 In the embodiment, the comparison of inherited message fields is implemented according to the field mapping relationship, which can ensure that the comparison is based on the correct field correspondence relationship and improve the accuracy of the comparison.
[0099] See also Figure 5 That is 500, Figure 5 This is another flow chart of obtaining source data of a design message and source data of a production message according to an embodiment of the present invention. Specifically, it includes the following steps:
[0100] S501, traverse the document tree of the source data of the design message to find the design message node, and parse the design message node to obtain the message format of the source data of the design message, the message content of the source data of the design message, and the message attributes of the source data of the design message.
[0101] In the embodiments of the present invention, the message format is the structural level of the message. The message content refers to the field value of each message body. The message attribute is used to identify the hierarchical relationship in each message body.
[0102] The document tree of the source data of the design message is traversed to find the design message node. As an example, the structure node is found by traversing the document tree of the source data of the design message.
[0103] Parse the design message node to obtain the message format of the source data of the design message, the message content of the source data of the design message, and the message attributes of the source data of the design message. As an example, for each structure node, check the name of the child node. The child node name is entity, parse the internal label of the entity node, and extract the message field. Based on the extracted message field, obtain the message format of the source data of the design message, the message content of the source data of the design message, and the message attributes of the source data of the design message.
[0104] S502: traverse the document tree of the source data of the production message to find the production message node, and parse the production message node to obtain the message format of the source data of the production message, the message content of the source data of the production message, and the message attributes of the source data of the production message.
[0105] The document tree of the source data of the production message is traversed to find the production message node. As an example, the structure node is found by traversing the document tree of the source data of the design message.
[0106] Parse the production message node to obtain the message format of the source data of the production message, the message content of the source data of the production message, and the message attributes of the source data of the production message. As an example, for each structure node, check the name of the child node. The child node name is entity, parse the internal label of the entity node, and extract the message field. Based on the extracted message field, obtain the message format of the source data of the production message, the message content of the source data of the production message, and the message attributes of the source data of the production message.
[0107] exist Figure 5 In the embodiment, the message format, message content and message data are obtained by traversing the document tree, thereby achieving comparison of messages from multiple angles.
[0108] See also Figure 6 That is 600, Figure 6 This is another flow chart of comparing the inherited message fields of the design message and the inherited message fields of the production message according to an embodiment of the present invention. Specifically, the following steps are included:
[0109] S601. Compare the message format of the source data of the design message with the message format of the source data of the production message to obtain a message difference format.
[0110] By comparing the message format of the source data of the design message with the message format of the source data of the production message, a message difference format is obtained, which reflects the consistency of the hierarchical structure.
[0111] S602: Compare the message content of the source data of the design message with the message content of the source data of the production message to obtain message difference content.
[0112] By comparing the message content of the source data of the design message with the message content of the source data of the production message, the message difference content is obtained. The message difference content reflects the different field values of each message body.
[0113] S603: Compare the message attributes of the source data of the design message and the message attributes of the source data of the production message to obtain message difference attributes.
[0114] By comparing the message attributes of the source data of the design message and the message attributes of the source data of the production message, the message difference attributes are obtained. The message difference attributes reflect different attributes.
[0115] S604: Compare the inherited message field of the design message with the inherited message field of the production message to obtain a message difference field, and update the message difference field with the message difference content.
[0116] The inherited message fields of the design message and the inherited message fields of the production message are compared to obtain the message difference fields. Considering that the message difference content reflects the different field values of each message body, in order to improve the accuracy of identifying the difference fields, the message difference fields are updated with the message difference content. As an example, the message difference content and the original message difference field are used as the updated message difference field.
[0117] exist Figure 6 In the embodiment, comparison is achieved from multiple angles, including message format, message content, message attributes and inherited message fields.
[0118] In one embodiment of the present invention, constructing migration data of a production message according to message difference fields, and updating the production message using the migration data includes:
[0119] A mapping relationship between the data in the historical production message and the updated production message is established based on the message difference field, and the migration data of the production message is identified based on the mapping relationship. The historical production message includes the production message before the update. The updated production message includes a message that has no message difference field with the design message. The updated production message is consistent with the design message. In order to ensure the correctness of the data in the updated production message, the message difference field is used to establish a mapping relationship between the data in the historical production message and the updated production message, and the migration data of the production message is identified based on the mapping relationship.
[0120] The production message is updated according to the full migration or incremental migration determined by the data volume of the migration data of the production message.
[0121] When the amount of migrated data of the production message is large, full migration can be adopted. That is, all the data of the historical production message is migrated to the historical production message according to the mapping relationship to obtain the updated production message.
[0122] When the amount of production message migration data is small, incremental migration can be used, that is, the data corresponding to the message difference field between the historical production message and the updated production message is used as incremental data, and the incremental data is migrated to the historical production message data to obtain the updated production message.
[0123] In one embodiment of the present invention, when processing financial service data, in order to ensure the consistency of the message format and avoid financial service processing errors, it can be used Figure 1 Steps in .
[0124] That is, before using the production message to process the financial business data, a business request for processing the message data is sent to achieve a comparison between the design message and the production message.
[0125] In one embodiment of the present invention, migration data of a production message is constructed according to message difference fields, and the migration data is stored in a pipeline database, and the production message is updated according to the pipeline database according to an update cycle; after the production message is updated, the updated production message is used to process financial business data.
[0126] The production message can be automatically updated by using the pipeline database to avoid errors caused by manual operation.
[0127] The updated production message is used to process the financial business data. Then, the financial business data is processed when the design message is consistent with the production message, thereby improving the accuracy of the financial business data.
[0128] In the above-mentioned embodiment of the present invention, in response to a business request for processing message data, the source data of the design message and the source data of the production message are obtained; the inherited message of the design message is identified according to the source data of the design message, and the inherited message field of the design message is obtained according to the inherited message of the design message, and the inherited message of the production message is identified according to the source data of the production message, and the inherited message field of the production message is obtained according to the inherited message of the production message; the inherited message field of the design message and the inherited message field of the production message are compared to obtain the message difference field, so as to construct the migration data of the production message according to the message difference field, and update the production message using the migration data. By using the inherited message of the message to compare the inherited message field, the efficiency and accuracy of message comparison can be improved.
[0129] The technical solutions in the embodiments of the present invention are exemplified below in conjunction with specific application scenarios.
[0130] Data is transmitted between financial business system A and financial business system B.
[0131] During the design phase, the message designed in the financial business system A includes fields such as order number, product information, consignee address and contact information.
[0132] During the development phase, due to human error, there was an error in the consignee address field in the production message in the financial business system B, which resulted in the consignee address of some orders with long addresses being truncated and unable to be fully displayed when they were transmitted to the financial business system A.
[0133] By using the technical solution in the embodiment of the present invention, it is found that the consignee address field is incorrect by comparing the message. Financial business system B promptly updates the consignee address field in the production message to ensure that all order information can be accurately transmitted to financial business system B.
[0134] The technical solution of comparing messages can improve the efficiency and accuracy of message comparison and ensure the smooth implementation of business.
[0135] See also Figure 7 , Figure 7 is a schematic diagram of the main structure of a device for processing message data according to an embodiment of the present invention. The device for processing message data can implement a method for processing message data, such as Figure 7 As shown in 700, the device for processing message data specifically includes:
[0136] The acquisition module 701 is used to acquire the source data of the design message and the source data of the production message in response to the service request for processing the message data;
[0137] An identification module 702 is used to identify an inherited message of the design message according to the source data of the design message, and obtain the inherited message field of the design message according to the inherited message of the design message, and to identify an inherited message of the production message according to the source data of the production message, and obtain the inherited message field of the production message according to the inherited message of the production message;
[0138] The comparison module 703 is used to compare the inherited message field of the design message with the inherited message field of the production message to obtain the message difference field, to construct the migration data of the production message according to the message difference field, and to update the production message using the migration data.
[0139] In one embodiment of the present invention, the acquisition module 701 is specifically used to respond to a business request for processing message data, and obtain the physical subsystem identifier, service component identifier, and production date identifier of the design message, as well as the physical subsystem identifier, code engineering name identifier, and code branch identifier of the production message in the business request;
[0140] The source data of the design message is queried and obtained according to the physical subsystem identifier, service component identifier and production date identifier of the design message, and the source data of the production message is queried and obtained according to the physical subsystem identifier, code project name identifier and code branch identifier of the production message.
[0141] In one embodiment of the present invention, the identification module 702 is specifically used to identify the inherited message of the design message according to the label of the source data of the design message, and obtain the inherited message field of the design message by parsing the label attribute of the inherited message of the design message;
[0142] The inherited message of the production message is identified according to the label of the source data of the production message, and the inherited message field of the production message is obtained by parsing the label attribute of the inherited message of the production message.
[0143] In one embodiment of the present invention, the comparison module 703 is specifically used to establish a field mapping relationship between the inherited message field of the design message and the inherited message field of the production message;
[0144] According to the field mapping relationship, the inherited message field of the design message and the inherited message field of the production message are compared to obtain the type of the message difference field and the position of the message difference field.
[0145] In one embodiment of the present invention, the acquisition module 701 is specifically used to traverse the document tree of the source data of the design message to find the design message node, and parse the design message node to obtain the message format of the source data of the design message, the message content of the source data of the design message, and the message attributes of the source data of the design message;
[0146] Traversing the document tree of the source data of the production message to find the production message node, and parsing the production message node to obtain the message format of the source data of the production message, the message content of the source data of the production message, and the message attributes of the source data of the production message;
[0147] The comparison module 703 is specifically used to compare the message format of the source data of the design message with the message format of the source data of the production message to obtain a message difference format;
[0148] Comparing the message content of the source data of the design message with the message content of the source data of the production message to obtain message difference content;
[0149] Comparing the message attributes of the source data of the design message with the message attributes of the source data of the production message to obtain message difference attributes;
[0150] The inherited message field of the design message is compared with the inherited message field of the production message to obtain a message difference field, and the message difference field is updated with the message difference content.
[0151] In one embodiment of the present invention, the comparison module 703 is specifically used to establish a mapping relationship between the data in the historical production message and the updated production message based on the message difference field, and identify the migration data of the production message based on the mapping relationship; and update the production message according to the full migration or incremental migration determined by the data volume of the migration data of the production message. .
[0152] In one embodiment of the present invention, the acquisition module 701 is specifically configured to send a service request for processing the message data before using the production message to process the financial service data;
[0153] The comparison module 703 is specifically used to construct the migration data of the production message according to the message difference field, store the migration data in the pipeline database, and update the production message according to the pipeline database according to the update cycle; after the production message is updated, the updated production message is used to process the financial business data.
[0154] Figure 8 An exemplary system architecture 800 is shown to which the method for processing message data or the apparatus for processing message data according to the embodiment of the present invention can be applied.
[0155] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0156] Users can use terminal devices 801, 802, and 803 to interact with server 805 through network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0157] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0158] The server 805 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 801, 802, and 803. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0159] It should be noted that the method for processing message data provided in the embodiment of the present invention is generally executed by the server 805 , and accordingly, the device for processing message data is generally arranged in the server 805 .
[0160] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0161] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for processing message data provided by the embodiment of the present invention is implemented.
[0162] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 of a terminal device suitable for implementing an embodiment of the present invention. Fig. 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0163] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0164] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
[0165] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are executed.
[0166] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0167] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0168] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be arranged in a processor, for example, they may be described as: a processor including an acquisition module, an identification module and a comparison module. The names of these modules do not constitute a limitation on the modules themselves in certain cases, for example, the acquisition module may also be described as "for obtaining the source data of the design message and the source data of the production message in response to a business request for processing message data".
[0169] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0170] In response to a business request for processing message data, source data of a design message and source data of a production message are obtained;
[0171] Identifying an inherited message of the design message according to the source data of the design message, and obtaining an inherited message field of the design message according to the inherited message of the design message, and identifying an inherited message of the production message according to the source data of the production message, and obtaining an inherited message field of the production message according to the inherited message of the production message;
[0172] The inherited message field of the design message is compared with the inherited message field of the production message to obtain a message difference field, so as to construct migration data of the production message according to the message difference field, and update the production message using the migration data.
[0173] According to the technical solution of the embodiment of the present invention, in response to a business request for processing message data, the source data of the design message and the source data of the production message are obtained; the inherited message of the design message is identified according to the source data of the design message, and the inherited message field of the design message is obtained according to the inherited message of the design message, and the inherited message of the production message is identified according to the source data of the production message, and the inherited message field of the production message is obtained according to the inherited message of the production message; the inherited message field of the design message and the inherited message field of the production message are compared to obtain the message difference field, so as to construct the migration data of the production message according to the message difference field, and update the production message using the migration data. By using the inherited message of the message to compare the inherited message field, the efficiency and accuracy of message comparison can be improved.
[0174] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0175] It should be noted that in the technical solution of the present invention, the collection, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken for user personal information to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. Once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0176] When applicable, including in certain relevant applications, protect user privacy by de-identifying data, such as by removing specific identifiers (e.g., date of birth, etc.) when applicable, controlling the amount or specificity of data stored (e.g., collecting location data at a city level rather than at a specific address level), controlling how data is stored, and / or other de-identification methods.
Claims
1. A method for processing message data, characterized in that: include: In response to a business request for processing message data, source data of a design message and source data of a production message are obtained; Identifying an inherited message of the design message according to the source data of the design message, and obtaining an inherited message field of the design message according to the inherited message of the design message, and identifying an inherited message of the production message according to the source data of the production message, and obtaining an inherited message field of the production message according to the inherited message of the production message; The inherited message field of the design message is compared with the inherited message field of the production message to obtain a message difference field, so as to construct migration data of the production message according to the message difference field, and update the production message using the migration data.
2. The method for processing message data according to claim 1, characterized in that: The step of obtaining the source data of the design message and the source data of the production message in response to the service request for processing the message data includes: In response to a business request for processing message data, obtaining in the business request a physical subsystem identifier, a service component identifier, and a production date identifier of the design message, and a physical subsystem identifier, a code engineering name identifier, and a code branch identifier of the production message; The source data of the design message is queried and obtained according to the physical subsystem identifier, service component identifier and production date identifier of the design message, and the source data of the production message is queried and obtained according to the physical subsystem identifier, code project name identifier and code branch identifier of the production message.
3. The method for processing message data according to claim 1, characterized in that: The identifying the inherited message of the design message according to the source data of the design message, and obtaining the inherited message field of the design message according to the inherited message of the design message, and identifying the inherited message of the production message according to the source data of the production message, and obtaining the inherited message field of the production message according to the inherited message of the production message, includes: Identifying an inherited message of the design message according to a label of the source data of the design message, and acquiring an inherited message field of the design message by parsing a label attribute of the inherited message of the design message; The inherited message of the production message is identified according to the label of the source data of the production message, and the inherited message field of the production message is obtained by parsing the label attribute of the inherited message of the production message.
4. The method for processing message data according to claim 1, characterized in that: The comparing the inherited message field of the design message with the inherited message field of the production message to obtain the message difference field includes: Establishing a field mapping relationship between the inherited message fields of the design message and the inherited message fields of the production message; According to the field mapping relationship, the inherited message field of the design message and the inherited message field of the production message are compared to obtain the type of the message difference field and the position of the message difference field.
5. The method for processing message data according to claim 1, characterized in that: The obtaining of source data of the design message and source data of the production message includes: Traversing the document tree of the source data of the design message to search for the design message node, and parsing the design message node to obtain the message format of the source data of the design message, the message content of the source data of the design message, and the message attributes of the source data of the design message; Traversing the document tree of the source data of the production message to find the production message node, and parsing the production message node to obtain the message format of the source data of the production message, the message content of the source data of the production message, and the message attributes of the source data of the production message; The comparing the inherited message field of the design message with the inherited message field of the production message to obtain the message difference field includes: Comparing the message format of the source data of the design message with the message format of the source data of the production message to obtain a message difference format; Comparing the message content of the source data of the design message with the message content of the source data of the production message to obtain message difference content; Comparing the message attributes of the source data of the design message with the message attributes of the source data of the production message to obtain message difference attributes; The inherited message field of the design message is compared with the inherited message field of the production message to obtain a message difference field, and the message difference field is updated with the message difference content.
6. The method for processing message data according to claim 1, characterized in that: The step of constructing the migration data of the production message according to the message difference field, and updating the production message using the migration data, includes: Establishing a mapping relationship between the data in the historical production message and the updated production message based on the message difference field, and identifying the migration data of the production message based on the mapping relationship; The production message is updated according to the full migration or incremental migration determined by the data volume of the migration data of the production message.
7. The method for processing message data according to claim 1, characterized in that: The step of obtaining the source data of the design message and the source data of the production message in response to the service request for processing the message data also includes: Before using the production message to process the financial service data, sending the service request for processing the message data; The step of constructing the migration data of the production message according to the message difference field, and updating the production message using the migration data, includes: Constructing migration data of the production message according to the message difference field, storing the migration data in a pipeline database, and updating the production message according to the pipeline database according to an update cycle; After the production message is updated, the updated production message is used to process the financial business data.
8. A device for processing message data, characterized in that: include: An acquisition module, used for acquiring source data of a design message and source data of a production message in response to a business request for processing message data; an identification module, used to identify an inherited message of the design message according to the source data of the design message, and obtain the inherited message field of the design message according to the inherited message of the design message, and to identify an inherited message of the production message according to the source data of the production message, and obtain the inherited message field of the production message according to the inherited message of the production message; A comparison module is used to compare the inherited message field of the design message with the inherited message field of the production message to obtain the message difference field, so as to construct the migration data of the production message according to the message difference field, and update the production message using the migration data.
9. An electronic device for processing message data, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
