A service configuration method and apparatus

By receiving multi-dimensional business information from clients, generating cache keys using a configuration library and recursive algorithms, and matching and filtering configuration item values, the problem of low efficiency in multi-dimensional configuration in existing technologies is solved, and efficient business configuration is achieved.

CN116232899BActive Publication Date: 2026-03-06HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2026-03-06

AI Technical Summary

Technical Problem

In existing technologies, servers need to match information from multiple dimensions one by one when faced with configuration, resulting in low efficiency in business configuration.

Method used

By receiving multi-dimensional business information from the client, a cache key is generated using a configuration library and a preset recursive algorithm. The configuration item values ​​are then matched and filtered, and the target configuration item values ​​are sent to the client.

Benefits of technology

It improved the efficiency of business configuration and simplified the complexity of multi-dimensional information configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232899B_ABST
    Figure CN116232899B_ABST
Patent Text Reader

Abstract

This application provides a service configuration method and apparatus. When executing this method, the server first receives a service configuration request sent by a client. The service configuration request includes service parameters, which include multiple dimensions of service information. Next, each dimension of the service information is matched against a configuration library to obtain a set of configuration item values ​​corresponding to each dimension. The configuration library includes multiple configuration item values. Then, based on preset business rules, the set of configuration item values ​​is filtered to obtain the target configuration item value corresponding to each dimension. Finally, the server sends the target configuration item value corresponding to each dimension of the service information to the client, enabling the client to perform service configuration based on the target configuration item value corresponding to each dimension. By involving multiple dimensions of service information together in the matching of configuration item values ​​and filtering the target configuration item value corresponding to each dimension, service configuration efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of service configuration, and more particularly to a service configuration method and apparatus. Background Technology

[0002] With the rapid development of information technology, various APP clients have enriched users' life scenarios. During client initialization, the server needs to provide users with rich scenario configuration information based on the current network environment, geographical location information, and other dimensions of the client.

[0003] In existing technologies, server configuration schemes involve matching client business information from a single dimension one by one, and calculating the corresponding configuration value based on the matching results of each item.

[0004] When configuring information across multiple dimensions, the server needs to match each dimension individually to calculate the corresponding configuration value, resulting in low efficiency in business configuration. Summary of the Invention

[0005] In view of this, this application provides a service configuration method and apparatus, which aims to improve service configuration efficiency.

[0006] In a first aspect, embodiments of this application provide a service configuration method, the method comprising:

[0007] Receive a service configuration request sent by a client, the service configuration request including service parameters, the service parameters including multiple dimensions of service information;

[0008] Each dimension of the business information is matched with the configuration library to obtain a set of configuration item values ​​corresponding to each dimension of the business information; the configuration library includes multiple configuration item values.

[0009] Based on preset business rules, the set of configuration item values ​​is filtered to obtain the target configuration item value corresponding to each dimension of business information;

[0010] The target configuration item value corresponding to each dimension of business information is sent to the client so that the client can configure the business according to the target configuration item value corresponding to each dimension of business information.

[0011] Optionally, the configuration library is generated in the following way:

[0012] Obtain historical business parameters, which include business information from multiple historical dimensions;

[0013] Configure the configuration item values ​​corresponding to each historical dimension of business information in the multiple historical dimension business information;

[0014] A pre-defined recursive algorithm is used to generate a cache key for each historical dimension of business information;

[0015] A configuration library is generated based on the cache key of each historical dimension business information and the configuration item value corresponding to each historical dimension business information.

[0016] Optionally, each dimension of business information includes the dimension value corresponding to each dimension of business information;

[0017] The step of matching each dimension of business information in the multiple dimensions with the configuration library to obtain a set of configuration item values ​​corresponding to each dimension of business information includes:

[0018] Based on the dimension value corresponding to each dimension of business information, a preset recursive algorithm is used to generate the target cache key corresponding to each dimension of business information;

[0019] By matching the target cache key with the cache key in the preset configuration library, a set of configuration item values ​​corresponding to each dimension of business information is obtained.

[0020] Optionally, after generating the configuration library, the method further includes:

[0021] Regularly update the cache key for each historical dimension of business information and the corresponding configuration item value for each historical dimension of business information.

[0022] Optionally, the step of filtering the set of configuration item values ​​corresponding to each dimension of business information based on preset business rules to obtain the target configuration item value corresponding to each dimension of business information includes:

[0023] Iterate through the set of configuration item values ​​corresponding to each dimension of business information;

