Data processing method, device, equipment and storage medium based on service grid

By storing and managing the configuration data of the service mesh on the terminal device and performing checksum modification instructions on the server side, the problem that configuration rules cannot be traced in the prior art is solved, and the traceability of configuration data is achieved.

CN114356397BActive Publication Date: 2025-02-18CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111681456.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-02-18
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

In the existing Istio service mesh traffic governance, configuration rules are recorded in the configuration files of DestinationRule and VirtualService, resulting in the inability to back-view or modify.

Method used

By obtaining configuration data information and storing it in the configuration database of the terminal device, the configuration data information is sent to the server for verification. If the verification is incorrect, the modification instructions issued by the server will be received and the modification process will be performed, thereby realizing the configuration data Traceable.

Benefits of technology

It avoids the inability to back-view or modify directly in the configuration file of the basic resource, and realizes the traceability of configuration data information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356397B_ABST
    Figure CN114356397B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a data processing method, device, equipment and storage medium based on a service grid. The method is applied to a terminal device, and specifically includes: obtaining configuration data information, and storing the configuration data information in a configuration database of the terminal device, wherein the configuration data information represents the relevant configuration information for business processing between multiple business proxy grids contained in the service grid; sending the configuration data information to a server so that the server verifies the configuration data information; receiving a modification instruction issued by the server, wherein the modification instruction is issued by the server when the configuration data information is found to be incorrect after verification; and selecting the configuration data information from the configuration database for modification processing based on the modification instruction. The data processing method based on a service grid disclosed in the present application realizes the traceability of the configuration data information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of service grid technology, and in particular to a data processing method, apparatus, device and storage medium based on a service grid. Background Art

[0002] With the increase in the number of services and service implementations in the omni-channel operation center, traffic management for microservices has become a management difficulty and bottleneck. Therefore, the introduction of service grid traffic management solves the traffic management problem with the lightest changes to avoid affecting the stability of the business system.

[0003] The service mesh is an infrastructure layer used to handle inter-service communication. It is responsible for ensuring that applications can reliably deliver requests in a complex service topology mesh. The service mesh is implemented as a lightweight network proxy array, which shields the complexity of communication between distributed system applications through proxies (sidecar), including: service routing, load balancing, monitoring and other functions.

[0004] Currently, Istio service mesh traffic management is implemented based on the resource DestinationRule and VirtualService configuration. Although the resources DestinationRule and VirtualService can support multiple rules, the configuration rules are only recorded in the configuration files of DestinationRule and VirtualService, which makes it impossible to review or modify them retrospectively. Summary of the invention

[0005] To solve the above technical problems, the embodiments of the present application provide a data processing method, apparatus, device and storage medium based on a service grid.

[0006] According to one aspect of an embodiment of the present application, a service grid-based data processing method is provided, which is applied to a terminal device, and the method includes:

[0007] Acquire configuration data information, and store the configuration data information in a configuration database of the terminal device, wherein the configuration data information represents relevant configuration information for business processing between multiple business proxy grids contained in the service grid;

[0008] Sending the configuration data information to a server so that the server verifies the configuration data information;

[0009] Receiving a modification instruction issued by the server, wherein the modification instruction is issued by the server when the server verifies that the configuration data information is incorrect;

[0010] Based on the modification instruction, configuration data information is selected from the configuration database for modification processing.

[0011] According to one aspect of an embodiment of the present application, a data processing method based on a service grid is provided, the method being applied to a server, the method comprising:

[0012] Receiving configuration data information sent by a terminal device, wherein the configuration data information represents relevant configuration information for performing business processing between multiple business proxy grids contained in the service grid;

[0013] Verifying the configuration data information, wherein the configuration data information is stored in a configuration database of the terminal device;

[0014] If the verification is incorrect, a modification instruction is sent to the terminal device, so that the terminal device selects configuration data information from the configuration database for modification processing based on the modification instruction.

[0015] According to one aspect of an embodiment of the present application, a data processing device based on a service grid is provided, the device comprising:

[0016] an acquisition module configured to acquire configuration data information and store the configuration data information in a configuration database of the terminal device, wherein the configuration data information represents relevant configuration information for business processing between multiple business proxy grids contained in the service grid;

[0017] A sending module, configured to send the configuration data information to a server so that the server verifies the configuration data information;

[0018] A receiving module, configured to receive a modification instruction issued by the server, wherein the modification instruction is issued by the server when the configuration data information is found to be incorrect after verification;

[0019] The modification module is configured to select configuration data information from the configuration database for modification processing based on the modification instruction.

[0020] According to one aspect of an embodiment of the present application, there is provided an electronic device, including:

[0021] a memory storing computer-readable instructions;

[0022] The processor reads the computer-readable instructions stored in the memory to execute any of the above-mentioned data processing methods based on the service grid.

[0023] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the service grid-based data processing method as described in any one of the above items.

