Client configuration method, computing device and computer storage medium

By sending probe information to the client after the configuration file is updated, the update mechanism of the client actively obtaining the configuration file is realized, which solves the resource waste and high load problems caused by polling requests, and reduces the service pressure and resource cost of configuring the server.

CN115913928BActive Publication Date: 2025-05-02ALIBABA CLOUD COMPUTING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211280221.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-19
Publication Date
2025-05-02
Estimated Expiration
2042-10-19

AI Technical Summary

Technical Problem

In the prior art, clients frequently obtain configuration files through polling requests, resulting in waste of resources on the configuration server and high load.

Method used

After the configuration file is updated, the probe information is sent to the client to inform the client that the configuration file has been updated. Therefore, the client actively obtains the configuration file and updates the local configuration after obtaining the probe information.

Benefits of technology

Reduces the frequency of polling requests from clients to the configuration server, and reduces the service pressure and resource costs of configuring the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115913928B_ABST
    Figure CN115913928B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a client configuration method, apparatus, computing device and computer storage medium. The client configuration method includes receiving probe information sent by a first server, the probe information is generated according to a first configuration version, the first configuration version includes a first configuration version corresponding to a newly generated configuration file; parsing the probe information to determine the first configuration version; sending a configuration update request to a configuration server to obtain a configuration file corresponding to the first configuration version; and updating the local configuration based on the configuration file. The technical solution provided by the embodiments of the present invention reduces the service pressure of the configuration server and reduces the machine resource cost of the configuration server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of Internet technology, and in particular to a client configuration method, a computing device, and a computer storage medium. Background Art

[0002] With the rapid development of Internet technology, there is a need for iterative updates of client configurations. For example, during special holidays, clients are configured with themes that match the holidays. To facilitate the management and maintenance of client configurations, the configuration server usually receives the developed configuration files, and then the client accesses the configuration server through polling to pull the configuration files to the client locally, and then uses the configuration files to update the local configurations.

[0003] The inventor discovered in the process of implementing the concept of the present invention that in the related art, in order to enable the client to obtain the updated configuration file in time, the polling time is usually set to be relatively short. In order to ensure a short polling time, the configuration server needs to pay a high machine resource cost to accept the polling request from the client. In addition, since the client usually does not update the configuration frequently, most of the polling requests sent by the client to the configuration server are invalid, resulting in a waste of resources. Summary of the invention

[0004] The embodiments of the present invention provide a client configuration method, device, computing equipment and computer storage medium.

[0005] In a first aspect, an embodiment of the present invention provides a client configuration method, including:

[0006] Receiving probe information sent by the first server, where the probe information is generated according to a first configuration version, where the first configuration version includes a configuration version corresponding to a latest generated configuration file;

[0007] Parsing the probe information to determine the first configuration version;

[0008] Sending a configuration update request to the configuration server to obtain a configuration file corresponding to the first configuration version;

[0009] The local configuration is updated based on the configuration file.

[0010] In a second aspect, an embodiment of the present invention provides a client configuration method, including:

[0011] After receiving the latest configuration file, the configuration server determines a first configuration version of the latest configuration file;

[0012] Sending the first configuration version to a first server so that the first server generates probe information according to the first configuration version, and sending the probe information to the client so that the client sends a configuration update request to the configuration server;

[0013] In response to the configuration update request, the configuration file is sent to the client, so that the client updates the local configuration by using the configuration file.

[0014] In a third aspect, an embodiment of the present invention provides a client configuration method, including:

[0015] Receive a first configuration version sent by the configuration server, where the first configuration version includes a first configuration version corresponding to a latest generated configuration file;

[0016] generating probe information according to the first configuration version;

[0017] The probe information is sent to the client so that the client obtains the configuration file and updates the local configuration using the configuration file.

[0018] In a fourth aspect, an embodiment of the present invention provides a client configuration method, including:

[0019] Using the first storage node to receive the configuration file sent by the configuration server;

[0020] Storing the configuration file from the first storage node to a second storage node;

[0021] A transfer completion message is sent to the configuration server, so that the configuration server sends the first configuration version corresponding to the configuration file to the first server in response to the transfer completion message, so that the first server generates probe information according to the first configuration version, and sends the probe information to the client, so that the client obtains the configuration file from the second storage node in response to the probe information, and uses the configuration file to update the local configuration.

[0022] In a fifth aspect, an embodiment of the present invention provides a client configuration method, including:

[0023] Monitor the first server to obtain a first configuration version, where the first configuration version includes a first configuration version corresponding to a latest generated configuration file, and after generating the configuration file, the configuration server sends the first configuration file to the first server;

[0024] generating probe information according to the first configuration version;

[0025] The probe information is sent to the client, so that the client obtains the configuration file in response to the probe information and updates the local configuration according to the configuration file.

[0026] In a sixth aspect, an embodiment of the present invention provides a client configuration device, including:

[0027] A probe receiving module, configured to receive probe information sent by a first server, wherein the probe information is generated according to a first configuration version, wherein the first configuration version includes a configuration version corresponding to a latest generated configuration file;

[0028] A probe parsing module, used to parse the probe information and determine the first configuration version;

[0029] A file acquisition module, used to send a configuration update request to the configuration server to obtain a configuration file corresponding to the first configuration version;

[0030] A configuration update module is used to update the local configuration based on the configuration file.

[0031] In a seventh aspect, an embodiment of the present invention provides a client configuration device, including:

[0032] A version determination module, configured to determine a first configuration version of the latest configuration file after receiving the latest configuration file;

