Business data processing method and device and electronic equipment
By testing and adjusting the business data to be released in a simulated environment, the problem of unreliable testing and verification in the online environment is solved, and the secure release and efficient processing of business data is achieved, thereby avoiding the occurrence of online business accidents.
Patent Information
- Application Number
- CN202411449285.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-14
- Publication Date
- 2025-01-07
AI Technical Summary
In the prior art, business data running in the online environment cannot be reliably tested and verified during the release process, which can easily lead to online business accidents.
Using a simulated environment, according to the online environment configuration, obtain the business data to be published and execute business logic in the simulated environment to determine whether the business simulation results meet the preset conditions. If not, obtain the changed business data to be published and publish it to the online environment.
Without affecting the operation of the online environment, simulate the business execution results of the business data to be released in the online environment, avoid testing data pollution, improve business data processing and release efficiency, and promptly discover and adjust problems.
Smart Images

Figure CN119271567A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present specification relate to the field of computer technology, and in particular, to a method, device and electronic device for processing business data. Background Art
[0002] Generally, after the online environment configuration is completed, daily business operation and maintenance are required to ensure the safe operation of the online environment. Business operation and maintenance can include configuration adjustment of business data running in the online environment, update and release or push of business data, etc.
[0003] In the prior art, when performing business operation and maintenance, each business data configuration update is managed through version record management. For the business data to be released, the business data to be released is tested and verified in the online environment, and a version number is configured for this test verification. After the test verification, the test results of the business data to be released can be previewed. After the test verification passes, the business data to be released can be released to the online environment. Summary of the invention
[0004] In view of this, the embodiments of this specification provide a business data processing method, device and electronic device for solving the problem in the prior art that business data running in an online environment cannot be reliably tested and verified during the publishing process, which easily leads to online business accidents.
[0005] The embodiments of this specification adopt the following technical solutions: The embodiment of this specification provides a business data processing method, which is applied to a simulation environment, wherein the simulation environment is configured according to an online environment, and the method includes: Get the business data to be published; Executing corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; Determine whether the business simulation result meets the preset conditions; If not, obtain the changed business data to be published; The modified business data to be published is published to the online environment.
[0006] The embodiment of the present specification also provides a business data processing device, which is applied to a simulation environment, wherein the simulation environment is configured according to an online environment, and the device includes: The first acquisition module acquires the business data to be published; An execution module executes corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; A judgment module, judging whether the business simulation result meets the preset conditions; The second acquisition module, if not, acquires the modified business data to be published; The publishing module publishes the modified business data to be published to the online environment.
[0007] The embodiment of the present specification also provides an electronic device, which is applied to a simulation environment, wherein the simulation environment is configured according to an online environment, and the electronic device includes at least one processor and a memory, wherein the memory stores a program and is configured such that the at least one processor executes the following steps: Get the business data to be published; Executing corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; Determine whether the business simulation result meets the preset conditions; If not, obtain the changed business data to be published; The modified business data to be published is published to the online environment.
[0008] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: By configuring the simulation environment according to the online environment, after obtaining the business data to be released, the corresponding business logic is executed in the simulation environment using the business data to be released, and the business simulation results of the business data to be released are obtained. It is determined whether the business simulation results meet the preset conditions. If so, the business data to be released can be released to the online environment.
[0009] Since the simulation environment is configured according to the online environment, it can simulate the online environment very well. By using the business data to be released in the simulation environment to execute the corresponding business logic, the business execution results of the business data to be released in the online environment can be simulated without affecting the operation of the online environment. This can effectively prevent the test data from polluting the online business data, and can more conveniently view the problems that arise during the test process so that changes and adjustments can be made in a timely manner to improve the efficiency of business data processing and release. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The drawings described herein are used to provide a further understanding of the embodiments of this specification and constitute a part of the embodiments of this specification. The illustrative embodiments of this specification and their descriptions are used to explain this application and do not constitute an improper limitation on this application. In the drawings: Figure 1 A schematic diagram of the structure of a business data processing system provided in an embodiment of this specification; Figure 2A flowchart of a method for processing business data provided by an embodiment of this specification; Figure 3 A flowchart of a method for processing business data provided by an embodiment of this specification; Figure 4 A flowchart of a method for processing business data provided by an embodiment of this specification; Figure 5 A schematic diagram of the structure of a business data processing device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0011] In the prior art, in the daily operation and maintenance of the online environment, for business data that needs to be frequently updated and configured, that is, business data to be released, the business data to be released is usually tested directly in the online environment. After the test is completed, the display effect of the data to be released is previewed to determine whether the test results meet expectations. If so, the business data to be released that has passed the test is released in the online environment.
[0012] In this process, since the test is conducted in an online environment, it is impossible to view the overall operating effect of the business data to be released in the online environment. For example, for the business data to be released that includes page jumps, it is impossible to click to view the page after the jump. In this case, it is impossible to find deeper test results beyond the preview, and it is also impossible to find possible problems in this part of the test results. After being released to the online environment, it is easy to cause business accidents and give users a bad experience.
[0013] Furthermore, in the context of high-frequency business data configuration updates, the accumulation of test data will cause pollution to online data, affecting the normal business of the online environment.
[0014] Therefore, the embodiments of the present specification provide a business data processing method, device and electronic device, which configure a simulation environment according to an online environment. After obtaining the business data to be published, the business data to be published is used to execute the corresponding business logic in the simulation environment to obtain the business simulation result of the business data to be published, and it is determined whether the business simulation result meets the preset conditions. If so, the business data to be published can be published to the online environment.
[0015] Since the simulation environment is configured according to the online environment, it can simulate the online environment very well. By using the business data to be released in the simulation environment to execute the corresponding business logic, the business execution results of the business data to be released in the online environment can be simulated without affecting the operation of the online environment. This can effectively prevent the test data from polluting the online business data, and can more conveniently view the problems that arise during the test process so that changes and adjustments can be made in a timely manner to improve the efficiency of business data processing and release.
[0016] In order to make the purpose, technical solution and advantages of this application clearer, the technical solution of this application will be clearly and completely described below in conjunction with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0017] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0018] like Figure 1 As shown, it is a structural diagram of a business data processing system provided in an embodiment of this specification, wherein the business data processing system may include a simulation environment 1A, an online environment 1B and a user terminal 1C.
[0019] The interaction process between the simulation environment 1A, the online environment 1B and the user terminal 1C is as follows: S101: Execute corresponding business logic using the business data to be published in the simulation environment 1A.
[0020] S103: The simulation environment 1A publishes the to-be-published business data that has passed the simulation test to the online environment 1B.
[0021] S105: The online environment 1B provides business services for the user terminal 1C by executing corresponding business logic using the business data to be published.
[0022] The environment can refer to a whole set of systems that are logically or physically independent. This system includes all components for processing user requests, such as gateways, service frameworks, microservice registration centers, configuration centers, messaging systems, caches, databases, etc., which can be used to process requests of specified categories.
[0023] The simulation environment 1A can be understood as a simulation environment configured according to the online environment 1B, configured with the same business execution environment as the online environment, used to simulate the real user access environment, so as to simulate the business execution of the business data to be published to the online environment 1B, achieve the same business execution results as the online environment 1B, and simulate and predict the business execution process of the business data in the online environment 1B to avoid the occurrence of business accidents in the online environment 1B and affect the user experience. Among them, the simulation environment 1A can be a pre-release environment, etc., which is not specifically limited here.
[0024] The online environment 1B can be understood as a business execution environment for users, and specifically refers to the operating environment after the application is published to the server. It is the environment that users actually access. Therefore, the operation of the online environment 1B affects the user experience.
[0025] In the embodiment of this specification, the simulation environment 1A and the online environment 1B are independent and isolated from each other. The database data of the simulation environment 1A is derived from the database data of the online environment 1B to achieve the simulation of the online environment 1B.
[0026] The database data of the simulation environment 1A and the database data of the online environment 1B are isolated from each other. In a specific application scenario, the two can use one of the following methods to achieve data isolation: First, the simulation environment 1A and the online environment 1B use independent databases, and the two environments respectively call the data in their respective corresponding databases.
[0027] Secondly, the simulation environment 1A and the online environment 1B use the same database, but the data of the simulation environment 1A and the online environment 1B are stored in different data tables, and different data tables are distinguished and isolated using different environment identifiers.
[0028] In this case, the simulation environment 1A can call the data in the data table corresponding to the identifier of the simulation environment, and the online environment 1B can call the data in the data table corresponding to the identifier of the online environment.
[0029] Third, the simulation environment 1A and the online environment 1B use the same database, but the data of the simulation environment 1A and the online environment 1B are distinguished and isolated using different environment identifiers.
[0030] In this case, the simulation environment 1A can call data carrying the identification of the simulation environment, and the online environment 1B can call data carrying the identification of the simulation environment.
[0031] By isolating the database data of the simulation environment 1A from the database data of the online environment 1B, the simulation environment 1A will not affect the operation of the online environment 1B when performing data calls and business simulations of business data to be released, and will not affect users' access to business services.
[0032] like Figure 2 As shown, it is a flow chart of a business data processing method provided in an embodiment of the present specification. The business data processing method provided in an embodiment of the present specification can be applied to a simulation environment, wherein the simulation environment is configured according to an online environment.
[0033] In the embodiments of this specification, the specific meanings of the simulation environment and the online environment are as described in the above embodiments and will not be repeated here.
[0034] As a preferred application embodiment, the simulation environment and the online environment can be configured on different server-side devices of the server cluster to achieve better environmental isolation and data isolation between the simulation environment and the online environment. The data isolation method is as described in the above embodiment and will not be repeated here.
[0035] S201: Obtain the business data to be published.
[0036] In the embodiments of the present specification, the business data to be released may refer to business data for configuring and updating an online environment, wherein the business data to be released may specifically be business data that is pushed to users on a daily basis, such as promotional event information, business function introduction information, etc. In this case, the business data to be released may be outside the server, edited by business operations staff, and then uploaded to the server for testing and release.
[0037] In another application scenario, the business data to be released may also be a configuration update of business data such as interactive controls in the online environment, for example, adjusting the position, color, size, etc. of the interactive controls, which is not specifically limited here. In this case, since the simulation environment is configured according to the online environment, the simulation of the online environment can be achieved, so that the business data can be configured directly in the simulation environment, and the business data to be released can be determined based on the configuration results.
[0038] As an application embodiment, obtaining the service data to be published may include: Receive business data publishing request; The to-be-published business data is extracted from the business data publishing request.
[0039] In the embodiments of this specification, the business data publishing request may refer to a request for publishing business data in an online environment to provide users with better business services, and the business data publishing request may be sent by a business person. The business data publishing request may carry the business data to be published in the online environment.
[0040] Further, extracting the to-be-published business data from the business data publishing request may include: Extracting the target business object to be replaced from the business data publishing request; Executing corresponding business logic using the business data to be published in the simulation environment includes: Replacing the old business object in the simulation environment with the target business object; The target business object is used in the simulation environment to execute corresponding business logic to obtain a business simulation result of the target business object.
[0041] In the embodiments of this specification, a business object may refer to various business elements running in an online environment, specifically background images, controls, push information, etc., which are not specifically limited here. The target business object can be understood as a new business object that needs to be published to the online environment to replace the corresponding old business object in the online environment, execute the corresponding updated business logic, and display the updated business page to the user.
[0042] In this case, the target business object can be used as the business data to be published. By replacing the old business object in the simulation environment with the target business object and using the target business object to execute the corresponding business logic in the simulation environment, the business simulation result of the simulated business object can be obtained, which is the business execution result of the new business object.
[0043] For example, the background image displayed to users in the online environment needs to be replaced with a target image that matches the corresponding holiday scene during holidays. In this case, it is necessary to ensure that the replaced target image can adapt to the online environment and achieve the preset display effect. In order to avoid publishing the target image directly to the online environment, which may cause business accidents due to possible adaptation problems and affect the user experience, the old background image can be replaced with the target image in a simulated environment in advance to obtain a simulated display result of the target image, so that the target image can be adjusted according to the simulated display result until the preset display effect is achieved before being published to the online environment.
[0044] As another application embodiment, if at least one target application is simulated and running in the simulated business environment, extracting the to-be-published business data from the business data publishing request may also include: Extracting the corresponding target application identifier from the business data to be published; Determining, in the at least one target application in the simulated operation, a target application corresponding to the target application identifier; Utilizing the business data to be published to execute corresponding business logic includes: The business data to be published is used to execute corresponding business logic in the determined target application to obtain a business simulation result of the business data to be published in the target application of the simulation operation.
[0045] In the embodiments of this specification, the target application may refer to a business service application that has been released and runs in an online environment to provide corresponding business services to users. Specifically, it may be an instant messaging application, a payment application, an office application, a shopping application, etc., or different mini-programs that run in the business service application, etc., and no specific limitation is made here.
[0046] Since the simulation environment is configured according to the online environment, the simulation environment also simulates the running of the same target application as the online environment. Different business data to be published need to be run in the corresponding target application. By identifying the target application identifier carried in the business data to be published, the target application for simulation testing can be determined.
[0047] For example, for different mini-program applications installed in a payment application, during a business data configuration update process, one of the mini-program applications X may be configured and updated. During the test process, the mini-program application X is determined by identifying the target application identifier X in the business data to be released. The simulated mini-program application X can then be used to perform execution tests on the corresponding business logic of the business data to be released, and the business simulation results of the business data to be released in the mini-program application X can be obtained.
[0048] In another application scenario, the business data configuration may be changed directly in the simulation environment according to business needs, and the business data to be published may be determined according to the result of the configuration change, and the business data to be published may carry the identification of the simulation environment.
[0049] Specifically, for applications running in an online environment, during daily maintenance and operation, the controls, background images, layouts, etc. in the application may be adjusted and changed according to changes in business needs. By using the business data processing method provided in the embodiments of this specification, since the application is simulated in the simulation environment, the same operating effect as the online environment can be achieved, so the business data configuration changes can be directly made to the simulated application in the simulation environment.
[0050] In this case, the configuration change items of the business data may include at least one item, and the business data to be released can be determined based on the at least one configuration change item. After the determined business data to be released passes the simulation test of the simulation environment, the at least one configuration change item included in the business data to be released can be uniformly and centrally released to the application in the online environment without the need to release each configuration change item separately.
[0051] For example, the background of the application is related to factors such as the location, time, solar terms, and holidays of the terminal. When these factors change, the background of the application needs to be adjusted and replaced in a timely manner. In this process, it may involve the adjustment of controls that match the background image of the application, as well as the adjustment of the layout of information pushed to users. For these configuration changes, you can make unified adjustments and changes to the simulated running applications in the simulation environment, determine these configuration changes as business data to be released, and after simulation testing, you can publish them to the online environment in a unified manner.
[0052] S203: Execute corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published.
[0053] In the embodiments of the present specification, the corresponding business logic is executed using the business data to be published in a simulation environment, that is, the business data to be published is subjected to simulated business testing using the simulation environment to simulate the business execution results of the business data to be published in an online environment, so as to facilitate viewing of possible problems in the business execution process of the business data to be published.
[0054] Business logic can be understood as the operating logic of the business data to be published during the business execution process. Specifically, it can be the display order of at least one display page corresponding to the business data to be published, the display order of text or pictures contained in the business data to be published, etc., which is not specifically limited here.
[0055] In specific application scenarios, since the online environment will generate a large amount of user data or other operational data during its continuous operation, and these operational data generated during the operation may also affect the operation of the business data to be published. For example, for the pushed promotion information, during the testing process, in addition to considering whether there is a problem with the promotion information itself, it is also necessary to consider the impact of user traffic on the promotion information.
[0056] Therefore, in order to ensure that the operating results of the simulation environment are highly consistent with those of the online environment, before using the business data to be released to execute the corresponding business logic, you can first determine whether the simulation data in the simulation environment is consistent with the operational data in the online environment. If the two are consistent, perform simulation tests on the business data to be released.
[0057] In a specific application embodiment, the online environment may periodically feed back the online operation data generated by the operation to the simulation environment, or the simulation environment may periodically request the online operation data from the online environment, or update the simulation data through other means, which are not specifically limited here.
[0058] S205: Determine whether the business simulation result meets the preset conditions.
[0059] In the embodiments of this specification, the preset conditions may refer to the expected results of the business data to be published when it runs in an online environment, specifically the display effect of the business data to be published when it runs, the business execution logic of the business data to be published, etc., which are not specifically limited here.
[0060] By judging whether the simulation test results meet the preset conditions, you can determine whether the business data to be released meets the expected results. You can also intuitively and clearly view the problems that arise during the test execution so that you can make changes and adjustments in a timely manner.
[0061] As an application embodiment, judging whether the business simulation result meets the preset condition may include: Determine the page display result of the to-be-published business data according to the business simulation result; Determine whether the page display result of the business data to be published meets the preset conditions.
[0062] In an embodiment of the present specification, the page display result may refer to the display page after the corresponding business logic is executed using the business data to be published, that is, the display page seen by the user when obtaining the business data to be published through the online environment, such as an updated background image.
[0063] By judging whether the page display result of the business data to be published meets the preset conditions, it can be determined whether the business execution result of the business data to be published meets expectations. For example, it can be judged whether the adaptability, color, font size, etc. of the display page of the target background image to be published meet the preset conditions. If so, it means that the target background image to be published meets the preset conditions and can be published to the online environment to provide users with corresponding business services.
[0064] Further, judging whether the page display result of the to-be-published business data meets a preset condition may include: Receiving confirmation information from the user regarding the page display result; Determine whether the page display result meets the preset conditions according to the confirmation information.
[0065] In the embodiments of the present specification, the user may refer to a business operation personnel, who may obtain a corresponding page display result after executing the corresponding business logic using the business data to be published in a simulation environment. The business operation personnel may confirm the page display result. After receiving the confirmation information of the business operation personnel on the page display result, the simulation environment may determine whether the page display result meets the preset conditions based on the confirmation information.
[0066] If the confirmation information contains negative information about the page display result, for example, the confirmation information points out errors in the page display result, etc., then it indicates that the page display result does not meet the preset conditions and needs to be adjusted, and the online environment cannot be published. Otherwise, it indicates that the page display result meets the preset conditions and can be published to the online environment.
[0067] Specifically, since the simulation environment simulates the online environment that users actually access, the purpose of the test is to ensure that users can normally obtain the business services of the business data to be published in the online environment. Therefore, after the simulation test of the business data to be published in the simulation environment, the simulation page of the business data to be published after publication can be obtained. The tester can operate the business data to be published in the simulation page as a user, rather than just previewing the results in the form of a snapshot. This allows the tester to intuitively and clearly discover problems in actual operations, including possible problems with business operation logic such as page interaction and link jumps.
[0068] As another application embodiment, judging whether the page display result of the to-be-published business data meets a preset condition may include: Compare the page display result with the preset page display result to see if they are consistent.
[0069] In the embodiments of the present specification, the simulation environment may compare the service display result with the preset page display result to determine whether the page display result of the service data to be published meets the preset conditions.
[0070] Among them, the preset page display result can be the page display effect that the business data to be published needs to achieve when the simulation environment obtains the business data to be published. Specifically, it can be the display order between the pages to be displayed, the color and font size of the pages to be displayed, etc., which are not specifically limited here.
[0071] In a specific application scenario, if the business simulation result includes at least two page display results, determining whether the business simulation result meets the preset condition may also include: Determine whether the pages corresponding to the at least two page display results conform to a preset page jump relationship.
[0072] Specifically, if two display pages are displayed during the execution of the corresponding business logic of the business data to be published, that is, the executed business logic contains the jump logic of at least two display pages. By judging whether the pages corresponding to the at least two page display results conform to the preset page jump relationship, it can be judged whether the display order between the at least two display pages conforms to the preset conditions.
[0073] For example, if the business data to be published is a business push article, the business push article may not only include an introduction to the push business, but also include a jump link to the push business, and the push business interface corresponding to the jump link may also include multiple display interfaces with a sequence. In this case, the simulation environment needs to simulate the business introduction page of the business push article, each business page after the jump link, etc. It is necessary to determine whether each page itself meets the preset conditions, and it is also necessary to determine whether the display order of each page meets the preset conditions.
[0074] S207: If not, obtain the modified business data to be published.
[0075] In the embodiment of the present specification, if the business simulation result of the business data to be published does not meet the preset conditions, it indicates that an error occurs when the simulation environment uses the business data to be published to execute the corresponding business logic, and the expected business page display result is not obtained.
[0076] In this case, the simulation environment can obtain the modified business data to be released, and repeatedly execute the above steps S201 to S205 to perform simulation tests on the modified business data to be released, until the obtained business simulation results meet the preset conditions. The modified business data to be released can refer to the business data to be released that is modified according to the business simulation results obtained in the above step S203.
[0077] As an application embodiment, obtaining the modified business data to be published may include: Rolling back the business data in the simulation environment; Receive the changed business data to be published sent by the user.
[0078] In the embodiments of this specification, rollback may refer to the act of restoring a program or data to its last correct state after a program or data processing error, wherein rollback may include program rollback and data rollback.
[0079] If an error occurs in the business data to be published during the simulation test, and the business simulation result does not meet the preset conditions, in order to facilitate the next round of simulation tests, the business data configuration in the simulation environment can be rolled back to the last correct state, so as to correct the erroneous part of the data to be published. Then, after receiving the modified business data to be published sent by the user, the above steps S203 to S205 can be repeatedly performed on the modified business data to be published, and the specific process will not be repeated here, until the business simulation result of the modified business data to be published meets the preset conditions.
[0080] As another application embodiment, obtaining the modified business data to be published may include: According to the business simulation result, the to-be-published business data is modified in the simulation environment to obtain the modified to-be-published business data.
[0081] In another application scenario, if the business simulation results of the business data to be released do not meet the preset conditions, you can also make configuration changes to the erroneous parts of the business data to be released in the simulation environment according to the business simulation results, and then perform simulation tests on the changed business data to be released. In this way, you can directly make changes and simulation tests on the business data to be released in the simulation environment, which can directly display the business execution effect of the changed business data to be released, thereby improving the testing and release efficiency of the business data to be released.
[0082] S209: Publishing the modified business data to be published to the online environment.
[0083] In an embodiment of the present specification, if the business simulation result of the changed business data to be published meets the preset conditions, it indicates that the changed business data to be published has passed the simulation test and meets the conditions for being published to the online environment, then the changed business data to be published can be published to the online environment.
[0084] As an application embodiment, publishing the modified business data to be published to the online environment may include: Execute corresponding business logic using the modified business data to be published in the simulation environment to obtain a modified business simulation result; When the modified business simulation result meets the preset condition, the modified business data to be published is published to the online environment.
[0085] Specifically, before the changed business data to be published is published to the online environment, the above steps S203 to S205 can be repeatedly executed on the changed business data to be published. The specific process will not be repeated here. When the changed business simulation result meets the preset conditions, it indicates that the changed business data to be published meets the publishing conditions and can be published to the online environment.
[0086] As an application embodiment, publishing the modified business data to be published to the online environment may include: Adding the identification of the simulation environment to the changed business data to be published; The business data to be published carrying the identification of the simulation environment is sent to the server.
[0087] By adding the identification of the simulation environment to the changed business data to be released, it is indicated that the changed business data to be released is the business data to be released that has passed the simulation test in the simulation environment and meets the conditions for being released to the online environment.
[0088] By sending the business data to be published carrying the identification of the simulation environment to the server, the server can identify the identification of the simulation environment to determine whether the business data to be published meets the conditions for publishing to the online environment. If so, the server can publish the business data to be published to the online environment.
[0089] To ensure that the business data running in the online environment have all been tested in the simulation environment, the business data to be released can be directly released from the simulation environment to the online environment. Specifically, the business data to be released that has passed the simulation test can be directly copied in the simulation environment, and the simulation environment logo can be added to the copied business data to be released. After the release approval, the business data to be released can be released to the online environment.
[0090] In addition, in order to better distinguish between simulation data and online data, when adding the identification of the simulation environment to the changed business data to be published, a test pass label field can also be added to the business data to be published, which can be at least one of "passed the test", "test passed time", "test number", etc., and is not specifically limited here.
[0091] A business data processing method provided in an embodiment of the present specification configures a simulation environment according to an online environment. After obtaining the business data to be published, the business data to be published is used to execute corresponding business logic in the simulation environment to obtain a business simulation result of the business data to be published, and it is determined whether the business simulation result meets the preset conditions. If so, the business data to be published can be published to the online environment.
[0092] Since the simulation environment is configured according to the online environment, it can simulate the online environment very well. By using the business data to be released in the simulation environment to execute the corresponding business logic, the business execution results of the business data to be released in the online environment can be simulated without affecting the operation of the online environment. This can effectively prevent the test data from polluting the online business data, and can more conveniently view the problems that arise during the test process so that changes and adjustments can be made in a timely manner to improve the efficiency of business data processing and release.
[0093] like Figure 3 As shown, it is a flow chart of a business data processing method provided in an embodiment of this specification. The embodiment of this specification takes the business data configuration update of a small program running in an online environment as a specific application embodiment.
[0094] In the embodiment of this specification, several applets are installed in application A, and application A is published and run online. For the simulation environment simulating the online environment, application A is simulated and run. In order to better simulate the running effect of the applets in application A, the same applets are also installed in the simulated application A.
[0095] In this case, the business data to be released may be a configuration update of the business data of application A itself, or a configuration update of the business data of each mini-program, or the addition or deletion of a mini-program, etc., which is not specifically limited here. The specific implementation process is as follows: S301: receiving business data to be published.
[0096] In the embodiment of the present specification, the business data to be released carries an environment identifier of a simulation environment, indicating that the business data to be released needs to be subjected to a simulation test.
[0097] Among them, the environment identifier can be understood as identification data that characterizes the operating environment, which is used to identify and distinguish the online environment and the simulation environment. By extracting the environment identifier, the operating environment for processing the business data to be published can be determined.
[0098] S303: Extract the mini-program identifier carried in the business data to be published.
[0099] S305: Based on the mini-program identifier, start the mini-program corresponding to the mini-program identifier in the simulation environment.
[0100] S307: Execute corresponding business logic in the mini program using the business data to be published to obtain a business simulation result of the business data to be published.
[0101] S309: Determine whether the business simulation result meets the preset conditions.
[0102] S311: If yes, the environment identifier carried in the to-be-published business data is replaced with the identifier of the online environment.
[0103] In the embodiment of the present specification, by replacing the environment identifier carried in the to-be-published business data with the identifier of the online environment, it is indicated that the to-be-published business data has passed the simulation test and is qualified to be published to the online environment.
[0104] S313: Publishing the to-be-published business data carrying the identifier of the online environment to the online environment.
[0105] S315: If not, roll back to step S301, adjust the business data to be released, and repeat steps S301 to S309 until the simulation test result of the business data to be released meets the preset condition.
[0106] like Figure 4 As shown, it is a flowchart of a business data processing method provided in an embodiment of this specification. The embodiment of this specification takes the configuration change of business data as a specific application embodiment.
[0107] S401: Obtain DRM environment configuration.
[0108] In the embodiments of this specification, DRM (Distributed Resource Management) is a real-time dynamic configuration management framework in a distributed environment, which is suitable for configuration items with low frequency changes. DRM can be used to perform real-time dynamic configuration management on online environments and simulation environments.
[0109] S403: Obtain the server device domain name corresponding to the current environment.
[0110] The current environment may be a business operating environment obtained by performing DRM environment configuration, and specifically may be an online environment or a simulation environment. By obtaining the server device domain name corresponding to the current environment, it may be determined whether the current environment is an online environment or a simulation environment.
[0111] S405: According to the server device domain name, determine whether the current environment supports the configuration change operation of the business data, if so, execute steps S407 to S415, if not, execute step S417.
[0112] If the current environment supports configuration change operations for business data, it indicates that the current environment is a simulation environment.
[0113] If the current environment does not support configuration changes for business data, it indicates that the current environment is an online environment.
[0114] S407: If the current environment supports the configuration change operation of the business data, the configuration change of the business data is performed in the current environment to obtain the business data to be released.
[0115] S409: Execute corresponding business logic using the business data to be published to obtain a business simulation result.
[0116] S411: According to the business simulation result, determine whether configuration rollback is required, if so, return to step S407, if not, execute step S413.
[0117] If a rollback is required, it means that the business simulation results do not meet the preset conditions and configuration changes need to be corrected.
[0118] If rollback is not required, it means that the business simulation results meet the preset conditions and can be published to the online environment to provide corresponding business services to users.
[0119] S413: Synchronize the business data to be released that has passed the simulation test to the online environment.
[0120] S415: The online environment loads the to-be-published business data that has passed the simulation test to provide corresponding business services to users.
[0121] S417: End the configuration change of the business data.
[0122] like Figure 5 As shown, based on the same inventive concept, an embodiment of this specification also provides a structural schematic diagram of a business data processing device.
[0123] The business data processing device provided in the embodiments of this specification applies a simulation environment, and the simulation environment is configured according to an online environment. The device may include: The first acquisition module 501 acquires the business data to be published; An execution module 502 executes corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; A judgment module 503 is used to judge whether the business simulation result meets a preset condition; The second acquisition module 504, if not, acquires the modified business data to be published; The publishing module 505 publishes the modified business data to be published to the online environment.
[0124] Furthermore, obtaining the business data to be published may include: Receive business data publishing request; The to-be-published business data is extracted from the business data publishing request.
[0125] Further, extracting the to-be-published business data from the business data publishing request may include: Extracting the target business object to be replaced from the business data publishing request; Executing corresponding business logic using the business data to be published in the simulation environment includes: Replacing the old business object in the simulation environment with the target business object; The target business object is used in the simulation environment to execute corresponding business logic to obtain a business simulation result of the target business object.
[0126] Further, if at least one target application is simulated and running in the simulated business environment, extracting the to-be-published business data from the business data publishing request may also include: Extracting the corresponding target application identifier from the business data to be published; Determining, in the at least one target application in the simulated operation, a target application corresponding to the target application identifier; Utilizing the business data to be published to execute corresponding business logic includes: The business data to be published is used to execute corresponding business logic in the determined target application to obtain a business simulation result of the business data to be published in the target application of the simulation operation.
[0127] Further, judging whether the business simulation result meets the preset condition may include: Determine the page display result of the to-be-published business data according to the business simulation result; Determine whether the page display result of the business data to be published meets the preset conditions.
[0128] Further, judging whether the page display result of the to-be-published business data meets a preset condition may include: Receiving confirmation information from the user regarding the page display result; Determine whether the page display result meets the preset conditions according to the confirmation information.
[0129] Further, judging whether the page display result of the to-be-published business data meets a preset condition may include: Compare the page display result with the preset page display result to see if they are consistent.
[0130] Further, if the business simulation result includes at least two page display results, determining whether the business simulation result meets the preset condition may also include: Determine whether the pages corresponding to the at least two page display results conform to a preset page jump relationship.
[0131] Furthermore, obtaining the modified business data to be published may include: Rolling back the business data in the simulation environment; Receive the changed business data to be published sent by the user.
[0132] Furthermore, obtaining the modified business data to be published may include: According to the business simulation result, the to-be-published business data is modified in the simulation environment to obtain the modified to-be-published business data.
[0133] Furthermore, publishing the modified business data to be published to the online environment may include: Execute corresponding business logic using the modified business data to be published in the simulation environment to obtain a modified business simulation result; When the modified business simulation result meets the preset condition, the modified business data to be published is published to the online environment.
[0134] Furthermore, publishing the modified business data to be published to the online environment may include: Adding the identification of the simulation environment to the changed business data to be published; The business data to be published carrying the identification of the simulation environment is sent to the server.
[0135] A business data processing device provided in an embodiment of the present specification configures a simulation environment according to an online environment. After obtaining the business data to be published, the business data to be published is used to execute corresponding business logic in the simulation environment to obtain a business simulation result of the business data to be published, and it is determined whether the business simulation result meets the preset conditions. If so, the business data to be published can be published in the online environment.
[0136] Since the simulation environment is configured according to the online environment, it can simulate the online environment very well. By using the business data to be released in the simulation environment to execute the corresponding business logic, the business execution results of the business data to be released in the online environment can be simulated without affecting the operation of the online environment. This can effectively prevent the test data from polluting the online business data, and can more conveniently view the problems that arise during the test process so that changes and adjustments can be made in a timely manner to improve the efficiency of business data processing and release.
[0137] Based on the same inventive concept, an embodiment of this specification further provides an electronic device, which is applied to a simulation environment, wherein the simulation environment is configured according to an online environment, and the electronic device includes at least one processor and a memory, wherein the memory stores a program and is configured to execute the following steps by the at least one processor: Get the business data to be published; Executing corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; Determine whether the business simulation result meets the preset conditions; If not, obtain the changed business data to be published; The modified business data to be published is published to the online environment.
[0138] Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.
[0139] Based on the same inventive concept, an embodiment of this specification further provides a computer-readable storage medium, which is applied to a simulation environment, wherein the simulation environment is configured according to an online environment, and the computer-readable storage medium includes a program used in conjunction with an electronic device, and the program can be executed by a processor to complete the following steps: Get the business data to be published; Executing corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; Determine whether the business simulation result meets the preset conditions; If not, obtain the changed business data to be published; The modified business data to be published is published to the online environment.
[0140] Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.
[0141] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (for example, improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (for example, a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user programming the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0142] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0143] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0144] For the convenience of description, the above device is described by functions divided into various modules and / or various units. Of course, when implementing the present application, the functions of each module and / or each unit can be implemented in the same or multiple software and / or hardware.
[0145] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0146] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process flow, thereby providing instructions that can be executed on the computer or other programmable device to implement the process flow. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0149] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0150] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0151] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0152] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0153] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0154] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0155] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the claims of the present application.
Claims
1. A business data processing method is applied to a simulation environment, wherein the simulation environment is configured according to an online environment, and the method comprises: Get the business data to be published; The business data to be released carries an environment identifier of a simulation environment, where the environment identifier is identification data representing an operating environment; Executing corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; Determine whether the business simulation result meets the preset conditions; If the business simulation result meets the preset conditions, the business data to be published is published to the online environment.
2. The method according to claim 1, obtaining the business data to be published, comprising: Receive business data publishing request; The to-be-published business data is extracted from the business data publishing request.
3. The method according to claim 2, extracting the to-be-published business data from the business data publishing request, comprising: Extracting the target business object to be replaced from the business data publishing request; Executing corresponding business logic using the business data to be published in the simulation environment includes: Replacing the old business object in the simulation environment with the target business object; The target business object is used in the simulation environment to execute corresponding business logic to obtain a business simulation result of the target business object.
4. The method according to claim 2, if at least one target application is simulated and running in the simulation environment, extracting the to-be-published business data from the business data publishing request, further comprising: Extracting the corresponding target application identifier from the business data to be published; Determining, in the at least one target application in the simulated operation, a target application corresponding to the target application identifier; Utilizing the business data to be published to execute corresponding business logic includes: The business data to be published is used to execute corresponding business logic in the determined target application to obtain a business simulation result of the business data to be published in the target application of the simulation operation.
5. The method according to claim 1, wherein determining whether the business simulation result meets a preset condition comprises: Determine the page display result of the to-be-published business data according to the business simulation result; Determine whether the page display result of the business data to be published meets the preset conditions.
6. The method according to claim 5, judging whether the page display result of the business data to be published meets the preset conditions, comprising: Receiving confirmation information from the user regarding the page display result; Determine whether the page display result meets the preset conditions according to the confirmation information.
7. The method according to claim 5, judging whether the page display result of the to-be-published business data meets a preset condition, comprises: Compare the page display result with the preset page display result to see if they are consistent.
8. The method of claim 5, if the business simulation result includes at least two page display results, then determining whether the business simulation result meets a preset condition further comprises: Determine whether the pages corresponding to the at least two page display results conform to a preset page jump relationship.
9. The method according to claim 1, obtaining the modified business data to be published, comprising: Rolling back the business data in the simulation environment; Receive the changed business data to be published sent by the user.
10. The method according to claim 1, obtaining the modified business data to be published, comprising: According to the business simulation result, the to-be-published business data is modified in the simulation environment to obtain the modified to-be-published business data.
11. The method according to claim 1, publishing the modified business data to be published to the online environment, comprising: Execute corresponding business logic using the modified business data to be published in the simulation environment to obtain a modified business simulation result; When the modified business simulation result meets the preset condition, the modified business data to be published is published to the online environment.
12. The method according to claim 1, publishing the modified business data to be published to the online environment, comprising: Adding the identification of the simulation environment to the changed business data to be published; The business data to be published carrying the identification of the simulation environment is sent to the server.
13. The method of claim 1, further comprising: If the business simulation result of the business data to be published does not meet the preset conditions, obtaining the modified business data to be published; The modified business data to be published carries an identifier of the simulation environment; the identifier is used to indicate that the modified business data to be published is business data to be published that has passed the simulation test of the simulation environment and meets the conditions for being published to the online environment; The modified business data to be published is published to the online environment.
14. The method according to claim 13, wherein publishing the modified business data to be published to the online environment comprises: Identify the identifier of the simulation environment carried in the modified business data to be published, and determine whether the modified business data to be published meets the conditions for being published to the online environment; If the modified business data to be published meets the conditions for being published to the online environment, the modified business data to be published is published to the online environment.
15. The method of claim 1, further comprising: According to business needs, make configuration changes to business data in the simulation environment; The business data to be published is determined according to the result of the configuration change.
16. The method according to claim 15, before performing configuration changes of business data in the simulation environment, further comprising: Get DRM environment configuration; Get the server device domain name corresponding to the current environment; The current environment is the business operation environment obtained by performing the DRM environment configuration; According to the server device domain name, determining whether the current environment supports a configuration change operation of the business data; If the current environment supports the configuration change operation of the business data, it indicates that the current environment is a simulation environment.
17. The method according to claim 15, wherein the configuration change item of the business data includes at least one item, and the method further includes: Determining the service data to be released according to the at least one configuration change item; After the business data to be released passes the simulation test of the simulation environment, the at least one configuration change item included in the business data to be released is centrally released to the application in the online environment.
18. The method of claim 1, wherein the database data of the simulation environment and the database data of the online environment are isolated from each other, and data isolation is achieved by at least one of the following methods: The simulation environment and the online environment use independent databases; Alternatively, the simulation environment and the online environment use the same database, the data of the simulation environment and the online environment are stored in different data tables, and different environment identifiers are used to distinguish and isolate the different data tables; Alternatively, the simulation environment and the online environment use the same database, and the data of the simulation environment and the online environment are distinguished and isolated using different environment identifiers.
19. The method according to claim 1, before executing the corresponding business logic using the to-be-published business data in the simulation environment, further comprising: Determining whether the simulation data in the simulation environment is consistent with the operation data in the online environment; If the simulation data in the simulation environment is consistent with the operational data in the online environment, a simulation test is performed on the business data to be released.
20. A business data processing device, applied to a simulation environment, wherein the simulation environment is configured according to an online environment, the device comprising: The first acquisition module is used to acquire the business data to be published; The business data to be released carries an environment identifier of a simulation environment, where the environment identifier is identification data representing an operating environment; An execution module, used to execute corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; A judgment module, used to judge whether the business simulation result meets the preset conditions; The publishing module is used to publish the business data to be published to the online environment if the business simulation result meets the preset conditions.
21. An electronic device, applied to a simulation environment, wherein the simulation environment is configured according to an online environment, wherein the electronic device comprises at least one processor and a memory, wherein the memory stores a program and is configured such that the at least one processor performs the following steps: Acquire the business data to be published; the business data to be published carries an environment identifier of a simulated environment, and the environment identifier is identification data representing an operating environment; Executing corresponding business logic using the business data to be published in the simulation environment to obtain a business simulation result of the business data to be published; Determine whether the business simulation result meets the preset conditions; If the business simulation result meets the preset conditions, the business data to be published is published to the online environment.
22. A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the business data processing method according to any one of claims 1 to 19.