[0024] In the technical solution provided in the embodiment of the present application, configuration data information is obtained and stored in the configuration database of the terminal device, wherein the configuration data information represents the relevant configuration information for business processing between multiple business proxy grids contained in the service grid; the configuration data information is sent to the server so that the server verifies the configuration data information; a modification instruction issued by the server is received, wherein the modification instruction is issued by the server when the configuration data information is found to be incorrect after verification; and configuration data information is selected from the configuration database for modification processing based on the modification instruction. Thus, by storing the obtained configuration data information in the configuration database of the terminal device, when the server verifies that the configuration data information is incorrect, it returns to the configuration database of the terminal device to modify the erroneous configuration data, thereby avoiding direct recording in the configuration file of the basic resource and being unable to be retroactively viewed or modified, and realizing the traceability of the configuration data information.

[0025] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0027] Figure 1 It is a schematic diagram of an implementation environment involved in this application;

[0028] Figure 2 is a flow chart of a data processing method based on a service grid shown in an exemplary embodiment of the present application;

[0029] Figure 3 yes Figure 2 Step S310 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0030] Figure 4 yes Figure 3 The illustrated embodiment shows a flow chart in an exemplary embodiment;

[0031] Figure 5 yes Figure 2 Step S140 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0032] Figure 6 is a flowchart of an exemplary data processing method based on a service grid in an embodiment of the present application;

[0033] Figure 7 yes Figure 6 The illustrated embodiment shows a flow chart in an exemplary embodiment;

[0034] Figure 8 is a block diagram of a data processing device based on a service grid shown in an exemplary embodiment of the present application;

[0035] Fig. 9 It is a structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION

[0036] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0037] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0038] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0039] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.

[0040] The service mesh is an infrastructure layer used to handle inter-service communication. It is responsible for ensuring that applications can reliably deliver requests in a complex service topology mesh. The service mesh is implemented as a lightweight network proxy array, which shields the complexity of communication between distributed system applications through proxies (sidecar), including: service routing, load balancing, monitoring and other functions.

[0041] Currently, Istio service mesh traffic management is implemented based on the resource DestinationRule and VirtualService configuration. Although the resources DestinationRule and VirtualService can support multiple rules, the rules are only recorded in the configuration files of DestinationRule and VirtualService, which makes it impossible to review or modify them retrospectively.

[0042] Based on this, in order to solve the above problems, the embodiment of the present application obtains configuration data information and stores the configuration data information in the configuration database of the terminal device, wherein the configuration data information represents the relevant configuration information for business processing between multiple business proxy grids contained in the service grid; sends the configuration data information to the server so that the server verifies the configuration data information; receives the modification instruction issued by the server, wherein the modification instruction is issued by the server when the configuration data information is found to be incorrect after verification; and selects the configuration data information from the configuration database for modification processing based on the modification instruction. Thus, by storing the obtained configuration data information in the configuration database of the terminal device, when the server verifies that the configuration data information is incorrect, it returns to the configuration database of the terminal device to modify the erroneous configuration data, thereby avoiding the direct recording in the configuration file of the basic resource and being unable to be retrospectively viewed or modified, and realizing the traceability of the configuration data information.

[0043] See also Figure 1 , Figure 1 1 is a schematic diagram of an implementation environment involved in the present application. The implementation environment includes a terminal device 100 and a server 200, and the terminal device 100 and the server 200 communicate with each other via a wired or wireless network.

[0044] In the data processing process based on the service grid, the terminal device 100 obtains the configuration data information and stores the configuration data information in the configuration database of the terminal device 100. The terminal device 100 sends the configuration data information to the server 200. The server 200 receives the configuration data information sent by the terminal device 100, and the server 200 verifies the configuration data information. On the one hand, if the server 200 does not verify correctly, it generates a modification instruction and sends the modification instruction to the terminal device 100. The terminal device 100 receives the modification instruction issued by the server 200, and selects the configuration data information from the configuration database for modification processing according to the modification instruction. On the other hand, if the server 200 verifies correctly, the configuration data information is persisted in the version database of the server 200, and the configuration data information is persisted to the service governance configuration of the server 200.

[0045] In other application scenarios, if the user wants to replace the current configuration data information. The current configuration data information may be the wrong configuration data information found by the user, that is, the wrong version, or the configuration data information that the user wants to replace. At this time, the terminal device 100 generates a call instruction and sends the call instruction to the server 200. The server 200 receives the call instruction sent by the terminal device 100, and the server 200 calls the historical configuration data information matching the current configuration data information from the version database of the server 200 based on the current configuration data information in the call instruction, and the server 200 sends the historical configuration data information to the terminal device 100. The terminal device 100 receives the historical configuration data information sent by the server 200, and the terminal device 100 replaces the current configuration data information with the historical configuration data information, and stores the historical configuration data information in the configuration database of the terminal device 100.