[0033] A version sending module, used to send the first configuration version to the first server, so that the first server generates probe information according to the first configuration version, and sends the probe information to the client, so that the client sends a configuration update request to the configuration server;

[0034] The request response module is used to send the configuration file to the client in response to the configuration update request, so that the client updates the local configuration by using the configuration file.

[0035] In an eighth aspect, an embodiment of the present invention provides a client configuration device, including:

[0036] A version receiving module, configured to receive a first configuration version sent by a configuration server, wherein the first configuration version includes a first configuration version corresponding to a latest generated configuration file;

[0037] A first probe generating module, configured to generate probe information according to the first configuration version;

[0038] The first probe sending module is used to send the probe information to the client so that the client can obtain the configuration file and update the local configuration using the configuration file.

[0039] In a ninth aspect, an embodiment of the present invention provides a client configuration device, including:

[0040] A file receiving module, used to use the first storage node to receive the configuration file sent by the configuration server;

[0041] A file transfer module, used for storing the configuration file from the first storage node to the second storage node;

[0042] A message sending module is used to send a transfer completion message to the configuration server, so that the configuration server sends the first configuration version corresponding to the configuration file to the first server in response to the transfer completion message, so that the first server generates probe information according to the first configuration version, and sends the probe information to the client, so that the client obtains the configuration file from the second storage node in response to the probe information, and uses the configuration file to update the local configuration.

[0043] In a tenth aspect, an embodiment of the present invention provides a client configuration device, including:

[0044] A monitoring module, configured to monitor the first server to obtain a first configuration version, wherein the first configuration version includes a first configuration version corresponding to a newly generated configuration file, and after the configuration server generates the configuration file, the configuration server sends the first configuration file to the first server;

[0045] A second probe generating module, configured to generate probe information according to the first configuration version;

[0046] The second probe sending module is used to send the probe information to the client, so that the client obtains the configuration file in response to the probe information and updates the local configuration according to the configuration file.

[0047] In an eleventh aspect, an embodiment of the present invention provides a computing device, including a processing component and a storage component;

[0048] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the client configuration method provided by the embodiment of the present invention.

[0049] In a twelfth aspect, an embodiment of the present invention provides a computer storage medium storing a computer program, which, when executed by a computer, implements the client configuration method provided by an embodiment of the present invention.

[0050] In an embodiment of the present invention, after the configuration file is updated, probe information generated according to the first configuration version of the configuration file is sent to the client, and the probe information is used to inform the client that the configuration file has been updated. The client can obtain the configuration file and use the configuration file to update the local configuration after obtaining the probe information and determining the first configuration version. This technical solution eliminates the need for the client to frequently send configuration update requests to the configuration server in a polling manner, but only needs to obtain the configuration file after obtaining the probe information sent by the first server, thereby reducing the service pressure of the configuration server and reducing the machine resource cost of the configuration server.

[0051] These and other aspects of the present invention will become more apparent from the following description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 A system architecture diagram is shown in which the client configuration method provided by an embodiment of the present invention can be applied;

[0054] Figure 2 A flowchart of a client configuration method provided by an embodiment of the present invention is schematically shown;

[0055] Figure 3 A flowchart schematically shows a client configuration method provided by another embodiment of the present invention;

[0056] Figure 4 A flowchart schematically shows a client configuration method provided by another embodiment of the present invention;

[0057] Figure 5 A flowchart schematically shows a client configuration method provided by another embodiment of the present invention;

[0058] Figure 6 A flowchart schematically shows a client configuration method provided by another embodiment of the present invention;

[0059] Figure 7 A system block diagram schematically illustrates the application of the client configuration method provided by an embodiment of the present invention;

[0060] Figure 8 A block diagram schematically shows a client configuration device provided by an embodiment of the present invention;

[0061] Fig. 9 A block diagram schematically shows a client configuration device provided by another embodiment of the present invention;

[0062] Fig.10 A block diagram schematically shows a client configuration device provided by another embodiment of the present invention;

[0063] Fig.11 A block diagram schematically shows a client configuration device provided by another embodiment of the present invention;

[0064] Fig.12 A block diagram schematically shows a client configuration device provided by another embodiment of the present invention;

[0065] Fig.13 The following is a block diagram schematically showing a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0066] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0067] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0069] Figure 1 A system architecture diagram is shown in which the client configuration method provided by an embodiment of the present invention can be applied. The system architecture may include a client 101 and multiple servers 102.

[0070] The client 101 and the server 102 are connected via a network. The network provides a medium for a communication link between the client 101 and the server 102. The network may include various connection types, such as wired or wireless communication links or optical fiber cables.

[0071] The client 101 can interact with the server 102 through the network to receive or send messages, etc.

[0072] The client 101 may be a browser, an APP (Application), or a web application such as an H5 (HyperText Markup Language 5, version 5) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The client 101 may be deployed in an electronic device and may rely on the device to run or some apps in the device to run, etc. For example, the electronic device may have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, etc. For ease of understanding, Figure 1 In the text, the client is mainly represented by a device image. Various other types of applications can usually be configured in electronic devices, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0073] The server 102 may include a server that provides various services, such as a server that processes interaction information sent by a client.

[0074] It should be noted that the server 102 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0075] It should be understood that Figure 1 The number of clients and servers in the example is only for illustration. Any number of clients and servers may be provided as required.

[0076] The implementation details of the technical solution of the embodiment of the present invention are described in detail below.

[0077] Figure 2 A flowchart of a client configuration method provided by an embodiment of the present invention is schematically shown. The client configuration method can be executed by a client and may include the following steps:

[0078] 201, receiving probe information sent by a first server, where the probe information is generated according to a first configuration version, where the first configuration version includes a configuration version corresponding to a latest generated configuration file;

[0079] 202, parsing the probe information and determining the first configuration version;

[0080] 203, sending a configuration update request to the configuration server to obtain a configuration file corresponding to the first configuration version;

[0081] 204: Update the local configuration based on the configuration file.

[0082] According to an embodiment of the present invention, the first configuration version may include, for example, a version number of a newly generated configuration file, and the version number may be represented by a timestamp corresponding to the generation time of the configuration file.

[0083] According to an embodiment of the present invention, the probe information may be sent by the first server in response to any request sent by the client. In one possible implementation, the first server may send the version number corresponding to the latest generated configuration file to the client after receiving each request sent by the client. However, it is not limited to this, and it may also be implemented that after the first server receives the first configuration version sent by the configuration server, the probe information is sent to the client only when communicating with the client for the first time.

[0084] According to an embodiment of the present invention, after receiving the request from the client, the first server may write the probe information into the request header of the request and return it to the client. Thus, the client may first identify the probe information from the request header and then determine the latest configuration file version according to the probe information.

[0085] According to an embodiment of the present invention, the probe information may be used to prompt the client that the configuration file has been updated, so that the client can obtain the latest configuration file in time to update the local configuration after the configuration file is updated.

[0086] In one possible implementation method, after the client parses the probe information and determines the first configuration version, it can first compare the first configuration version with the local configuration version of the local configuration. If the first configuration version is higher than the local configuration version, the client obtains the configuration file corresponding to the first configuration version. If the first configuration version is not higher than the local configuration version, the probe information is ignored and the configuration file corresponding to the first configuration version is not obtained.

[0087] According to an embodiment of the present invention, after the configuration file is obtained, the local configuration may be updated by replacing the locally configured configuration file with the obtained configuration file.

[0088] In an embodiment of the present invention, after the configuration file is updated, probe information generated according to the first configuration version of the configuration file is sent to the client, and the probe information is used to inform the client that the configuration file has been updated. The client can obtain the configuration file and use the configuration file to update the local configuration after obtaining the probe information and determining the first configuration version. This technical solution eliminates the need for the client to frequently send configuration update requests to the configuration server in a polling manner, but only needs to obtain the configuration file after obtaining the probe information sent by the first server, thereby reducing the service pressure of the configuration server and reducing the machine resource cost of the configuration server.

[0089] According to an embodiment of the present invention, the probe information further includes first verification information.

[0090] According to an embodiment of the present invention, after obtaining the configuration file corresponding to the first configuration version, the client configuration method further includes: generating second verification information according to the configuration file.

[0091] According to an embodiment of the present invention, updating the local configuration based on the configuration file may be specifically implemented as follows: when the second verification information matches the first verification information, updating the local configuration based on the configuration file.

[0092] According to an embodiment of the present invention, the first verification information and the second verification information may be verification information generated using the same algorithm, which may include, for example, a hash algorithm, an MD5 message-digest algorithm, and the like.

[0093] According to an embodiment of the present invention, after receiving the latest configuration file uploaded by the developer, the configuration server can use a preset algorithm to operate on the configuration file to generate first verification information, and then send the first verification information and the first configuration version corresponding to the configuration file to the first server, so that the first server can generate probe information based on the first verification information and the first configuration version and send it to the client.

[0094] According to an embodiment of the present invention, after obtaining the configuration file, the client may first use a preset algorithm adopted by the configuration server to operate on the obtained configuration file to generate second verification information.

[0095] Taking the MD5 algorithm as an example, for the same input, the same verification information will be output. Therefore, if the first verification information matches the second verification information, it indicates that the configuration file obtained by the client is the same as the configuration file received by the configuration server, and has not been tampered with during the data transmission process, that is, the configuration file obtained by the client is credible, so that the client can update the local configuration according to the obtained configuration file; if the first verification information does not match the second verification information, it indicates that the configuration file has been tampered with during the transmission process and there is a security risk. The client can abandon the obtained configuration file to ensure data security.

[0096] According to an embodiment of the present invention, the configuration file includes at least one candidate configuration item.

[0097] According to an embodiment of the present invention, updating the local configuration based on the configuration file can be specifically implemented as follows:

[0098] Get the client's description information;

[0099] Based on the description information, at least one candidate configuration item is screened to determine at least one target configuration item;

[0100] Updates the local configuration item that corresponds to the target configuration item.

[0101] According to an embodiment of the present invention, the description information of the client may include, for example, user information, client type, operating system, client version number, etc.

[0102] According to an embodiment of the present invention, a configuration update for a client may update multiple configuration items of the client, for example, theme configuration, font configuration, and communication protocol configuration can all be a single configuration item. However, due to factors such as different versions of the client and different models of terminal devices equipped with the client, the updated configuration items of the client will be different. Therefore, after obtaining the configuration file, the client can first filter at least one candidate configuration item included in the configuration file according to the description information of the client, so as to determine at least one target configuration item that matches the description information of the client from the at least one candidate configuration item, and then only update the matching target configuration item.

[0103] For example, if the client is deployed on a terminal device of the IOS (a mobile operating system) system, the configuration file it obtains may include two configuration items, font 1 and font 2, where the configuration requirement of font 1 is for a terminal device deployed on an Android system, and the configuration requirement of font 2 is for a terminal device deployed on an IOS system. Therefore, based on the description information of the client's operating system, font 2 can be determined as the target configuration item from the two candidate configuration items in the configuration file, so that the initial font of the client can be modified to font 2 using the configuration file.

