Configuration data push method, device, electronic device and medium
By obtaining the applicable condition information of client parameters and configuration data, matching the target client and target configuration data, and pushing it in combination with long and short connections, the problem of mismatch and low efficiency of configuration data push in the existing technology is solved, and accurate and Real-time data issuance.
Patent Information
- Application Number
- CN202110122166.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-28
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-01-28
AI Technical Summary
When pushing configuration data to clients, the prior art lacks personalization and effectiveness, resulting in data pushing does not match the actual situation of the client and low push efficiency.
By obtaining the client's parameter information and applicable condition information in the configuration data, determine the matching target client and target configuration data, and push data using a combination of long and short connections to ensure accurate data issuance and real-time updates.
It realizes personalized push of configuration data, improves the effectiveness and accuracy of data push, and ensures that the client updates the application in a timely manner.
Smart Images

Figure CN112883261B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to the fields of intelligent recommendation and cloud computing, and more specifically to a configuration data pushing method, a configuration data pushing device, an electronic device, a medium, and a program product. Background Art
[0002] Applications running in the client usually need to be updated. In the related art, configuration data is usually pushed to the client through the server so that the client can update the application based on the received configuration data. However, when the server in the related art pushes configuration data to the client, the configuration data pushed to each client is the same, that is, the server does not push according to the actual situation of the client, and when the server pushes configuration data, the effectiveness of data push is low. Summary of the invention
[0003] The present disclosure provides a configuration data pushing method, device, electronic device, storage medium and program product.
[0004] According to one aspect of the present disclosure, a method for pushing configuration data is provided, comprising: obtaining parameter information for at least one client; obtaining at least one configuration data, each of the configuration data containing applicable condition information; determining a target client and target configuration data that match each other based on a relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data; and sending the target configuration data to a target client that matches the target configuration data, the target configuration data being used to configure an application in the target client.
[0005] According to another aspect of the present disclosure, a configuration data push device is provided, comprising: a first acquisition module, a second acquisition module, a determination module, and a sending module. The first acquisition module is used to acquire parameter information for at least one client; the second acquisition module is used to acquire at least one configuration data, each of which contains applicable condition information; the determination module is used to determine a target client and target configuration data that match each other based on the relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data; the sending module is used to send the target configuration data to a target client that matches the target configuration data, and the target configuration data is used to configure an application in the target client.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory in communication with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned method for pushing configuration data.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned configuration data pushing method.
[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the above-mentioned method for pushing configuration data when executed by a processor.
[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0011] Figure 1 The system architecture of a method and device for pushing configuration data according to an embodiment of the present disclosure is schematically shown;
[0012] Figure 2 A flowchart of a method for pushing configuration data according to an embodiment of the present disclosure is schematically shown;
[0013] Figure 3 A schematic diagram schematically shows a method for pushing configuration data according to an embodiment of the present disclosure;
[0014] Figure 4 A timing diagram schematically illustrates a method for pushing configuration data according to an embodiment of the present disclosure;
[0015] Figure 5 A timing diagram schematically illustrates a method for pushing configuration data according to another embodiment of the present disclosure;
[0016] Figure 6 A block diagram schematically shows a device for pushing configuration data according to an embodiment of the present disclosure; and
[0017] Figure 7 It is a block diagram of an electronic device for implementing the push of configuration data in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0019] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0020] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0021] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0022] An embodiment of the present disclosure provides a method for pushing configuration data, including: obtaining parameter information for at least one client; obtaining at least one configuration data, each configuration data including applicable condition information; determining a target client and target configuration data that match each other based on a relationship between the parameter information of at least one client and the applicable condition information in at least one configuration data; sending the target configuration data to a target client that matches the target configuration data, the target configuration data being used to configure an application in the target client.
[0023] Figure 1 The system architecture of the configuration data push method and device according to an embodiment of the present disclosure is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0024] like Figure 1As shown, the system architecture 100 according to this embodiment may include clients 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the clients 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0025] Users can use clients 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on clients 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0026] The clients 101, 102, 103 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. The clients 101, 102, 103 of the disclosed embodiment may, for example, run applications.
[0027] The server 105 may be a server that provides various services, such as a backend management server that provides support for websites browsed by users using the clients 101, 102, and 103 (for example only). The backend management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the client. In addition, the server 105 may also be a cloud server, that is, the server 105 has a cloud computing function.
[0028] It should be noted that the configuration data push method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the configuration data push device provided in the embodiment of the present disclosure can generally be set in the server 105. The configuration data push method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the client 101, 102, 103 and / or the server 105. Accordingly, the configuration data push device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the client 101, 102, 103 and / or the server 105.
[0029] It should be understood that Figure 1 The number of clients, networks and servers in the embodiment is only for illustration. Any number of clients, networks and servers may be provided as required.
[0030] The present disclosure provides a method for pushing configuration data. Figure 1 The system architecture of Figure 2 to Figure 5 The configuration data push method according to the exemplary embodiment of the present disclosure is described as follows. The configuration data push method according to the exemplary embodiment of the present disclosure is, for example, Figure 1 The server 105 shown is executed.
[0031] Figure 2 The flowchart of the method for pushing configuration data according to an embodiment of the present disclosure is schematically shown.
[0032] like Figure 2 As shown, the configuration data pushing method 200 of the embodiment of the present disclosure may include, for example, operations S210 to S240.
[0033] In operation S210, parameter information for at least one client is acquired.
[0034] In operation S220, at least one configuration data is acquired, each configuration data including applicable condition information.
[0035] In operation S230, based on the relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data, a target client and target configuration data that match each other are determined.
[0036] In operation S240, the target configuration data is sent to a target client matching the target configuration data, and the target configuration data is used to configure an application in the target client.
[0037] In the embodiments of the present disclosure, each client runs an application program, for example. The parameter information for the client program may include, for example, the device information of the client program and the attribute information of the running application program. The device information of the client program may include, for example, the model of the client program, the device identification of the client program, the operating system type of the client program, etc. The attribute information of the application program may include, for example, the version number information of the application program, etc.
[0038] In the embodiments of the present disclosure, the configuration data is used to configure an application running on a client, for example, the application has a display page, and the configuration data can be used to configure the display style of the display page of the application, the display style including, for example, page skins corresponding to different festivals.
[0039] In an embodiment of the present disclosure, each configuration data includes corresponding applicable condition information, and the applicable condition information is related to the parameter information of the client, that is, there is a relationship between the applicable condition information and the parameter information. In one example, the relationship is reflected in that the applicable condition information includes the parameter information. In another example, the applicable condition information includes a reference value, and the relationship is reflected in that the reference value is related to the feature value, and the feature value is obtained after processing the reference information.
[0040] Taking a client and a configuration data as an example, the parameter information of the client includes, for example, the model of the client, and the model of the client is "Model 001". The applicable condition information contained in the configuration data is, for example, "The client models applicable to this configuration data are 001 to 009". Based on the relationship between the parameter information "Model 001" and the applicable condition information "The client models applicable to this configuration data are 001 to 009", it is determined that the configuration data is applicable to the client, and therefore the client and the configuration data are determined to be a target client and target configuration data that match each other.
[0041] After the target client and target configuration data that match each other are determined, the target configuration data may be sent to the target client so that the target client configures the running application based on the target configuration data.
[0042] The disclosed embodiment selects mutually matching configuration data for the client based on the parameter information of the client, so as to send the matching configuration data to the client for configuring the application, thereby realizing personalized push of configuration data and thus achieving accurate distribution of configuration data.
[0043] The following combination Figure 3 The schematic diagram is used to describe the process of configuring data push.
[0044] Figure 3 The following is a schematic diagram schematically showing a method for pushing configuration data according to an embodiment of the present disclosure.
[0045] like Figure 3 As shown, the configuration data push method of the embodiment of the present disclosure is performed by, for example, a server 320, and the server 320 is connected to the client 310 through, for example, a connection channel 330. The connection channel 330 includes, for example, a first connection channel 331 and a second connection channel 332. Figure 1 The client 310 is the same as or similar to the server 105 described above. Figure 1 The described clients 101 , 102 , 103 are identical or similar.
[0046] In an embodiment of the present disclosure, the client 310 may establish a connection channel with the server 320 through a software development kit (SDK). For example, the client 310 may include a first SDK 311 and a second SDK 312. The client 310 establishes a first connection channel 331 with the server 320 through the first SDK, and the first connection channel is, for example, a long connection channel. The client 310 establishes a second connection channel 332 with the server 320 through the second SDK, and the second connection channel 332 is, for example, a short connection channel.
[0047] Among them, a long connection means that the client and the server first establish a connection, and the connection is not disconnected after it is established, and then the client and the server interact with each other. A short connection means that the client and the server connect each time they interact with each other, and the connection is disconnected immediately after the data interaction is completed.
[0048] The server 320 includes, for example, a service module 321, a material center 322, and a configuration platform 323. The configuration platform 323 can receive instructions from developers to generate configuration data or update existing configuration data, and send the configuration data to the material center 322 for storage. The material center 322 has, for example, a database 322A, which is also called a material library, and the database 322A is used to store configuration data from the configuration platform 323. The service module 321 can, for example, obtain configuration data from the material center 322 to send the configuration data to the client 310, so that the client 310 configures the application running in the client 310 based on the configuration data.
[0049] In one embodiment, the server 320 may actively push the configuration data to the client 310 through the first connection channel 331. Since the first connection channel 331 includes a long connection channel, indicating that the client 310 and the server 320 are in a long-term connection state, the service module 321 may push the configuration data to the client 310 in real time.
[0050] In another embodiment, the client 310 may send a configuration data acquisition request to the server 320, and then the service module 321 returns the configuration data to the client 310 via the second connection channel 332 in response to the configuration data acquisition request. Since the second connection channel 332 includes a short connection channel, the client 310 and the server 320 are in a connected state only at some specific moments, and the specific moment includes, for example, the moment when the client 310 is hot-started, so that the client 310 needs to send a configuration data acquisition request to the service module 321 to request configuration data when it is in a connected state with the server 320.
[0051] The technical solution of the disclosed embodiment can push configuration data by combining the first connection channel and the second connection channel. When the configuration platform updates the configuration data, the updated configuration data can be pushed to the client in real time through the first connection channel, so that the configuration data quickly reaches the specified client. At the same time, each client can also directly send a configuration data acquisition request to the server, and the server sends the configuration data required by the client to the corresponding client through the second connection channel in response to the configuration data acquisition request, ensuring that each client does not miss the configuration data. That is, by combining the first connection channel and the second connection channel, the effectiveness of pushing the configuration data is greatly improved.
[0052] Combine the following Figure 3 Schematic diagram, see Figure 4 To describe the method for pushing configuration data based on the first connection channel, and reference Figure 5 The method for pushing configuration data based on the second connection channel is described below. The service module, the material center, and the configuration platform are all deployed in the server, for example.
[0053] Figure 4 The following schematically shows a timing diagram of a method for pushing configuration data according to an embodiment of the present disclosure.
[0054] like Figure 4 The configuration data pushing method of the embodiment of the present disclosure includes, for example, operations S401 to S409.
[0055] In operation S401, the client sends parameter information to the service module in the server when starting up.
[0056] According to an embodiment of the present disclosure, in response to at least one client being started, the server establishes a first connection channel with the started client, the client sends parameter information to the server through the first connection channel, and the server can obtain the parameter information of the started client through the first connection channel. For example, the first connection channel is established when the client is cold started.
[0057] In addition, the server may also send configuration data matching the client to the matching client via the first connection channel.
[0058] In operation S402, the service module of the server stores the received parameter information.
[0059] In operation S403, the service module of the server returns a storage result to the client to inform the client that the parameter information sent by the client has been stored.
[0060] In operation S404, the configuration platform sends the configuration data to the material center.
[0061] For example, the configuration platform generates configuration data or updates existing configuration data based on the developer's instructions. After the server receives the parameter information of the launched client, the server obtains at least one configuration data in the configuration platform in response to the update of the configuration data in the configuration platform. For example, the server's material center receives at least one configuration data sent by the configuration platform.
[0062] In operation S405, the server stores at least one configuration data obtained from the configuration platform in a database, such as a material library in a material center. For example, the material center stores the received at least one configuration data in a first memory.
[0063] In operation S406, after storing at least one configuration data in the material center, the material center returns a storage result to the configuration platform to inform the configuration platform that the configuration data sent by the material center has been stored.
[0064] In operation S407 , the material center regularly pushes at least one first configuration data in the database to the service module.
[0065] In operation S408, after receiving at least one configuration data regularly pushed from the database, the service module determines a client that matches each configuration data.
[0066] In operation S409, the configuration data is pushed to the matching client.
[0067] Since the service module stores parameter information of at least one client and at least one configuration data, the target client and target configuration data that match each other can be determined based on the relationship between the parameter information of at least one client and the applicable condition information in at least one configuration data.
[0068] Specifically, each configuration data is taken as target configuration data in turn, and then based on the relationship between parameter information of at least one client and applicable condition information in at least one configuration data, a client matching each target configuration data is determined from at least one client as the target client.
[0069] For example, at least one configuration data includes configuration data A and configuration data B, and at least one client parameter information includes parameter information of client a, parameter information of client b, and parameter information of client c. First, configuration data A is used as target configuration data, and then based on the relationship between each parameter information and applicable condition information in each configuration data, client a and client b matching target configuration data A are determined, and client a and client b are used as target clients matching configuration data A. Similarly, configuration data B is used as target configuration data, client a and client c matching configuration data B are determined, and client a and client c are used as target clients matching configuration data B.
[0070] In the embodiments of the present disclosure, the server is connected to the client through a long connection channel, so that the server can push configuration data to the client in real time, thereby achieving the effectiveness of data push, and further achieving the effect of the client configuring the application based on the configuration data in a timely manner.
[0071] Figure 5 A timing diagram schematically illustrates a method for pushing configuration data according to another embodiment of the present disclosure.
[0072] like Figure 5 The configuration data pushing method of the embodiment of the present disclosure includes, for example, operations S501 to S509.
[0073] In operation S501, the configuration platform sends configuration data to the material center.
[0074] For example, after the configuration platform generates configuration data based on the developer's instructions or updates existing configuration data, the configuration data can be sent to the material center.
[0075] In operation S502, the at least one configuration data acquired is stored in a database. The database is, for example, a material library in a material center. That is, after the material center receives at least one configuration data from the configuration platform, the at least one configuration data is stored in the database.
[0076] In operation S503, after storing at least one configuration data in the material center, the material center returns a storage result to the configuration platform to inform the configuration platform that the configuration data sent by the material center has been stored.
[0077] In operation S504, the service module of the server periodically pulls at least one configuration data from the database.
[0078] In operation S505 , the material center responds to the pull request of the service module and returns at least one configuration data in the database to the service module.
[0079] In operation S506, the service module updates the configuration data stored in the service module memory using the at least one configuration data pulled. Wherein, updating the configuration data stored in the service module memory includes, for example, directly storing the pulled configuration data in the memory, or replacing the originally stored configuration data with the pulled configuration data, or modifying the originally stored configuration data based on the pulled configuration data to generate new configuration data.
[0080] In an embodiment of the present disclosure, a service module of a server obtains at least one configuration data in response to an update of configuration data in a configuration platform. Specifically, the service module pulls at least one configuration data from a material center before receiving a configuration data acquisition request from at least one client.
[0081] In operation S507 , at least one client sends a configuration data acquisition request to the server.
[0082] After the server receives the configuration data acquisition request from at least one client, the server establishes a second connection channel with the client that sent the configuration data acquisition request in response to the configuration data acquisition request. For example, the client sends the configuration data acquisition request to the server during hot start, so that the server establishes the second connection channel with the client in response to the configuration data acquisition request.
[0083] In operation S508 , the service module determines configuration data that matches each client.
[0084] In operation S509, the service module returns the configuration data to the matching client. For example, the service module returns the configuration data to the matching client via the second connection channel.
[0085] Specifically, the service module of the server extracts parameter information of the client that sends the configuration data acquisition request from the configuration data acquisition request from the client. At this time, the service module stores parameter information of at least one client and at least one configuration data. At this time, based on the relationship between the parameter information of at least one client and the applicable condition information in at least one configuration data, a target client and target configuration data that match each other can be determined.
[0086] Specifically, each client that sends a configuration data acquisition request is taken as a target client in turn, and then based on the relationship between parameter information of at least one client and applicable condition information in at least one configuration data, configuration data matching each target client is determined from at least one configuration data, and then target configuration data matching each client is determined based on the configuration data matching each target client.
[0087] In one example, the configuration data matching each target client may be directly used as the target configuration data.
[0088] For example, at least one configuration data includes configuration data A, configuration data B, and configuration data C, and at least one client parameter information includes parameter information of client a and parameter information of client b. First, client a is taken as the target client, and then based on the relationship between each parameter information and the applicable condition information in each configuration data, configuration data A and configuration data B matching the target client a are determined, and configuration data A and configuration data B are taken as the target configuration data matching the client a. Similarly, client b is taken as the target client, configuration data A and configuration data C matching the client b are determined, and configuration data A and configuration data C are taken as the target configuration data matching the client b.
[0089] In another example, part of the configuration data may be selected from the configuration data matching each target client as the target configuration data.
[0090] For example, the server obtains identification information of configuration data stored by the target client, and then removes configuration data having the same identification information as the configuration data stored by the target client from configuration data matching the target client, thereby obtaining target configuration data.
[0091] Specifically, the server obtains reference information, where the reference information includes identification information of configuration data stored by the client. Exemplarily, the configuration data acquisition request may carry the reference information.
[0092] Then, the service module of the server may determine target configuration data from the configuration data matching each target client based on the reference information, wherein the identification information of the target configuration data is different from the reference information.
[0093] Take the target client a and the configuration data A and configuration data B that match the target client a as an example. For example, if the reference information from the target client a contains the identification information of the configuration data B, it means that the target client a already has the configuration data B, and in this case, the configuration data B may no longer be returned to the target client a. Therefore, only the configuration data A is returned to the target client a as the target configuration data that matches the target client a.
[0094] In an embodiment of the present disclosure, the client is connected to the server through a short connection channel, and the client requests configuration data from the server in real time and receives the configuration data returned by the server through the short connection channel, so that the client can configure the application program based on the configuration data in a timely manner. In addition, when the client requests configuration data from the server, the server can determine the configuration data that the client already has based on the reference information from the client, so as to avoid wasting resources by repeatedly sending the configuration data that the client already has.
[0095] In the embodiment of the present disclosure, the parameter information includes, for example: the version number of the application program run by the client, the model of the client, the device identification of the client, and the operating system type of the client.
[0096] In an embodiment of the present disclosure, the applicable condition information of the configuration data includes, for example: the version number range of the application run by the target client, keyword information of the client model, the reference value of the client's device identifier, the set of the client's device identifiers, and the client's operating system type.
[0097] In one embodiment, the example in which the parameter information includes the version number of the application program run by the client and the applicable condition information of the configuration data includes the version number range of the application program run by the client is used to illustrate how to determine the target client program and the target configuration data that match each other. Specifically, the server can determine the target client program and the target configuration data that match each other based on the interval operator.
[0098] In an embodiment of the present disclosure, the version number range is determined by the minimum version number and the maximum version number of the application to which the configuration data applies. Taking the applicable condition information of a client and a configuration parameter as an example, when the version number of the application running on the client is within the version number range, it is determined that the client matches the configuration parameter.
[0099] For example, the version number of an application running on a certain client is 10.10.0.0, and the applicable condition information of a certain configuration data includes a version number range of 10.10.0.0 to 10.10.0.99. Then, the version number 10.10.0.0 is within the version number range of 10.10.0.0 to 10.10.0.99, and it is determined that the client matches the configuration data.
[0100] In another embodiment, the parameter information includes the client model, and the applicable condition information of the configuration data includes the keyword information of the client model, to illustrate how to determine the target client and target configuration data that match each other. Specifically, the server determines the target client and target configuration data that match each other based on the fuzzy matching operator.
[0101] Taking the applicable condition information of a client and a configuration parameter as an example, when the model of the client contains keyword information, it is determined that the client matches the configuration data.
[0102] For example, the model of a certain client is Z5-ABC20Pro, and the applicable condition information of a certain configuration data includes the keyword information of the client model as "Z5" or "20", then the model Z5-ABC20Pro has the keyword information "Z5 or "20", and it is determined that the client matches the configuration data.
[0103] In another embodiment, the parameter information includes the device identification of the client, and the applicable condition information of the configuration data includes the reference value of the device identification of the client, to illustrate how to determine the target client and target configuration data that match each other. Specifically, the server can determine the target client and target configuration data that match each other based on the small traffic operator. A small number of target clients and target configuration data that match each other can be determined based on the small traffic operator.
[0104] Taking the applicable condition information of a client and a configuration parameter as an example, the device identification of the client is processed to obtain a characteristic value, and the characteristic value is compared with the reference value of the device identification of the client. When the characteristic value is less than the reference value, it is determined that the client matches the configuration data. The device identification is, for example, a device number, which is used to uniquely represent the client.
[0105] For example, the device identification of a certain client is ABCabc123. The hash value (characteristic value) obtained by processing the device identification ABCabC123 using the hash algorithm is 8. The reference value of the client's device identification is, for example, 10. Then the hash value 8 is less than the reference value 10, determining that the client matches the configuration data.
[0106] Among them, for example, the service module of the server pre-builds a hash algorithm based on the device identification of a large number of clients. In the process of building the hash algorithm, for each client, the device number of the client is input into the hash algorithm to obtain a hash value, and the hash value is, for example, within 1-100, that is, the hash values of a large number of clients are evenly distributed within 1-100. When the server needs to push configuration data to a small number of clients (for example, 10%), it can be determined that the reference value is 10. When the hash value of the client is less than the reference value of 10, the configuration data is pushed to the client, thereby achieving targeted pushing of the configuration data to a small number of clients. After the configuration parameters are verified by a small number of clients, the configuration parameters can be considered to be pushed to a large number of clients later. It can be seen that security is achieved by verifying the configuration data through a small number of clients.
[0107] In another embodiment, a set of parameter information including a device identifier of a client and applicable condition information of configuration data including a device identifier of a client is used as an example to explain how to determine target clients and target configuration data that match each other. Specifically, the server can determine target clients and target configuration data that match each other based on a large device set operator. A large number of target clients and target configuration data that match each other can be determined based on the large device set operator.
[0108] Taking the applicable condition information of a client and a configuration parameter as an example, when the device identification of the client belongs to the set of device identifications of clients, it is determined that the client and the configuration data match each other.
[0109] In an embodiment of the present disclosure, the historical configuration data of the client corresponding to each device identifier in the set of device identifiers is related to the configuration data to be pushed. For example, the historical configuration data is the same as the configuration data to be pushed, or the configuration functions of the historical configuration data and the configuration data to be pushed are the same or similar, that is, the historical configuration data and the configuration data to be pushed may have the same functions but are different versions. Taking the example that both the historical configuration data and the configuration data to be pushed are for configuring the display skin of the application, the historical configuration data is used to configure the display skin of the application as the New Year's Day theme, and the configuration data to be pushed is used to configure the display skin of the application as the Spring Festival theme.
[0110] That is, for the configuration data to be pushed, the client with a high probability of needing the configuration data to be pushed is determined through the historical configuration data to obtain a set of device identifiers. When the configuration data to be pushed is pushed to a certain client, if the device identifier of the client belongs to the set of device identifiers, it is confirmed that the client has a high probability of needing the configuration data to be pushed, and the configuration data to be pushed can be pushed to the client.
[0111] In another embodiment, the parameter information includes the operating system type of the client, and the applicable condition information of the configuration data includes the operating system type of the client as an example to illustrate how to determine the target client and target configuration data that match each other. Specifically, the server determines the target client and target configuration data that match each other based on the matching operator.
[0112] Taking the applicable condition information of a client and a configuration parameter as an example, when the operating system type of the client is included in the operating system type of the client in the applicable condition information, it is determined that the client matches the configuration data.
[0113] For example, the operating system type of a certain client is Android, and the applicable condition information of a certain configuration data includes the operating system type of the client, such as Android, iOS, etc., and it is determined that the client matches the configuration data.
[0114] In the embodiments of the present disclosure, the parameter information of each client includes, for example, multiple types, and the applicable condition information of each configuration data also includes, for example, conditions for multiple types of parameter information. For example, if the applicable condition information of a configuration data includes the version number range of the application and the operating system type of the client, the applicable condition information of the configuration data is, for example, specifically "the version number range is 10.10.0.0 to 10.10.0.99 and the operating system type of the client is Android". In this case, the version number of the application in the parameter information of the client needs to be within the version number range of 10.10.0.0 to 10.10.0.99 and the operating system type of the client in the parameter information is Android, then it is determined that the client matches the configuration data. Alternatively, the applicable condition information of the configuration data may be set to "the version number range is 10.10.0.0 to 10.10.0.99 or the client's operating system type is Android". In this case, the version number of the application in the client's parameter information needs to be within the version number range of 10.10.0.0 to 10.10.0.99 or the client's operating system type in the parameter information needs to be Android to determine that the client matches the configuration data.
[0115] In the embodiments of the present disclosure, since the modification of configuration data will directly affect the operation mode, page display, etc. of the client, a unified and conveniently verified configuration platform needs to be provided for the modification and verification of configuration data to ensure that the modification of configuration data is controlled to achieve security. Through the configuration platform, you can easily query the change history of configuration data, edit and modify configuration data, and change the operation of configuration data online, etc. At the same time, the configuration platform also provides a sandbox verification environment, and the configuration data can be verified in the sandbox environment before going online. In addition, the configuration platform also supports the hierarchical release of configuration data. For example, the configuration platform can hierarchically release the configuration data to a small number of service modules for verification, and then send the configuration data to the full amount of service modules after verification, to prevent the client from crashing during the configuration process due to lack of verification of the configuration data.
[0116] After the configuration data is changed in the configuration platform, the configuration data is uniformly stored in the material center. Based on security considerations, the material center adds authentication for writing and reading configuration data, isolates the authentication capabilities of configuration data between each business, and refines the granularity of configuration data change and reading permissions to the business dimension to ensure the security of configuration data.
[0117] The embodiments of the present disclosure can reduce the frequency of the client sending configuration data acquisition requests to the service module by designing the service module degradation capability, so as to reduce the pressure on the service module. For example, the client can dynamically obtain the time interval for the service module to actively push configuration data from the service module. When the client has not received the configuration data actively pushed by the service module within the time interval, the client can send a configuration data acquisition request to the service module to request to obtain the configuration data.
[0118] The service module of the disclosed embodiment uses a timed trigger synchronization task to regularly interact with the material center to obtain the configuration data of the material center. The service module stores the acquired configuration data in the memory corresponding to the service module and generates a configuration file locally. By regularly synchronizing the configuration data, various traffic scenarios can be met to avoid putting pressure on the material center every time a client requests it.
[0119] Through the embodiments of the present disclosure, it is possible to accurately and in real time push configuration data to the client, and further enable the client to update the configuration data in a timely manner. Through the coordinated use of the long connection channel and the short connection channel, the configuration data can be quickly pushed to the client after it is changed. In addition, through the filtering of multi-dimensional conditions by a variety of operators, personalized push of configuration data for different clients can be achieved. It can be seen that through the configuration data push method of the embodiments of the present disclosure, no additional development cost is required, and it can meet the update of configuration data in complex scenarios, thereby improving the efficiency of product iteration.
[0120] Figure 6 The following schematically shows a block diagram of a device for pushing configuration data according to an embodiment of the present disclosure.
[0121] like Figure 6 As shown, the configuration data pushing device 600 of the embodiment of the present disclosure includes, for example, a first acquisition module 610 , a second acquisition module 620 , a determination module 630 and a sending module 640 .
[0122] The first acquisition module 610 may be used to acquire parameter information for at least one client. According to an embodiment of the present disclosure, the first acquisition module 610 may, for example, execute the above reference Figure 2 The operation S210 described above will not be described in detail here.
[0123] The second acquisition module 620 may be used to acquire at least one configuration data, each configuration data including applicable condition information. According to an embodiment of the present disclosure, the second acquisition module 620 may, for example, execute the above reference Figure 2 The operation S220 described above will not be described in detail here.
[0124] The determination module 630 may be used to determine a target client and target configuration data that match each other based on the relationship between the parameter information of at least one client and the applicable condition information in at least one configuration data. According to an embodiment of the present disclosure, the determination module 630 may, for example, execute the above reference Figure 2 The operation S230 described above will not be described in detail here.
[0125] The sending module 640 may be used to send the target configuration data to the target client that matches the target configuration data, and the target configuration data is used to configure the application in the target client. Figure 2 The operation S240 described above will not be described in detail here.
[0126] According to an embodiment of the present disclosure, the determination module 630 includes, for example, a first determination submodule and a second determination submodule, wherein the first determination submodule is used to take each configuration data as target configuration data, and the second determination submodule is used to determine, based on the relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data, a client matching each target configuration data from the at least one client as the target client.
[0127] According to an embodiment of the present disclosure, the determination module 630, for example, further includes: a third determination submodule and a fourth determination submodule. The third determination submodule is used to take each client as a target client, and the fourth determination submodule is used to determine, based on the relationship between the parameter information of at least one client and the applicable condition information in at least one configuration data, configuration data matching each target client from at least one configuration data as target configuration data.
[0128] According to an embodiment of the present disclosure, the device 600 further includes, for example, a third acquisition module and a removal module. The third acquisition module is used to acquire identification information of configuration data stored by the client. The removal module is used to remove configuration data having the same identification information as the configuration data stored by the target client from the configuration data matching the target client.
[0129] According to an embodiment of the present disclosure, the first acquisition module 610 includes, for example, a first establishment submodule and a first acquisition submodule. The first establishment submodule is used to establish a first connection channel with the started client in response to the client being started, and the first acquisition submodule is used to acquire parameter information of the started client via the first connection channel, wherein the target configuration data is sent to the target client via the first connection channel.
[0130] According to an embodiment of the present disclosure, the second acquisition module 620 includes, for example, a second acquisition submodule, a first storage submodule, and a receiving submodule. The second acquisition submodule is used to acquire at least one configuration data in response to the update of the configuration data, the first storage submodule is used to store the acquired at least one configuration data in a database, and the receiving submodule is used to receive at least one configuration data regularly pushed from the database.
[0131] According to an embodiment of the present disclosure, the first acquisition module 610, for example, further includes: a second establishment submodule and an extraction submodule. The second establishment submodule is used to establish a second connection channel with the client that sends the configuration data acquisition request in response to receiving a configuration data acquisition request from the client, and the extraction submodule is used to extract parameter information of the client that sends the configuration data acquisition request from the configuration data acquisition request, wherein the target configuration data is sent to the target client via the second connection channel.
[0132] According to an embodiment of the present disclosure, the second acquisition module 620, for example, further includes: a third acquisition submodule, a second storage submodule, and a pull submodule. The third acquisition submodule is used to acquire at least one configuration data in response to the update of the configuration data, the second storage submodule is used to store the acquired at least one configuration data in a database, and the pull submodule is used to periodically pull at least one configuration data from the database.
[0133] According to an embodiment of the present disclosure, the parameter information includes at least one of the following: a version number of an application program run by the client, a model of the client, a device identifier of the client, and an operating system type of the client.
[0134] According to an embodiment of the present disclosure, the applicable condition information of the configuration data includes at least one of the following: the version number range of the application run by the target client, keyword information of the client's model, a reference value of the client's device identifier, a set of the client's device identifiers, and the client's operating system type.
[0135] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0136] Figure 7 It is a block diagram of an electronic device for implementing the push of configuration data in an embodiment of the present disclosure.
[0137] Figure 7A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 700 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0138] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0139] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0140] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as a method for pushing configuration data. For example, in some embodiments, the method for pushing configuration data may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the method for pushing configuration data described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the method for pushing configuration data in any other appropriate manner (e.g., by means of firmware).
[0141] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0142] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0143] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0144] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0145] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0146] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0148] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for pushing configuration data, include: Obtaining parameter information for at least one client; Acquire at least one configuration data, each of the configuration data comprising applicable condition information; Determine a target client and target configuration data that match each other based on a relationship between parameter information of the at least one client and applicable condition information in the at least one configuration data, wherein the parameter information includes a device identifier of the target client, and the applicable condition information of the target configuration data includes a reference value of the device identifier of the target client; as well as Sending the target configuration data to a target client matching the target configuration data, wherein the target configuration data is used to configure an application in the target client; The determining of a target client and target configuration data that match each other based on the relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data comprises: In response to receiving a configuration data acquisition request from a target client, the device identification of the target client is determined based on parameter information in the configuration data acquisition request, the device identification is processed using a hash algorithm to obtain a characteristic value, and the characteristic value is compared with a reference value of the device identification. When the characteristic value is less than the reference value, it is determined that the target client and the target configuration data match each other.
2. The method according to claim 1, in, The determining of a target client and target configuration data that match each other based on the relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data comprises: taking each configuration data as target configuration data; and Based on the relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data, a client matching each target configuration data is determined from the at least one client as a target client.
3. The method according to claim 1, in, The determining of a target client and target configuration data that match each other based on the relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data comprises: Treat each client as a target client; Based on the relationship between the parameter information of the at least one client and the applicable condition information in the at least one configuration data, configuration data matching each target client is determined from the at least one configuration data as the target configuration data.
4. The method according to claim 3, further comprising: include: Obtaining identification information of configuration data stored by the target client; as well as From the configuration data matching the target client, configuration data having the same identification information as the configuration data stored in the target client is removed.
5. The method according to claim 1, in, Obtaining parameter information for at least one client includes: In response to the client being started, establishing a first connection channel with the started client, and acquiring parameter information of the started client via the first connection channel, Wherein, the target configuration data is sent to the target client via the first connection channel.
6. The method according to claim 5, in, The obtaining of at least one configuration data comprises: after receiving parameter information of the started client, acquiring the at least one configuration data in response to an update of the configuration data; storing the acquired at least one configuration data in a database; and At least one configuration data periodically pushed from a database is received.
7. The method according to claim 1, in, Obtaining parameter information for at least one client includes: In response to receiving a configuration data acquisition request from a client, establishing a second connection channel with the client that sent the configuration data acquisition request; and Extract parameter information of the client sending the configuration data acquisition request from the configuration data acquisition request, Wherein, the target configuration data is sent to the target client via the second connection channel.
8. The method according to claim 7, in, The obtaining of at least one configuration data comprises: before receiving a configuration data obtaining request from a client, acquiring at least one configuration data in response to an update of the configuration data; storing the acquired at least one configuration data in a database; and The at least one configuration data is periodically pulled from the database.
9. The method according to any one of claims 1 to 8, in, The parameter information includes at least one of the following: The version number of the application running on the client; The client model; The client's device identifier; and The client's operating system type.
10. The method according to any one of claims 1 to 8, in, The applicable condition information of the configuration data includes at least one of the following: The version number range of the application running on the target client; Keyword information of the client model; The reference value of the client's device identifier; A collection of client device identifiers; as well as The client's operating system type.
11. A device for pushing configuration data, include: A first acquisition module, used to acquire parameter information for at least one client; A second acquisition module, used to acquire at least one configuration data, each of which includes applicable condition information; a determination module, configured to determine a target client and target configuration data that match each other based on a relationship between parameter information of the at least one client and applicable condition information in the at least one configuration data, wherein the parameter information includes a device identifier of the target client, and the applicable condition information of the target configuration data includes a reference value of the device identifier of the target client; as well as A sending module, used to send the target configuration data to a target client matching the target configuration data, wherein the target configuration data is used to configure an application in the target client; The determining module is also used for: In response to receiving a configuration data acquisition request from a target client, the device identification of the target client is determined based on parameter information in the configuration data acquisition request, the device identification is processed using a hash algorithm to obtain a characteristic value, and the characteristic value is compared with a reference value of the device identification. When the characteristic value is less than the reference value, it is determined that the target client and the target configuration data match each other.
12. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 10.
13. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-10.
14. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 10.