[0046] In other words, if the user wants to replace the current configuration data information, the terminal device 100 can retrieve the historical configuration data information from the version database of the server 200 to change the current configuration data information, thereby achieving the traceability of the configuration data information.

[0047] in, Figure 1 The terminal device 100 shown can be any network device that supports service grid-based data processing, such as a smart phone, a car computer, a tablet computer, a laptop computer, or a wearable device, but is not limited thereto. Figure 1The server 200 shown is a server, for example, it can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, which are not limited here. The terminal device 100 can communicate with the server 200 through wireless networks such as 2G (third generation mobile information technology), 4G (fourth generation mobile information technology), and 5G (fifth generation mobile information technology), which are not limited here.

[0048] See also Figure 2 , Figure 2 is a flowchart of a data processing method based on a service grid, shown in an exemplary embodiment of the present application. The method can be applied to Figure 1 The implementation environment shown is specifically executed by the terminal device 100 in the implementation environment. It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.

[0049] The following describes in detail the service grid-based data processing method proposed in the embodiment of the present application, taking the terminal device as the specific execution subject.

[0050] like Figure 2 As shown, in an exemplary embodiment, the data processing method based on the service grid includes at least steps S210 to S240, which are described in detail as follows:

[0051] Step S210, obtaining configuration data information, and storing the configuration data information in a configuration database of the terminal device.

[0052] First of all, it should be noted that the configuration data information represents the relevant configuration information for business processing between multiple business proxy grids contained in the service grid. The configuration data information is obtained based on at least one configuration data. The configuration data is the source code of the basic resources in the service grid, which can also be understood as the configuration rules in the service grid.

[0053] The configuration data can be obtained based on user input. In response to the user input, the terminal device receives the configuration data input by the user, obtains configuration data information based on the configuration data, and then stores the configuration data information in the configuration database of the terminal device. That is, the terminal device stores the obtained configuration data information in the memory of the terminal device.

[0054] It should be noted that, in order to raise the threshold for user use, the terminal device may provide historical configuration data information so that the user can input configuration data based on the historical configuration data information.

[0055] Step S220: sending the configuration data information to the server so that the server verifies the configuration data information.

[0056] The terminal device sends the received configuration data information to the server. The server receives the configuration data information sent by the terminal device and then verifies the configuration data information. If the server verification is incorrect, a modification instruction is generated and sent to the terminal device.

[0057] Step S230: receiving a modification instruction sent by the server.

[0058] The modification instruction is issued when the server verifies that the configuration data information is incorrect.

[0059] The terminal device receives a modification instruction sent by the server due to incorrect configuration data information verification.

[0060] Step S240: selecting configuration data information from the configuration database for modification based on the modification instruction.

[0061] The selected configuration data information may be erroneous configuration data or optimizable configuration data.

[0062] The terminal device selects configuration data information from the configuration database for modification according to the modification instruction.

[0063] It can be seen that the data processing method based on the service grid of this embodiment obtains configuration data information and stores the configuration data information in the configuration database of the terminal device, wherein the configuration data information represents the relevant configuration information for business processing between multiple business proxy grids contained in the service grid; sends the configuration data information to the server so that the server verifies the configuration data information; receives the modification instruction issued by the server, wherein the modification instruction is issued by the server when the configuration data information is found to be incorrect after verification; and selects the configuration data information from the configuration database for modification processing based on the modification instruction. Thus, by storing the obtained configuration data information in the configuration database of the terminal device, when the server verifies that the configuration data information is incorrect, it returns to the configuration database of the terminal device to modify the erroneous configuration data, thereby avoiding the direct recording in the configuration file of the basic resource and being unable to be retrospectively viewed or modified, and realizing the traceability of the configuration data information.

[0064] On the basis of the above embodiments, in order to lower the threshold for users to use, this embodiment provides the following solutions.

[0065] like Figure 3As shown, in the above exemplary embodiment, the step of obtaining the configuration data information and storing the configuration data information in the configuration database of the terminal device at least includes steps S310 to S340, which are described in detail as follows:

[0066] Step S310, receiving packaged configuration data, and forming a first interface based on the packaged configuration data.

[0067] The encapsulated configuration data encapsulates the configuration rules of the basic resources DestinationRule and VirtualService in the service grid.

[0068] The first interface is a graphical interface, that is, a visual operation interface.

[0069] The terminal device forms a visual operation interface based on the encapsulated configuration data, which is convenient for users to input or modify configuration data based on the visual operation interface, avoiding the user from entering the code corresponding to the basic configuration data when the user needs to input or modify the configuration data, thereby lowering the user's usage threshold.