[0104] The above example is only used to illustrate a possible implementation of the embodiment of the present invention, and does not constitute any improper limitation on the embodiment of the present invention.

[0105] According to an embodiment of the present invention, the probe information further includes: break-up time information.

[0106] According to an embodiment of the present invention, obtaining the configuration file corresponding to the first configuration version may be specifically implemented as follows:

[0107] Determine the configuration request time based on the current time and the scattered time information;

[0108] At the configuration request time, a configuration file corresponding to the first configuration version is obtained.

[0109] According to an embodiment of the present invention, the configuration service platform usually manages a large number of clients. When a configuration file is updated, if a large number of clients request to obtain the configuration file together, the QPS (Query Per Second) of the configuration service platform will be higher. Therefore, the first server can randomly generate the scattered time information, and write the scattered time information into the probe information and send it to the client together. The scattered time information can be the delay time for the client to request to obtain the configuration file after receiving the probe information. For example, when the scattered time is 10 seconds, the timing starts from the time the client obtains the probe information, and then requests to obtain the configuration file after 10 seconds.

[0110] According to the embodiment of the present invention, by adding the break-up time into the probe information, the configuration file request time of a large number of clients can be diverted, thereby reducing the service pressure of the configuration service platform.

[0111] According to an embodiment of the present invention, obtaining the configuration file corresponding to the first configuration version may be specifically implemented as follows:

[0112] Get the template link;

[0113] Generate access links based on template links and current configuration versions;

[0114] Gets the configuration file based on the access link.

[0115] According to an embodiment of the present invention, the template link may include a template link corresponding to the network type of the network that the client establishes a connection with the configuration service platform. For example, when the client establishes a connection with the configuration service platform through a content delivery network (CDN), the template link may be a template link of the CDN. The template link may be pre-stored in the client, for example, may be: http: / / cdn.com / path / xx.json.

[0116] According to the embodiment of the present invention, since CDN adds a new network architecture to the existing Internet, the configuration file can be published to the network edge node closest to the user, so that the client can obtain the required content nearby, thereby improving the response speed of the user's access to the website.

[0117] In a possible implementation, after receiving the latest configuration file, the configuration service platform can store the configuration file in a network node of the CDN, and establish a mapping relationship between the access link of the network node and the version number of the configuration file. Therefore, after obtaining the configuration file, the client can splice the template link with the first configuration version to generate an access link of the network node storing the configuration file, so as to obtain the configuration file from the network node.

[0118] In another possible implementation, after receiving the latest configuration file, the configuration service platform may first store the configuration file to the first storage node of the object storage service end, and then establish a mapping relationship between the first storage node and the first network node of the CDN. After the client generates an access link to the first network node through splicing and sends a request to obtain the configuration file to the first network node, the first network node may return the source to the first storage node with which it has a mapping relationship, so that the first storage node sends the configuration file to the first network node, and then the first network node sends the configuration file to the client.

[0119] In another possible implementation, after receiving the latest configuration file and storing the configuration file in the first storage node of the object storage service client, the object storage platform can transfer the configuration file from the first storage node to a randomly determined second storage node, and then establish a mapping relationship between the second storage node and the first network node. By transferring the configuration file from the first storage node to the randomly determined second storage node, the storage security of the configuration file can be improved and the risk of the configuration file being tampered with can be reduced.

[0120] According to an embodiment of the present invention, the configuration server can reduce the service pressure of the configuration server and save machine resources by storing the configuration file in the object storage service.

[0121] According to an embodiment of the present invention, the client configuration method further includes:

[0122] Send a configuration update request to the configuration server based on the preset first polling interval duration;

[0123] Get the update configuration file;

[0124] If it is determined that the third configuration version of the update configuration file is higher than the second configuration version of the local configuration file, the local configuration file is updated using the update configuration file.

[0125] According to an embodiment of the present invention, in addition to actively obtaining the configuration file through the client in response to the probe information, the client can also obtain the latest configuration version based on a preset first polling interval. If the latest configuration version obtained is lower than the local configuration version, it will no longer be updated. If the latest configuration version obtained is higher than the local configuration version, the latest configuration file corresponding to the latest configuration version can be obtained, and the latest configuration file can be used to update the local configuration.

[0126] According to an embodiment of the present invention, since a configuration file acquisition method is implemented in which the client is prompted to actively acquire the configuration file by indicating that there is a configuration update on the client through probe information, the preset first polling interval can be set to be longer, for example, 30 minutes, 45 minutes, 60 minutes, etc. Thus, on the one hand, the latest configuration version acquired through polling can be used to verify the first configuration version actively acquired by the client, and on the other hand, a protection mechanism can be added to avoid problems such as configuration update delays caused by the client not receiving the probe information in time due to network fluctuations between the client and the first server.

[0127] Figure 3 A flowchart of a client configuration method provided by another embodiment of the present invention is schematically shown. The client configuration method can be executed by a configuration server and may include the following steps:

[0128] 301, after receiving the latest configuration file, the configuration server determines the first configuration version of the latest configuration file;

[0129] 302, sending the first configuration version to the first server, so that the first server generates probe information according to the first configuration version, and sends the probe information to the client, so that the client sends a configuration update request to the configuration server;

[0130] 303. In response to the configuration update request, send the configuration file to the client, so that the client updates the local configuration using the configuration file.