[0024] The target configuration item value corresponding to each dimension of business information is determined based on the modification time of the configuration item in the set of configuration item values ​​corresponding to each dimension of business information.

[0025] Optionally, determining the target configuration item value corresponding to each dimension of business information based on the modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information includes:

[0026] The target configuration item value corresponding to each dimension of business information is determined based on the latest modification time of the configuration item value in the set of configuration item values ​​corresponding to each dimension of business information.

[0027] Secondly, embodiments of this application provide a service configuration apparatus, the apparatus comprising:

[0028] The receiving module is used to receive a service configuration request sent by the client. The service configuration request includes service parameters, which include multiple dimensions of service information.

[0029] The matching module is used to match each dimension of the business information with the configuration library to obtain a set of configuration item values ​​corresponding to each dimension of the business information; the configuration library includes multiple configuration item values.

[0030] The filtering module filters the set of configuration item values ​​based on preset business rules to obtain the target configuration item value corresponding to each dimension of business information;

[0031] The sending module is used to send the target configuration item value corresponding to each dimension of business information to the client, so that the client can perform business configuration according to the target configuration item value corresponding to each dimension of business information.

[0032] Optionally, the filtering module includes a traversal submodule and a determination submodule;

[0033] The traversal submodule is used to traverse the set of configuration item values ​​corresponding to each dimension of business information;

[0034] The determining submodule is used to determine the target configuration item value corresponding to each dimension of business information based on the modification time of the configuration item in the configuration item value set corresponding to each dimension of business information.

[0035] Optionally, the determining submodule is specifically used to determine the target configuration item value corresponding to each dimension of business information based on the latest modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information.

[0036] Thirdly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements any of the methods described above.

[0037] The above technical solution has the following beneficial effects:

[0038] This application provides a service configuration method and apparatus. When executing the method, the server first receives a service configuration request sent by a client, wherein the service configuration request includes service parameters, and the service parameters include multiple dimensions of service information; then, each dimension of the service information is matched with a configuration library to obtain a set of configuration item values ​​corresponding to each dimension of the service information; the configuration library includes multiple configuration item values, and then, based on preset business rules, the set of configuration item values ​​is filtered to obtain a target configuration item value corresponding to each dimension of the service information; finally, the server sends the target configuration item value corresponding to each dimension of the service information to the client, so that the client can perform service configuration according to the target configuration item value corresponding to each dimension of the service information. In this way, by involving multiple dimensions of service information together in the matching of configuration item values, and filtering the target configuration item value corresponding to each dimension of the service information according to business rules, service configuration efficiency is improved and the complexity of configuring multiple dimensions of service information is simplified. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings used in the description of the embodiment or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 A flowchart of one method of the service configuration method provided in the embodiments of this application;

[0041] Figure 2 This is a schematic diagram illustrating a configuration example of a server operation backend for multiple dimensions of business information provided in an embodiment of this application.

[0042] Figure 3 This is an example diagram illustrating the generation of a cache key provided in an embodiment of this application;

[0043] Figure 4 This is an example diagram illustrating a target cache key provided in an embodiment of this application;

[0044] Figure 5 This is a schematic diagram of a service configuration device provided in an embodiment of this application. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0046] To facilitate understanding of the technical solutions provided in this application, the background technology involved in this application will be explained below.

[0047] In existing technologies, server configuration schemes involve matching client business information from a single dimension one by one, and calculating the corresponding configuration value based on the matching results of each item.

[0048] When configuring information across multiple dimensions, the server needs to match each dimension individually to calculate the corresponding configuration value, resulting in low efficiency in business configuration.

[0049] To overcome the above-mentioned technical problems, embodiments of this application provide a service configuration method, which can be executed by a service configuration device. This device can be implemented by software and / or hardware and is generally integrated into a server or terminal device.

[0050] Please see Figure 1 , Figure 1 A flowchart of a service configuration method provided in this application embodiment, the method may include:

[0051] Step S101: Receive a service configuration request sent by the client. The service configuration request includes service parameters, which include multiple dimensions of service information.

[0052] In this embodiment, the server receives a service configuration request sent by the client. This service configuration request includes service parameters, which comprise multiple dimensions of service information.

[0053] It should be noted that during client initialization, the server needs to provide users with rich scenario configuration information based on the current network environment, geographical location, and other dimensions of the client.