[0070] For example, in the prior art, if a user needs to input configuration data, the user needs to input all the codes, which requires a high level of professionalism from the user and is time-consuming and labor-intensive. Based on this, the present embodiment provides a graphical operation interface formed by encapsulated configuration data. When the user needs to input configuration data, the user only needs to input key codes in the graphical operation interface to complete the configuration of the configuration data, that is, fill in the blanks in the graphical operation interface, which reduces the user's usage threshold and improves the input efficiency of configuration data.

[0071] Step S320, reading the packaged configuration data, obtaining the first interface after the data is loaded, and storing the first interface after the data is loaded in the configuration database.

[0072] The first interface after loading data is obtained by the terminal device reading the packaged configuration data based on the first interface. In other words, the packaged configuration data is read out in the first interface and loaded into the first interface.

[0073] After the terminal device reads the packaged configuration data, it obtains the first interface after the data is loaded, and stores the first interface after the data is loaded into the configuration database of the terminal device, so as to facilitate the historical configuration data backtracking.

[0074] Step S330, displaying the loaded first interface and receiving the modified configuration data.

[0075] The modified configuration data is obtained by the user modifying the first interface after loading.

[0076] It should be noted that when the user modifies the configuration data in the loaded first interface, multiple places may be modified, and the terminal device needs to receive multiple modified configuration data. Therefore, the modified configuration data is not limited to one modified configuration data, but may be multiple modified configuration data.

[0077] Step S340: obtaining an interface corresponding to the modified configuration data based on the modified configuration data.

[0078] When the user modifies the configuration data of the first interface after loading, it is necessary to modify the configuration data multiple times. There is a possibility that the configuration process may freeze at a certain moment due to network reasons, resulting in the loss of the previously configured configuration data. In order to avoid the above problems, the terminal device of this embodiment sets a configuration database. When receiving each modification operation of the user on the first interface after loading, a corresponding interface is generated and stored in the configuration database in the form of a snapshot. In other words, each time the terminal device receives a modified configuration data, it stores the modified configuration data in the form of a snapshot, so that when the modification is completed, the terminal device stores all the configuration data modified this time, thereby preventing the problem of configuration data loss.

[0079] The terminal device generates an interface corresponding to the modified configuration data, that is, a snapshot, according to the modified configuration data, and stores it in the configuration database.

[0080] It can be seen that the data processing method based on the service grid of this embodiment forms a graphical interface by encapsulating the configuration data, and reads the encapsulated configuration data based on the graphical interface to obtain the first interface after loading the data, and then modifies the configuration data based on the first interface after loading the data. Therefore, on the one hand, the terminal device stores the modified configuration data in the configuration database in the form of a snapshot, avoiding the loss of the previously configured configuration data due to the configuration process being stuck due to network and other reasons. On the other hand, the encapsulated configuration data is used to form a graphical interface, which facilitates the user to input or modify the configuration data based on the graphical interface, avoiding the user from inputting the code corresponding to the basic configuration data when the user needs to input or modify the configuration data, thereby lowering the user's usage threshold.

[0081] See also Figure 4 In the above exemplary embodiment, the data processing method based on the service grid at least further includes steps S410 to S430, which are described in detail as follows:

[0082] Step S410: receiving first configuration data, acquiring a second interface corresponding to the first configuration data based on the first configuration data, and storing the second interface in a configuration database.

[0083] The first configuration data is obtained based on the modification of the first interface by the user after the data is loaded.

[0084] The second interface is a graphical interface formed according to the first configuration data.

[0085] In response to the user's modification of the loaded first interface, the terminal device receives the first configuration data, generates the second interface according to the first configuration data, and stores the second interface in the configuration database. On the one hand, it is convenient for the terminal device to retrieve the second interface from the configuration database for modification when it is subsequently determined that the data presented by the second interface is wrong. On the other hand, it is convenient for the interface corresponding to other configuration data to be sent to the server together after the user completes all modifications.

[0086] Step S420, receiving the second configuration data, and acquiring a third interface corresponding to the second configuration data based on the second configuration data, and storing the third interface in the configuration database.

[0087] The second configuration data is obtained based on the modification made by the user to the first interface after the data is loaded.

[0088] It should be noted that the first configuration data and the second configuration data are different.

[0089] The third interface is a graphical interface formed according to the second configuration data.

[0090] In response to the user's modification of the loaded first interface, the terminal device receives the second configuration data, generates a third interface based on the second configuration data, and stores the third interface in the configuration database, so that when it is subsequently determined that the data presented by the third interface is erroneous, the terminal device can retrieve the third interface from the configuration database for modification.

[0091] Step S430, sending the second interface and the third interface to the server for verification.

[0092] The terminal device sends the second interface corresponding to the modified first configuration data and the third interface corresponding to the modified second configuration data to the server.