[0131] According to an embodiment of the present invention, the configuration file can be uploaded to the configuration server after being developed by the developer. The first configuration version corresponding to the configuration file can include the version number of the latest generated configuration file, and the version number can be represented by the timestamp when the configuration server receives the configuration file.

[0132] In a possible implementation, the configuration server may receive a configuration update request from the client and send the configuration file to the client.

[0133] According to an embodiment of the present invention, the client configuration method further includes:

[0134] The configuration file is sent to the file storage platform so that the client can obtain the configuration file from the file storage platform.

[0135] In a possible implementation, after receiving the latest configuration file, the configuration service platform can store the configuration file in a CDN node and establish a mapping relationship between the access link of the node and the version number of the configuration file. Therefore, after obtaining the configuration file, the client can splice the template link with the first configuration version to generate an access link of the node storing the configuration file, so as to obtain the configuration file from the node.

[0136] In another possible implementation, after receiving the latest configuration file, the configuration service platform may first store the configuration file to the first storage node of the object storage service end, and then establish a mapping relationship between the first storage node and the first network node of the CDN. After the client generates an access link to the first network node through splicing and sends a request to obtain the configuration file to the first network node, the first network node may return the source to the first storage node with which it has a mapping relationship, so that the first storage node sends the configuration file to the first network node, and then the first network node sends the configuration file to the client.

[0137] In another possible implementation, after receiving the latest configuration file and storing the configuration file in the first storage node of the object storage service client, the object storage platform can transfer the configuration file from the first storage node to a randomly determined second storage node, and then establish a mapping relationship between the second storage node and the first network node. By transferring the configuration file from the first storage node to the randomly determined second storage node, the storage security of the configuration file can be improved and the risk of the configuration file being tampered with can be reduced.

[0138] According to an embodiment of the present invention, the configuration server can reduce the service pressure of the configuration server and save machine resources by storing the configuration file in the object storage service.

[0139] According to an embodiment of the present invention, the client configuration method further includes:

[0140] generating third verification information according to the configuration file;

[0141] The third verification information is sent to the first server so that the first server sends the third verification information to the client, so that after receiving the configuration file, the client generates fourth verification information according to the configuration file, and determines whether to use the configuration file to update the local configuration based on whether the third verification information and the fourth verification information match.

[0142] According to an embodiment of the present invention, the third verification information and the fourth verification information may be verification information generated using the same algorithm, which may include, for example, a hash algorithm, an MD5 message-digest algorithm, and the like.

[0143] According to an embodiment of the present invention, after receiving the latest configuration file uploaded by the developer, the configuration server can use a preset algorithm to operate on the configuration file to generate third verification information, and then send the third verification information and the first configuration version corresponding to the configuration file to the first server, so that the first server can generate probe information based on the third verification information and the first configuration version and send it to the client.

[0144] According to an embodiment of the present invention, after obtaining the configuration file, the client may first use a preset algorithm adopted by the configuration server to operate on the obtained configuration file to generate fourth verification information.

[0145] Taking the MD5 algorithm as an example, for the same input, the same verification information will be output. Therefore, if the third verification information matches the fourth verification information, it indicates that the configuration file obtained by the client is the same as the configuration file received by the configuration server, and has not been tampered with during the data transmission process, that is, the configuration file obtained by the client is credible, so that the client can update the local configuration according to the obtained configuration file; if the third verification information does not match the fourth verification information, it indicates that the configuration file has been tampered with during the transmission process and there is a security risk. The client can abandon the obtained configuration file to ensure data security.

[0146] Figure 4 A flowchart of a client configuration method provided by another embodiment of the present invention is schematically shown. The client configuration method can be executed by a first server and may include the following steps:

[0147] 401, receiving a first configuration version sent by a configuration server, where the first configuration version includes a first configuration version corresponding to a latest generated configuration file;

[0148] 402, generating probe information according to the first configuration version;

[0149] 403: Send the probe information to the client so that the client can obtain the configuration file and use the configuration file to update the local configuration.

[0150] Figure 4 The client configuration method shown is the same as Figure 2 The client configuration method shown is the same or similar, and the specific implementation method can refer to Figure 2 The client configuration method shown is not repeated here.

[0151] Figure 5 A flowchart of a client configuration method provided by another embodiment of the present invention is schematically shown. The client configuration method can be executed by a file storage service client and may include the following steps:

[0152] 501, using a first storage node to receive a configuration file sent by a configuration server;

[0153] 502, storing the configuration file from the first storage node to the second storage node;

[0154] 503, sending a transfer completion message to the configuration server, so that the configuration server sends the first configuration version corresponding to the configuration file to the first server in response to the transfer completion message, so that the first server generates probe information according to the first configuration version, and sends the probe information to the client, so that the client obtains the configuration file from the second storage node in response to the probe information, and uses the configuration file to update the local configuration.

[0155] Figure 5 The client configuration method shown is the same as Figure 2 The client configuration method shown is the same or similar, and the specific implementation method can refer to Figure 2 The client configuration method shown is not repeated here.

[0156] Figure 6 A flowchart of a client configuration method provided by another embodiment of the present invention is schematically shown. The client configuration method can be executed by a service gateway and may include the following steps:

[0157] 601, monitor the first server to obtain a first configuration version, where the first configuration version includes a first configuration version corresponding to a latest generated configuration file. After generating the configuration file, the configuration server sends the first configuration file to the first server;

[0158] 602, generating probe information according to the first configuration version;

[0159] 603 , sending the probe information to the client, so that the client obtains the configuration file in response to the probe information and updates the local configuration according to the configuration file.