[0054] The business information includes, but is not limited to, the client's current network environment and the client's current geographical location.

[0055] It should be noted that in practical applications, each dimension of business information can be selected individually, multiple times, or without limitation.

[0056] For easier understanding, please refer to Figure 2This is a schematic diagram illustrating the configuration of the server operation backend for multiple dimensions of business information provided in this application embodiment.

[0057] exist Figure 2 In the diagram, each dimension of business information is an independent option. The diagram lists the dimension business information (hereinafter referred to as dimension) from A to E. Individual dimension business information can be selected individually, for example... Figure 2 In the dimension F section, select only the single value "F1" from the options. Multiple dimensions can also be selected, for example... Figure 2 Dimensions A through D can be selected with multiple values ​​according to business needs. Furthermore, a single dimension can also be selected as unlimited, as shown in dimension E in the figure. Here, unlimited means that all values ​​can be matched, and its dimension value is fixed as "all".

[0058] It should be noted that the business configuration request sent by the client includes not only multiple dimensions of business information, such as... Figure 2 The data includes dimensional business information A through dimensional business information E. It also includes the dimension values ​​for each dimension. For example, "F1" in "Dimension F" and "C1, C2, C4" in "Dimension C". This allows the server to match each dimension's business information with the configuration library.

[0059] Step S102: Match each dimension of the business information with the configuration library to obtain a set of configuration item values ​​corresponding to each dimension of the business information; the configuration library includes multiple configuration item values.

[0060] After receiving the service configuration request sent by the client in step S101, the system further matches each dimension of the service information with the configuration library to obtain a set of configuration item values ​​corresponding to each dimension of the service information; the configuration library includes multiple configuration item values.

[0061] In one possible implementation, the configuration library is generated as follows: historical business parameters are obtained, which include multiple historical dimension business information; configuration item values ​​are configured for each historical dimension business information; a cache key for each historical dimension business information is generated using a preset recursive algorithm; and the configuration library is generated based on the cache key for each historical dimension business information and the configuration item values ​​for each historical dimension business information.

[0062] Specifically, in this embodiment of the application, historical business parameters are obtained, which include multiple historical dimension business information. The server configures the configuration item value corresponding to each historical dimension business information in the multiple historical dimension business information, and then uses a preset recursive algorithm to generate a cache KEY for each historical dimension business information.

[0063] The following is an example of the code for the pre-defined recursive algorithm:

[0064]

[0065]

[0066]

[0067] The `serverCacheKeyDemo` method is used to simulate the definition of values ​​for each dimension. Furthermore, since multiple configuration items exist within a single configuration item, they need to be split. During splitting, the `assembleConfigArray2SelectableList` method is used to iterate through the variables of each dimension, ensuring that the cache key generates an independent cache key for each value across all dimensions.

[0068] Finally, the cache key for each historical dimension of business information is bound to the configuration item value corresponding to each historical dimension of business information, thereby generating a configuration library.

[0069] It should be noted that by binding the cache key of each historical dimension business information with the configuration item value corresponding to each historical dimension business information, a key-value pair ("KEY" = "VALUE") is formed, which facilitates the matching of subsequent dimension business information.

[0070] To facilitate understanding, the following will use a specific scenario example to explain in detail how to generate a configuration library.

[0071] Step 1: Obtain historical business parameters, which include business information from multiple historical dimensions.

[0072] Step 2: Configure the configuration item values ​​for each historical dimension of business information in multiple historical dimension business information.

[0073] Step 3: Use a pre-defined recursive algorithm to generate a cache key for each historical dimension of business information.

[0074] It should be noted that the default recursive algorithm consumes negligible amounts of CPU resources on the server.

[0075] In this step, please refer to Figure 3 This is an example diagram illustrating the generation of a cache key provided in an embodiment of this application. Figure 3In the table, the dimension value of historical dimension business information A is "a1", the dimension values ​​of historical dimension business information B are "b1, b32", the dimension value of historical dimension business information C is "a1l", the dimension values ​​of historical dimension business information D are "d6, d7, d9", and the dimension values ​​of historical dimension business information E are "e3, e8". Using a preset recursive algorithm, the cache key for each historical dimension business information is obtained, such as... Figure 3 The symbols “a1_b1_all_d6_e3”, “a1_b1_all_d6_e8”, “a1_b1_all_d7_e3”, “a1_b1_all_d7_e8”, “a1_b1_all_d9_e3”, “a1_b1_all_d9_e8”, “a1_b32_all_d6_e3”, “a1_b32_all_d6_e8”, “a1_b32_all_d7_e3”, “a1_b32_all_d7_e8”, “a1_b32_all_d9_e3”, and “a1_b32_all_d6_e8” are included to facilitate matching with subsequent dimensional business information.

