Business system update deployment method, device and system and storage medium
By automatically comparing the packet data consistency between the online service system and the service system to be deployed, the problem of manual screening time and high error rate in the prior art is solved, and the efficiency and security of the update deployment of the service system are improved.
Patent Information
- Application Number
- CN202311499979.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-10
- Publication Date
- 2025-05-13
AI Technical Summary
In the update deployment method of existing business systems, the manual screening process takes a long time and is prone to insufficient coverage of traffic data for testing and inapplicable testing environments, resulting in low efficiency and high risk of update deployment.
By obtaining the system traffic data and message data of the online service system, input these data into the service system to be deployed, comparing the consistency of message data between the two, and performing update deployment operations after meeting the consistency conditions.
It improves the efficiency of update deployment of business systems, reduces the risk of update deployment, and reduces the error rate of manual operations.
Smart Images

Figure CN119996189A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a method, device, system and storage medium for updating and deploying a business system. Background Art
[0002] With the development of Internet technology, business processing in various industries has begun to adopt the operation mode of online business systems. According to changes in user needs or adjustments to business functions, the system version or system type of online business systems needs to be continuously updated.
[0003] The update and deployment of existing business systems mainly adopts small batch testing methods. Specifically, a small batch of traffic data suitable for the test environment is manually screened out, and the applicability of the business scenario to be deployed is tested based on the traffic data. If the test results meet the requirements, the business system to be deployed will be updated and deployed.
[0004] In the process of implementing the present invention, it is found that there are at least the following technical problems in the prior art:
[0005] The manual screening process in the small batch testing method is time-consuming and prone to problems such as insufficient coverage of test traffic data and unsuitable test environment, which in turn leads to low update and deployment efficiency and high update and deployment risks in the business systems to be deployed. Summary of the invention
[0006] The embodiments of the present invention provide a business system update deployment method, device, system and storage medium to solve the problems of long time consumption and high error rate caused by manual operation in traditional business system update deployment methods, improve the update deployment efficiency of the business system and reduce the update deployment risk of the business system.
[0007] According to an embodiment of the present invention, a method for updating and deploying a business system is provided, the method comprising:
[0008] Acquire system traffic data input into the online business system and online message data output by the online business system based on the system traffic data;
[0009] Inputting the system flow data into the service system to be deployed, and obtaining the message data to be deployed output by the service system to be deployed based on the system flow data;
[0010] Comparing the online message data with the message data to be deployed to obtain a message comparison result;
[0011] When the message comparison result satisfies the message consistency condition, the to-be-deployed business system is used to perform an update deployment operation on the online business system.
[0012] According to another embodiment of the present invention, a business system update deployment device is provided, the device comprising:
[0013] An online message data acquisition module, used to acquire system flow data input into an online business system and online message data output by the online business system based on the system flow data;
[0014] A module for acquiring message data to be deployed, used for inputting the system flow data into the business system to be deployed, and acquiring the message data to be deployed output by the business system to be deployed based on the system flow data;
[0015] A message comparison result determination module, used to compare the online message data with the message data to be deployed to obtain a message comparison result;
[0016] The update deployment operation execution module is used to use the to-be-deployed business system to execute the update deployment operation on the online business system when the message comparison result meets the message consistency condition.
[0017] According to another embodiment of the present invention, there is provided a business system update deployment system, the update deployment system comprising: an online business system, a business system to be deployed and a control system, wherein the online business system and the business system to be deployed are respectively connected to the control system for communication;
[0018] Wherein, the online business system is used to output online message data based on input system traffic data;
[0019] The service system to be deployed is used to output message data to be deployed based on input system traffic data;
[0020] The control system includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the update deployment method of the business system described in any embodiment of the present invention.
[0021] According to another embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the update deployment method of the business system described in any embodiment of the present invention when executed.
[0022] The technical solution of the embodiment of the present invention obtains system traffic data input into the online business system and online message data output by the online business system based on the system traffic data, inputs the system traffic data into the business system to be deployed, and obtains the message data to be deployed output by the business system to be deployed based on the system traffic data, compares the online message data with the message data to be deployed, and obtains the message comparison result. When the message comparison result meets the message consistency condition, the business system to be deployed is used to perform update and deployment operations on the online business system, thereby solving the problems of long time consumption and high error rate caused by manual operations in traditional update and deployment methods of business systems, improving the update and deployment efficiency of business systems and reducing the update and deployment risks of business systems.
[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A flowchart of a method for updating and deploying a business system provided by an embodiment of the present invention;
[0026] Figure 2 A flowchart of another method for updating and deploying a business system provided by an embodiment of the present invention;
[0027] Figure 3 A schematic diagram of a difference item list provided by an embodiment of the present invention;
[0028] Figure 4 A flowchart of a specific example of a method for updating and deploying a business system provided by an embodiment of the present invention;
[0029] Figure 5 A flowchart of another method for updating and deploying a business system provided by an embodiment of the present invention;
[0030] Figure 6 A display diagram of a statistical item comparison ratio provided by an embodiment of the present invention;
[0031] Figure 7 A schematic diagram of the structure of an update deployment device for a business system provided by an embodiment of the present invention;
[0032] Figure 8 A schematic diagram of the structure of an update deployment system for a business system provided by an embodiment of the present invention;
[0033] Fig. 9 A schematic diagram of the structure of a control system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "online", "to be deployed", "testing", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] Figure 1 This is a flowchart of a business system update deployment method provided by an embodiment of the present invention. This embodiment is applicable to the case where an online business system is updated or a new business system is used to replace an online business system. The method can be executed by a business system update deployment device, which can be implemented in the form of hardware and / or software, and can be configured in a control system. Figure 1 As shown, the method includes:
[0037] S110: Acquire system flow data input into the online business system and online message data output by the online business system based on the system flow data.
[0038] Specifically, the online business system is used to represent the business system actually deployed and running online in the business environment. For example, the online business system can be an order logistics system or an order transaction system, etc. The business environment of the online business system is not limited here.
[0039] Specifically, system traffic data is used to characterize traffic data in a business environment. For example, when the business environment is an order processing environment, the traffic data includes but is not limited to order time, order category, order quantity, payment data, order status, etc. The traffic data is not specifically limited here, and can be customized according to the business environment.
[0040] Specifically, the online message data is used to represent the system data output by the online business system based on the system traffic data. Exemplarily, the online message data can be used for output display and can also be sent to a third-party system.
[0041] Among them, illustratively, the system traffic data and online message data can be obtained by using mirror recording, or by using a remote call interface, or by using tracking technology. The system traffic data and online message data are not limited here.
[0042] S120: Input the system flow data into the service system to be deployed, and obtain the message data to be deployed output by the service system to be deployed based on the system flow data.
[0043] Specifically, the business system to be deployed is used to represent the business system to be deployed online in the AB environment, wherein a deployment environment identical to the business environment in which the online business system is located is built in the AB environment. For example, the interactions between the systems in the AB environment can be isolated from each other through an RPC (Remote Procedure Call) framework.
[0044] Among them, exemplarily, the business system to be deployed is a business system with a system version different from that of the online business system, or the business system to be deployed is a business system with a system type different from that of the online business system, such as the online business system is an e-commerce logistics platform, and the business system to be deployed is an order fulfillment system.
[0045] Specifically, the message data to be deployed is used to represent system data output by the business system to be deployed based on system traffic data. Exemplarily, the message data to be deployed can be used for output display and can also be sent to a third-party system.
[0046] S130: Compare the online message data with the message data to be deployed to obtain a message comparison result.
[0047] Specifically, a difference comparison operation is performed on the online message data and the message data to be deployed to obtain a message comparison result, and the message comparison result can be used to represent the consistency result between the online message data and the message data to be deployed.
[0048] In a specific embodiment, the system traffic data includes traffic data corresponding to at least one traffic identifier, the online message data includes online messages corresponding to each traffic identifier, and the to-be-deployed message data includes to-be-deployed messages corresponding to each traffic identifier.
[0049] Specifically, the flow identifier is used to uniquely identify the flow data. Exemplarily, the flow identifier can be composed of at least one of text, numbers, letters and special characters, and the composition of the flow identifier is not limited here. The online message is the message body output by the online business system based on the flow data, and the message to be deployed is the message body output by the business system to be deployed based on the flow data. The message body can be used to represent the input data sent by the online business system or the business system to be deployed to the third-party system. The message body contains at least one message item and the parameter values corresponding to each message item. Exemplarily, the third-party system can be a warehouse management system (Warehouse Management System, WMS) or a transportation management system (Transportation Management System, TMS), and the third-party system is not limited here.
[0050] In this embodiment, the online message data is compared with the message data to be deployed to obtain a message comparison result, including: for each flow identifier, obtaining the online message corresponding to the flow identifier in the online message data and the message to be deployed corresponding to the flow identifier in the message data to be deployed; performing a difference comparison operation on the online message and the message to be deployed to obtain the message comparison data corresponding to the flow identifier; and determining the message comparison result based on the message comparison data corresponding to each flow identifier.
[0051] Specifically, the message comparison data can be used to characterize the consistency result of the online message and the message to be deployed. In a specific embodiment, the message comparison data includes at least one of a message comparison state, a message difference item set, and a message identical item set, wherein the message comparison state is a comparison success or a comparison failure, the message difference item in the message difference item set represents the message item that is different between the online message and the message to be deployed, and the message identical item in the message identical item set represents the message item that is not different between the online message and the message to be deployed.
[0052] Specifically, a difference comparison operation is performed on the online message and the message to be deployed to obtain message comparison data corresponding to the traffic identifier, including: for each message item in the online message, obtaining the online parameter value corresponding to the message item in the online message and the to-be-deployed parameter value corresponding to the message item in the to-be-deployed message; comparing the online parameter value with the to-be-deployed parameter value to obtain the parameter comparison result corresponding to the message item; and determining the message comparison data corresponding to the traffic identifier based on at least one parameter comparison result.
[0053] Taking the message comparison data including the message comparison status, the message difference item set and the message identical item set as an example, specifically, when the parameter comparison results corresponding to each message item in the online message are the same, the message comparison status in the message comparison data is set to comparison success, and each message item is added as a message identical item to the message identical item set in the message comparison data; when there is at least one message item in the online message and the parameter comparison results corresponding to each message item are different, the message comparison status in the message comparison data is set to comparison failure, and the message items with different parameter comparison results are added as message difference items to the message difference item set in the message comparison data, and the message items with the same parameter comparison results are added as message identical items to the message identical item set in the message comparison data.
[0054] In a specific embodiment, the message comparison result includes message comparison data corresponding to at least one flow identifier. Accordingly, based on the message comparison data corresponding to each flow identifier, the message comparison result is determined, including: using the message comparison data corresponding to each flow identifier as the message comparison result.
[0055] In another specific embodiment, the message comparison result includes a data message difference rate. Accordingly, based on the message comparison data corresponding to each traffic identifier, the message comparison result is determined, including: using the message comparison data with a message comparison status of comparison failure as message failure data, or using the message comparison data with a message difference item set being a non-empty set as message failure data, or using the message comparison data that does not include all message items in the message identical item set as message failure data; determining the data message difference rate based on the amount of failure data corresponding to the message failure data and the number of traffic identifiers corresponding to the system traffic data.
[0056] In one embodiment, when the message comparison data only includes the message comparison status, the message comparison data whose message comparison status is comparison failure is used as the message failure data. In another embodiment, when the message comparison data only includes the message difference item set, the message comparison data whose message difference item set is a non-empty set is used as the message failure data. In another embodiment, when the message comparison data only includes the message identical item set, the message comparison data that does not include all message items in the message identical item set is used as the message failure data. In another embodiment, when the message comparison data includes the message comparison status, the message difference item set and the message identical item set, the message comparison data whose message comparison status is comparison failure is used as the message failure data, or the message comparison data whose message difference item set is a non-empty set is used as the message failure data, or the message comparison data that does not include all message items in the message identical item set is used as the message failure data.
[0057] In another specific embodiment, based on the message comparison data corresponding to each traffic identifier, the message comparison result is determined, including: using the message comparison data with a successful comparison status as the message success data, or using the message comparison data with an empty set of message difference items as the message success data, or using the message comparison data containing all message items in the message identical item set as the message success data; determining the data message difference rate according to the amount of successful data corresponding to the message success data and the number of traffic identifiers corresponding to the system traffic data.
[0058] The method for determining the message success data in this embodiment is the same or similar to the method for determining the message failure data in the above embodiment, and this embodiment will not be repeated here.
[0059] S140: When the message comparison result satisfies the message consistency condition, the business system to be deployed is used to perform an update deployment operation on the online business system.
[0060] In a specific embodiment, when the message comparison result includes at least one message comparison data, the message consistency condition includes that the message comparison status in at least one message comparison data is a successful comparison, or, the message difference item set in at least one message comparison data is an empty set, or, the message identical item set in at least one message comparison data includes all message items.
[0061] In another specific embodiment, when the message comparison result is a data message difference rate, the message consistency condition includes a data difference rate range. The data message difference rate represents the message difference rate between the online message data and the message data to be deployed. For example, the data difference rate range is [0, 0.1%]. The data difference rate range is not limited here and can be customized according to actual needs.
[0062] In a specific embodiment, the business system to be deployed is used to perform update deployment operations on the online business system, including: according to the comparison data of each message, selecting test traffic data from the traffic data corresponding to each classification comparison data; based on at least one test traffic data, using the business system to be deployed to perform update deployment operations on the online business system.
[0063] Specifically, for each message comparison data, if the message comparison status in the message comparison data is a successful comparison, the traffic data corresponding to the message comparison data is used as the test traffic data, or, if the message difference item set in the message comparison data is an empty set, the traffic data corresponding to the message comparison data is used as the test traffic data, or, if the message identical item set in the message comparison data contains all message items, the traffic data corresponding to the message comparison data is used as the test traffic data.
[0064] The technical solution of this embodiment obtains system traffic data input into the online business system and online message data output by the online business system based on the system traffic data, inputs the system traffic data into the business system to be deployed, obtains message data to be deployed output by the business system to be deployed based on the system traffic data, compares the online message data with the message data to be deployed, and obtains message comparison results. When the message comparison results meet the message consistency conditions, the business system to be deployed is used to perform update and deployment operations on the online business system, which solves the problems of long time and high error rate caused by manual operations in traditional update and deployment methods of business systems, improves the update and deployment efficiency of business systems, and reduces the update and deployment risks of business systems.
[0065] Figure 2 This is a flow chart of another method for updating and deploying a business system provided by an embodiment of the present invention. This embodiment further refines the method for updating and deploying a business system in the above embodiment. Figure 2 As shown, the method includes:
[0066] S210: Acquire system flow data input into the online business system and online message data output by the online business system based on the system flow data.
[0067] S220: Input the system flow data into the service system to be deployed, and obtain the message data to be deployed output by the service system to be deployed based on the system flow data.
[0068] S230: Compare the online message data with the message data to be deployed to obtain a message comparison result.
[0069] S210-S230 in this embodiment are similar to those in the above embodiment. Figure 1The steps S110 - S130 shown are identical or similar to each other, and are not described in detail in this embodiment.
[0070] On the basis of the above embodiments, specifically, the method also includes: in the case where the message comparison data includes a message statistical item set, using the message statistical item set of a non-empty set in each message comparison data as a reference statistical item set; for each message statistical item corresponding to each reference statistical item set, obtaining the number of sets of reference statistical item sets containing the message statistical item, and determining the statistical item comparison ratio corresponding to the message item based on the number of sets and the number of traffic identifiers corresponding to the system traffic data; and outputting and displaying each message item and the statistical item comparison ratio corresponding to each message item.
[0071] In this embodiment, when the message statistical item set is a message difference item set, the reference statistical item set is a reference difference item set, the message statistical items are message difference items, and the statistical item comparison rate is the difference item failure rate; when the message statistical item set is a message identical item set, the reference statistical item set is a reference identical item set, the message statistical items are message identical items, and the statistical item comparison rate is the identical item success rate.
[0072] Specifically, the reference difference item set is used to represent the message difference item set of a non-empty set in the message comparison data, the number of sets is used to represent the number of reference difference item sets containing message difference items, the reference identical item set is used to represent the message identical item set of a non-empty set, and the number of sets is used to represent the number of reference identical item sets containing message identical items.
[0073] For example, taking the message statistical item set as a message difference item set, assuming that the five message comparison data respectively include message difference item set 1, message difference item set 2, message difference item set 3, message difference item set 4 and message difference item set 5, wherein each message difference item set is empty, [message difference item 1 message difference item 2], [message difference item 1 message difference item 3], [message difference item 1 message difference item 3] and [message difference item 2 message difference item 3], and accordingly, each reference message difference item set includes message difference item set 2, message difference item set 3, message difference item set 4 and message difference item set 5, wherein the number of sets corresponding to message difference item 1 is 3, if the number of flow identifiers corresponding to the system flow data is 6, then the failure rate of the difference item corresponding to the message difference item 1 is 50%. Similarly, the failure rates of the difference items corresponding to the message difference item 2 and the message difference item 3 are 33% and 50% respectively.
[0074] Exemplarily, the output form of the statistical item comparison ratio includes but is not limited to text display, sound playback, indicator light output, information sending, etc. For example, the text display may be "the difference item failure rate is 80%", and the output form of the statistical item comparison ratio is not limited here.
[0075] The advantage of this setting is that by performing statistical analysis on message comparison data based on message difference item dimensions and / or message same item dimensions, data guidance is provided for subsequent system optimization, thereby further ensuring the update and deployment efficiency of the business system.
[0076] On the basis of the above embodiment, specifically, the message difference item set further includes difference item details corresponding to each message difference item. The difference item details include parameter values corresponding to the message difference items in the online message and parameter values corresponding to the message difference items in the message to be deployed. Accordingly, the method further includes: in response to detecting a query instruction input based on the message difference item, outputting and displaying the difference item details of the message difference item corresponding to the query instruction.
[0077] Figure 3 A schematic diagram of a difference item detail provided by an embodiment of the present invention. Specifically, the difference item detail displays five message difference items and parameter values of each message difference item in the online message and the message to be deployed.
[0078] The advantage of this setting is that it is convenient for testers to locate the difference message items and query the difference item details corresponding to the difference message items as soon as possible, so as to optimize the system based on the difference message items and their difference item details, further ensuring the update and deployment efficiency of the business system.
[0079] S240: When the message comparison result satisfies the message consistency condition, based on at least one traffic identifier in the system traffic data, obtain a database model to be deployed of the business system to be deployed and an online database model of the online business system.
[0080] Specifically, the database model to be deployed can be used to represent the database fields generated based on system traffic data in the storage database corresponding to the business system to be deployed, and the online database model can be used to represent the database fields generated based on system traffic data in the storage database corresponding to the online business system.
[0081] S250: Determine a model mapping result based on preset mapping data, an online database model, and a database model to be deployed.
[0082] In this embodiment, the preset mapping data represents the mapping relationship between the database fields of the online database model and the database fields of the database model to be deployed.
[0083] In a specific embodiment, the model mapping result includes a field mapping result corresponding to at least one database field. Specifically, for each database field in the online database model, when the mapping data between the database field and the corresponding database field in the database model to be deployed does not satisfy the preset mapping data, the field mapping result is set to mapping failure; when the mapping data between the database field and the corresponding database field in the database model to be deployed satisfies the preset mapping data, the field mapping result is set to mapping success.
[0084] In another specific embodiment, the model mapping result is a field success rate. Specifically, the database field whose field mapping result is a mapping failure is regarded as a failed field, and the field success rate is determined based on the number of failed fields corresponding to the failed field and the total number of database fields; or, the database field whose field mapping result is a mapping success is regarded as a successful field, and the field success rate is determined based on the number of successful fields corresponding to the successful field and the total number of database fields.
[0085] S260: When the model mapping result satisfies the model consistency condition, the business system to be deployed is used to perform an update deployment operation on the online business system.
[0086] In a specific embodiment, when the model mapping result includes a field mapping result corresponding to at least one database field, the model consistency condition includes that the field mapping results corresponding to all database fields are mapped successfully.
[0087] In another specific embodiment, when the model mapping result is a field success rate, the model consistency condition includes a field success rate range. For example, the field success rate range is [90% 100%]. The field success rate range is not limited here, and the user can customize it according to actual needs.
[0088] Figure 4 A flowchart of a specific example of a method for updating and deploying a business system provided by an embodiment of the present invention, specifically, the traffic data in the system traffic data is respectively input into the business system to be deployed and the online business system, and the online message data output by the online business system and the message data to be deployed output by the business system to be deployed are obtained, and the online message data and the message data to be deployed are compared to obtain a message comparison result. An online database model of the online business system in the storage database and a database model to be deployed of the business system to be deployed in the storage database are obtained, and the online database model and the database model to be deployed are mapped and compared based on preset mapping data to obtain a model mapping result. Based on the message comparison result and the model mapping result, the business system to be deployed is used to perform an update and deployment operation on the online business system.
[0089] The technical solution of this embodiment obtains the to-be-deployed database model of the to-be-deployed business system and the online database model of the online business system based on at least one traffic identifier in the system traffic data, and determines the model mapping result based on the preset mapping data, the online database model and the to-be-deployed database model; wherein the preset mapping data represents the mapping relationship between the database fields of the online database model and the database fields of the to-be-deployed database model, and when the model mapping result meets the model consistency condition, the to-be-deployed business system is used to perform update deployment operations on the online business system, thereby solving the problem of poor stability of system update deployment due to single comparison data, and further reducing the update deployment risk of the business system.
[0090] Figure 5 This is a flow chart of another business system update deployment method provided by an embodiment of the present invention. This embodiment further refines the "using the business system to be deployed to perform update deployment operations on the online business system" in the above embodiment. Figure 5 As shown, the method includes:
[0091] S310: Acquire system traffic data input into the online business system and online message data output by the online business system based on the system traffic data.
[0092] In this embodiment, the online message data further includes at least one preset message dimension of data source, message type, message identifier, message batch identifier and dealer identifier corresponding to each online message.
[0093] Among them, the data source represents the online business system, the message type represents the data type of the message body, the message identifier represents the identification information generated by the online business system based on the traffic data, the message batch identifier represents the batch identification information corresponding to the traffic data, and the dealer identifier represents the identification information corresponding to the dealer to which the traffic data belongs.
[0094] Exemplarily, the message type is a WMS type or a TEM type, and the message identifier may be a message number generated by an online business system.
[0095] S320: input the system flow data into the business system to be deployed, and obtain the message data to be deployed output by the business system to be deployed based on the system flow data.
[0096] In this embodiment, the message data to be deployed also includes at least one preset message dimension of data source, message type, message identifier, message batch identifier and dealer identifier.
[0097] The data source represents the business system to be deployed, the message type represents the data type of the message body, the message identifier represents the identification information generated by the business system to be deployed based on the flow data, the message batch identifier represents the batch identification information corresponding to the flow data, and the dealer identifier represents the identification information corresponding to the dealer to which the flow data belongs.
[0098] Exemplarily, the message type is a WMS type or a TEM type, and the message identifier may be a message number generated by the business system to be deployed.
[0099] S330: Compare the online message data with the message data to be deployed to obtain a message comparison result.
[0100] S330 in this embodiment is similar to that in the above embodiment. Figure 1 The S130 shown corresponds to the same or similar steps, and will not be described in detail in this embodiment.
[0101] S340: When the message comparison result satisfies the message consistency condition, screen each online message in the online message data according to the message dimension value corresponding to at least one preset message dimension.
[0102] In a specific embodiment, the number of preset message dimensions is one. Exemplarily, when the preset message dimension is data source, the message dimension value is online business system or business system to be deployed, when the preset message dimension is message type, the message dimension value is WMS type or TMS type, when the preset message dimension is message batch identifier, the message dimension value is batch number 2022-11-11 or batch number 2022-12-12, and when the preset message dimension is dealer identifier, the message dimension value is dealer A or dealer B.
[0103] S350: Use the message comparison data corresponding to the at least one screened online message as classification comparison data.
[0104] Specifically, the screened online messages are online messages that match the dimension values of each message, and the classified comparison data are message comparison data that match the dimension values of each message.
[0105] S360. According to each classification comparison data, test flow data is selected from the flow data corresponding to each classification comparison data.
[0106] Specifically, for each classification comparison data, if the message comparison status in the classification comparison data is a successful comparison, the traffic data corresponding to the classification comparison data is used as the test traffic data, or, if the message difference item set in the classification comparison data is an empty set, the traffic data corresponding to the classification comparison data is used as the test traffic data, or, if the message identical item set in the classification comparison data contains all message items, the traffic data corresponding to the classification comparison data is used as the test traffic data.
[0107] S370: Based on at least one test traffic data, use the business system to be deployed to perform an update deployment operation on the online business system.
[0108] On the basis of the above embodiments, specifically, the method also includes: in the case where the classification comparison data includes a message statistical item set, using the message statistical item set of a non-empty set in each classification comparison data as a reference statistical item set; for each message statistical item corresponding to each reference statistical item set, obtaining the number of sets of reference statistical item sets containing the message statistical item, and determining the statistical item comparison ratio corresponding to the message item based on the number of sets and the number of traffic identifiers corresponding to the system traffic data; and outputting and displaying each message item and the statistical item comparison ratio corresponding to each message item.
[0109] Figure 6 A display diagram of a statistical item comparison ratio provided by an embodiment of the present invention. Specifically, Figure 6 Taking at least one preset message dimension including batch number, data source and message type as an example, Figure 6 The comparison ratio of statistical items corresponding to the batch number of 2022-11-11, the data source of system A, and the message type of WMS is shown, where system A can represent an online business system or a business system to be deployed.
[0110] Specifically, Figure 6 The "Total" in the column indicates the number of traffic identifiers corresponding to the system traffic data. The "Quantity" in the "Success" or "Failure" column indicates the total number of sets corresponding to each message statistical item. The parameter below the "Success" or "Failure" column indicates the number of sets corresponding to each message statistical item.
[0111] The advantage of this setting is that by performing statistical analysis on message comparison data based on message dimension data, message difference item dimension, and message same item dimension, data guidance is provided for subsequent system optimization, thereby further ensuring the update and deployment efficiency of the business system.
[0112] The technical solution of this embodiment screens each online message in the online message data according to the message dimension value corresponding to at least one preset message dimension, uses the message comparison data corresponding to at least one screened online message as the classification comparison data, selects test traffic data from the traffic data corresponding to each classification comparison data according to each classification comparison data, and uses the business system to be deployed to perform update deployment operations on the online business system based on at least one test traffic data, thereby solving the problem that the traditional update deployment method of the business system requires manual screening of the test traffic data, further improving the update deployment efficiency of the business system, and further reducing the update deployment risk of the business system.
[0113] Figure 7 The following is a schematic diagram of a business system update deployment device provided by an embodiment of the present invention. Figure 7 As shown, the device includes: an online message data acquisition module 410, a to-be-deployed message data acquisition module 420, a message comparison result determination module 430 and an update deployment operation execution module 440.
[0114] The online message data acquisition module 410 is used to acquire the system flow data input into the online business system and the online message data output by the online business system based on the system flow data;
[0115] The to-be-deployed message data acquisition module 420 is used to input the system flow data into the to-be-deployed business system, and acquire the to-be-deployed message data output by the to-be-deployed business system based on the system flow data;
[0116] The message comparison result determination module 430 is used to compare the online message data with the message data to be deployed to obtain a message comparison result;
[0117] The update deployment operation execution module 440 is used to execute the update deployment operation on the online business system using the business system to be deployed when the message comparison result meets the message consistency condition.
[0118] The technical solution of this embodiment obtains system traffic data input into the online business system and online message data output by the online business system based on the system traffic data, inputs the system traffic data into the business system to be deployed, obtains message data to be deployed output by the business system to be deployed based on the system traffic data, compares the online message data with the message data to be deployed, and obtains message comparison results. When the message comparison results meet the message consistency conditions, the business system to be deployed is used to perform update and deployment operations on the online business system, which solves the problems of long time and high error rate caused by manual operations in traditional update and deployment methods of business systems, improves the update and deployment efficiency of business systems, and reduces the update and deployment risks of business systems.
[0119] In a specific embodiment, the system flow data includes flow data corresponding to at least one flow identifier, the online message data includes online messages corresponding to each flow identifier, and the to-be-deployed message data includes to-be-deployed messages corresponding to each flow identifier;
[0120] Accordingly, the message comparison result determination module 430 is specifically configured to:
[0121] For each flow identifier, obtain the online message corresponding to the flow identifier in the online message data and the to-be-deployed message corresponding to the flow identifier in the to-be-deployed message data;
[0122] Perform a difference comparison operation on the online message and the message to be deployed to obtain the message comparison data corresponding to the traffic identifier;
[0123] Based on the message comparison data corresponding to each flow identifier, a message comparison result is determined.
[0124] In a specific embodiment, the message comparison data includes at least one of a message comparison state, a message difference item set, and a message identical item set;
[0125] Among them, the message comparison status is comparison success or comparison failure, the message difference items in the message difference item set represent message items that are different between the online message and the message to be deployed, and the message identical items in the message identical item set represent message items that are not different between the online message and the message to be deployed.
[0126] In a specific embodiment, the device further comprises:
[0127] A statistical item comparison ratio output display module is used to use a non-empty set of the message statistical item set in each message comparison data as a reference statistical item set when the message comparison data includes a message statistical item set;
[0128] For each message statistical item corresponding to each reference statistical item set, the number of reference statistical item sets including the message statistical item is obtained, and a statistical item comparison ratio corresponding to the message item is determined according to the number of sets and the number of traffic identifiers corresponding to the system traffic data;
[0129] Output and display the comparison ratio of each message item and the statistical item corresponding to each message item;
[0130] Among them, when the message statistical item set is a message difference item set, the reference statistical item set is a reference difference item set, the message statistical item is a message difference item, and the statistical item comparison rate is the difference item failure rate; when the message statistical item set is a message identical item set, the reference statistical item set is a reference identical item set, the message statistical item is a message identical item, and the statistical item comparison rate is the identical item success rate.
[0131] In a specific embodiment, the online message data further includes at least one preset message dimension of data source, message type, message identifier, message batch identifier, and dealer identifier corresponding to each online message;
[0132] Among them, the data source represents the online business system, the message type represents the data type of the message body, the message identifier represents the identification information generated by the online business system based on the traffic data, the message batch identifier represents the batch identification information corresponding to the traffic data, and the dealer identifier represents the identification information corresponding to the dealer to which the traffic data belongs.
[0133] In a specific embodiment, the update deployment operation execution module 440 is specifically used to:
[0134] Filtering each online message in the online message data according to the message dimension value corresponding to at least one preset message dimension;
[0135] Using the message comparison data respectively corresponding to at least one online message obtained by screening as classification comparison data;
[0136] According to the comparison data of each category, test flow data are selected from the flow data corresponding to each category comparison data;
[0137] Based on at least one test traffic data, an update deployment operation is performed on the online business system using the business system to be deployed.
[0138] In a specific embodiment, the device further comprises:
[0139] A model mapping result determination module is used to obtain a to-be-deployed database model of the to-be-deployed business system and an online database model of the online business system based on at least one flow identifier in the system flow data before performing an update deployment operation on the online business system using the to-be-deployed business system;
[0140] Determine the model mapping result based on the preset mapping data, the online database model and the database model to be deployed; wherein the preset mapping data represents the mapping relationship between the database fields of the online database model and the database fields of the database model to be deployed;
[0141] When the model mapping result meets the model consistency condition, the business system to be deployed is used to perform update deployment operations on the online business system.
[0142] The update deployment device for a business system provided in an embodiment of the present invention can execute the update deployment method for a business system provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0143] Figure 8 This is a schematic diagram of the structure of an update deployment system for a business system provided by an embodiment of the present invention. The update deployment system in the embodiment of the present invention can provide services for the update deployment method for the business system in the above-mentioned embodiment.
[0144] like Figure 8 As shown, the update deployment system 500 of the business system includes: an online business system 510, a business system to be deployed 520 and a control system 530. The online business system 510 and the business system to be deployed 520 are respectively communicated with the control system 530; wherein the online business system 510 is used to output online message data based on the input system flow data; the business system to be deployed 520 is used to output message data to be deployed based on the input system flow data.
[0145] Fig. 9 A schematic diagram of a control system provided for one embodiment of the present invention. The control system 530 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0146] like Fig. 9 As shown, the control system 530 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor 11, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through the bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0147] A number of components in the control system 530 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the control system 530 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0148] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSP), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the update deployment method of the business system provided in the above embodiment.
[0149] In some embodiments, the update deployment method of the business system provided in the above embodiments may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the control system 530 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps in the update deployment method of the business system described above may be executed. Alternatively, in other embodiments, the processor 11 may be configured to execute the update deployment method of the business system in any other appropriate manner (e.g., by means of firmware).
[0150] Various embodiments of the systems and techniques described above herein may be implemented in the following systems or combinations thereof: digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0151] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0152] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable storage medium. Examples of machine readable storage media may include electrical connections based on at least one line, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM), flash memories, optical fibers, portable compact disc read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0153] To provide interaction with a user, the systems and techniques described herein may be implemented on a terminal device having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the terminal device. Other types of devices may also provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0154] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a Local Area Network (LAN), a Wide Area Network (WAN), a blockchain network, and the Internet.
[0155] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.
[0156] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0157] 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 can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for updating and deploying a business system, characterized in that: include: Acquire system traffic data input into the online business system and online message data output by the online business system based on the system traffic data; Inputting the system flow data into the service system to be deployed, and obtaining the message data to be deployed output by the service system to be deployed based on the system flow data; Comparing the online message data with the message data to be deployed to obtain a message comparison result; When the message comparison result satisfies the message consistency condition, the to-be-deployed business system is used to perform an update deployment operation on the online business system.
2. The method according to claim 1, characterized in that The system flow data includes flow data corresponding to at least one flow identifier, the online message data includes online messages corresponding to each of the flow identifiers, and the to-be-deployed message data includes to-be-deployed messages corresponding to each of the flow identifiers; Accordingly, the comparing the online message data with the to-be-deployed message data to obtain a message comparison result includes: For each flow identifier, obtaining an online message corresponding to the flow identifier in the online message data and a to-be-deployed message corresponding to the flow identifier in the to-be-deployed message data; Performing a difference comparison operation on the online message and the message to be deployed to obtain message comparison data corresponding to the flow identifier; Based on the message comparison data respectively corresponding to each of the flow identifiers, a message comparison result is determined.
3. The method according to claim 2, characterized in that The message comparison data includes at least one of a message comparison state, a message difference item set, and a message same item set; Among them, the message comparison status is comparison success or comparison failure, the message difference items in the message difference item set represent the message items where there are differences between the online message and the message to be deployed, and the message identical items in the message identical item set represent the message items where there are no differences between the online message and the message to be deployed.
4. The method according to claim 3, characterized in that: The method further comprises: In the case where the message comparison data includes a message statistical item set, taking a message statistical item set that is not an empty set in each message comparison data as a reference statistical item set; For each message statistical item corresponding to each reference statistical item set, obtaining the number of reference statistical item sets that include the message statistical item, and determining the statistical item comparison ratio corresponding to the message item according to the number of sets and the number of traffic identifiers corresponding to the system traffic data; Output and display the comparison ratios of the message items and the statistical items respectively corresponding to the message items; Among them, when the message statistical item set is a message difference item set, the reference statistical item set is a reference difference item set, the message statistical item is a message difference item, and the statistical item comparison rate is the difference item failure rate; when the message statistical item set is a message identical item set, the reference statistical item set is a reference identical item set, the message statistical item is a message identical item, and the statistical item comparison rate is the identical item success rate.
5. The method according to claim 3, characterized in that: The online message data also includes at least one preset message dimension of data source, message type, message identifier, message batch identifier and dealer identifier corresponding to each of the online messages; Among them, the data source represents an online business system, the message type represents the data type of the message body, the message identifier represents the identification information generated by the online business system based on the traffic data, the message batch identifier represents the batch identification information corresponding to the traffic data, and the dealer identifier represents the identification information corresponding to the dealer to which the traffic data belongs.
6. The method according to claim 5, characterized in that The using the to-be-deployed business system to perform an update deployment operation on the online business system includes: Filtering each of the online messages in the online message data according to a message dimension value corresponding to at least one preset message dimension; Using the message comparison data respectively corresponding to at least one online message obtained by screening as classification comparison data; According to each of the classification comparison data, selecting test flow data from the flow data corresponding to each of the classification comparison data; Based on at least one test traffic data, the to-be-deployed business system is used to perform an update deployment operation on the online business system.
7. The method according to claim 2, characterized in that Before using the to-be-deployed business system to perform an update deployment operation on the online business system, the method further includes: Based on at least one traffic identifier in the system traffic data, obtaining a to-be-deployed database model of the to-be-deployed business system and an online database model of the online business system; Determine a model mapping result based on preset mapping data, the online database model and the database model to be deployed; wherein the preset mapping data represents a mapping relationship between a database field of the online database model and a database field of the database model to be deployed; In the case where the model mapping result satisfies the model consistency condition, the to-be-deployed business system is used to perform an update deployment operation on the online business system.
8. An update deployment device for a business system, characterized in that: include: An online message data acquisition module, used to acquire system flow data input into an online business system and online message data output by the online business system based on the system flow data; A module for acquiring message data to be deployed, used for inputting the system flow data into the business system to be deployed, and acquiring the message data to be deployed output by the business system to be deployed based on the system flow data; A message comparison result determination module, used to compare the online message data with the message data to be deployed to obtain a message comparison result; The update deployment operation execution module is used to use the to-be-deployed business system to execute the update deployment operation on the online business system when the message comparison result meets the message consistency condition.
9. A business system update deployment system, characterized in that: The update deployment system includes: an online business system, a business system to be deployed and a control system, wherein the online business system and the business system to be deployed are respectively connected to the control system for communication; Wherein, the online business system is used to output online message data based on input system traffic data; The service system to be deployed is used to output message data to be deployed based on input system traffic data; The control system includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the update deployment method of the business system described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the update deployment method of the business system according to any one of claims 1 to 7 when executed.