[0160] According to an embodiment of the present invention, the service gateway may be a service gateway corresponding to the first server, configured to receive requests from the client and forward the requests to the server.

[0161] Figure 7 A system block diagram schematically illustrates the application of the client configuration method provided by an embodiment of the present invention.

[0162] like Figure 7As shown, 701 may represent a client, 702 may represent a service gateway, 703 may represent a first server, 704 may represent a configuration server, 705 may represent an object storage service, and 706 may represent a network node of a CDN.

[0163] The configuration server 704 can be used to receive the latest configuration file developed by the developer. After receiving the configuration file, the configuration server can determine the timestamp corresponding to the time when the configuration file is received as the first configuration version of the configuration file, and use the MD5 algorithm to calculate the configuration file to generate the first verification information. Then, on the one hand, the configuration server 704 can send the first configuration version and the first verification information to the first server 703; on the other hand, the configuration server 704 can store the configuration file in the first storage node 7051 of the object storage service 705.

[0164] After receiving the configuration file using the first storage node 7051, the object storage service client 705 may transfer the configuration file from the first storage node 7051 to the randomly determined second storage node 7052. Then, a mapping relationship may be established between the second storage node 7052 and the network node 706 of the CDN.

[0165] The service gateway 702 may monitor the first server 703, and after determining that the first server 703 has received the first configuration version, pull the first configuration version and the first verification information from the first server 703 to change the configuration version stored in the local memory.

[0166] When the client 701 sends any request to the first server 703, the request is first sent to the service gateway 702. The service gateway 702 can generate the scattered time information, and then generate the probe information according to the scattered time information, the first configuration version and the first verification information, and write the probe information into the request header of the request and send it to the client 701.

[0167] After receiving the returned request, the client 701 can parse the breakup time information, the first configuration version, and the first verification information from the request header of the request. Then, it can first be determined whether the configuration needs to be updated based on the first configuration version. Specifically, it can be determined whether the first configuration version is higher than the local configuration version. If the first configuration version is higher than the local configuration version, it is determined to update the configuration. If the first configuration version is lower than the local configuration version, the probe information is invalid.

[0168] When it is determined that the first configuration version is higher than the local configuration version, the client 701 may obtain a template link, and concatenate the template link with the first configuration version to obtain an access address.

[0169] The access address may be an access address of the network node 706 of the CDN, so that the client 701 may send a configuration update request to the network node 706 of the CDN based on the access address.

[0170] After not receiving the configuration update request, the CDN network node 706 can return to the second storage node 7052 according to the pre-created mapping relationship between the CDN network node 706 and the second storage node 7052, so that the second storage node 7052 can send the configuration file to the CDN network node 706, and further, the CDN network node 706 sends the configuration file to the client 701.

[0171] After the client 701 obtains the configuration file, it can first use the MD5 algorithm to calculate the configuration file to generate second verification information, and compare the second verification information with the first verification information. If the first verification information matches the second verification information, the verification passes and the configuration file can be used to update the configuration.

[0172] After successful verification, the configuration file can be parsed to determine at least one candidate configuration item contained in the configuration file, and then the description information of the client 701 can be obtained, and the description information of the client 701 can be used to filter at least one configuration item contained in the configuration file to determine at least one target configuration item, so as to update the local configuration using the at least one target configuration item obtained by filtering.

[0173] On this basis, the client 701 can also send a polling request to the database 707 corresponding to the configuration server 704 with a longer first polling interval to determine the latest configuration version. If the latest configuration version obtained is lower than the local configuration version, it will no longer be updated. If the latest configuration version obtained is higher than the local configuration version, the latest configuration file corresponding to the latest configuration version can be obtained, and the local configuration can be updated using the latest configuration file.

[0174] Figure 8 A block diagram of a client configuration device provided by an embodiment of the present invention is schematically shown. The client configuration device 800 may include:

[0175] The probe receiving module 801 is used to receive the probe information sent by the first server, where the probe information is generated according to the first configuration, and the first configuration version includes the configuration version corresponding to the latest generated configuration file;

[0176] The probe parsing module 802 is used to parse the probe information and determine the first configuration version;

[0177] The file acquisition module 803 is used to send a configuration update request to the configuration server to obtain a configuration file corresponding to the first configuration version;

[0178] The configuration update module 804 is used to update the local configuration based on the configuration file.

[0179] According to an embodiment of the present invention, the probe information further includes first verification information.

[0180] According to an embodiment of the present invention, the client configuration device 800 further includes:

[0181] A verification information generation module, used to generate second verification information according to the configuration file;

[0182] According to an embodiment of the present invention, the configuration update module 804 includes:

[0183] The configuration updating unit is used to update the local configuration based on the configuration file when the second verification information matches the first verification information.

[0184] According to an embodiment of the present invention, the configuration file includes at least one candidate configuration item.

[0185] According to an embodiment of the present invention, the configuration update module 804 includes:

[0186] A description information acquisition unit, used to acquire description information of the client;

[0187] A screening unit, configured to screen at least one candidate configuration item based on the description information and determine at least one target configuration item;

[0188] An update unit, used to update a local configuration item corresponding to a target configuration item.

[0189] According to an embodiment of the present invention, the probe information further includes: break-up time information.

[0190] According to an embodiment of the present invention, the file acquisition module 803 includes:

[0191] A first time determination unit, configured to determine a configuration request time according to a current time and scattered time information;

[0192] The first file acquisition unit is configured to acquire a configuration file corresponding to a first configuration version at a configuration request time.