[0093] The server receives the second interface and the third interface, and verifies the second interface and the third interface. If the verification passes, the second interface and the third interface are stored in the version database of the server, so that the subsequent terminal device can retrieve them from the version database of the server. On the one hand, if it fails, the server generates a modification instruction and sends the modification instruction to the terminal device. The terminal device receives the modification instruction, and selects the wrong configuration data information from the configuration database of the terminal device according to the modification instruction for modification, and then replaces the wrong configuration data with the modified configuration data, and stores it in the configuration database. On the other hand, if the verification passes, the server persists the second interface and the third interface in the version database of the server. It should be noted that the second interface and the third interface can be understood as the configuration data of the current version. If the server verification passes, the configuration data of the current version is stored in the version configuration library of the server.

[0094] It can be seen that the data processing method based on the service grid in this embodiment stores the second interface corresponding to the first configuration data modified by the user and the third interface corresponding to the modified second configuration data separately. On the one hand, it avoids the loss of the previously configured configuration data due to the configuration process being stuck due to network reasons, etc. On the other hand, it is convenient to send the interfaces corresponding to other configuration data to the server together after all modifications are completed by the user.

[0095] like Figure 5 As shown, Figure 5 yes Figure 2 Step S140 in the illustrated embodiment is a flow chart in an exemplary embodiment. In an exemplary embodiment, the step of selecting configuration data information from the configuration database for modification processing based on the modification instruction includes at least steps S510 to S520, which are described in detail as follows:

[0096] Step S510: determining a target interface associated with erroneous configuration data from a configuration database.

[0097] The configuration data information includes an interface corresponding to the configuration data.

[0098] The target interface is the interface associated with the error configuration data.

[0099] The terminal device sends the interface corresponding to the configuration data modified by the user to the server, and the server receives the interface corresponding to the modified configuration data and verifies the interface corresponding to the modified configuration data. If the verification is incorrect, a modification instruction is generated and the erroneous configuration data in the modification instruction is sent to the terminal device. The modification instruction includes the erroneous configuration data.

[0100] The terminal device receives the erroneous configuration data in the modification instruction, and selects a target interface associated with the erroneous configuration data from a configuration database according to the erroneous configuration data.

[0101] Regarding the association between the erroneous configuration data and the target interface, the target interface corresponding to the erroneous configuration data can be determined by calculating the association between the erroneous configuration data and the target interface. Of course, other methods can also be used to determine, which is not limited in this embodiment.

[0102] Step S520, displaying the target interface, and in response to the user modifying the target interface, replacing the target interface with the modified target interface, and storing the modified target interface in the configuration database.

[0103] The modified target interface is obtained based on the user's modification operation on the target interface.

[0104] In order to facilitate the user to modify the target interface, the terminal device can display the target interface corresponding to the erroneous configuration data. In response to the user's modification of the target interface, the terminal device determines the modified target interface, replaces the target interface with the modified target interface, and then stores the modified target interface in the configuration database.

[0105] It can be seen that the data processing method based on the service grid of this embodiment uses the modification instruction issued by the server to determine the target interface corresponding to the erroneous configuration data in the modification instruction in the configuration database. In response to the user's modification of the target interface, a modified target interface is obtained, the target interface is replaced with the modified target interface, and the modified target interface is stored in the configuration database, so that the target interface is quickly replaced with the modified interface from the configuration database, avoiding direct recording in the configuration file of the basic resource without being able to be retroactively viewed or modified, and realizing the traceability of the configuration data information.

[0106] like Figure 6 As shown, Figure 6 is a flowchart of an exemplary data processing method based on a service grid in an embodiment of the present application. The data processing method based on the service grid includes at least steps S610 to S640, which are described in detail as follows:

[0107] Step S610: receiving configuration data information sent by a terminal device.

[0108] The configuration data information is configuration information related to business processing between multiple business proxy grids contained in the service grid.

[0109] The server receives the configuration data information sent by the terminal device.

[0110] Step S620: verify the configuration data information, and store the configuration data information in a configuration database of the terminal device.

[0111] The configuration data information includes an interface corresponding to the modified configuration data.

[0112] The server receives the interface corresponding to the modified configuration data sent by the terminal device, and verifies the interface corresponding to the modified configuration data. If the verification is correct, step S640 is executed; if the verification is incorrect, step S630 is executed.

[0113] Step S630: If the verification is incorrect, a modification instruction is sent to the terminal device, so that the terminal device selects configuration data information from the configuration database for modification processing based on the modification instruction.

[0114] The modification instruction includes the wrong configuration data. The modification instruction is generated by the server when the server fails the verification.

[0115] The server verifies the interface corresponding to the modified configuration data sent by the terminal device, and if the verification is incorrect, generates a modification instruction and sends the modification instruction to the terminal device. The terminal device receives the modification instruction and selects the interface corresponding to the erroneous configuration data from the configuration data for modification processing based on the erroneous configuration data in the modification instruction.

[0116] Step S640, if the verification is correct, the configuration data information is persisted to the version database of the server, and the configuration data information is persisted to the service management configuration of the server, so that the terminal device loads the page based on the configuration data information in the service management configuration.