[0076] Step 4: Bind the cache key for each historical dimension of business information to the configuration item value corresponding to each historical dimension of business information, and store it in a Map.<String,ConfigDataModel> Within the structure. This facilitates matching with subsequent dimensional business information.

[0077] In one possible implementation, each dimension of business information includes the dimension value corresponding to each dimension of business information;

[0078] The step of matching each dimension of the business information with the configuration library to obtain the set of configuration item values ​​corresponding to each dimension of the business information includes: generating a target cache key corresponding to each dimension of the business information based on the dimension value corresponding to each dimension using a preset recursive algorithm; and matching the target cache key with the cache key in the preset configuration library to obtain the set of configuration item values ​​corresponding to each dimension of the business information.

[0079] Specifically, each dimension of business information includes the dimension value corresponding to each dimension of business information. Based on the dimension value corresponding to each dimension, a preset recursive algorithm is used to generate the target cache key corresponding to each dimension of business information.

[0080] Please see Figure 4 This is an example diagram illustrating a target cache key provided in an embodiment of this application.

[0081] exist Figure 4In this context, assuming that the dimension value of business information A is "a1", the dimension value of business information B is "b3", the dimension value of business information C is "c2", the dimension value of business information A is "a1l", and the dimension value of business information E is "e4", then the preset recursive algorithm generates 16 possible target cache keys for each dimension of business information, namely "a1_all_all_all_all", "a1_all_all_all_e4", "a1_all_c2_all_all", "a1_all_c2_all_e4", "a1_b3_all_all_a1", "a1_b3_all_all_a1", "a1_b3_all_all_a1", "a1_b3_all_all_a1", "a1_b3_all_b3 ... ll", "a1_b3_all_all_e4", "a1_b3_c2_all_all", "a1_b3_c2_all_e4", "all_all_all_all_all", "all_all_c2_all_all", "all_all_ all_all_e4", "all_all_c2_all_all", "all_b3_all_all_all", "all_b3_all_all_e4", "all_b3_c2_all_all", "all_b3_c2_all_e4".

[0082] It should be noted that the example code for the pre-defined recursive algorithm is shown below:

[0083]

[0084]

[0085]

[0086] Furthermore, the target cache key corresponding to each dimension of business information is matched with the cache key in the preset configuration library to obtain the set of configuration item values ​​corresponding to each dimension of business information.

[0087] In practical applications, the Map.containsKey method can be used to obtain a collection of successfully matched configuration item values.

[0088] In one possible implementation, after generating the configuration library, the process also includes periodically updating the cache key for each historical dimension of business information and the configuration item value corresponding to each historical dimension of business information.

[0089] It is understandable that after generating the configuration library, the cache key for each historical dimension of business information and the configuration item value corresponding to each historical dimension of business information are updated periodically to ensure the success rate of matching using the target cache key.

[0090] Step S103: Based on preset business rules, filter the set of configuration item values ​​to obtain the target configuration item value corresponding to each dimension of business information.

[0091] In this embodiment of the application, after obtaining the set of configuration item values ​​corresponding to each dimension of business information through step S102, the set of configuration item values ​​is filtered based on preset business rules to obtain the target configuration item values ​​corresponding to each dimension of business information. The preset business rules are used to filter out the target configuration item values ​​corresponding to each dimension of business information from the set of configuration item values.

[0092] In one possible implementation, the step of filtering the set of configuration item values ​​corresponding to each dimension of business information based on preset business rules to obtain the target configuration item value corresponding to each dimension of business information includes: traversing the set of configuration item values ​​corresponding to each dimension of business information; and determining the target configuration item value corresponding to each dimension of business information based on the modification time of the configuration item in the set of configuration item values ​​corresponding to each dimension of business information.

[0093] Specifically, in order to determine the target configuration item value corresponding to each dimension of business information, the set of configuration item values ​​corresponding to each dimension of business information is traversed; and based on the modification time of the configuration item in the set of configuration item values ​​corresponding to each dimension of business information, the target configuration item value corresponding to each dimension of business information is determined, which facilitates subsequent business configuration for each dimension of business information.