[0193] According to an embodiment of the present invention, the file acquisition module 803 includes:

[0194] A template acquisition unit, used to acquire a template link;

[0195] A link generation unit, used to generate an access link according to a template link and a current configuration version;

[0196] The second file acquisition unit is used to acquire the configuration file based on the access link.

[0197] According to an embodiment of the present invention, the client configuration device 800 further includes:

[0198] A request sending module, used to send a configuration update request to the configuration server based on a preset first polling interval duration;

[0199] An update configuration file acquisition module is used to acquire an update configuration file;

[0200] The update configuration module is configured to update the local configuration using the update configuration file if it is determined that the third configuration version of the update configuration file is higher than the second configuration version of the local configuration file.

[0201] Figure 8 The client configuration device can execute Figure 2 The implementation principle and technical effect of the client configuration method in the embodiment shown are not described in detail. The specific way in which each module and unit performs operations in the client configuration device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0202] Fig. 9 A block diagram of a client configuration device provided by another embodiment of the present invention is schematically shown. The client configuration device 900 may include:

[0203] A version determination module 901 is used to determine a first configuration version of the latest configuration file after receiving the latest configuration file;

[0204] A version sending module 902 is used to send the first configuration version to the first server, so that the first server generates probe information according to the first configuration version, and sends the probe information to the client, so that the client sends a configuration update request to the configuration server;

[0205] The request response module 903 is used to send the configuration file to the client in response to the configuration update request, so that the client updates the local configuration using the configuration file.

[0206] According to an embodiment of the present invention, the client configuration device 900 further includes:

[0207] A third verification information generating module, used to generate third verification information according to the configuration file;

[0208] The third verification information sending module is used to send the third verification information to the first server so that the first server sends the third verification information to the client, so that after receiving the configuration file, the client generates fourth verification information according to the configuration file, and determines whether to use the configuration file to update the local configuration based on whether the third verification information and the fourth verification information match.

[0209] According to an embodiment of the present invention, the client configuration device 900 further includes:

[0210] The file storage module is used to send the configuration file to the file storage platform so that the client can obtain the configuration file from the file storage platform.

[0211] Fig. 9 The client configuration device can execute Figure 3 The implementation principle and technical effect of the client configuration method in the embodiment shown are not described in detail. The specific way in which each module and unit performs operations in the client configuration device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0212] Fig.10 A block diagram of a client configuration device provided by another embodiment of the present invention is schematically shown. The client configuration device 1000 may include:

[0213] A version receiving module 1001 is used to receive a first configuration version sent by a configuration server, where the first configuration version includes a first configuration version corresponding to a latest generated configuration file;

[0214] A first probe generating module 1002, configured to generate probe information according to a first configuration version;

[0215] The first probe sending module 1003 is used to send probe information to the client so that the client can obtain the configuration file and update the local configuration using the configuration file.

[0216] Fig.10 The client configuration device can execute Figure 4 The implementation principle and technical effect of the client configuration method in the embodiment shown are not described in detail. The specific way in which each module and unit performs operations in the client configuration device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0217] Fig.11 A block diagram of a client configuration device provided by another embodiment of the present invention is schematically shown. The client configuration device 1100 may include:

[0218] The file receiving module 1101 is used to receive the configuration file sent by the configuration server by using the first storage node;

[0219] The file transfer module 1102 is used to store the configuration file from the first storage node to the second storage node;

[0220] The message sending module 1103 is used to send a transfer completion message to the configuration server, so that the configuration server sends the first configuration version corresponding to the configuration file to the first server in response to the transfer completion message, so that the first server generates probe information according to the first configuration version, and sends the probe information to the client, so that the client obtains the configuration file from the second storage node in response to the probe information, and uses the configuration file to update the local configuration.

[0221] Fig.11 The client configuration device can execute Figure 5 The implementation principle and technical effect of the client configuration method in the embodiment shown are not described in detail. The specific way in which each module and unit performs operations in the client configuration device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0222] Fig.12 A block diagram of a client configuration device provided by another embodiment of the present invention is schematically shown. The client configuration device 1200 may include:

[0223] The monitoring module 1201 is used to monitor the first server to obtain a first configuration version, where the first configuration version includes a first configuration version corresponding to a newly generated configuration file. After the configuration server generates the configuration file, the first configuration file is sent to the first server;

[0224] The second probe generating module 1202 is used to generate probe information according to the first configuration version;

[0225] The second probe sending module 1203 is used to send the probe information to the client, so that the client obtains the configuration file in response to the probe information and updates the local configuration according to the configuration file.

[0226] Fig.12 The client configuration device can execute Figure 6 The implementation principle and technical effect of the client configuration method described in the embodiment are not described in detail. The specific way in which each module and unit performs operations in the client configuration device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0227] In a possible design, the client configuration device provided by the embodiment of the present invention can be implemented as a computing device, such as Fig.13 As shown, the computing device may include a storage component 1301 and a processing component 1302;

[0228] The storage component 1301 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 1302 to implement the client configuration method provided by the embodiment of the present invention.

[0229] Of course, the computing device may also include other components, such as input / output interfaces, communication components, etc. The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the computing device and other devices.

[0230] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.

[0231] When the computing device is a physical device, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device.

[0232] The embodiment of the present invention further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a computer, the client configuration method provided by the embodiment of the present invention can be implemented.

[0233] The embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by a computer, the client configuration method provided by the embodiment of the present invention can be implemented.