[0117] Persistence means storage and effectiveness.

[0118] The version database is used to store configuration data information in the server.

[0119] Service governance configuration is used in the server for service governance.

[0120] The server verifies the interface corresponding to the configuration data sent by the terminal device. If the verification is correct, the interface corresponding to the configuration data is persisted in the server's version database, and the configuration data is persisted in the server's service governance configuration, and the service grid is notified to reload the service governance rules to complete the service governance process.

[0121] It should be noted that after persisting the configuration data information to the version database of the server, the configuration data information is written into the physical file. When the configuration data information is backtracked in the configuration database of the terminal device, the configuration data information does not need to be written into the physical file, but is stored in the configuration database in the form of a snapshot, that is, a page.

[0122] It can be seen that the data processing method based on the service grid of this embodiment verifies the interface corresponding to the configuration data sent by the terminal device. If the verification is incorrect, a modification instruction is sent to the terminal device, so that the terminal device selects the configuration data information from the configuration database for modification processing based on the modification instruction. If the verification is correct, the configuration data information is persisted to the version database of the server, and the configuration data information is persisted to the service governance configuration of the server, so that the terminal device loads the page based on the configuration data information in the service governance configuration. As a result, the configuration data information stored in the server version database avoids being directly recorded in the configuration file of the basic resource and cannot be retroactively viewed or modified, thereby realizing the traceability of the configuration data information.

[0123] Due to the error in the current configuration data of the terminal device, it is necessary to retrieve the historical configuration data in the server version database for replacement, so as to achieve the traceability of the configuration data. Figure 7 As shown, in the above exemplary embodiment, the data processing method based on the service grid also includes at least steps S710 to S730, which are described in detail as follows:

[0124] Step S710, receiving a call instruction sent by a terminal device.

[0125] The call instruction is generated by the terminal device when the terminal device determines that the current configuration data information needs to be replaced. The call instruction includes the current configuration data information displayed on the terminal device.

[0126] In response to the user's operation of retrieving historical configuration data information in the version database, the terminal device generates a retrieval instruction and sends the retrieval instruction to the server. The server receives the retrieval instruction sent by the terminal device.

[0127] Step S720: Perform matching processing in the version database of the server using the current configuration data information to determine the historical configuration data information associated with the current configuration data information.

[0128] The current configuration data information is the configuration data information that the terminal device currently needs to replace. Specifically, it can be wrong configuration data information, or it can be the configuration data information that the user wants to replace.

[0129] Based on the received call-up instruction, the server uses the current configuration data information in the call-up instruction to perform matching processing from the version database of the server to determine the historical configuration data information associated with the current configuration data information.

[0130] It should be noted that there are multiple configuration data information in the version database of the server. In order to determine the historical configuration data information associated with the current configuration data information, the server can determine the historical configuration data information associated with the current configuration data information by calculating the similarity between the configuration data information and each historical configuration data information.

[0131] In other embodiments, the server may also use keywords in the current configuration data information to match keywords in the historical configuration data information, and then determine the historical configuration data information associated with the current configuration data information.

[0132] Step S730: sending the historical configuration data information to the terminal device, so that the terminal device replaces the current configuration data information with the historical configuration data information, and the terminal device stores the historical configuration data information in a configuration database of the terminal device.

[0133] After determining the historical configuration data information associated with the current configuration data information, the server sends the historical configuration data information to the terminal device. The terminal device receives the historical configuration data sent by the server, replaces the current configuration data information with the historical configuration data information, and stores the historical configuration data information in the configuration database of the terminal device.

[0134] It can be seen that in the data processing method based on the service grid of this embodiment, the server receives the call instruction sent by the terminal device, uses the current configuration data information to perform matching processing in the version database of the server, determines the historical configuration data information associated with the current configuration data information, and sends the historical configuration data to the terminal device, so that the terminal device replaces the current configuration data information with the historical configuration data information, and the terminal device stores the historical configuration data information in the configuration database of the terminal device. Therefore, when the user needs to replace the current configuration data information of the terminal device, the historical configuration data information in the version database of the server is called, and the current configuration data of the terminal device is replaced with the historical configuration data, so as to realize the rapid backtracking of the configuration data information.

[0135] Figure 8 is a block diagram of a data processing device based on a service grid, shown in an exemplary embodiment of the present application. The device can be applied to Figure 1 The device may also be applicable to other exemplary implementation environments and specifically configured in other devices, and this embodiment does not limit the implementation environment to which the device is applicable.

[0136] like Figure 8 As shown, the exemplary service grid-based data processing device 800 includes an acquisition module 81, a sending module 82, a receiving module 83 and a modification module 84. Specifically:

[0137] The acquisition module 81 is configured to acquire configuration data information and store the configuration data information in a configuration database of the terminal device, wherein the configuration data information represents relevant configuration information for business processing between multiple business proxy grids contained in the service grid.