[0094] In one possible implementation, determining the target configuration item value corresponding to each dimension of business information based on the modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information includes: determining the target configuration item value corresponding to each dimension of business information based on the latest modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information.

[0095] Specifically, determining the target configuration item value corresponding to each dimension of business information based on the modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information includes: determining the target configuration item value corresponding to each dimension of business information based on the latest modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information.

[0096] It should be noted that the preset business rules can be set according to the actual situation. This application embodiment only uses the latest modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information as an example, and this application does not limit it.

[0097] Understandably, by pre-setting business rules, the latest modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information is selected from the configuration item value set. The configuration item value with the latest modification time is used as the target configuration item value, which facilitates subsequent business configuration. It can be reused in various business configuration scenarios and simplifies the complexity of configuring multiple dimensions of business information.

[0098] Step S104: Send the target configuration item value corresponding to each dimension of business information to the client, so that the client can configure the business according to the target configuration item value corresponding to each dimension of business information.

[0099] Specifically, after obtaining the target configuration item value corresponding to each dimension of business information through step S103, the server sends the target configuration item value corresponding to each dimension of business information to the client, so that the client can perform business configuration according to the target configuration item value corresponding to each dimension of business information.

[0100] As can be seen from the above technical solution, the server first receives a service configuration request sent by the client. This request includes service parameters, which in turn include multiple dimensions of service information. Next, each dimension of the service information is matched against a configuration library to obtain a set of configuration item values ​​corresponding to each dimension. The configuration library includes multiple configuration item values. Then, based on preset business rules, the set of configuration item values ​​is filtered to obtain the target configuration item value corresponding to each dimension. Finally, the server sends the target configuration item value corresponding to each dimension to the client, enabling the client to perform service configuration based on the target configuration item value. In this way, by involving multiple dimensions of service information in the matching of configuration item values ​​and filtering the target configuration item value corresponding to each dimension according to business rules, service configuration efficiency is improved, and the complexity of configuring multiple dimensions of service information is simplified.

[0101] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0102] The above describes some specific implementations of a service configuration method provided in this application. Based on this, this application also provides a corresponding apparatus. The apparatus provided in this application will be described below from the perspective of functional modularity.

[0103] See Figure 5 The diagram shows a service configuration device, which may include a receiving module 100, a matching module 200, a filtering module 300, and a sending module 400.

[0104] The receiving module 100 is used to receive a service configuration request sent by the client. The service configuration request includes service parameters, and the service parameters include multiple dimensions of service information.

[0105] The matching module 200 is used to match each dimension of the business information in the multiple dimensions with the configuration library to obtain a set of configuration item values ​​corresponding to each dimension of the business information; the configuration library includes multiple configuration item values.

[0106] The filtering module 300 filters the set of configuration item values ​​based on preset business rules to obtain the target configuration item value corresponding to each dimension of business information;

[0107] The sending module 400 is used to send the target configuration item value corresponding to each dimension of business information to the client, so that the client can perform business configuration according to the target configuration item value corresponding to each dimension of business information.

[0108] Optionally, the filtering module includes a traversal submodule and a determination submodule;

[0109] The traversal submodule is used to traverse the set of configuration item values ​​corresponding to each dimension of business information;

[0110] The determining submodule is used to determine the target configuration item value corresponding to each dimension of business information based on the modification time of the configuration item in the configuration item value set corresponding to each dimension of business information.

[0111] The determining submodule is specifically used to determine the target configuration item value corresponding to each dimension of business information based on the latest modification time of the configuration item value in the configuration item value set corresponding to each dimension of business information.

[0112] As can be seen from the above technical solution, the server first receives a service configuration request sent by the client. This request includes service parameters, which in turn include multiple dimensions of service information. Next, each dimension of the service information is matched against a configuration library to obtain a set of configuration item values ​​corresponding to each dimension. The configuration library includes multiple configuration item values. Then, based on preset business rules, the set of configuration item values ​​is filtered to obtain the target configuration item value corresponding to each dimension. Finally, the server sends the target configuration item value corresponding to each dimension to the client, enabling the client to perform service configuration based on the target configuration item value. In this way, by involving multiple dimensions of service information in the matching of configuration item values ​​and filtering the target configuration item value corresponding to each dimension according to business rules, service configuration efficiency is improved, and the complexity of configuring multiple dimensions of service information is simplified.

[0113] This application also provides a storage medium storing a program that, when executed by a processor, implements a service configuration method as described in the above embodiments.

