Configuration information update synchronization method and device
By realizing independent changes and hot updates of single configuration items and data in the configuration center, the problem of the Apollo configuration center being unable to update configuration items independently is solved, improving the response speed and efficiency of configuration changes, and saving resources and operation and maintenance costs.
Patent Information
- Application Number
- CN202011487968.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-12-16
AI Technical Summary
The existing Apollo configuration center cannot update individual configuration items in the server, resulting in information redundancy and operational waste when modifying configurations, which reduces work efficiency, and cannot achieve separate differentiation and separation of application stacks, themes, versions, and group information. Hot update.
Provides a configuration information update and synchronization method that obtains user operations through the configuration center, extracts and modifies pre-stored configuration information, realizes changes to single configuration items and configuration data, and synchronizes the changed configuration information so that it can be Application acquisition uses a unified format interface for multi-dimensional configuration differentiation, which takes effect independently of application release.
It realizes independent changes and hot updates of single configuration items and configuration data, reduces program redundancy, speeds up operation, improves the response speed to configuration changes, and saves environment deployment and resource usage costs through a unified configuration center.
Smart Images

Figure CN112559025B_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present disclosure relate to the field of communication technology, and more particularly, to a configuration information update synchronization method and device. Background Art
[0002] In the development environment and test environment, developers or operation and maintenance personnel can configure the configuration center through the interface. The configuration center can be simply understood as a service module. The relevant microservices are connected to the configuration center and can obtain the modified parameters on the configuration center in real time. At present, the more popular configuration center in the industry is Apollo, which can centrally manage the configuration of different application environments and clusters. After the configuration is modified, it can be pushed to the application end in real time, and it has standardized permissions, process governance and other features, which is suitable for microservice configuration management scenarios. Specifically, the existing technology generally adopts two methods to obtain configuration. Pull can ensure that data can be pulled. Pull generally adopts a timed pull method. Even if the network fails to pull data at a certain time, the data can be pulled at the next timer, and finally the configuration is guaranteed to be updated. Push can avoid the delay of pull timer acquisition, and basically achieve quasi-real-time update.
[0003] However, when applying the push mode, if the network jitters and a push fails, the configuration update will be lost. In addition, the existing Apollo requires the client to specify the environment, project, namespace, version and other information, whether actively pulling configuration or waiting for configuration push. It is impossible to hot update the application stack, theme, version, and group information, and can only hot update the overall configuration.
[0004] Based on this, a microservice configuration management scenario is needed that can synchronize modified configurations with the application side in real time and has features such as standardized permissions and process governance. Summary of the invention
[0005] In view of this, one or more embodiments of the present disclosure are to propose a configuration information update synchronization method and device.
[0006] One or more embodiments of the present disclosure provide a configuration information update synchronization method, including:
[0007] The configuration center obtains the user's operation and extracts the pre-stored configuration information;
[0008] The configuration center changes the corresponding configuration items and / or configuration data in the configuration information according to the user's change operation to obtain the changed configuration information;
[0009] The configuration center synchronously stores the changed configuration information so that the changed configuration information can be acquired by the application program.
[0010] Based on the same inventive concept, one or more embodiments of the present disclosure further provide an electronic device, including:
[0011] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the configuration information update synchronization method as described above is implemented.
[0012] It can be seen from the scheme of the present disclosure that the configuration information update synchronization method and device provided by one or more embodiments of the present disclosure are based on a responsive acquisition method, directly fill in or change the corresponding configuration information according to the user operation, and can directly set the values of each configuration item and each configuration data in the user operation interface. The interface of the configuration information in a unified format is used to distinguish the configuration in multiple dimensions. Based on the fact that the content of each configuration information under the project cannot be directly modified in the operation interface in the prior art, each configuration item can be set or modified separately. Accordingly, the application configuration can be separated from the application code or file and configured in the configuration center, so that the configuration itself takes effect independently of the application release. That is, after the user operates to modify the configuration information, the technical solution of the present disclosure can be applied to synchronize the modified configuration information to the server. At the same time, the server and the application can also realize synchronous interaction of configuration information, thereby improving the response speed of changes in changes that only require configuration modifications. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate one or more embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only one or more embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0014] Figure 1 A flowchart of a core method of a configuration information update synchronization method of one or more embodiments of the present disclosure;
[0015] Figure 2 A framework diagram of information interaction between a configuration center and an application program in one or more embodiments of the present disclosure;
[0016] Figure 3 A flowchart of an implementation of a configuration data update synchronization method according to one or more embodiments of the present disclosure;
[0017] Figure 4A flowchart of an implementation of a configuration information update synchronization method according to one or more embodiments of the present disclosure;
[0018] Figure 5 A framework diagram of information interaction between a configuration center and an application program in one or more embodiments of the present disclosure;
[0019] Figure 6 A schematic diagram of an electronic device according to one or more embodiments of the present disclosure. DETAILED DESCRIPTION
[0020] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0021] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in one or more embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
[0022] As described in the background technology section, the existing Apollo configuration center cannot update individual configuration items stored in the server. The existing Apollo framework generally uses two methods to obtain configuration: pull can ensure that data is pulled. Pull generally uses a timed pull method. Even if the network fails to pull data at a certain time, the next timer will be able to pull data, and ultimately ensure that the configuration can be updated; push also has advantages, avoiding the delay of pull timer acquisition, and basically achieving quasi-real-time updates, but push also has problems. If there is network jitter, a push fails to push successfully, and the configuration update will be lost. In the process of implementing the present disclosure, the applicant discovered that the main problem with the existing Apollo framework configuration center is that the configuration items, namely, the information of the application stack, theme, version, and group can only be stored in a unified manner, and the corresponding individual configuration items in the server cannot be changed and updated, resulting in that if the configuration needs to be changed, only the overall configuration can be updated, and there is redundancy in information input, resulting in unnecessary waste of operations and reduced work timeliness; in addition, when the server receives the configuration information, it cannot separately distinguish the application stack, theme, version, and group information of the project; in addition, it should be pointed out that the response to determining the representative condition in the claims of the present disclosure is limited to when a certain condition is met.
[0023] In view of this, one or more embodiments of the present disclosure provide a configuration information update synchronization method and an electronic device, wherein the configuration information update synchronization method includes: the configuration information pre-stored in the configuration center can be extracted to obtain the extracted configuration information, and the extracted configuration information can be used to change the configuration items and / or configuration data respectively through the user's operation to obtain the changed configuration information, thereby realizing the change of a single configuration item and configuration data, and making the changed configuration information acquired by the application program, based on the technical problem that the information of the configuration items in the prior art can only be stored uniformly, and the corresponding individual configuration items in the server cannot be changed and updated; the scheme of the present disclosure can realize the change of a single configuration item and configuration data, as well as multiple configuration items and / or configuration data, and make the application program acquire it, can further reduce program redundancy, speed up the operation speed, and can make changes related to the user's operation to the pre-stored configuration information, and perform hot update on the server (i.e., the storage module).
[0024] The following is a specific embodiment, combined with Figure 1-Figure 6 The technical solutions of one or more embodiments of the present disclosure are further described in detail.
[0025] As an optional embodiment, in order to modify the pre-stored configuration information and obtain the modified configuration information by the application program, refer to Figure 1 One or more embodiments of the present disclosure provide a configuration information update synchronization method, including:
[0026] S101, the configuration center obtains the user's operation and extracts the pre-stored configuration information;
[0027] S102: The configuration center changes corresponding configuration items and / or configuration data in the configuration information according to the user's change operation to obtain changed configuration information;
[0028] S103: The configuration center synchronously stores the changed configuration information so that the changed configuration information can be acquired by the application program.
[0029] Based on the above steps, further, the configuration center includes an acquisition module (Protal), an interface module (Service) and a storage module (Consul Server), wherein the acquisition module (Protal) acquires the user's operation, and here, the user's operation includes: the user triggers the extraction module on the interface to generate an extraction command, and the extraction command is sent to the storage module (Consul Server) through the interface module (Service), and the storage module (Consul Server) receives the extraction command, sends the corresponding internally stored configuration information to the acquisition module (Protal) through the interface module (Service), and displays it on the interface of the acquisition module (Protal), and the information of each configuration item can be displayed on the interface; in addition, the changed configuration information is obtained by changing the corresponding configuration items and / or configuration data in the configuration information after the acquisition module (Protal) acquires the change operation; further, the configuration center synchronously stores the changed configuration information, specifically including: the acquisition module (Protal) sends the changed configuration information to the interface module (Service), the interface module (Service) sends the changed configuration information to the storage module (Consul Server), and the storage module (Consul Server) receives the extraction command, sends the corresponding internally stored configuration information to the acquisition module (Protal) through the interface module (Service), and displays it on the interface of the acquisition module (Protal). Server) stores the changed configuration information.
[0030] Furthermore, the creation of each configuration item of the change operation corresponds to the information transmission of a separate configuration item and / or corresponding configuration data, and the configuration item corresponds to the configuration data one by one. That is, when one of the configuration items is added, the configuration data corresponding to the configuration item can be directly input; in addition, if the configuration item has not changed, but only the configuration data has been changed, the value of the corresponding configuration data can be directly changed; it should be pointed out that in one or more embodiments of the present disclosure, the acquisition module (Protal) acquires the user's operation, and the user's operation includes: the operation of creating a configuration item; the configuration item includes an application stack, a theme, a version and a group; further, the application stack is provided with at least one; the application stack includes at least one theme, each of the theme includes at least one version, and each of the version includes at least one group, that is, each of the groups is provided with at least one group.
[0031] That is, in one or more embodiments of the present disclosure, each configuration item and the corresponding configuration data can be changed individually, wherein configuration items can also be newly added, and the newly added configuration items can fill in the values of the configuration data corresponding to them. In this way, no matter whether one or several configuration items are modified, the modified configuration information obtained after the modification can be stored in the storage module (Consul Server), and the modified configuration information can be obtained by the application through the interaction between the application and the storage module (Consul Server) or the interface module (Service).
[0032] Based on the above general inventive concept, several situations in which the changed configuration information can be obtained by the application are described in detail as follows: (the following method includes the above-mentioned change operation, and the changed configuration information is obtained. The operation of changing the configuration item and / or the configuration information is the same as the above-mentioned corresponding content, and will not be repeated below)
[0033] As an optional embodiment, in order to realize that the configuration center actively sends the changed configuration information to the application, refer to Figure 2 One or more embodiments of the present disclosure provide a configuration information update synchronization method:
[0034] S201, the interface module (Service) obtains the startup information of the application;
[0035] S202: The configuration center obtains the user's operation and extracts pre-stored configuration information;
[0036] S203: The configuration center changes the corresponding configuration items and / or configuration data in the configuration information according to the user's operation to obtain the changed configuration information;
[0037] S204, the changed configuration information is stored in the storage module (ConsulServer) through the interface module (Service); at the same time, the changed configuration information is sent to the message queue module through the interface module (Service), and then sent to the callback module (Call Back) by the message queue module, that is, the changed configuration information is stored in the callback module (CallBack);
[0038] S205. The API interface of the interface module (Service) is called by the application program, so that the callback module (Call Back) sends the changed configuration information to the application program; so that the changed configuration information can be obtained by the application program.
[0039] Further, the configuration center includes an acquisition module (Protal), an interface module (Service) and a storage module (Consul Server), wherein the changed configuration information is obtained by changing the corresponding configuration items and / or configuration data in the configuration information after the acquisition module (Protal) acquires the change operation; the configuration center synchronously stores the changed configuration information, specifically including: the acquisition module (Protal) sends the changed configuration information to the interface module (Service), the interface module (Service) sends the changed configuration information to the storage module (Consul Server), and the storage module (Consul Server) stores the changed configuration information; at the same time, the configuration center also includes a message queue module and a callback module (Call Back): when the interface module (Service) includes an API callback interface, the changed configuration information reaches the message queue module through the interface module (Service), and the changed configuration information is sent to the callback module (Call Back) through the message queue module; the sending direction of the above-mentioned changed configuration information is not affected by whether the application is started, so that the changed configuration information is stored in the intermediate storage medium-the callback module (Call Back). It should be pointed out that only the interface module (Service) obtains the startup information of the application program first, and then performs the change operation in the acquisition module (Protal). In this way, the callback module (Call Back) will send the changed configuration information to the application program, that is, the changed configuration information is obtained by the application program.
[0040] As an optional embodiment, in order to enable the application to actively obtain the changed configuration information, it is embodied in the following two ways:
[0041] The first method, refer to Figure 3 One or more embodiments of the present disclosure provide a configuration information update synchronization method:
[0042] S301, the configuration center obtains the user's operation and extracts the pre-stored configuration information;
[0043] S302: The configuration center changes the corresponding configuration items and / or configuration data in the configuration information according to the user's operation to obtain the changed configuration information;
[0044] S303, the changed configuration information is stored in the storage module (ConsulServer) through the interface module (Service);
[0045] S304, the interface module (Service) obtains the startup information of the application;
[0046] S305. A monitoring module is provided in the application program, and the interface module (Service) obtains the permission verification information of the SDK monitoring module in the application program. After the permission verification is passed, the SDK monitoring module in the application program obtains and monitors the changes of the configuration information of the storage module (Consul Server), and synchronously modifies the corresponding configuration information of the application program, so that the application program actively obtains the changed configuration information and changes the corresponding configuration information in the application program.
[0047] The second method, refer to Figure 4 One or more embodiments of the present disclosure provide a configuration information update synchronization method:
[0048] S401, the interface module (Service) obtains the startup information of the application;
[0049] S402: The configuration center obtains the user's operation and extracts pre-stored configuration information;
[0050] S403: The configuration center changes the corresponding configuration items and / or configuration data in the configuration information according to the user's operation to obtain the changed configuration information;
[0051] S404, the changed configuration information is stored in the storage module (ConsulServer) through the interface module (Service);
[0052] S405. A monitoring module is provided in the application program, and the interface module (Service) obtains the permission verification information of the SDK monitoring module in the application program. After the permission verification is passed, the SDK monitoring module in the application program obtains and monitors the changes of the configuration information of the storage module (Consul Server), and synchronously modifies the corresponding configuration information of the application program, so that the application program actively obtains the changed configuration information and changes the corresponding configuration information in the application program.
[0053] As an optional embodiment, the present disclosure is run during the application startup process, that is, no matter whether the configuration information is modified after the application is started, or the configuration information is modified and then the application is started, the SDK monitoring module in the method will actively obtain and monitor the corresponding changed configuration information in the storage module (Consul Server). That is, as long as the application is started, the adk listening module will perform its function; similarly, the configuration center in the present disclosure includes an acquisition module (Protal), an interface module (Service) and a storage module (Consul Server), the acquisition module (Protal) obtains the user's operation, extracts the pre-stored configuration information, and changes the configuration items and / or configuration data of the corresponding configuration information to obtain the changed configuration information; specifically, the configuration center synchronously stores the changed configuration information, including the two storage modes mentioned above, one of which is that the changed configuration information is stored in the storage module (Consul Server) through the interface module (Service); the other of which is that the configuration center also includes a message queue module and a storage module (Consul Server), the changed configuration information is sent to the message queue module through the interface module (Service), and then sent to the callback module (Call Back) by the message queue module, and the changed configuration information is stored in the callback module (Call Back).
[0054] Specifically, the application is provided with an sdk monitoring module; when the change operation is before the application is started, the change operation is performed first to obtain the changed configuration information, and the changed configuration information is stored in the storage module (Consul Server) through the interface module (Service). After that, the interface module (Service) obtains the application startup information, and the storage module (Consul Server) obtains the permission verification information of the sdk monitoring module in the application through the interface module (Service). After the permission verification, the sdk monitoring module in the application obtains and monitors the changes in the configuration information of the storage module (Consul Server), and synchronously modifies the corresponding configuration information of the application; it should be pointed out that the sdk monitoring module is provided in the application. When the sdk monitoring module is running, it is necessary to give priority to sending permission verification information to the storage module (Consul Server) through the interface module (Service), including verification information such as user ID and ID key. After the verification information passes, under the action of the sdk monitoring module, the application can monitor the storage module (Consul Server). When the application monitors the modification of the real-time configuration information, it will modify its own configuration information accordingly, thereby realizing the function of the application to obtain configuration information in real time.
[0055] Alternatively, the application is provided with an sdk monitoring module; when the change operation is after the application is started, the application is started first, during the application startup process, the interface module (Service) obtains the application startup information, and the storage module (Consul Server) obtains the permission verification information of the sdk monitoring module in the application through the interface module (Service). After the permission verification, the sdk monitoring module in the application performs a pull operation at regular intervals, including obtaining and monitoring the changes in the configuration information of the storage module (Consul Server). When the application is started, the change operation is performed to obtain the changed configuration information, and the changed configuration information is stored in the storage module (Consul Server) through the interface module (Service). Server), since the skd monitoring module will pull the information at regular intervals, when the skd monitoring module monitors the changes in the configuration information in the storage module (ConsulServer), it will synchronously modify the corresponding configuration information of the application; it should be pointed out that an sdk monitoring module is set in the application. When the sdk monitoring module is applied, it is necessary to give priority to sending permission verification information to the interface module (Service), including user ID and ID key and other verification information. After the verification information passes, under the action of the sdk monitoring module, the application can monitor the real-time configuration information in the storage module (Consul Server). When the modification of the real-time configuration information is monitored during the monitoring process, the application will modify its own configuration information accordingly; thereby realizing the function of the application to obtain configuration information in real time.
[0056] The above is one or more embodiments of the present disclosure that provide a configuration information update synchronization method and several modes of information storage and information synchronization of a device.
[0057] Regardless of which method is used to synchronize the information between the application and the configuration center, the operations on the configuration items and / or configuration data in the configuration information are the same, that is, operations are performed on adding or deleting configuration items, and operations are performed on the corresponding configuration data. At the same time, a sending module is provided on the acquisition module (Protal). After the configuration items and configuration data are changed, the sending module is triggered, and the changed configuration items and corresponding configuration data are sent to the interface module (Service), followed by the process of storing, actively sending, and actively acquiring (monitoring) the changed configuration information.
[0058] Based on the same inventive concept, the configuration center updates the synchronization device corresponding to any of the above-mentioned embodiments and methods, referring to Figure 5, including: an acquisition module (Protal), a storage module (Consul Server) and an interface module (Service); the acquisition module (Protal) is configured to extract pre-stored configuration information, and at the same time, the acquisition module (Protal) obtains the change operation on the pre-stored configuration information to obtain the changed configuration information, the interface module (Service) is configured to obtain the changed configuration information sent by the acquisition module (Protal), and send the changed configuration information to the storage module (Consul Server), and the storage module (Consul Server) is configured to store the changed configuration information; the interface module (Service) can also be configured to send the changed configuration information to the application so that the changed configuration information can be obtained by the application (the change operation is described in Example 1 and will not be repeated here).
[0059] As an optional embodiment, refer to Figure 5 The configuration information update synchronization device also includes a message queue module and a callback module (Call Back)(Callback), and at the same time, the interface module (Service) includes an API interface; the changed configuration information is sent to the message queue module through the interface module (Service), and then sent to the callback module (CallBack) by the message queue module and stored in the callback module (Call Back); after the application is started and the configuration information is changed, the application calls the API interface of the interface module (Service) to enable the callback module (Call Back) to send the changed configuration information to the application, so that the application can obtain the changed configuration information in real time.
[0060] As an optional embodiment, refer to Figure 5 The application is provided with an sdk monitoring module, which will only play a role when the application is started, that is, the sdk monitoring module sends permission verification information to the storage module (Consul Server) through the interface module (Service), and the permission verification information includes: user ID and ID key, etc.; after the verification information is passed, the sdk monitoring module monitors and obtains the changes of configuration information in the storage module (ConsulServer), and the sdk monitoring module obtains the changes of configuration information in the storage module (ConsulServer) at regular intervals. When the modification of real-time configuration information is monitored, the application will modify its own configuration information accordingly, thereby realizing the function of real-time acquisition of configuration information of the application.
[0061] As an optional embodiment, refer to Figure 5 The configuration information update synchronization device also includes a log storage module (Consul Server), namely an Audit module, which is used for log recording and auditing functions and stores records of various operations during the configuration information update synchronization process.
[0062] As an optional embodiment, refer to Figure 5 The configuration information update synchronization device also includes a database module, which is used to receive data from the Audit module. At the same time, the data of the configuration information extraction and change operations on the acquisition module (Protal), that is, the Portal module, are stored in the database module.
[0063] As an optional embodiment, refer to Figure 5 ,The configuration information update synchronization device also includes a Backup module, and the user performs regular backup of the storage module (Consul Server) to ensure the security of the data.
[0064] As an optional embodiment, the configuration information update synchronization device is suitable for production environment, test environment and R&D environment, wherein the acquisition module (Protal) in any environment, that is, the configuration information on the Portal module is changed, and the change operation is synchronized to the Portal module in other environments for synchronous change operation; therefore, the configuration information update synchronization method in this scheme can save the environment deployment for configuration data update synchronization in the R&D environment, test environment, and production environment, thereby saving operational redundancy.
[0065] One or more embodiments of the present disclosure provide a configuration information update synchronization method and device solution, which performs standardized configuration management through a unified interface, and distinguishes configurations through multiple dimensions such as application stack, theme, version, group, etc. The application can separate the configuration from the application code or file, and configure it in the configuration center, so that the configuration itself is independent of the application release and takes effect, thereby improving the response speed of the change when only configuration modifications are required. By deploying multiple configuration centers in testing and production, and pushing the test environment configuration to the production environment configuration center through one-click release, the consistency of the test environment and production environment deliverables is ensured. Finally, by sharing a unified configuration center, it is avoided that each system builds its own configuration center, so that resources can be reused, thereby reducing the cost of resources, operation and maintenance, use and learning, and at the same time, through permission control, information between users is isolated to ensure data security.
[0066] For the convenience of description, the above devices are described in terms of functions divided into various modules. Of course, when implementing one or more embodiments of the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0067] The device of the above embodiment is used to implement the corresponding configuration information update synchronization method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0068] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, one or more embodiments of the present disclosure also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the configuration information update synchronization method described in any of the above embodiments is implemented.
[0069] Figure 6 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0070] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided by the embodiments of the present disclosure.
[0071] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided by the embodiments of the present disclosure are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0072] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0073] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0074] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0075] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment scheme of the present disclosure, and does not necessarily include all the components shown in the figure.
[0076] The electronic device of the above embodiment is used to implement the corresponding configuration information update synchronization method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0077] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, one or more embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the configuration information update synchronization method described in any of the above embodiments.
[0078] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk 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.
[0079] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the configuration information update synchronization method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0080] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0081] In addition, to simplify the description and discussion, and in order not to obscure one or more embodiments of the present disclosure, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, devices may be shown in the form of block diagrams to avoid obscuring one or more embodiments of the present disclosure, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which one or more embodiments of the present disclosure will be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that one or more embodiments of the present disclosure may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0082] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0083] One or more embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A configuration information update synchronization method, It is characterized in that include: The configuration center obtains the user's operation and extracts the pre-stored configuration information; The configuration center changes the corresponding configuration items and / or configuration data in the configuration information according to the user's change operation to obtain the changed configuration information; Creation of each configuration item of the change operation corresponds to information transmission of a separate configuration item and / or corresponding configuration data, and the configuration items correspond to the configuration data one by one; The configuration center synchronously stores the changed configuration information so that the changed configuration information can be acquired by the application program; The configuration center includes an acquisition module, an interface module and a storage module; wherein the acquisition module acquires the user's operation, and the user's operation includes: an operation of creating a configuration item; the configuration item includes an application stack, a theme, a version and a group; the application stack is provided with at least one; the application stack includes at least one theme, each of the theme includes at least one version, and each of the version includes at least one group; the changed configuration information is obtained by changing the corresponding configuration item and / or configuration data in the configuration information after the acquisition module acquires the change operation; the configuration center synchronously stores the changed configuration information, specifically including: the acquisition module sends the changed configuration information to the interface module, the interface module sends the changed configuration information to the storage module, and the storage module stores the changed configuration information; after the configuration center synchronously stores the changed configuration information, it also includes: in response to determining that the interface module acquires the application startup information, the interface module acquires the permission verification information of the SDK listening module of the application, after the permission verification, the configuration information of the storage module can be acquired and listened by the SDK listening module, so as to synchronously modify the corresponding configuration information of the application; The configuration center also includes a message queue module and a callback module: the configuration center synchronously stores the changed configuration information, including: In response to determining that the interface module includes an API callback interface, the changed configuration information reaches the message queue module through the interface module, and the changed configuration information is sent to the callback module through the message queue module.
2. The method according to claim 1, wherein the storage module stores the changed configuration information, and then include: In response to determining that the interface module obtains the calling request sent by the application, the modified configuration information in the storage module is called, and the modified configuration information is sent to the application.
3. The method according to claim 2, wherein the storage module stores the changed configuration information, and then include: After the acquisition module acquires the change operation, in response to the determination interface module acquiring the startup information of the application, the real-time configuration information in the storage module is acquired by the application through the interface module, and the real-time configuration information includes the configuration information after the change operation.
4. According to the method of claim 1, the configuration center synchronously stores the changed configuration information. include: The API callback interface sends the modified configuration information to the application through the callback module according to the call request sent by the application.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 4 is implemented.
