A service configuration updating method, device and system
Patent Information
- Application Number
- CN202511716896.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2045-11-21
AI Technical Summary
[0003]本发明的目的是提供一种服务配置更新方法,解决了在服务运行期间,无法更新服务配置的问题或无法在不暂停运行服务的同时,基于更新的配置运行新服务的问题
[0014]本发明所提供的一种服务配置更新方法通过将服务的配置信息分为基于第一执行主体配置的上层配置信息和基于第二执行主体配置的底层配置信息,并且通过上层配置业务建立第一执行主体和第二执行主体之间的操作链路,基于操作链路实现对第二执行主体的操作控制,从而实现了不暂停运行服务的同时,基于更新的配置运行新服务。
Smart Images

Figure CN121333929B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of server technology, and in particular to a service configuration update method, a service configuration update device, and a service configuration update system. Background Technology
[0002] During service operation, there is a problem of being unable to update service configuration or being unable to run new services based on updated configurations without pausing service operation. For some simple configuration information modifications, such as changing the address in a file upload service, pausing service operation is undoubtedly a waste. Therefore, there is an urgent need for a service configuration update method that can update configuration information without pausing service operation. Summary of the Invention
[0003] The purpose of this invention is to provide a service configuration update method that solves the problem of being unable to update service configuration during service operation or being unable to run a new service based on the updated configuration without pausing the service.
[0004] To address the aforementioned technical problems, this invention provides a service configuration update method, comprising: The service configuration information is registered with the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity. The configuration center returns configuration information to the service; Parse the configuration information and configure the business modules to implement the functions of the service; The upper-layer configuration business of this service is executed to build the operation link between the first execution entity and the second execution entity. Then, the lower-layer configuration business of this service is executed to create the first execution entity, add the first execution entity to the client list, and set its status to currently available. The service configuration information is updated by invoking the first execution entity and controlling the operation of the second execution entity through the operation chain to complete the service configuration update.
[0005] Optionally, the upper-layer configuration information is used to implement the upper-layer configuration business related to the first execution entity, and the lower-layer configuration information is used to implement the lower-layer configuration business related to the second execution entity.
[0006] Optionally, the configuration center is used to update configuration information.
[0007] Optionally, after the configuration center returns the configuration information to the service, it performs configuration information verification. The configuration information verification process includes: The system checks whether the configuration information is incorrect or empty. If the configuration information is not empty and is error-free, the verification passes. The configuration information that passes the verification is then parsed.
[0008] Optionally, the process of configuring business modules to implement the functionality of the service includes: Receive underlying configuration information, create underlying configuration services, which include business processes and business channels, and write underlying configuration information into the business channels; Receive configuration information from the upper layer, create upper-layer configuration services based on the upper-layer configuration information, and transfer them to the lower-layer configuration services.
[0009] Optionally, after the configuration center returns the configuration information to the service, the configuration center periodically monitors for updates to the configuration information. If an update is detected, the configuration information is verified.
[0010] Optionally, the configuration information for the update service should include at least one of the following: Update the upper-level configuration information, but do not update the lower-level configuration information; Update the underlying configuration information instead of updating the upper-level configuration information. Update the upper-level configuration information and the lower-level configuration information.
[0011] Optionally, the first execution subject is the service client, and the second execution subject is the execution object related to the service client.
[0012] The present invention also provides a service configuration update apparatus, comprising: The configuration information registration module is used to register the service's configuration information with the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity. The configuration information return module is used to return configuration information from the configuration center to the service; The configuration information parsing module is used to parse configuration information and configure business modules to realize the functions of the service; The configuration business module is used to execute the upper-layer configuration business implementation of the service, build the operation link between the first execution entity and the second execution entity, and then execute the lower-layer configuration business of the service, create the first execution entity, add the first execution entity to the client list, and set its status to currently available; The service configuration update module is used to update the service configuration information. It calls the first execution entity and controls the operation of the second execution entity through the operation chain to complete the service configuration update.
[0013] The present invention also provides a service configuration update system, including a server and a client that are interconnected. The server is used for: The service configuration information is registered with the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity. The configuration center returns configuration information to the service; Parse the configuration information and configure the business modules to implement the functions of the service; The upper-layer configuration business of this service is executed to build the operation link between the first execution entity and the second execution entity. Then, the lower-layer configuration business of this service is executed to create the first execution entity, add the first execution entity to the client list, and set its status to currently available. The client is used to update the service configuration information, invoke the first execution entity, and control the operation of the second execution entity through the operation chain to complete the service configuration update.
[0014] The service configuration update method provided by this invention divides the service configuration information into upper-layer configuration information based on the configuration of a first execution subject and lower-layer configuration information based on the configuration of a second execution subject. An operation link is established between the first and second execution subjects through the upper-layer configuration service. Operation control of the second execution subject is realized based on the operation link, thereby enabling the running of a new service based on the updated configuration without pausing the service.
[0015] The present invention also provides a service configuration update device and a service configuration update system, which have the same beneficial effects as described above, and will not be described in detail here. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A flowchart illustrating a service configuration update method provided in an embodiment of the present invention; Figure 2 This is a structural block diagram of a service configuration update device provided in an embodiment of the present invention; Figure 3 This is a structural block diagram of a service configuration update system provided in an embodiment of the present invention. Detailed Implementation
[0018] The core of this invention is to provide a service configuration update method. In the prior art, updating service configuration requires pausing service operation, which is undoubtedly very wasteful for some simple configuration information modifications.
[0019] The service configuration update method provided by this invention includes registering the service's configuration information with a configuration center. The configuration information includes upper-layer configuration information based on a first execution entity and lower-layer configuration information based on a second execution entity. The configuration center returns the configuration information to the service. The configuration information is parsed, and the business modules are configured to implement the service's functions. The upper-layer configuration business of the service is executed to build an operation link between the first and second execution entities. Then, the lower-layer configuration business of the service is executed to create a first execution entity, which is added to the client list and its status is currently available. The service's configuration information is updated, the first execution entity is invoked, and the operation control of the second execution entity is achieved through the operation link to complete the service configuration update.
[0020] By dividing the service configuration information into upper-layer configuration information based on the configuration of the first execution subject and lower-layer configuration information based on the configuration of the second execution subject, and establishing an operation link between the first and second execution subjects through the upper-layer configuration business, and realizing operation control of the second execution subject based on the operation link, it is possible to run new services based on updated configurations without pausing the running services.
[0021] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating the service configuration update method provided in an embodiment of the present invention.
[0023] See Figure 1 In this embodiment of the invention, the service configuration update method includes: S1: Register the service configuration information to the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity.
[0024] In this embodiment, the upper-layer configuration information is used to implement the upper-layer configuration services related to the first execution entity, and the lower-layer configuration information is used to implement the lower-layer configuration services related to the second execution entity.
[0025] Specifically, in this embodiment, the first execution entity can be a service client, and the second execution entity can be an execution object related to the service client. This embodiment uses file upload service, cloud monitoring service, and remote store inspection service as examples.
[0026] When the service is a file upload service, the primary execution entity is the service client. The corresponding upper-level configuration information includes the file upload type, file verification rules, and file storage path. More specific upper-level configuration information may include Redis configuration and data information. Redis configuration may include the Redis IP address, port number, and connection duration; database information may include the database IP address and port number. The secondary execution entity is the cloud service platform. The corresponding lower-level configuration information may be the cloud service platform's password, used to access the platform's paid services.
[0027] When the service is a cloud-based monitoring service, the underlying configuration information consists of device control commands, with the service client being the primary execution entity. The upper-layer configuration information includes a database storing store, user, and product information. A second execution entity is used to utilize the cloud monitoring service; this entity can be a camera device or a store lock / unlock mechanism to ensure the normal operation of the store's monitoring service. Based on the target stores and devices selected from the database on the service client, the system controls the stores and their devices according to rules, enabling interaction between devices and users, such as opening and closing doors. Configuration updates can occur due to database changes, changes in product display, or changes in product quantity.
[0028] When the service is a remote store inspection service, the underlying configuration information is the logic for generating a to-do list based on non-conforming inspection items. The primary execution entity is the service client. The upper-layer configuration information includes a database storing store information, user information, product information, and inspection item rules. The secondary execution entity is the camera device, which uses the remote store inspection service to filter the corresponding target stores and target devices from the database and inspection item generation rules in the service client. It then processes the data of the stores and devices according to the rules, generating a to-do list corresponding to the conforming inspection items and returning it to the user for processing. Configuration updates can involve changing the database, modifying inspection items, or altering the to-do list.
[0029] S2: The configuration center returns configuration information to the service.
[0030] In this embodiment, the configuration center is used to update configuration information. After the configuration center returns the configuration information to the service, it performs configuration information verification. The configuration information verification process includes: The system checks whether the configuration information is incorrect or empty. If the configuration information is not empty and is error-free, the verification passes. The configuration information that passes the verification is then parsed.
[0031] Furthermore, after the configuration center returns the configuration information to the service, it also periodically monitors for updates to the configuration information. If an update is detected, the configuration information is verified.
[0032] S3: Parse the configuration information and configure the business modules to realize the function of the service.
[0033] In this embodiment, the process of configuring the business module to implement the service function includes: Receive underlying configuration information, create underlying configuration services, which include business processes and business channels, and write underlying configuration information into the business channels; Receive configuration information from the upper layer, create upper-layer configuration services based on the upper-layer configuration information, and transfer them to the lower-layer configuration services.
[0034] Furthermore, in this embodiment, after receiving the updated configuration information, the configuration center updates the upper-layer configuration service according to the upper-layer configuration information, and transmits it to the service channel in combination with the corresponding lower-layer configuration information to generate the latest service client.
[0035] S4: Execute the upper-layer configuration business of this service to build the operation link between the first execution subject and the second execution subject, then execute the lower-layer configuration business of this service to create the first execution subject, add the first execution subject to the client list, and set its status to currently available.
[0036] S5: Update the service configuration information, call the first execution entity, and control the operation of the second execution entity through the operation chain to complete the service configuration update.
[0037] In this embodiment, the configuration information for the update service includes at least one of the following: Update the upper-level configuration information, but do not update the lower-level configuration information; Update the underlying configuration information instead of updating the upper-level configuration information. Update the upper-level configuration information and the lower-level configuration information.
[0038] It should be noted that, taking the file upload service as an example, the underlying configuration business has been implemented for the existing cloud service platform. When the configuration information is updated, the service configuration information can be updated and used by following the steps of updating the upper-level configuration information. However, if a new cloud service platform is introduced, the underlying configuration information must be updated and the client generation logic of the new cloud service platform must be loaded. That is, the configuration information update and use must be completed by following the steps of updating the underlying configuration information.
[0039] This invention provides a service configuration update method that divides service configuration information into upper-layer configuration information based on a first execution entity and lower-layer configuration information based on a second execution entity. This new method enables the running of new services based on updated configurations without interrupting the current service. This method is applicable to situations where the connection method between services is relatively fixed, but the execution entity and configuration parameters may need to be modified.
[0040] The following describes a service configuration update apparatus provided by an embodiment of the present invention. The service configuration update apparatus described below can be referred to in correspondence with the service configuration update method described above.
[0041] Please refer to Figure 2 , Figure 2 This is a structural block diagram of a service configuration update device provided in an embodiment of the present invention. (Refer to...) Figure 2 The service configuration update device may include: The configuration information registration module 100 is used to register the service configuration information to the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity. The configuration information return module 200 is used to return configuration information from the configuration center to the service; The configuration information parsing module 300 is used to parse configuration information and configure the business modules to realize the function of the service. The configuration business module 400 is used to execute the upper-layer configuration business implementation of this service to build the operation link between the first execution subject and the second execution subject, and then execute the lower-layer configuration business of this service to create the first execution subject, add the first execution subject to the client list, and set its status to currently available; The service configuration update module 500 is used to update the service configuration information. It calls the first execution entity and controls the operation of the second execution entity through the operation chain to complete the service configuration update.
[0042] The service configuration update device in this embodiment is used to implement the aforementioned service configuration update method. Therefore, the specific implementation of the service configuration update device can be found in the embodiment section of the service configuration update method above. For example, the configuration information registration module 100, the configuration information return module 200, the configuration information parsing module 300, the configuration service module 400, and the service configuration update module 500 are respectively used to implement steps S1 to S5 in the above-mentioned service configuration update method. Therefore, the specific implementation can be referred to the description of the corresponding embodiments, which will not be repeated here.
[0043] The following describes a service configuration update system provided by an embodiment of the present invention. The service configuration update system described below can be referred to in correspondence with the service configuration update method and service configuration update device described above.
[0044] Please refer to Figure 3 , Figure 3 This is a structural block diagram of a service configuration update system provided in an embodiment of the present invention.
[0045] Reference Figure 3 A service configuration update system includes a server 11 and a client 12 that are interconnected, wherein the server 11 and the client 12 implement the service configuration update method described above. The server 11 is used for: The service configuration information is registered with the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity. The configuration center returns configuration information to the service; Parse the configuration information and configure the business modules to implement the functions of the service; The upper-layer configuration business of this service is executed to build the operation link between the first execution entity and the second execution entity. Then, the lower-layer configuration business of this service is executed to create the first execution entity, add the first execution entity to the client list, and set its status to currently available. The client 12 is used to update the service configuration information, call the first execution entity, and control the operation of the second execution entity through the operation link to complete the service configuration update.
[0046] The service configuration update system of this embodiment is used to implement the aforementioned service configuration update method. Therefore, the specific implementation of the service configuration update system can be found in the embodiment section of the service configuration update method above. Thus, the specific implementation can be referred to the description of the corresponding embodiments, which will not be repeated here.
[0047] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0048] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0049] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0050] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0051] The above provides a detailed description of a service configuration update method, a service configuration update apparatus, and a service configuration update system provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of the present invention. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims
1. A service configuration update method, characterized in that, include: The service configuration information is registered with the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity. The upper-layer configuration information is used to implement the upper-layer configuration services related to the first execution entity, and the lower-layer configuration information is used to implement the lower-layer configuration services related to the second execution entity. The configuration center returns configuration information to the service; Parse configuration information and configure business modules to implement the functions of the service; wherein, configuring business modules to implement the functions of the service includes: receiving underlying configuration information, creating underlying configuration services, the underlying configuration services including business processes and business channels, and writing underlying configuration information into the business channels; receiving upper-layer configuration information, creating upper-layer configuration services based on the upper-layer configuration information and transferring them to the underlying configuration services; The upper-layer configuration business of this service is executed to build the operation link between the first execution entity and the second execution entity. Then, the lower-layer configuration business of this service is executed to create the first execution entity, add the first execution entity to the client list, and set its status to currently available. The service configuration information is updated by invoking the first execution entity and controlling the operation of the second execution entity through the operation chain to complete the service configuration update.
2. The service configuration update method according to claim 1, characterized in that, The configuration center is used to update configuration information.
3. The service configuration update method according to claim 2, characterized in that, After the configuration center returns the configuration information to the service, it performs configuration information verification. The configuration information verification process includes: The system checks whether the configuration information is incorrect or empty. If the configuration information is not empty and there are no errors, the verification passes. The configuration information that has passed the verification is then parsed.
4. The service configuration update method according to claim 3, characterized in that, After the configuration center returns the configuration information to the service, the configuration center periodically monitors for updates to the configuration information. If an update is detected, the configuration information is verified.
5. The service configuration update method according to claim 4, characterized in that, The configuration information for the update service should include at least one of the following: Update the upper-level configuration information, but do not update the lower-level configuration information; Update the underlying configuration information without updating the upper-level configuration information. Update the upper-level configuration information and the lower-level configuration information.
6. The service configuration update method according to claim 5, characterized in that, The first executing entity is the service client, and the second executing entity is the execution object related to the service client.
7. A service configuration update device, characterized in that, The apparatus for implementing the service configuration update method as described in any one of claims 1-6 includes: The configuration information registration module is used to register the service configuration information to the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity. The upper-layer configuration information is used to implement the upper-layer configuration business related to the first execution entity, and the lower-layer configuration information is used to implement the lower-layer configuration business related to the second execution entity. The configuration information return module is used to return configuration information from the configuration center to the service; The configuration information parsing module is used to parse configuration information and configure business modules to implement the functions of the service. The configuration of business modules to implement the functions of the service includes: receiving underlying configuration information, creating underlying configuration services, which include business processes and business channels, and writing underlying configuration information into the business channels; receiving upper-layer configuration information, creating upper-layer configuration services based on the upper-layer configuration information, and transferring them to the underlying configuration services. The configuration business module is used to execute the upper-layer configuration business implementation of the service, build the operation link between the first execution entity and the second execution entity, and then execute the lower-layer configuration business of the service, create the first execution entity, add the first execution entity to the client list, and set its status to currently available; The service configuration update module is used to update the service configuration information. It calls the first execution entity and controls the operation of the second execution entity through the operation chain to complete the service configuration update.
8. A service configuration update system, characterized in that, A server and a client that are interconnected, wherein the server and the client implement the service configuration update method as described in any one of claims 1-6; The server is used for: The service configuration information is registered with the configuration center. The configuration information includes upper-layer configuration information based on the configuration of the first execution entity and lower-layer configuration information based on the configuration of the second execution entity. The upper-layer configuration information is used to implement the upper-layer configuration services related to the first execution entity, and the lower-layer configuration information is used to implement the lower-layer configuration services related to the second execution entity. The configuration center returns configuration information to the service; Parse configuration information and configure business modules to implement the functions of the service; wherein, configuring business modules to implement the functions of the service includes: receiving underlying configuration information, creating underlying configuration services, the underlying configuration services including business processes and business channels, and writing underlying configuration information into the business channels; receiving upper-layer configuration information, creating upper-layer configuration services based on the upper-layer configuration information and transferring them to the underlying configuration services; The upper-layer configuration business of this service is executed to build the operation link between the first execution entity and the second execution entity. Then, the lower-layer configuration business of this service is executed to create the first execution entity, add the first execution entity to the client list, and set its status to currently available. The client is used to update the service configuration information, invoke the first execution entity, and control the operation of the second execution entity through the operation chain to complete the service configuration update.
Citation Information
Patent Citations
Dynamic configuration system and method of edge server
CN117908982A
Method and device for realizing hot update of class file
CN118210531A