[0114] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0115] Those skilled in the art will understand that the flowchart shown is merely an example in which the embodiments of this application can be implemented, and the scope of application of the embodiments of this application is not limited by any aspect of the flowchart.

[0116] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatuses, and devices can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0117] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0118] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A service configuration method, characterized by, The method comprises: receiving a service configuration request sent by a client, the service configuration request comprising service parameters, the service parameters comprising a plurality of dimension service information; matching each dimension service information in the plurality of dimension service information with a configuration library to obtain a configuration item value set corresponding to the each dimension service information; the configuration library comprising a plurality of configuration item values; based on a preset service rule, filtering the configuration item value set to obtain a target configuration item value corresponding to the each dimension service information; sending the target configuration item value corresponding to the each dimension service information to the client, so that the client performs service configuration according to the target configuration item value corresponding to the each dimension service information; wherein the configuration library is generated by the following way: obtaining historical service parameters, the historical service parameters comprising a plurality of historical dimension service information; configuring a configuration item value corresponding to each historical dimension service information in the plurality of historical dimension service information; generating a cache KEY of each historical dimension service information by using a preset recursive algorithm; generating a configuration library according to the cache KEY of each historical dimension service information and the configuration item value corresponding to each historical dimension service information.

2. The method of claim 1, wherein, The each dimension service information comprises a dimension value corresponding to each dimension service information; The matching each dimension service information in the plurality of dimension service information with a configuration library to obtain a configuration item value set corresponding to the each dimension service information comprises: generating a target cache KEY corresponding to the each dimension service information by using a preset recursive algorithm based on the dimension value corresponding to the each dimension service information; matching the target cache KEY with a cache KEY in a preset configuration library to obtain the configuration item value set corresponding to the each dimension service information.

3. The method of claim 1, wherein, After the configuration library is generated, the method further comprises: periodically updating the cache KEY of each historical dimension service information and the configuration item value corresponding to each historical dimension service information.

4. The method of claim 1, wherein, The filtering the configuration item value set corresponding to the each dimension service information based on a preset service rule to obtain a target configuration item value corresponding to the each dimension service information comprises: traversing the configuration item value set corresponding to the each dimension service information; determining the target configuration item value corresponding to the each dimension service information according to a configuration item modification time in the configuration item value set corresponding to the each dimension service information.

5. The method of claim 4, wherein, The determining the target configuration item value corresponding to the each dimension service information according to a configuration item value modification time in the configuration item value set corresponding to the each dimension service information comprises: determining the target configuration item value corresponding to the each dimension service information according to a latest configuration item value modification time in the configuration item value set corresponding to the each dimension service information.

6. A service configuration apparatus characterized by comprising: The apparatus comprises: a receiving module configured to receive a service configuration request sent by a client, the service configuration request comprising service parameters, the service parameters comprising a plurality of dimension service information; The matching module is configured to match each of the plurality of dimensional service information with a configuration library to obtain a configuration item value set corresponding to each of the plurality of dimensional service information; the configuration library includes a plurality of configuration item values; wherein the configuration library is generated by: obtaining historical service parameters, the historical service parameters including a plurality of historical dimensional service information; configuring configuration item values corresponding to each of the plurality of historical dimensional service information; generating a cache KEY of each of the historical dimensional service information by using a preset recursive algorithm; and generating the configuration library according to the cache KEY of each of the historical dimensional service information and the configuration item values corresponding to each of the historical dimensional service information; The screening module is configured to screen the configuration item value set based on a preset service rule to obtain target configuration item values corresponding to each of the dimensional service information; The sending module is configured to send the target configuration item values corresponding to each of the dimensional service information to the client to enable the client to perform service configuration according to the target configuration item values corresponding to each of the dimensional service information.

7. The apparatus of claim 6, wherein, The screening module includes a traversal submodule and a determination submodule. The traversal submodule is configured to traverse the configuration item value set corresponding to each of the dimensional service information. The determination submodule is configured to determine the target configuration item values corresponding to each of the dimensional service information according to configuration item modification times in the configuration item value set corresponding to each of the dimensional service information.

8. The apparatus of claim 7, wherein, The determination submodule is specifically configured to determine the target configuration item values corresponding to each of the dimensional service information according to latest modification times of configuration item values in the configuration item value set corresponding to each of the dimensional service information.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Live broadcast service processing method and device, electronic equipment and storage medium

    CN113238756A