[0138] The sending module 82 is configured to send the configuration data information to the server so that the server verifies the configuration data information.

[0139] The receiving module 83 is configured to receive a modification instruction sent by the server, wherein the modification instruction is sent by the server when the configuration data information is found to be incorrect after verification.

[0140] The modification module 84 is configured to select configuration data information from the configuration database for modification processing based on the modification instruction.

[0141] In this exemplary data processing device based on the service grid, by acquiring configuration data information and storing the configuration data information in the configuration database of the terminal device, the configuration data information represents the relevant configuration information for business processing between multiple business proxy grids contained in the service grid; sending the configuration data information to the server so that the server verifies the configuration data information; receiving the modification instruction issued by the server, wherein the modification instruction is issued by the server when the verification is incorrect; and selecting the configuration data information from the configuration database for modification processing based on the modification instruction. Thus, by storing the acquired configuration data information in the configuration database of the terminal device, when the server verifies that the configuration data information is incorrect, it returns to the configuration database of the terminal device to modify the erroneous configuration data, thereby avoiding the direct recording in the configuration file of the basic resource and being unable to be retrospectively viewed or modified, and realizing the traceability of the configuration data information.

[0142] Based on the above exemplary embodiment, before obtaining the module, the data processing device based on the service grid further includes:

[0143] The interface forming module is configured to receive packaged configuration data and form a first interface based on the packaged configuration data.

[0144] The configuration data reading module is configured to read the packaged configuration data, obtain the first interface after the data is loaded, and store the first interface after the data is loaded in the configuration database.

[0145] The interface display module is configured to display the loaded first interface and receive modified configuration data.

[0146] The acquisition submodule is configured to obtain an interface corresponding to the modified configuration data based on the modified configuration data.

[0147] Based on the above exemplary embodiment, the data processing device based on the service grid further includes:

[0148] The first sub-receiving module is configured to receive the first configuration data, obtain the second interface corresponding to the first configuration data based on the first configuration data, and store the second interface in the configuration database.

[0149] The second sub-receiving module is configured to receive the second configuration data, obtain a third interface corresponding to the second configuration data based on the second configuration data, and store the third interface in the configuration database.

[0150] The sending submodule is configured to send the second interface and the third interface to the server for verification.

[0151] In another exemplary embodiment, the modification module includes:

[0152] The target interface determination module is configured to determine a target interface associated with the erroneous configuration data from a configuration database.

[0153] The target interface replacement module is configured to display the target interface, replace the target interface with the modified target interface in response to the user's modification of the target interface, and store the modified target interface in the configuration database.

[0154] The exemplary service grid-based data processing device further includes:

[0155] The receiving submodule is configured to receive configuration data information sent by a terminal device, where the configuration data information represents relevant configuration information for business processing between multiple business proxy grids contained in the service grid.

[0156] The verification module is configured to verify the configuration data information, and the configuration data information is stored in the configuration database of the terminal device.

[0157] The modification instruction sending module is configured to send a modification instruction to the terminal device if the verification is incorrect, so that the terminal device selects configuration data information from the configuration database for modification processing based on the modification instruction.

[0158] In another exemplary embodiment, after modifying the instruction sending module, the service grid-based data processing device further includes:

[0159] The persistence module is configured to persist the configuration data information to the version database of the server if the verification is correct, and to persist the configuration data information to the service management configuration of the server, so that the terminal device loads the page based on the configuration data information in the service management configuration.

[0160] Based on the above exemplary embodiment, the data processing device based on the service grid further includes:

[0161] The calling instruction receiving module is configured to receive the calling instruction sent by the terminal device, wherein the calling instruction includes the current configuration data information displayed on the terminal device, and the calling instruction is sent by the terminal device when it is determined to replace the current configuration data information.

[0162] The matching module is configured to use the current configuration data information to perform matching processing in the version database of the server to determine the historical configuration data information associated with the current configuration data information.

[0163] The historical configuration data information sending module is configured to send the historical configuration data information to the terminal device so that the terminal device replaces the current configuration data information with the historical configuration data information, and the terminal device stores the historical configuration data information in the configuration database of the terminal device.

[0164] It should be noted that the data processing device based on the service grid provided in the above embodiment and the data processing method based on the service grid provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment, and will not be repeated here. In actual applications, the data processing device based on the service grid provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0165] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the service grid-based data processing method provided in the above-mentioned embodiments.

[0166] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0167] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0168] like Fig. 9As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 908 to the random access memory (RAM) 903, such as executing the method described in the above embodiment. In the RAM 903, various programs and data required for system operation are also stored. The CPU 901, ROM 902 and RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0169] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.

[0170] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, various functions defined in the system of the present application are executed.

[0171] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0172] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0173] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0174] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0175] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in each of the above embodiments.