[0234] The processing components in the above corresponding embodiments may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing components may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0235] The storage component is configured to store various types of data to support operations in the device. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0236] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0237] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0238] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0239] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A client configuration method, characterized in that: Applied to a client, the method comprises: Receiving probe information sent by the first server, where the probe information is generated according to a first configuration version, where the first configuration version includes a configuration version corresponding to a latest generated configuration file; Parsing the probe information to determine the first configuration version; Sending a configuration update request to the configuration server to obtain a configuration file corresponding to the first configuration version; Update the local configuration based on the configuration file; The probe information also includes: break-up time information; The obtaining of the configuration file corresponding to the first configuration version includes: Determine the configuration request time according to the current time and the scattered time information; At the configuration request time, a configuration file corresponding to the first configuration version is obtained.

2. The method according to claim 1, characterized in that The configuration file includes at least one candidate configuration item; The updating of the local configuration based on the configuration file comprises: Get the client's description information; Based on the description information, screening the at least one candidate configuration item to determine at least one target configuration item; Update the local configuration item corresponding to the target configuration item.

3. The method according to claim 1, characterized in that: The obtaining of the configuration file corresponding to the first configuration version includes: Get the template link; Generate an access link according to the template link and the first configuration version; The configuration file is obtained based on the access link.

4. The method according to claim 1, characterized in that The probe information also includes first verification information; After obtaining the configuration file corresponding to the first configuration version, the method further includes: generating second verification information according to the configuration file; The updating of the local configuration based on the configuration file comprises: In a case where the second verification information matches the first verification information, the local configuration is updated based on the configuration file.

5. The method according to claim 1, characterized in that The method further comprises: Send a configuration update request to the configuration server based on the preset first polling interval duration; Get the update configuration file; If it is determined that the third configuration version of the updated configuration file is higher than the second configuration version of the local configuration file, the local configuration file is updated using the updated configuration file.

6. A client configuration method, characterized in that: Applied to configuring a server, the method includes: After receiving the latest configuration file, the configuration server determines a first configuration version of the latest configuration file; Sending the first configuration version to a first server so that the first server generates probe information according to the first configuration version, and sending the probe information to the client so that the client sends a configuration update request to the configuration server; In response to the configuration update request, sending the configuration file to the client, so that the client updates the local configuration using the configuration file; The probe information includes: break-up time information; The method further comprises: Determine the configuration request time according to the current time and the scattered time information; At the configuration request time, determining the configuration file corresponding to the first configuration version.

7. The method according to claim 6, characterized in that The method further comprises: generating third verification information according to the configuration file; The third verification information is sent to the first server so that the first server sends the third verification information to the client, so that after receiving the configuration file, the client generates fourth verification information according to the configuration file, and determines whether to use the configuration file to update the local configuration based on whether the third verification information and the fourth verification information match.

8. The method according to claim 6, characterized in that The method further comprises: The configuration file is sent to a file storage platform so that the client obtains the configuration file from the file storage platform.

9. A client configuration method, characterized in that: Applied to the first server, the method includes: Receive a first configuration version sent by the configuration server, where the first configuration version includes a first configuration version corresponding to a latest generated configuration file; generating probe information according to the first configuration version; Sending the probe information to the client so that the client obtains the configuration file and updates the local configuration using the configuration file; The probe information also includes: break-up time information; The obtaining of the configuration file comprises: Determine the configuration request time according to the current time and the scattered time information; At the configuration request time, a configuration file corresponding to the first configuration version is obtained.

10. A client configuration method, characterized in that: Applied to a file storage service end, the method comprises: Using the first storage node to receive the configuration file sent by the configuration server; Storing the configuration file from the first storage node to a second storage node; Sending a transfer completion message to the configuration server, so that the configuration server sends the first configuration version corresponding to the configuration file to the first server in response to the transfer completion message, so that the first server generates probe information according to the first configuration version, and sends the probe information to the client, so that the client obtains the configuration file from the second storage node in response to the probe information, and uses the configuration file to update the local configuration; The probe information also includes: break-up time information; The obtaining of the configuration file comprises: Determine the configuration request time according to the current time and the scattered time information; At the configuration request time, a configuration file corresponding to the first configuration version is obtained.

11. A client configuration method, characterized in that: Applied to a service gateway, the method comprises: Monitor the first server to obtain a first configuration version, where the first configuration version includes a first configuration version corresponding to a newly generated configuration file, and after the configuration server generates the configuration file, sends the configuration file of the first configuration version to the first server; Generate probe information according to the configuration file of the first configuration version; Sending the probe information to the client, so that the client obtains the configuration file in response to the probe information and updates the local configuration according to the configuration file; The probe information also includes: break-up time information; The obtaining of the configuration file comprises: Determine the configuration request time according to the current time and the scattered time information; At the configuration request time, a configuration file corresponding to the first configuration version is obtained.

12. A computing device, characterized in that: including a processing component and a storage component; The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the client configuration method as described in any one of claims 1 to 5, or to implement the client configuration method as described in any one of claims 6 to 8, or to implement the client configuration method as described in claim 9, or to implement the client configuration method as described in claim 10, or to implement the client configuration method as described in claim 11.

13. A computer storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a computer, the client configuration method according to any one of claims 1 to 5 is implemented, or the client configuration method according to any one of claims 6 to 8 is implemented, or the client configuration method according to claim 9 is implemented, or the client configuration method according to claim 10 is implemented, or the client configuration method according to claim 11 is implemented.

Citation Information

Patent Citations

  • Client configuration data updating method and device, equipment and storage medium

    CN115102857A