Ranking list generation method and device, electronic equipment and storage medium
By splitting the business layer and the storage layer and adopting the version number management mechanism, the problem of deep coupling between business and storage code in the existing technology is solved, the versatility and scalability of the list is achieved, and the stability of the system and data accuracy are improved.
Patent Information
- Application Number
- CN202411845221.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, the deep coupling of services and storage code leads to an increase in iteration costs, lack of atomicity and recovery means, and affects the accuracy and stability of services.
By splitting the business layer and the storage layer, the business layer is responsible for data cleaning and conversion into a general data storage structure, and the storage layer is only responsible for storage, sorting and querying of the list format, and adopts a version number management mechanism to ensure the atomicity and recovery capabilities of the data.
It realizes the versatility and scalability of the list, reduces development costs, improves the stability and security of the system, and ensures the accuracy and reliability of the data.
Smart Images

Figure CN119719192A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a ranking list generation method, device, electronic device and storage medium. Background Art
[0002] The business scenarios of the list are numerous and complex. The rules and statistical data for each list may be slightly different. Simply use if / else to filter the data. Different list types add different data structures and data indexes for business development. Real-time lists are usually sorted using the zset jump table structure of Redis. This method is simple and efficient and is a very popular implementation method.
[0003] This popular implementation has the following disadvantages:
[0004] 1. Business and storage codes are deeply coupled, and the storage structure is complex and numerous. New requirements need to be redeveloped from logic, storage to query, which increases the cost of later iterations. New and old logics affect each other, and iterations cannot be completed quickly. Function expansion is also more difficult. Code is too redundant; business attribute logic such as list types and conditions excessively interferes with storage structure design. Scenarios where storage layer code is frequently developed also have certain risks under multi-person collaboration;
[0005] 2. Updates need to be calculated in memory and then written to the Redis database, which lacks atomicity. This leads to the loss of user data during concurrent updates during peak traffic periods, and inaccurate list data, which in turn affects the accuracy of the business.
[0006] 3. System anomalies lead to inconsistencies between MySQL and Redis, and there is a lack of effective and safe means to recover data. As a result, errors in cached data cannot be quickly and accurately resolved, which in turn affects the normal operation of the business. Summary of the invention
[0007] The present invention provides a ranking list generation method, device, electronic device and storage medium, which are used to solve the defects in the prior art that the deep coupling between business and storage code leads to increased subsequent iteration costs, lack of atomicity and lack of recovery means.
[0008] The present invention provides a method for generating a ranking list, comprising:
[0009] The business layer cleans the target activity data according to the list configuration of the target activity and converts it into the first list data of the general data storage structure of the storage layer;
[0010] The business layer sends the first list data and the list configuration to the storage layer;
[0011] The storage layer stores the first list data in Redis;
[0012] The storage layer generates a ranking list of the target activity according to the ranking list configuration and the first ranking list data.
[0013] According to a ranking list generation method provided by the present invention, the storage layer stores the first ranking list data in Redis, including:
[0014] Enter the storage layer and obtain the first write version number of the leaderboard of the target activity that has not been written yet from the Redis;
[0015] Adding the first write version number to the first list data;
[0016] The updated first list data is written into the Redis.
[0017] A ranking list generation method provided by the present invention further includes:
[0018] Generate a corresponding first read version number according to the first write version number, and store the first read version number in the Redis.
[0019] A ranking list generation method provided by the present invention further includes:
[0020] Entering the storage layer in response to a query request, wherein the query request carries a read version number corresponding to the list data requested to be read;
[0021] Read the list data corresponding to the read version number from the Redis.
[0022] According to a ranking list generation method provided by the present invention, after adding the first write version number to the first ranking list data, the method further includes:
[0023] Write the updated first list data into MySQL.
[0024] A ranking list generation method provided by the present invention further includes:
[0025] The business layer cleans the newly added activity data of the target activity and converts the data into second list data of the general data storage structure of the storage layer;
[0026] The business layer sends the second list data and the list configuration of the target activity to the storage layer;
[0027] Enter the storage layer and obtain the second write version number of the leaderboard of the target activity that is not currently written from the Redis;
[0028] Adding the second write version number to the second list data;
[0029] Writing the updated second list data into the MySQL and the Redis;
[0030] Read the list data with a write version number smaller than the second write version number from the MySQL and write them cumulatively into the Redis Value corresponding to the second write version number;
[0031] The storage layer updates and generates a ranking list of the target activity according to the list configuration and the list data corresponding to the second version number in the Redis.
[0032] A ranking list generation method provided by the present invention further includes:
[0033] Generate a corresponding second read version number according to the second write version number, and store the second read version number in the Redis.
[0034] The present invention also provides a ranking list generating device, comprising:
[0035] A conversion module, used for the business layer to perform data cleansing on the target activity data and convert it into first list data of the general data storage structure of the storage layer according to the list configuration of the target activity;
[0036] A sending module, used for the business layer to send the first list data and the list configuration to the storage layer;
[0037] A storage module, used for the storage layer to store the first list data in Redis;
[0038] A generation module is used for the storage layer to generate a ranking list of the target activity according to the list configuration and the first list data.
[0039] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for generating a ranking list as described above is implemented.
[0040] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for generating a ranking list as described in any one of the above is implemented.
[0041] The present invention provides a ranking list generation method, device, electronic device and storage medium. By optimizing the business architecture, the business layer and the storage layer are split. The business layer cleans and defines the data entering and exiting the list, converts it into a general data storage structure and hands it over to the storage layer for storage. The storage layer does not need to care about the meaning of the data at all, and is only responsible for storing the data in the list format, sorting and statistics. In fact, the storage layer is a list in the true sense, which only provides data storage, sorting and query capabilities, and specifies the data format. No matter what data type the upstream business is, it ultimately needs to be converted into the data format specified by the list for input and output; ordinary list requirements such as adding types or adding rule conditions do not require operating the storage layer, and only need to add corresponding functions in the business layer and add them to the logical chain. Therefore, the present invention isolates the high-frequency update logic and the general logic by reorganizing and splitting the structure, protecting the storage layer structure and operation of the list, providing efficient development while providing data security and stability; the universality of the list is achieved, and a set of sorting and statistical storage codes can be applied to any business scenario, and there will no longer be disordered data definitions and cumbersome storage logic. The scalability is also supported by the universal nature of the new list. In the future, when the business volume expands, the list can be directly deployed to an independent service to provide list capabilities for the business of the entire platform. In addition, it can greatly reduce development costs and make the system more stable and secure. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is a flowchart of the method for generating a ranking list provided by the present invention;
[0044] Figure 2 It is a schematic diagram of a list writing process of a storage layer according to an exemplary embodiment of the present invention;
[0045] Figure 3 is a schematic diagram of a list reading process of a storage layer according to an exemplary embodiment of the present invention;
[0046] Figure 4 is a schematic diagram of a data synchronization process of a storage layer according to an exemplary embodiment of the present invention;
[0047] Figure 5 It is a structural schematic diagram of a ranking list generating device provided by the present invention;
[0048] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] It should be noted that, in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0051] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0052] Combine the following Figure 1-Figure 6 A ranking list generation method, device, electronic device and storage medium of the present invention are described.
[0053] like Figure 1 As shown, the present invention provides a method for generating a ranking list, which specifically includes the following steps:
[0054] Step 110 , the business layer cleans the target activity data according to the list configuration of the target activity and converts the data into first list data of the general data storage structure of the storage layer.
[0055] Step 120: The business layer sends the first list data and the list configuration to the storage layer.
[0056] Specifically, the business architecture is divided into the business layer and the storage layer. The business layer is responsible for cleaning the activity data that needs to generate the ranking list, with the purpose of deleting duplicate and useless data or information, correcting existing errors, and providing data consistency. The activity data is then converted into a common data storage structure specified by the storage layer and sent to the storage layer for storage. At the same time, the business layer also needs to hand over the ranking configuration of the target activity to the storage layer so that the storage layer can generate the ranking list of the target activity based on the ranking configuration.
[0057] To meet the needs of the ranking list (for example, adding types, adding rule conditions, adding information, etc.), you only need to add the corresponding functions in the business layer and add them to the logic chain.
[0058] Step 130: The storage layer stores the first list data in Redis.
[0059] Step 140: The storage layer generates a ranking list of the target activity according to the list configuration and the first list data.
[0060] Specifically, the storage layer is responsible for storing the list data in the list format, and for counting and sorting the list data according to the list configuration to generate the list of the target activity.
[0061] The ranking list generated by the storage layer is a real ranking list, which does not need to be integrated into the logical rules of the business. The split storage layer can be regarded as a new ranking structure, and the business layer is split into data upstream. The meaning of the data is controlled by the business layer itself. The ranking list only performs data operations, storage sorting and query. In this way, there is no need for deep coupling between the business and storage codes, thus realizing the universality of the ranking list. A set of sorting and statistical storage codes can be applied to any business scenario, and there is no longer any disordered data definition and cumbersome storage logic.
[0062] In some embodiments, step 130 may specifically include the following steps:
[0063] Enter the storage layer and obtain the first write version number of the leaderboard of the target activity that has not been written yet from the Redis;
[0064] Adding the first write version number to the first list data;
[0065] The updated first list data is written into the Redis.
[0066] Specifically, the first list data enters the storage layer, and the first write version number of the target activity list that has not been written yet is obtained from Redis. The first write version number will be carried in the subsequent storage structure of the first list data. The first list data carrying the first write version number is written to Redis.
[0067] Redis data is stored in the form of key-value pairs. The first list data is written to Redis, and its corresponding Redis Key is concatenated with the write version number as a suffix. In other words, different version numbers correspond to different Redis Keys.
[0068] In some embodiments, after step 140, the method further includes: generating a corresponding first read version number according to the first write version number, and storing the first read version number in the Redis.
[0069] In this embodiment, the version number is divided into a write version number and a read version number. After the ranking list of the target activity is generated according to the first ranking data, the read version number of the ranking list is also updated to the read version number corresponding to the write version number and written into Redis.
[0070] In some embodiments, after adding the first write version number to the first list data, the method further includes: writing the updated first list data into MySQL.
[0071] In this embodiment, the list data is also written to MySQL for persistent storage, and writing to MySQL is prioritized, and then written to Redis to ensure data reliability, which is conducive to later data recovery, thereby achieving the recoverability of the list. It can be understood that the list data written to MySQL also carries a write version number.
[0072] Figure 2 FIG. 1 is a schematic diagram of a storage layer write list process according to an exemplary embodiment of the present invention. Figure 2 As shown, data parsing accesses the storage layer, first obtains the write version number of the target activity's ranking list that has not yet been written as the write version number of the ranking data to be written this time, and writes the ranking data carrying the write version number to MySQL and Redis. Thus, the storage layer completes a ranking write.
[0073] When it is necessary to query the data of a ranking list of a certain version number, in some embodiments, the method further includes:
[0074] Entering the storage layer in response to a query request, wherein the query request carries a read version number corresponding to the list data requested to be read;
[0075] Read the list data corresponding to the read version number from the Redis.
[0076] Figure 3 FIG. 1 is a schematic diagram of a list reading process of a storage layer according to an exemplary embodiment of the present invention. Figure 3 As shown, specifically, in response to a query request entering the storage layer, according to the read version number of the list data required by the request, the Redis Key corresponding to the read version number is found from Redis, the list data corresponding to the read version number is read out, and returned to the requester. Thus, the storage layer completes a list read.
[0077] It is understandable that the business layer will continuously obtain new activity data of the target activity, the ranking list needs to be updated, and the data needs to be synchronized to the storage layer.
[0078] In some embodiments, the method further comprises:
[0079] The business layer cleans the newly added activity data of the target activity and converts the data into second list data of the general data storage structure of the storage layer;
[0080] The business layer sends the second list data and the list configuration of the target activity to the storage layer;
[0081] Enter the storage layer and obtain the second write version number of the leaderboard of the target activity that is not currently written from the Redis;
[0082] Adding the second write version number to the second list data;
[0083] Writing the updated second list data into the MySQL and the Redis;
[0084] Read the list data with a write version number smaller than the second write version number from the MySQL and write them cumulatively into the Redis Value corresponding to the second write version number;
[0085] The storage layer updates and generates a ranking list of the target activity according to the list configuration and the list data corresponding to the second version number in the Redis.
[0086] Specifically, when the background manually initiates data synchronization or the system automatically triggers the recovery mechanism, the business layer cleans the newly added activity data and converts it into the second list data of the general data storage structure, and then outputs it to the storage layer. Figure 4 FIG. 1 is a schematic diagram of a data synchronization process of a storage layer according to an exemplary embodiment of the present invention. Figure 4As shown, the storage layer obtains the second write version number (for example, v3) of the target activity's ranking list that has not been written yet from Redis, adds the second write version number to the second list data (the second list data written thereafter will carry the second write version number), writes the second list data to MySQL and Redis, and then reads all list data with a write version number less than the second write version number (less than v3 in the figure) from the MySQL list sorting table, and then accumulates and writes them into the v3 version of the Redis Value. This step is data synchronization, which uses version numbers to distinguish between new and old data to avoid concurrency issues during write-time synchronization.
[0087] In some embodiments, the method further comprises:
[0088] Generate a corresponding second read version number according to the second write version number, and store the second read version number in the Redis.
[0089] Specifically, after data synchronization is completed, the read version number is updated to the second read version number (such as Figure 4 In this example, the read version number is updated to v3) to expose the synchronized data to the outside. The setting of the read version number can effectively weaken or even eliminate the external perception of internal data synchronization, effectively ensuring that the business will not be perceived during the data synchronization process. There will only be a short data delay, and no suspected data gaps or loss will occur.
[0090] The present invention introduces version numbers to manage list data, and uses version numbers to implement data recovery methods for cache when writing, so as to achieve safe and efficient recovery of business anomalies.
[0091] The present invention transforms the business from traditional if / else to function-oriented, greatly improving the efficiency of iterative development, realizing data synchronization on the storage layer, and solving the performance problems and data consistency of the list.
[0092] The storage layer of the present invention uses Redis to store the list data, providing fast read and write access speed, so that the storage layer can quickly count and sort the list data. The business structure split by the business layer and the storage layer also enables the list to be updated in real time. Specifically, Lua scripts are used to calculate and update the memory calculations in Redis, and the atomic operations of Redis are used to ensure the accuracy of data updates. The real-time list efficient mechanism of the present invention can support business expansion more safely and efficiently, such as updating the black and white lists of members of the real-time list when writing, and triggering automatic recovery by the list anomaly detection mechanism.
[0093] The present invention is based on the prior art and is encapsulated to improve data security in a scenario where the calling end does not change.
[0094] The method for generating the ranking list provided by the present invention optimizes the business architecture and splits the business layer and the storage layer. The business layer cleans and defines the data entering and exiting the list, converts it into a general data storage structure and hands it over to the storage layer for storage. The storage layer does not need to care about the meaning of the data at all, and is only responsible for storing the data in the list format, sorting and statistics, etc. In fact, the storage layer is a list in the true sense, which only provides data storage, sorting and query capabilities, and specifies the data format. No matter what data type the upstream business is, it ultimately needs to be converted into the data format specified by the list for input and output; ordinary list requirements such as adding types or adding rule conditions do not require operating the storage layer, and only need to add corresponding functions in the business layer and add them to the logical chain. Therefore, the present invention isolates the high-frequency update logic and the general logic by reorganizing and splitting the structure, protecting the storage layer structure and operation of the list, providing efficient development while providing data security and stability; the universality of the list is achieved, and a set of sorting and statistical storage codes can be applied to any business scenario, and there will no longer be disordered data definitions and cumbersome storage logic. The scalability is also supported by the universal nature of the new list. In the future, when the business volume expands, the list can be directly deployed to an independent service to provide list capabilities for the business of the entire platform. In addition, it can greatly reduce development costs and make the system more stable and secure.
[0095] The following is a description of a ranking list generation device provided by the present invention. The ranking list generation device described below and the ranking list generation method described above can be referred to in correspondence with each other.
[0096] like Figure 5 As shown, the present invention also provides a ranking list generating device, comprising:
[0097] The conversion module 510 is used for the business layer to perform data cleansing on the target activity data and convert the data into first list data of the general data storage structure of the storage layer according to the list configuration of the target activity;
[0098] A sending module 520, configured for the business layer to send the first list data and the list configuration to the storage layer;
[0099] Storage module 530, used for the storage layer to store the first list data in Redis;
[0100] The generating module 540 is configured to generate a ranking list of the target activity according to the ranking list configuration and the first ranking list data at the storage layer.
[0101] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute a ranking list generation method, the method comprising: the business layer performs data cleaning on the target activity data according to the ranking configuration of the target activity and converts the data into the first ranking data of the general data storage structure of the storage layer; the business layer sends the first ranking data and the ranking configuration to the storage layer; the storage layer stores the first ranking data in Redis; the storage layer generates the ranking list of the target activity according to the ranking configuration and the first ranking data.
[0102] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0103] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the ranking list generation method provided by the above-mentioned methods, the method including: the business layer cleans the target activity data according to the list configuration of the target activity and converts it into the first list data of the general data storage structure of the storage layer; the business layer sends the first list data and the list configuration to the storage layer; the storage layer stores the first list data in Redis; the storage layer generates the ranking list of the target activity according to the list configuration and the first list data.
[0104] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the ranking list generation method provided by the above-mentioned methods, the method comprising: the business layer cleans the target activity data according to the ranking configuration of the target activity and converts it into first ranking data of a general data storage structure of the storage layer; the business layer sends the first ranking data and the ranking configuration to the storage layer; the storage layer stores the first ranking data in Redis; the storage layer generates a ranking list of the target activity according to the ranking configuration and the first ranking data.
[0105] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a ranking list, characterized in that: include: The business layer cleans the target activity data according to the list configuration of the target activity and converts it into the first list data of the general data storage structure of the storage layer; The business layer sends the first list data and the list configuration to the storage layer; The storage layer stores the first list data in Redis; The storage layer generates a ranking list of the target activity according to the ranking list configuration and the first ranking list data.
2. The method for generating a ranking list according to claim 1, characterized in that: The storage layer stores the first list data in Redis, including: Enter the storage layer and obtain the first write version number of the leaderboard of the target activity that has not been written yet from the Redis; Adding the first write version number to the first list data; The updated first list data is written into the Redis.
3. The method for generating a ranking list according to claim 2, characterized in that: Also includes: Generate a corresponding first read version number according to the first write version number, and store the first read version number in the Redis.
4. The method for generating a ranking list according to claim 3, characterized in that: Also includes: Entering the storage layer in response to a query request, wherein the query request carries a read version number corresponding to the list data requested to be read; Read the list data corresponding to the read version number from the Redis.
5. The method for generating a ranking list according to claim 2, characterized in that: After adding the first write version number to the first list data, the method further includes: Write the updated first list data into MySQL.
6. The method for generating a ranking list according to claim 5, characterized in that: Also includes: The business layer cleans the newly added activity data of the target activity and converts the data into second list data of the general data storage structure of the storage layer; The business layer sends the second list data and the list configuration of the target activity to the storage layer; Enter the storage layer and obtain the second write version number of the leaderboard of the target activity that is not currently written from the Redis; Adding the second write version number to the second list data; Writing the updated second list data into the MySQL and the Redis; Read the list data with a write version number smaller than the second write version number from the MySQL and write them cumulatively into the Redis Value corresponding to the second write version number; The storage layer updates and generates a ranking list of the target activity according to the list configuration and the list data corresponding to the second version number in the Redis.
7. The method for generating a ranking list according to claim 6, characterized in that: Also includes: Generate a corresponding second read version number according to the second write version number, and store the second read version number in the Redis.
8. A ranking list generating device, characterized in that: include: A conversion module, used for the business layer to perform data cleansing on the target activity data and convert it into first list data of the general data storage structure of the storage layer according to the list configuration of the target activity; A sending module, used for the business layer to send the first list data and the list configuration to the storage layer; A storage module, used for the storage layer to store the first list data in Redis; A generation module is used for the storage layer to generate a ranking list of the target activity according to the list configuration and the first list data.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the ranking list generation method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a ranking list as claimed in any one of claims 1 to 7 is implemented.