[0176] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A data processing method based on a service grid, characterized in that: Applied to a terminal device, the method comprises: Acquire configuration data information, and store the configuration data information in a configuration database of the terminal device, wherein the configuration data information represents relevant configuration information for business processing between multiple business proxy grids contained in the service grid; Sending the configuration data information to a server so that the server verifies the configuration data information; Receiving a modification instruction issued by the server, wherein the modification instruction is issued by the server when the server verifies that the configuration data information is incorrect; Selecting configuration data information from the configuration database for modification processing based on the modification instruction; The configuration data information includes an interface corresponding to the configuration data. Before the step of obtaining the configuration data information and storing the configuration data information in a configuration database of the terminal device, the method further includes: receiving packaged configuration data, and forming a first interface based on the packaged configuration data; reading the packaged configuration data to obtain a first interface after loading data, and storing the first interface after loading data in the configuration database; displaying the loaded first interface, and receiving modified configuration data; and obtaining an interface corresponding to the modified configuration data based on the modified configuration data; The encapsulated configuration data encapsulates the configuration rules of the basic resources DestinationRule and VirtualService in the service grid.

2. The method according to claim 1, characterized in that The modified configuration data includes first configuration data and second configuration data, both of which are obtained based on the user's modification of the first interface after loading data, but the first configuration data is different from the second configuration data; the method further includes: receiving first configuration data, and acquiring a second interface corresponding to the first configuration data based on the first configuration data, and storing the second interface in the configuration database; receiving second configuration data, and acquiring a third interface corresponding to the second configuration data based on the second configuration data, and storing the third interface in the configuration database; The second interface and the third interface are sent to the server for verification.

3. The method according to claim 1, characterized in that The modification instruction includes erroneous configuration data, and the step of selecting configuration data information from the configuration database for modification based on the modification instruction includes: determining, from the configuration database, a target interface associated with the erroneous configuration data; The target interface is displayed, and in response to a modification of the target interface by the user, the target interface is replaced with the modified target interface, and the modified target interface is stored in the configuration database.

4. A data processing method based on a service grid, characterized in that: The method is applied to a server, and the method comprises: Receiving configuration data information sent by a terminal device, wherein the configuration data information represents relevant configuration information for business processing between multiple business proxy grids contained in the service grid; wherein the terminal device is applicable to the method described in any one of claims 1 to 3; Verifying the configuration data information, wherein the configuration data information is stored in a configuration database of the terminal device; If the verification is incorrect, a modification instruction is sent to the terminal device, so that the terminal device selects configuration data information from the configuration database for modification processing based on the modification instruction.

5. The method according to claim 4, characterized in that After the step of receiving the configuration data information sent by the terminal device and verifying the configuration data information, the method further includes: If the verification is correct, the configuration data information is persisted in the version database of the server, and the configuration data information is persisted in the service management configuration of the server, so that the terminal device loads the page based on the configuration data information in the service management configuration.

6. The method according to claim 4, characterized in that The method further comprises: Receiving a call instruction sent by the terminal device, wherein the call instruction includes current configuration data information displayed on the terminal device, and the call instruction is sent by the terminal device when determining to replace the current configuration data information; Using the current configuration data information to perform matching processing in the version database of the server, determine the historical configuration data information associated with the current configuration data information; The historical configuration data information is sent to the terminal device, so that the terminal device replaces the current configuration data information with the historical configuration data information, and the terminal device stores the historical configuration data information in a configuration database of the terminal device.

7. A data processing device based on a service grid, characterized in that: The device comprises: An acquisition module is configured to acquire configuration data information and store the configuration data information in a configuration database of a terminal device, wherein the configuration data information represents relevant configuration information for business processing between multiple business proxy grids contained in a service grid; A sending module, configured to send the configuration data information to a server so that the server verifies the configuration data information; A receiving module, configured to receive a modification instruction issued by the server, wherein the modification instruction is issued by the server when the configuration data information is found to be incorrect after verification; A modification module, configured to select configuration data information from the configuration database for modification processing based on the modification instruction; The service grid-based data processing device further includes an interface forming module configured to receive packaged configuration data and form a first interface based on the packaged configuration data; A configuration data reading module, configured to read the packaged configuration data, obtain a first interface after the data is loaded, and store the first interface after the data is loaded into the configuration database; An interface display module, configured to display the loaded first interface and receive modified configuration data; an acquisition submodule configured to obtain an interface corresponding to the modified configuration data based on the modified configuration data; The encapsulated configuration data encapsulates the configuration rules of the basic resources DestinationRule and VirtualService in the service grid.

8. An electronic device, characterized in that: include: a memory storing computer-readable instructions; A processor reads the computer-readable instructions stored in the memory to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Flow management method and device for micro-service request, server and storage medium

    CN111600930A

  • Gateway configuration method, electronic equipment and computer readable storage medium

    CN112702195A