WO2022033291A1 - Ranking list service system, ranking list generation method, server, and storage medium - Google Patents

Ranking list service system, ranking list generation method, server, and storage medium Download PDF

Info

Publication number
WO2022033291A1
WO2022033291A1 PCT/CN2021/108218 CN2021108218W WO2022033291A1 WO 2022033291 A1 WO2022033291 A1 WO 2022033291A1 CN 2021108218 W CN2021108218 W CN 2021108218W WO 2022033291 A1 WO2022033291 A1 WO 2022033291A1
Authority
WO
WIPO (PCT)
Prior art keywords
list
ranking
word frequency
storage service
search
Prior art date
Application number
PCT/CN2021/108218
Other languages
French (fr)
Chinese (zh)
Inventor
李欣鑫
Original Assignee
百果园技术(新加坡)有限公司
李欣鑫
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 百果园技术(新加坡)有限公司, 李欣鑫 filed Critical 百果园技术(新加坡)有限公司
Publication of WO2022033291A1 publication Critical patent/WO2022033291A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/216Parsing using statistical methods

Definitions

  • the present application relates to the technical field of data processing, such as a list service system, a list generation method, a server and a storage medium.
  • the hot search list is the key to reflect the change of content search popularity in the live broadcast platform. It mainly shows the search objects with high user search volume and high popularity and the corresponding hot search degree.
  • the ranking service system can increase the search term frequency corresponding to the search term through the user's search for the search term, so as to determine whether the search term can enter the ranking of the list according to the search term frequency.
  • the information in the list can be dynamically displayed to users, so as to attract other users to search for the hot search terms in the list, thereby increasing the exposure rate of the information associated with the hot search terms on the list.
  • operators can also achieve the effect of publicity and drainage of specified objects by artificially configuring the hot search list displayed in the product.
  • the traditional ranking service system is usually deployed with distributed multi-nodes.
  • a master node is usually selected, which is responsible for interpreting the user's search results, and then adds the word frequency increment to the locally stored hot search word frequency. , and synchronize the hot search list formed by calculation to all other slave nodes, so that the same hot search word will eventually have the same word frequency on all nodes.
  • this traditional ranking service system has a system architecture of single write and multiple reads, and the write traffic in the entire system is all concentrated to the master node, which is not suitable for system expansion.
  • the list data is inaccurate, and once the master node fails, it needs to rely on a complex set of operations to select and switch the master node to ensure the reliability of the system and the correctness of the data.
  • the entire implementation cost is relatively high. .
  • This application provides a ranking service system, a ranking generating method, a server and a storage medium, which effectively improve the data consistency, high availability and scalability of the ranking service system.
  • This application provides a ranking service system, including: at least one ranking service process and multiple storage service points, wherein there are communication connections between different storage service points, and each storage service point is connected to each storage service point. There is a communication connection between the associated ranking service processes;
  • Each storage service point is set to store a local word frequency data table and a local list of ranking lists related to the ranking service process associated with each storage service point; and store a ranking list related to each other storage service point;
  • Each ranking service process is set to generate a list based on the local word frequency data table, the local ranking list and the ranking list related to each other storage service point obtained from the storage service point corresponding to each ranking service process.
  • the current ranking list and sending the current ranking list to the storage service point corresponding to each ranking service process, so that the storage service point corresponding to each ranking service process adopts the current ranking list Replacing the original local ranking list, and storing the current ranking list as a new local ranking list.
  • This application provides a method for generating a list, which is executed by the above-mentioned list service system, including:
  • the ranking service process obtains the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the storage service point corresponding to the ranking service process;
  • the ranking service process generates a current ranking list according to the obtained local word frequency data table, the local ranking list and the ranking list related to each other storage service point, and sends the current ranking list to the ranking list
  • the storage service point corresponding to the service process so that the storage service point corresponding to the ranking service process uses the current ranking list to replace the original local ranking list on the storage service point corresponding to the ranking service process.
  • the present application provides a server, which is set as a storage service point in the above-mentioned ranking service system, and/or as an execution terminal of a ranking service process in the above-mentioned ranking service system, including:
  • processors one or more processors
  • storage means arranged to store one or more programs
  • the one or more programs are executed by the one or more processors, such that the one or more processors are arranged to perform the above-described list generation method.
  • the present application provides a computer-readable storage medium storing a computer program, wherein when the program is executed by a processor, the above-mentioned method for generating a list is implemented.
  • Fig. 1 is the architecture diagram of a ranking service system provided by Embodiment 1 of the present application;
  • FIG. 2 is a schematic flowchart of a method for generating a list according to Embodiment 2 of the present application;
  • FIG. 3 is an exemplary flowchart for realizing list generation based on a list service system according to Embodiment 2 of the present application;
  • FIG. 4 is a schematic diagram of a hardware structure of a server according to Embodiment 3 of the present application.
  • FIG. 1 is an architecture diagram of a ranking service system provided in Embodiment 1 of the present application.
  • the ranking service system includes: at least one ranking service process 11 and a plurality of storage service points 12, wherein, There is a communication connection between different storage service points 12, and there is a communication connection between the storage service point 12 and the associated list service process 11; the storage service point 12 stores local word frequency data related to the associated list service process 11 Table and local list list; also store list list related to each other storage service point 12; each list service process 11 is set to be based on the local word frequency data table obtained from the corresponding storage service point 12, The local ranking list and the ranking list related to each other storage service point, generate the current ranking list, and send it to the corresponding storage service point 12 to replace the original local ranking list, and store it as a new local ranking list .
  • the ranking service system can be understood as a ranking service support system deployed on the background server of the live broadcast application.
  • the ranking service system can be regarded as a distributed architecture system, and is deployed to ensure global service deployment.
  • the ranking service system can be implemented on background servers set up in different regions. Among them, a region actually corresponds to a server cluster called a computer room, and each server cluster contains a certain scale of background servers.
  • both the storage service point 12 and the ranking service process 11 can be regarded as the execution mechanism in the system to realize the generation of the ranking list.
  • the storage service point 12 can be undertaken by a server in the distributed architecture system, and the entire ranking
  • the number of storage service points 12 included in the single-service system may be the same as the number of computer rooms included in the distributed architecture system, that is, one storage service point 12 may exist in one computer room, and each storage service point 12 stores at least one storage service point 12 .
  • the ranking service process 11 can be regarded as a service process created on any background server in each computer room and set to generate ranking lists. At least one ranking service process 11 in the same computer room is associated with the storage service point 12 set in the computer room, and a communication connection is established.
  • the ranking service system provided in this embodiment is equivalent to a system capable of dynamically generating a ranking list through mutual communication between storage service points 12 and mutual communication between the ranking service process 11 and the associated storage service point 12 .
  • the storage service point 12 stores the local word frequency data table, the local ranking list list and other ranking lists related to the storage service point 12 that need to be dynamically updated.
  • the data information fed back by the ranking service process 11 associated with the point 12 (word frequency increment data or the latest list of ranking lists) is updated, and the ranking lists related to other storage service points 12 are actually equivalent to being stored on other storage service points 12.
  • the storage service point 12 may receive the local list of rankings fed back by other storage service points 12 and store it as a list of lists related to the other storage service points 12 .
  • the local word frequency data table and the local ranking list in each storage service point 12 may be initially empty by default.
  • the ranking service process 11 updates and generates the ranking list through the data information stored in the associated storage service point 12, and the ranking service process 11 can obtain the local word frequency data table and the local ranking list stored in the associated storage service point 12.
  • the list and other related ranking lists of the storage service point 12 are used to realize the generation of the latest current ranking list.
  • at least one ranking service process 11 associated with the same storage service point 12 shares the local word frequency data table, the local ranking list and the ranking lists related to other storage service points 12 stored on the storage service point 12, and is associated with the same storage service point 12.
  • the operation of at least one ranking service process 11 of the service point 12 is independent of each other, and does not affect the update and storage of the relevant data on the associated storage service point 12 .
  • the generation of the list in this system requires the mutual cooperation between the storage service point 12 and the associated list service process 11 and other storage service points 12.
  • the list service process 11 when the list service process 11 generates the list, It needs to be based on the local ranking list, local word frequency data table and other ranking lists related to the storage service point 12 that have been stored in the associated storage service point 12, and the storage service point 12 receives the associated list service process 11 Generated
  • the current ranking list is used to update the local ranking list, and the updated local ranking list is synchronously updated to other storage service points 12 to update the ranking lists on other storage service points 12 .
  • the local word frequency data table required by the ranking service process 11 for generating the ranking list is updated again depending on the incremental word frequency data provided by the ranking service process 11 .
  • a ranking service system provided by the first embodiment of the present application adopts a distributed system architecture without master nodes, so that each storage service point 12 and the ranking service process 11 can participate in the generation of the ranking list, ensuring that the ranking list is generated. It improves the writability and readability of all nodes under the distributed architecture, realizes the flexible deployment of the entire distributed architecture for list generation, and improves the high availability of the list service system; at the same time, it avoids the need for the system in abnormal situations The complex operation of doing a master node switch.
  • the list generation of the list service system provided by this implementation minimizes the impact of incorrect data in a single computer room on the overall situation, and better reflects the data consistency and correctness of the list service system.
  • the system may further include: a search service process 13, wherein the search service process 13 is configured to respond to the search request sent by the user terminal, and when it is determined that the search result of the search term associated with the search request is not empty, The search results are sent to any associated target list service process 11.
  • a search service process 13 wherein the search service process 13 is configured to respond to the search request sent by the user terminal, and when it is determined that the search result of the search term associated with the search request is not empty, The search results are sent to any associated target list service process 11.
  • the system also includes a search service process 13 required for generating the list.
  • the search service process 13 is also created on the server in each computer room under the distributed architecture system, and can be used as a user's search response interface , receives the search request sent by the user terminal, and feeds back the search results for the user. At the same time, it can also establish a communication connection with each ranking service process 11 in the same computer room, so as to realize the data with each ranking service process 11. interact.
  • the search service process 13 can receive the search request sent by the user through the user terminal, search for the search terms contained in the search request, and feed back the search results; when it is determined that the search results corresponding to the search terms are non-empty, one can be selected.
  • the ranking service process 11 associated with the search service process 13 sends the search term corresponding to the search request to the ranking service process 11, wherein this embodiment sends the ranking list selected by the search service process 13 for sending search terms
  • the service process 11 is recorded as the target list service process 11 .
  • the search performed by the user through the user terminal may be the search for the host name, the search for the host's room number, or the search for the host's room number. Search for the topic of the live broadcast while doing the live broadcast.
  • what the search service process 13 sends to the target list service process 11 is mainly the keywords in the search request, which are recorded as search words in this embodiment.
  • the search service process 13 selects any ranking service process 11 to feed back search words, which effectively avoids the situation that all write traffic in the entire network is concentrated on the master node, thus ensuring the
  • the ranking service system has the ability to scale horizontally.
  • the target list service process 11 is further configured to, after receiving the search results, determine the word frequency increment data of the search words in the search results, and assign the search words and corresponding The word frequency increment data is fed back to the associated storage service point 12.
  • the target ranking service process 11 that has received the search term sent by the search service process 13 can count the number of searches that have received the search term at the current moment (there are multiple search service processes 13 serving a ranking list at the same time).
  • Process 11 sends the same search term), and uses the number of searches of the search term after statistics as the word frequency increment data of the search term; after that, the target ranking service process 11 needs to feed back the search term and the word frequency increment data to the
  • the associated storage service point 12 is used to update the local word frequency data table stored thereon through the storage service point 12 .
  • the storage service point 12 corresponding to the target ranking service process 11 is also set to update the stored local word frequency data table according to the search word and the corresponding word frequency increment data, and store the The search words and the corresponding word frequency increment data are synchronized to each other storage service point 12; each other storage service point 12 is set to update the corresponding stored local word frequency according to the received search words and the corresponding word frequency increment data data sheet.
  • the storage service point 12 corresponding to the target ranking service process 11 can receive the feedback from the target ranking service process 11 on the search term and the corresponding word frequency increment data, and then it can directly
  • the word frequency increment data updates the local word frequency data table stored thereon; and after the storage service point 12 realizes the local update, in order to ensure the global consistency of the data, the storage service point 12 increases the search word and the corresponding word frequency.
  • the volume data is synchronized to each of the other storage service points 12 .
  • Each other storage service point 12 can also update its locally stored local word frequency data table according to the received search words and corresponding word frequency increment data.
  • the data information transmitted by the storage service point 12 associated with the target ranking service process 11 in this system to other storage service points 12 are all search words and their corresponding word frequency increment data.
  • the synchronization word frequency increment data is performed. Instead of the operation of synchronizing the word frequency data itself, it can effectively avoid the situation that a storage service point 12 in the system causes data abnormality due to abnormal storage, thereby polluting all data in the entire network.
  • the word frequency data recorded for the search term a in the storage service point A is 200
  • the word frequency data recorded by the storage service point B for the search word a is 100 due to a storage service failure.
  • B only provides feedback to other storage service points 12 (including storage service point A) of the word frequency increment data (eg +1) corresponding to the search term a, then storage service point A and storage service point B are based on the word frequency increment data
  • the word frequency data corresponding to the search word a are 201 and 101 respectively, thus ensuring that the data information stored by the storage service point A is not affected by the storage service point B.
  • each storage service point 12 can also be set as:
  • search word and the corresponding word frequency increment data After receiving the search word and the corresponding word frequency increment data, find out whether the search word exists in the stored local word frequency data table; if the search word exists in the stored local word frequency data table, then determine the search The current word frequency data corresponding to the word in the local word frequency data table, and the sum of the current word frequency data and the word frequency increment data is stored in association as the new current word frequency data; If the search word exists, the search word is added to the local word frequency data table, and the incremental word frequency data is associated and stored in the local word frequency data table as the current word frequency data of the search word.
  • This embodiment provides an implementation process for the storage service point 12 to update the local word frequency data table based on the search words and the corresponding word frequency increment data. For each storage service point 12, after receiving the search word and the corresponding word frequency increment data, it can first check whether the search word exists in the stored local word frequency data table, if the stored local word frequency data If the search word exists in the table, the received word frequency increment data can be directly accumulated to the current word frequency data corresponding to the search word to form new current word frequency data; if the search word does not exist in the stored local word frequency data table word, the search word can be added to the local word frequency data table, and the currently obtained word frequency increment data can be used as the initial current word frequency data.
  • Each ranking service process 11 is further configured to, when receiving a ranking display request sent by a user terminal, feed back the local ranking list obtained from the corresponding storage service point 12 to the user terminal, so that through the user terminal The terminal displays the list list.
  • the list of lists generated by the system needs to be displayed on the user terminal
  • the list display request sent by the user terminal is equivalent to a trigger for list display
  • the list service process 11 can display the list after receiving the list display.
  • the local ranking list currently stored in the storage service point 12 is directly obtained from the corresponding storage service point 12, and then sent to the user terminal, so that the user terminal can directly display the local ranking list.
  • the storage service point 12 is also set to receive the current ranking list sent by the corresponding ranking service process 11 and replace the stored local ranking list as a new local ranking list, and at the same time, send the new local ranking list synchronously To each other storage service point 12, so that each other storage service point 12 replaces the stored local leaderboard list with the synchronized received leaderboard list as a new local leaderboard list.
  • each ranking service process 11 includes:
  • the information acquisition sub-process is set to obtain the local word frequency data table currently stored in the corresponding storage service point 12, the local ranking list and the list of lists fed back by each other storage service point 12;
  • the word frequency statistics sub-process is set to Describe the local ranking list and the ranking list fed back by each other storage service point 12, update the current word frequency data of multiple search terms in the local word frequency data table, and obtain a new local word frequency data table;
  • the sub-process is set to generate the current ranking list according to the updated local word frequency data table;
  • the information sending sub-process is set to send the generated current ranking list to the corresponding storage service point 12, so that the storage service point 12 adopts The current ranking list replaces the stored local ranking list.
  • This embodiment presents the realization that the ranking service process 11 generates the current ranking list through the local ranking list, the local word frequency data table, and the ranking list fed back by other storage service points 12 .
  • the sub-processes with different functions in the ranking service process 11 cooperate with each other, respectively realizing the acquisition of relevant data information, the statistics of relevant word frequency information, the generation of ranking lists, and the sending of ranking information.
  • the word frequency statistics sub-process can be set as:
  • the local ranking list and the ranking list fed back by each other storage service point as the ranking list to be compared, and obtaining a plurality of ranking lists to be compared; selecting a search term in the local word frequency data table
  • the current word frequency data corresponding to the current target in the local word frequency data table is used as a candidate word frequency data; for each list of lists to be compared, if each list of lists to be compared is There is the current target in the current target, then the word frequency data corresponding to the current target in the list of each list to be compared is taken as a candidate word frequency data; the maximum value in the candidate word frequency data corresponding to the current target is taken as The current word frequency data of the current target, and the current target and the current word frequency data are associated and cached in the set intermediate cache table, and the selection operation of the current target is returned and performed, until multiple in the local word frequency data table. All search words are selected; the local word frequency data table is updated based on multiple search words cached in the intermediate cache table and corresponding current word frequency
  • the word frequency statistics sub-process can update the local word frequency data table with a global nature in combination with the local ranking list and the ranking list fed back by each other storage service point, and this update is aimed at the data in the local word frequency data table.
  • each search term For multiple search words in the local word frequency data table, they may all be in the list.
  • the corresponding word frequency data in the ranking list fed back by the service point is combined with the word frequency data of the search word in the local word frequency data table, and a maximum value is selected as the current word frequency data of the search word.
  • the execution of the word frequency counting sub-process reflects the traversal of the word frequency counting sub-process on the local word frequency data table, the local ranking list, and the ranking lists fed back by other storage service points.
  • the list generation subprocess can be set to:
  • the current ranking list can be generated by the ranking generating sub-process.
  • the list list can be understood as a form for ranking the search words that are searched relatively frequently.
  • the list generation subprocess can sort the multiple search words in the local word frequency data table from large to small according to the corresponding current word frequency data, and then Intercept the top K (that is, the ranking number is less than or equal to K, and K can be set according to the application scenario) search words are recorded as hot search words, and the current ranking list is formed according to the hot search words and current word frequency data.
  • the local word frequency data table, the historical local ranking list and the ranking list fed back by other storage service points are mainly combined.
  • the resulting list of current rankings minimizes the impact of errors in a single computer room in the system on the overall situation.
  • a small amount of data loss during the operation of the system will not have a significant impact on the results of the global list, thus realizing the effect of effectively achieving data consistency and correctness with a small amount of data synchronization between multiple nodes.
  • Embodiment 2 is a schematic flowchart of a method for generating a list provided in Embodiment 2 of the present application.
  • the method is suitable for generating a list of lists, and the method can be executed by the list service system provided in Embodiment 1 of the present application.
  • the list service system includes: at least one list service process, a plurality of storage service points, and a search service process.
  • a method for generating a list provided by the second embodiment includes the following operations:
  • the ranking service process obtains the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the corresponding storage service point.
  • the number of storage service points included in the entire ranking service system is the same as the number of computer rooms included in the global service deployment, that is, there may be one storage service point in a computer room corresponding to a region, and one The computer room may include one or more ranking service processes created on the server, and the storage service points in the same computer room are associated with the ranking service process.
  • This step provides an operation for the ranking service process to obtain the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the associated storage service point.
  • the ranking service processes associated with the same storage service point share a local word frequency data table, a local ranking list, and a ranking list related to each other storage service point.
  • the ranking service process generates a current ranking list according to the obtained local word frequency data table, the local ranking list and the ranking list related to each other storage service point, and sends it to the corresponding storage service point to replace the storage service point.
  • the ranking service process can combine the local word frequency data table and the corresponding local ranking lists on all storage service points (that is, the local ranking list on the associated storage service point and other storage service points are synchronized.
  • the current word frequency data can be re-determined for each search word in the local word frequency data table, and then the corresponding current word frequency data can be arranged in descending order.
  • the K search terms in the top K are combined with the corresponding current word frequency data to generate the current list list.
  • the current ranking list can be sent to the associated storage service point, and used as a new local ranking list to replace the original local ranking list on the corresponding storage service point.
  • the above process of re-determining each search term for the current word frequency data can be expressed as: traversing the local word frequency data table and each list list, obtaining the maximum value in the word frequency data corresponding to the search term, and using the maximum value as the search term.
  • the final current word frequency data can be expressed as: traversing the local word frequency data table and each list list, obtaining the maximum value in the word frequency data corresponding to the search term, and using the maximum value as the search term.
  • the method for generating a list provided by the second embodiment of the present application is performed by the list service system provided by the embodiment of the present application.
  • the method for generating a list is the largest It minimizes the impact of incorrect data in a single computer room on the overall situation, and better reflects the data consistency and correctness of the generated list list.
  • the method further includes: the search service process responds to the search request sent by the user terminal, and when it is determined that the search result of the search term associated with the search request is not empty, Send the search result to any associated target list service process; after receiving the search result, the target list service process determines the word frequency increment data of the search term in the search result, and sends the The search words and corresponding word frequency increment data are fed back to the corresponding storage service point.
  • the search service process provides the word frequency data of the search words for the generation of the list list, and realizes the network-wide synchronization of the incremental data of the word frequencies corresponding to the search words through the operation of the target list service process.
  • the method further includes: the storage service point corresponding to the target ranking service process updates the stored local word frequency according to the search word and corresponding word frequency increment data data table, and synchronize the search term and corresponding word frequency increment data to each other storage service point; each other storage service point feeds back the search term and corresponding The word frequency increment data of , update the corresponding stored local word frequency data table.
  • the method further includes: when the ranking service process receives a ranking display request sent by the user terminal, feeding back the local ranking list obtained from the corresponding storage service point to the The user terminal is used to display the list of lists through the user terminal.
  • FIG. 3 is an exemplary flowchart of generating a list based on the list service system provided in Embodiment 2 of the present application. As shown in Figure 3, given the search service process, the target list service process, the target storage service point associated with the target list service process, and other storage service points that exist in the list service system. The process of generating the list list.
  • the interaction process between the search service process, the target ranking service process, the target storage service point associated with the target ranking service process, and other storage service points is as follows:
  • the search service process responds to the search request sent by the user terminal, and when it is determined that the search result of the search term associated with the search request is not empty, sends the search result to the target list service process.
  • the search service process can send search words to any target ranking service process associated with it, which effectively avoids the operation in the system that requires all the write traffic of the entire network to be concentrated on the master node, and improves the horizontal expansion of the service. ability.
  • the target list service process determines the word frequency increment data of the search words in the search result, and feeds back the search words and the corresponding word frequency increment data to the associated target storage service point.
  • the list service process that receives the search service process may be recorded as the target list service process, and the target list service process may count the number of received search words at the current moment, and use it as word frequency increment data.
  • the target ranking service process needs to feed back the received search words and corresponding word frequency increment data to the storage service point associated therewith, and the storage service point is recorded as the target storage service point.
  • the target storage service point updates the stored local word frequency data table according to the search word and the corresponding word frequency increment data, and synchronizes the search word and the corresponding word frequency increment data to each other storage service point.
  • the target storage service point performs an operation of updating the local word frequency data table, and at the same time, in order to ensure the real-time update of related data on other storage service points, it also performs synchronization of the search words and the corresponding word frequency increment data. Action for each other storage service point.
  • the word frequency increment data is synchronized, not the word frequency data itself, which can avoid the situation of data pollution of the whole network caused by the abnormal data storage caused by the abnormal storage of one storage service point.
  • Each other storage service point updates the corresponding stored local word frequency data table according to the received search words and corresponding word frequency increment data.
  • each other storage service point performs an operation of updating the local word frequency data table.
  • Each storage service point stores and synchronizes the ranking lists of other storage service points, which helps to avoid inaccurate word frequency data caused by data loss in some storage service points.
  • the target ranking service process acquires a local word frequency data table, a local ranking list, and a ranking list related to each other storage service point from the target storage service point.
  • the target ranking service process when the target ranking service process reaches the conditions for generating the ranking list (for example, the interval from the previous operation reaches the set duration), execute the acquisition of the local word frequency data table and the local ranking list from the target storage service point. As well as the operation of each other storage service point related leaderboard list.
  • the target list service process generates the current list list according to the local word frequency data table, the local list list, and the list list related to each other storage service point.
  • the target ranking service process generates the current ranking list by referring to the global data, which effectively ensures the data consistency and accuracy of the current ranking list.
  • the target ranking service process sends the current ranking list to the target storage service point.
  • the target storage service point replaces the stored local list of ranking lists with the current list of ranking lists as a new local ranking list, and synchronizes the new local ranking list to each other storage service point, so that each Other storage service points replace the stored local ranking list with the received ranking list as a new local ranking list.
  • the updated local ranking list in the target storage service point is synchronized to other storage service points, which effectively realizes the effective synchronization of data information of the whole network under the distributed architecture.
  • FIG. 4 is a schematic diagram of the hardware structure of a server provided in Embodiment 3 of the present application.
  • the server is set as a storage service point in the ranking service system provided by Embodiment 1 above, and/or the ranking list provided by Embodiment 1 above.
  • the execution body of the ranking service process in a single-service system. May include: a processor and a storage device. At least one instruction is stored in the storage device, and the instruction is executed by the processor, so that the server can execute the operation steps corresponding to the storage service point and/or the list service process in the list generation method provided in the second embodiment.
  • the server may include: a processor 30 , a storage device 31 , a display screen 32 , an input device 33 , an output device 34 and a communication device 35 .
  • the number of processors 30 in the server may be one or more, and one processor 30 is taken as an example in FIG. 4 .
  • the number of storage devices 31 in the server may be one or more, and one storage device 31 is taken as an example in FIG. 4 .
  • the processor 30 , storage device 31 , display screen 32 , input device 33 , output device 34 and communication device 35 of the server may be connected by a bus or other means, and the connection by a bus is taken as an example in FIG. 4 .
  • the processor 30 when the processor 30 executes one or more programs stored in the storage device 31, it executes the following, for example, the ranking service process obtains the local word frequency data table, the local ranking list and each list from the corresponding storage service point. a list of ranking lists related to other storage service points; the ranking service process generates the current ranking list according to the obtained local word frequency data table, the local ranking list and the ranking list related to each other storage service point, and sends it to the corresponding Store the service point as a new local leaderboard list.
  • the ranking service process obtains the local word frequency data table, the local ranking list and each list from the corresponding storage service point. a list of ranking lists related to other storage service points; the ranking service process generates the current ranking list according to the obtained local word frequency data table, the local ranking list and the ranking list related to each other storage service point, and sends it to the corresponding Store the service point as a new local leaderboard list.
  • the embodiments of the present application further provide a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute the computer-executable instructions provided by the embodiments of the present application when executed by a computer processor.
  • the above-mentioned embodiments include: the ranking service process obtains the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the corresponding storage service point; the ranking service process According to the obtained local word frequency data table, local ranking list, and ranking list related to each other storage service point, the current ranking list is generated, and sent to the corresponding storage service point as a new local ranking list.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Probability & Statistics with Applications (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A ranking list service system, a ranking list generation method, a server, and a storage medium. The ranking list service system comprises: at least one ranking list service process (11) and multiple storage service points (12). Each storage service point (12) is configured to store a local word frequency data table related to a ranking list service process (11) associated with each storage service point (12) and a local ranking list; and a ranking list related to every other storage service point (12) is stored. Each ranking list service process (11) is configured to, according to the local word frequency data table in the storage service point (12) corresponding to each ranking list service process (11), the local ranking list, and the ranking list related to every other storage service point (12), generate a current ranking list and send the current ranking list to the storage service point (12) corresponding to each ranking list service process (11).

Description

榜单服务系统、榜单生成方法、服务器及存储介质List service system, list generation method, server and storage medium
本申请要求在2020年08月14日提交中国专利局、申请号为202010820861.X的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 202010820861.X filed with the China Patent Office on August 14, 2020, the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请涉及数据处理技术领域,例如涉及榜单服务系统、榜单生成方法、服务器及存储介质。The present application relates to the technical field of data processing, such as a list service system, a list generation method, a server and a storage medium.
背景技术Background technique
热搜榜单是直播平台中反映内容搜索热度变更的关键,主要展示了用户搜索量较高、热度较大的搜索对象及相应的热搜程度。一般的,榜单服务系统可以通过用户对搜索词的搜索来增加该搜索词所对应的搜索词频,从而根据搜索词频确定这些搜索词是否可以进入榜单的排名。榜单内的信息可以动态的展示给用户,以此来吸引其他用户对榜单内的热搜词的搜索,从而增加榜单上热搜词所关联信息的曝光率。此外,运营商也可以通过对产品中所展示热搜榜单的人为配置来达到对指定对象的宣传引流效果。The hot search list is the key to reflect the change of content search popularity in the live broadcast platform. It mainly shows the search objects with high user search volume and high popularity and the corresponding hot search degree. Generally, the ranking service system can increase the search term frequency corresponding to the search term through the user's search for the search term, so as to determine whether the search term can enter the ranking of the list according to the search term frequency. The information in the list can be dynamically displayed to users, so as to attract other users to search for the hot search terms in the list, thereby increasing the exposure rate of the information associated with the hot search terms on the list. In addition, operators can also achieve the effect of publicity and drainage of specified objects by artificially configuring the hot search list displayed in the product.
传统的榜单服务系统通常是分布式多节点部署,为了保持词频计算的准确性,通常会选择一个主节点,专门负责解释用户的搜索结果,之后将词频增量加到本地存储的热搜词频上,并将计算形成的热搜榜单同步到其他所有从节点上,以此使得同一个热搜词最终在所有节点上都具有相同的词频。The traditional ranking service system is usually deployed with distributed multi-nodes. In order to maintain the accuracy of word frequency calculation, a master node is usually selected, which is responsible for interpreting the user's search results, and then adds the word frequency increment to the locally stored hot search word frequency. , and synchronize the hot search list formed by calculation to all other slave nodes, so that the same hot search word will eventually have the same word frequency on all nodes.
然而,这种传统的榜单服务系统,其系统架构为单写多读,整个系统中的写流量全部集中到主节点,由此不宜于实现系统扩展,同时由于从节点需要完全依赖主节点进行数据更新,存在榜单数据不准确的情况,而且一旦主节点故障,需要依赖一套复杂的操作来进行主节点选取及切换以此保证系统的可靠性和数据正确性,整个实现代价相对较高。However, this traditional ranking service system has a system architecture of single write and multiple reads, and the write traffic in the entire system is all concentrated to the master node, which is not suitable for system expansion. In data update, the list data is inaccurate, and once the master node fails, it needs to rely on a complex set of operations to select and switch the master node to ensure the reliability of the system and the correctness of the data. The entire implementation cost is relatively high. .
发明内容SUMMARY OF THE INVENTION
本申请提供了榜单服务系统、榜单生成方法、服务器及存储介质,有效提高了榜单服务系统的数据一致性、高可用性以及可扩展性。This application provides a ranking service system, a ranking generating method, a server and a storage medium, which effectively improve the data consistency, high availability and scalability of the ranking service system.
本申请提供了榜单服务系统,包括:至少一个榜单服务进程以及多个存储服务点,其中,不同存储服务点之间存在通信连接,且每个存储服务点与所述每个存储服务点关联的榜单服务进程之间存在通信连接;This application provides a ranking service system, including: at least one ranking service process and multiple storage service points, wherein there are communication connections between different storage service points, and each storage service point is connected to each storage service point. There is a communication connection between the associated ranking service processes;
每个存储服务点,设置为存储与所述每个存储服务点关联的榜单服务进程相关的本地词频数据表以及本地榜单列表;以及存储与每个其他存储服务点相关的榜单列表;Each storage service point is set to store a local word frequency data table and a local list of ranking lists related to the ranking service process associated with each storage service point; and store a ranking list related to each other storage service point;
每个榜单服务进程,设置为根据从所述每个榜单服务进程对应的存储服务点中获取的本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表,生成当前榜单列表,并将所述当前榜单列表发送给所述每个榜单服务进程对应的存储服务点以使所述每个榜单服务进程对应的存储服务点采用所述当前榜单列表替换原有的本地榜单列表,将所述当前榜单列表作为新的本地榜单列表存储。Each ranking service process is set to generate a list based on the local word frequency data table, the local ranking list and the ranking list related to each other storage service point obtained from the storage service point corresponding to each ranking service process. The current ranking list, and sending the current ranking list to the storage service point corresponding to each ranking service process, so that the storage service point corresponding to each ranking service process adopts the current ranking list Replacing the original local ranking list, and storing the current ranking list as a new local ranking list.
本申请提供了榜单生成方法,由上述的榜单服务系统执行,包括:This application provides a method for generating a list, which is executed by the above-mentioned list service system, including:
榜单服务进程从所述榜单服务进程对应的存储服务点中获取本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表;The ranking service process obtains the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the storage service point corresponding to the ranking service process;
所述榜单服务进程根据获取的本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表生成当前榜单列表,并将所述当前榜单列表发送给所述榜单服务进程对应的存储服务点,以使所述榜单服务进程对应的存储服务点采用所述当前榜单列表替换所述榜单服务进程对应的存储服务点上原有的本地榜单列表。The ranking service process generates a current ranking list according to the obtained local word frequency data table, the local ranking list and the ranking list related to each other storage service point, and sends the current ranking list to the ranking list The storage service point corresponding to the service process, so that the storage service point corresponding to the ranking service process uses the current ranking list to replace the original local ranking list on the storage service point corresponding to the ranking service process.
本申请提供了一种服务器,该服务器设置为作为上述榜单服务系统中的存储服务点,和/或作为上述榜单服务系统中的榜单服务进程的执行终端,包括:The present application provides a server, which is set as a storage service point in the above-mentioned ranking service system, and/or as an execution terminal of a ranking service process in the above-mentioned ranking service system, including:
一个或多个处理器;one or more processors;
存储装置,设置为存储一个或多个程序;storage means arranged to store one or more programs;
所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器设置为执行上述的榜单生成方法。The one or more programs are executed by the one or more processors, such that the one or more processors are arranged to perform the above-described list generation method.
本申请提供了一种计算机可读存储介质,存储有计算机程序,其中,所述程序被处理器执行时实现上述的榜单生成方法。The present application provides a computer-readable storage medium storing a computer program, wherein when the program is executed by a processor, the above-mentioned method for generating a list is implemented.
附图说明Description of drawings
图1是本申请实施例一提供的一种榜单服务系统的架构图;Fig. 1 is the architecture diagram of a ranking service system provided by Embodiment 1 of the present application;
图2是本申请实施例二提供的一种榜单生成方法的流程示意图;2 is a schematic flowchart of a method for generating a list according to Embodiment 2 of the present application;
图3是本申请实施例二提供的一种基于榜单服务系统实现榜单列表生成的示例流程图;FIG. 3 is an exemplary flowchart for realizing list generation based on a list service system according to Embodiment 2 of the present application;
图4是本申请实施例三提供的一种服务器的硬件结构示意图。FIG. 4 is a schematic diagram of a hardware structure of a server according to Embodiment 3 of the present application.
具体实施方式detailed description
下面将结合附图对本申请实施例方式进行描述。The embodiments of the present application will be described below with reference to the accompanying drawings.
实施例一Example 1
图1是本申请实施例一提供的一种榜单服务系统的架构图,如图1所示,该榜单服务系统包括:至少一个榜单服务进程11以及多个存储服务点12,其中,不同存储服务点12之间存在通信连接,且存储服务点12与关联的榜单服务进程11之间存在通信连接;存储服务点12上存储有与所关联榜单服务进程11相关的本地词频数据表以及本地榜单列表;还存储有与每个其他存储服务点12相关的榜单列表;每个榜单服务进程11,设置为根据从所对应存储服务点12中获取的本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表,生成当前榜单列表,并发送给对应的存储服务点12以替换原有的本地榜单列表,作为新的本地榜单列表存储。FIG. 1 is an architecture diagram of a ranking service system provided in Embodiment 1 of the present application. As shown in FIG. 1 , the ranking service system includes: at least one ranking service process 11 and a plurality of storage service points 12, wherein, There is a communication connection between different storage service points 12, and there is a communication connection between the storage service point 12 and the associated list service process 11; the storage service point 12 stores local word frequency data related to the associated list service process 11 Table and local list list; also store list list related to each other storage service point 12; each list service process 11 is set to be based on the local word frequency data table obtained from the corresponding storage service point 12, The local ranking list and the ranking list related to each other storage service point, generate the current ranking list, and send it to the corresponding storage service point 12 to replace the original local ranking list, and store it as a new local ranking list .
在本实施例中,所述榜单服务系统可理解为一个部署在直播应用的后台服务端的榜单服务支持系统,该榜单服务系统可看做一个分布式架构系统,且为保证全球服务部署,该榜单服务系统可在架设于不同地域的后台服务器上实现。其中,一个地域实际对应一个称为机房的服务器集群,每个服务器集群内包含有一定规模的后台服务器。In this embodiment, the ranking service system can be understood as a ranking service support system deployed on the background server of the live broadcast application. The ranking service system can be regarded as a distributed architecture system, and is deployed to ensure global service deployment. , the ranking service system can be implemented on background servers set up in different regions. Among them, a region actually corresponds to a server cluster called a computer room, and each server cluster contains a certain scale of background servers.
在本实施例中,存储服务点12以及榜单服务进程11均可以看作系统中实现榜单生成的执行机制,存储服务点12可以由分布式架构系统中的一个服务器来承担,且整个榜单服务系统中所包含存储服务点12的数量可以与该分布式架构系统中所包括机房的数量相同,即,一个机房内可对应存在一个存储服务点12,每个存储服务点12上至少存储了用于榜单列表生成的相关数据。同时,榜单服务进程11可以看作创建于每个机房内任意后台服务器上设置为榜单生成的服务进程。同一机房下具备的至少一个榜单服务进程11与设置于该机房下的存储服务点12关联并建立有通信连接。In this embodiment, both the storage service point 12 and the ranking service process 11 can be regarded as the execution mechanism in the system to realize the generation of the ranking list. The storage service point 12 can be undertaken by a server in the distributed architecture system, and the entire ranking The number of storage service points 12 included in the single-service system may be the same as the number of computer rooms included in the distributed architecture system, that is, one storage service point 12 may exist in one computer room, and each storage service point 12 stores at least one storage service point 12 . The relevant data used for the generation of the list list. At the same time, the ranking service process 11 can be regarded as a service process created on any background server in each computer room and set to generate ranking lists. At least one ranking service process 11 in the same computer room is associated with the storage service point 12 set in the computer room, and a communication connection is established.
本实施例提供的榜单服务系统相当于一个能够通过存储服务点12间相互通信、榜单服务进程11与所关联存储服务点12相互通信来动态实现榜单列表生成的系统。该系统中,存储服务点12上存储了需要动态更新的本地词频数据表、本地榜单列表以及其他存储服务点12相关的榜单列表,其中,本地词频数据表以及本地榜单列表根据存储服务点12所关联榜单服务进程11反馈的数据信息(词频增量数据或者最新生产的榜单列表)进行更新,其他存储服务点12相关的榜单列表实际相当于存储在其他存储服务点12上的本地榜单列表,存储服务点12可以接收其他存储服务点12反馈的本地榜单列表来作为其他存储服务点12相关的榜单列表进行存储。此外,本实施例内每个存储服务点12中的本地词 频数据表以及本地榜单列表可初始默认为空。The ranking service system provided in this embodiment is equivalent to a system capable of dynamically generating a ranking list through mutual communication between storage service points 12 and mutual communication between the ranking service process 11 and the associated storage service point 12 . In this system, the storage service point 12 stores the local word frequency data table, the local ranking list list and other ranking lists related to the storage service point 12 that need to be dynamically updated. The data information fed back by the ranking service process 11 associated with the point 12 (word frequency increment data or the latest list of ranking lists) is updated, and the ranking lists related to other storage service points 12 are actually equivalent to being stored on other storage service points 12. The storage service point 12 may receive the local list of rankings fed back by other storage service points 12 and store it as a list of lists related to the other storage service points 12 . In addition, in this embodiment, the local word frequency data table and the local ranking list in each storage service point 12 may be initially empty by default.
同时,榜单服务进程11通过所关联存储服务点12上存储的数据信息进行榜单列表的更新生成,榜单服务进程11可以获取所关联存储服务点12存储的本地词频数据表、本地榜单列表以及其他存储服务点12相关的榜单列表来实现最新的当前榜单列表的生成。其中,关联同一存储服务点12的至少一个榜单服务进程11共享存储在存储服务点12上的本地词频数据表、本地榜单列表以及其他存储服务点12相关的榜单列表,且关联同一存储服务点12的至少一个榜单服务进程11的运行是相互独立的,不影响所关联存储服务点12上相关数据的更新存储。At the same time, the ranking service process 11 updates and generates the ranking list through the data information stored in the associated storage service point 12, and the ranking service process 11 can obtain the local word frequency data table and the local ranking list stored in the associated storage service point 12. The list and other related ranking lists of the storage service point 12 are used to realize the generation of the latest current ranking list. Among them, at least one ranking service process 11 associated with the same storage service point 12 shares the local word frequency data table, the local ranking list and the ranking lists related to other storage service points 12 stored on the storage service point 12, and is associated with the same storage service point 12. The operation of at least one ranking service process 11 of the service point 12 is independent of each other, and does not affect the update and storage of the relevant data on the associated storage service point 12 .
本系统中进行榜单的生成是需要存储服务点12与所关联榜单服务进程11、以及与其他存储服务点12相互配合来共同实现的,如,榜单服务进程11进行榜单生成时,需要依据所关联存储服务点12中已存储的本地榜单列表、本地词频数据表以及其他存储服务点12相关的榜单列表,而存储服务点12则通过接收所关联榜单服务进程11生成的当前榜单列表来实现对本地榜单列表的更新,以及将更新后的本地榜单列表同步更新给其他存储服务点12,以对其他存储服务点12上的榜单列表进行更新。又如,榜单服务进程11进行榜单生成时所需的本地词频数据表则又依赖于榜单服务进程11提供的词频增量数据进行更新。The generation of the list in this system requires the mutual cooperation between the storage service point 12 and the associated list service process 11 and other storage service points 12. For example, when the list service process 11 generates the list, It needs to be based on the local ranking list, local word frequency data table and other ranking lists related to the storage service point 12 that have been stored in the associated storage service point 12, and the storage service point 12 receives the associated list service process 11 Generated The current ranking list is used to update the local ranking list, and the updated local ranking list is synchronously updated to other storage service points 12 to update the ranking lists on other storage service points 12 . For another example, the local word frequency data table required by the ranking service process 11 for generating the ranking list is updated again depending on the incremental word frequency data provided by the ranking service process 11 .
本申请实施例一提供的一种榜单服务系统,采用了分布式无主节点的系统架构,使得每个存储服务点12以及榜单服务进程11均可参与到榜单列表的生成中,保证了分布式架构下所有节点的可写可读性,实现了用于榜单生成的整个分布式架构的灵活部署,提高了榜单服务系统的高可用性;同时还规避了系统在异常情况下需要进行主节点切换的复杂操作。此外,本实施所提供的榜单服务系统的榜单生成最大限度地避免了单机房错误数据对全局的影响,更好地体现了榜单服务系统的数据一致性和正确性。A ranking service system provided by the first embodiment of the present application adopts a distributed system architecture without master nodes, so that each storage service point 12 and the ranking service process 11 can participate in the generation of the ranking list, ensuring that the ranking list is generated. It improves the writability and readability of all nodes under the distributed architecture, realizes the flexible deployment of the entire distributed architecture for list generation, and improves the high availability of the list service system; at the same time, it avoids the need for the system in abnormal situations The complex operation of doing a master node switch. In addition, the list generation of the list service system provided by this implementation minimizes the impact of incorrect data in a single computer room on the overall situation, and better reflects the data consistency and correctness of the list service system.
所述系统还可以包括:搜索服务进程13,其中,搜索服务进程13,设置为响应用户终端发送的搜索请求,并在确定所述搜索请求所关联搜索词的搜索结果为非空时,将所述搜索结果发送给任一关联的目标榜单服务进程11。The system may further include: a search service process 13, wherein the search service process 13 is configured to respond to the search request sent by the user terminal, and when it is determined that the search result of the search term associated with the search request is not empty, The search results are sent to any associated target list service process 11.
在本实施例中,该系统还包括了榜单生成所需的搜索服务进程13,搜索服务进程13同样创建于分布式架构系统下每个机房内的服务器上,可以作为一个用户的搜索响应接口,接收用户终端侧发送的搜索请求,并为用户反馈搜索结果,同时,还可以与处于同一机房中的每个榜单服务进程11建立通信连接,从而实现与每个榜单服务进程11的数据交互。In this embodiment, the system also includes a search service process 13 required for generating the list. The search service process 13 is also created on the server in each computer room under the distributed architecture system, and can be used as a user's search response interface , receives the search request sent by the user terminal, and feeds back the search results for the user. At the same time, it can also establish a communication connection with each ranking service process 11 in the same computer room, so as to realize the data with each ranking service process 11. interact.
搜索服务进程13可以接收到用户通过用户终端发送的搜索请求,并对搜索请求中包含的搜索词进行搜索以及进行搜索结果反馈;当确定搜索词对应的搜 索结果为非空时,就可以选择一个与搜索服务进程13关联的榜单服务进程11并将该搜索请求对应的搜索词发送给该榜单服务进程11,其中,本实施例将搜索服务进程13选定的进行搜索词发送的榜单服务进程11记为目标榜单服务进程11。The search service process 13 can receive the search request sent by the user through the user terminal, search for the search terms contained in the search request, and feed back the search results; when it is determined that the search results corresponding to the search terms are non-empty, one can be selected. The ranking service process 11 associated with the search service process 13 sends the search term corresponding to the search request to the ranking service process 11, wherein this embodiment sends the ranking list selected by the search service process 13 for sending search terms The service process 11 is recorded as the target list service process 11 .
本实施例提供的榜单服务系统的其中一个应用场景为直播应用,在直播应用中用户通过用户终端进行的搜索可以是对主播名称的搜索,也可以是对主播房间号的搜索或者是对主播进行直播时直播主题的搜索。本实施例中搜索服务进程13发送给目标榜单服务进程11的主要为搜索请求中的关键词,本实施例记为搜索词。One of the application scenarios of the ranking service system provided in this embodiment is a live broadcast application. In the live broadcast application, the search performed by the user through the user terminal may be the search for the host name, the search for the host's room number, or the search for the host's room number. Search for the topic of the live broadcast while doing the live broadcast. In this embodiment, what the search service process 13 sends to the target list service process 11 is mainly the keywords in the search request, which are recorded as search words in this embodiment.
本实施例由搜索服务进程13选定任一榜单服务进程11进行搜索词的反馈,有效地规避了全网的所有写流量均集中到主节点的情况,由此保证了本实施例提供的榜单服务系统具备横向扩展能力。In this embodiment, the search service process 13 selects any ranking service process 11 to feed back search words, which effectively avoids the situation that all write traffic in the entire network is concentrated on the master node, thus ensuring the The ranking service system has the ability to scale horizontally.
在本系统中,所述目标榜单服务进程11还设置为在接收到所述搜索结果后,确定所述搜索结果中的所述搜索词的词频增量数据,并将所述搜索词及相应的词频增量数据反馈给所关联存储服务点12。In this system, the target list service process 11 is further configured to, after receiving the search results, determine the word frequency increment data of the search words in the search results, and assign the search words and corresponding The word frequency increment data is fed back to the associated storage service point 12.
在本实施例中,接收到搜索服务进程13所发送搜索词的目标榜单服务进程11,可以统计当前时刻接收到该搜索词的搜索数量(存在多个搜索服务进程13同时向一个榜单服务进程11发送同一搜索词的情况),并将统计后该搜索词的搜索数量作为该搜索词的词频增量数据;之后,目标榜单服务进程11需要将该搜索词以及词频增量数据反馈给所关联的存储服务点12,以通过存储服务点12对其上存储的本地词频数据表进行更新。In this embodiment, the target ranking service process 11 that has received the search term sent by the search service process 13 can count the number of searches that have received the search term at the current moment (there are multiple search service processes 13 serving a ranking list at the same time). Process 11 sends the same search term), and uses the number of searches of the search term after statistics as the word frequency increment data of the search term; after that, the target ranking service process 11 needs to feed back the search term and the word frequency increment data to the The associated storage service point 12 is used to update the local word frequency data table stored thereon through the storage service point 12 .
在上述实施例的基础上,所述目标榜单服务进程11对应的存储服务点12还设置为根据所述搜索词及相应的词频增量数据更新所存储的本地词频数据表,并将所述搜索词及相应的词频增量数据同步给每个其他存储服务点12;每个其他存储服务点12,设置为根据接收到的搜索词及相应的词频增量数据,更新相应已存储的本地词频数据表。On the basis of the above embodiment, the storage service point 12 corresponding to the target ranking service process 11 is also set to update the stored local word frequency data table according to the search word and the corresponding word frequency increment data, and store the The search words and the corresponding word frequency increment data are synchronized to each other storage service point 12; each other storage service point 12 is set to update the corresponding stored local word frequency according to the received search words and the corresponding word frequency increment data data sheet.
在本实施例中,目标榜单服务进程11对应的存储服务点12可以接收到目标榜单服务进程11对搜索词及相应词频增量数据的反馈,之后其可直接根据所接收的搜索词以及词频增量数据对存储在其上的本地词频数据表进行更新;而且该存储服务点12在实现本地更新之后,为了保证数据的全局一致性,该存储服务点12将搜索词以及相应的词频增量数据同步给每个其他存储服务点12。每个其他存储服务点12则同样可以根据接收到的搜索词以及相应的词频增量数据对其本地存储的本地词频数据表进行更新。In this embodiment, the storage service point 12 corresponding to the target ranking service process 11 can receive the feedback from the target ranking service process 11 on the search term and the corresponding word frequency increment data, and then it can directly The word frequency increment data updates the local word frequency data table stored thereon; and after the storage service point 12 realizes the local update, in order to ensure the global consistency of the data, the storage service point 12 increases the search word and the corresponding word frequency. The volume data is synchronized to each of the other storage service points 12 . Each other storage service point 12 can also update its locally stored local word frequency data table according to the received search words and corresponding word frequency increment data.
本系统中目标榜单服务进程11所关联的存储服务点12向其他存储服务点12传递的数据信息均为搜索词及其对应的词频增量数据,本实施例进行的是同步词频增量数据的操作而非同步词频数据本身的操作,可以有效规避系统中一个存储服务点12由于存储异常而导致数据异常从而污染全网所有数据的情况。The data information transmitted by the storage service point 12 associated with the target ranking service process 11 in this system to other storage service points 12 are all search words and their corresponding word frequency increment data. In this embodiment, the synchronization word frequency increment data is performed. Instead of the operation of synchronizing the word frequency data itself, it can effectively avoid the situation that a storage service point 12 in the system causes data abnormality due to abnormal storage, thereby polluting all data in the entire network.
示例性的,假设存储服务点A中针对搜索词a记录的词频数据为200,存储服务点B由于存储服务故障针对搜索词a对应记录的词频数据为100,那么,若此时从存储服务点B向其他存储服务点12(包括存储服务点A)只进行该搜索词a所对应词频增量数据(如+1)的反馈,则存储服务点A以及存储服务点B基于该词频增量数据进行词频更新后搜索词a对应的词频数据分别为201和101,由此保证了存储服务点A所存储的数据信息不受存储服务点B影响。Exemplarily, it is assumed that the word frequency data recorded for the search term a in the storage service point A is 200, and the word frequency data recorded by the storage service point B for the search word a is 100 due to a storage service failure. B only provides feedback to other storage service points 12 (including storage service point A) of the word frequency increment data (eg +1) corresponding to the search term a, then storage service point A and storage service point B are based on the word frequency increment data After the word frequency update, the word frequency data corresponding to the search word a are 201 and 101 respectively, thus ensuring that the data information stored by the storage service point A is not affected by the storage service point B.
在上述实施例的基础上,每个存储服务点12还可以设置为:On the basis of the above embodiment, each storage service point 12 can also be set as:
接收到搜索词及相应的词频增量数据后,从已存储的本地词频数据表中查找是否存在所述搜索词;若已存储的本地词频数据表中存在所述搜索词,则确定所述搜索词在所述本地词频数据表中对应的当前词频数据,并将所述当前词频数据与所述词频增量数据之和作为新的当前词频数据关联存储;若已存储的本地词频数据表中不存在所述搜索词,则将所述搜索词添加至所述本地词频数据表,并将所述词频增量数据作为所述搜索词的当前词频数据关联存储在所述本地词频数据表中。After receiving the search word and the corresponding word frequency increment data, find out whether the search word exists in the stored local word frequency data table; if the search word exists in the stored local word frequency data table, then determine the search The current word frequency data corresponding to the word in the local word frequency data table, and the sum of the current word frequency data and the word frequency increment data is stored in association as the new current word frequency data; If the search word exists, the search word is added to the local word frequency data table, and the incremental word frequency data is associated and stored in the local word frequency data table as the current word frequency data of the search word.
本实施例给出了存储服务点12基于搜索词及相应词频增量数据进行本地词频数据表更新的实现过程。对于每个存储服务点12而言,其在接收到搜索词及相应的词频增量数据后,首先可以从已存储的本地词频数据表中查找是否存在该搜索词,如果已存储的本地词频数据表中存在该搜索词,就可以直接将接收的词频增量数据累加到该搜索词当前对应的当前词频数据上,形成新的当前词频数据;如果已存储的本地词频数据表中不存在该搜索词,则可以将该搜索词添加在本地词频数据表内,并将当前获得的词频增量数据作为初始的当前词频数据。This embodiment provides an implementation process for the storage service point 12 to update the local word frequency data table based on the search words and the corresponding word frequency increment data. For each storage service point 12, after receiving the search word and the corresponding word frequency increment data, it can first check whether the search word exists in the stored local word frequency data table, if the stored local word frequency data If the search word exists in the table, the received word frequency increment data can be directly accumulated to the current word frequency data corresponding to the search word to form new current word frequency data; if the search word does not exist in the stored local word frequency data table word, the search word can be added to the local word frequency data table, and the currently obtained word frequency increment data can be used as the initial current word frequency data.
每个榜单服务进程11还设置为在接收到用户终端发送的榜单展示请求时,将从所对应存储服务点12中获取的本地榜单列表反馈给所述用户终端,以通过所述用户终端进行榜单列表展示。Each ranking service process 11 is further configured to, when receiving a ranking display request sent by a user terminal, feed back the local ranking list obtained from the corresponding storage service point 12 to the user terminal, so that through the user terminal The terminal displays the list list.
在本实施例中,本系统所生成的榜单列表需要展示在用户终端上,用户终端发送的榜单展示请求相当于榜单展示的一个触发,榜单服务进程11可以在接收到榜单展示请求后直接从所对应的存储服务点12中获取该存储服务点12当前存储的本地榜单列表,然后发送给用户终端,从而使用户终端可以直接进行该本地榜单列表的展示。In this embodiment, the list of lists generated by the system needs to be displayed on the user terminal, the list display request sent by the user terminal is equivalent to a trigger for list display, and the list service process 11 can display the list after receiving the list display. After the request, the local ranking list currently stored in the storage service point 12 is directly obtained from the corresponding storage service point 12, and then sent to the user terminal, so that the user terminal can directly display the local ranking list.
存储服务点12,还设置为接收所对应榜单服务进程11发送的当前榜单列表并作为新的本地榜单列表替换已存储的本地榜单列表,同时,将新的本地榜单列表同步发送给每个其他存储服务点12,以使每个其他存储服务点12将同步接收的榜单列表作为新的本地榜单列表替换已存储的本地榜单列表。The storage service point 12 is also set to receive the current ranking list sent by the corresponding ranking service process 11 and replace the stored local ranking list as a new local ranking list, and at the same time, send the new local ranking list synchronously To each other storage service point 12, so that each other storage service point 12 replaces the stored local leaderboard list with the synchronized received leaderboard list as a new local leaderboard list.
在本实施例中,不同存储服务点12之间存在通信连接,为了保证数据的全局一致性,当一个存储服务点12上有关榜单列表的数据发生变更后,就需要通过已建立的通信连接来进行其他存储服务点12上所存储数据的实时更新,所存储数据中还包括了其他存储服务点12相关的榜单列表。In this embodiment, there are communication connections between different storage service points 12. In order to ensure the global consistency of data, when the data about the ranking list on one storage service point 12 is changed, the established communication connection needs to be used. to perform real-time updating of data stored on other storage service points 12 , and the stored data also includes a list of ranking lists related to other storage service points 12 .
在上述实施例的基础上,每个榜单服务进程11,包括:On the basis of the above embodiment, each ranking service process 11 includes:
信息获取子进程,设置为获取所对应存储服务点12中当前存储的本地词频数据表、本地榜单列表以及每个其他存储服务点12反馈的榜单列表;词频统计子进程,设置为根据所述本地榜单列表、每个其他存储服务点12反馈的榜单列表,对所述本地词频数据表中的多个搜索词的当前词频数据进行更新,获得新的本地词频数据表;榜单生成子进程,设置为根据更新后的本地词频数据表,生成当前榜单列表;信息发送子进程,设置为将生成的当前榜单列表发送给对应的存储服务点12,以使存储服务点12采用所述当前榜单列表替换已存储的本地榜单列表。The information acquisition sub-process is set to obtain the local word frequency data table currently stored in the corresponding storage service point 12, the local ranking list and the list of lists fed back by each other storage service point 12; the word frequency statistics sub-process is set to Describe the local ranking list and the ranking list fed back by each other storage service point 12, update the current word frequency data of multiple search terms in the local word frequency data table, and obtain a new local word frequency data table; The sub-process is set to generate the current ranking list according to the updated local word frequency data table; the information sending sub-process is set to send the generated current ranking list to the corresponding storage service point 12, so that the storage service point 12 adopts The current ranking list replaces the stored local ranking list.
本实施例给出了榜单服务进程11通过本地榜单列表、本地词频数据表以及其他存储服务点12反馈的榜单列表生成当前榜单列表的实现。榜单服务进程11中的不同功能的子进程相互配合,分别实现了相关数据信息的获取、相关词频信息的统计、榜单的生成以及榜单信息的发送等过程。This embodiment presents the realization that the ranking service process 11 generates the current ranking list through the local ranking list, the local word frequency data table, and the ranking list fed back by other storage service points 12 . The sub-processes with different functions in the ranking service process 11 cooperate with each other, respectively realizing the acquisition of relevant data information, the statistics of relevant word frequency information, the generation of ranking lists, and the sending of ranking information.
所述词频统计子进程可以设置为:The word frequency statistics sub-process can be set as:
将所述本地榜单列表以及每个其他存储服务点反馈的榜单列表均作为待比对榜单列表,得到多个待比对榜单列表;选取所述本地词频数据表中的一个搜索词作为当前目标,并将所述当前目标在所述本地词频数据表中对应的当前词频数据作为一个候选词频数据;针对每个待比对榜单列表,如果所述每个待比对榜单列表中存在所述当前目标,则将所述当前目标在所述每个待比对榜单列表中对应的词频数据作为一个候选词频数据;将所述当前目标所对应候选词频数据中的最大值作为所述当前目标的当前词频数据,并将所述当前目标与所述当前词频数据关联缓存至设定的中间缓存表,返回执行当前目标的选取操作,直至所述本地词频数据表中的多个搜索词均被选中;基于所述中间缓存表中缓存的多个搜索词及相应的当前词频数据更新所述本地词频数据表。Taking the local ranking list and the ranking list fed back by each other storage service point as the ranking list to be compared, and obtaining a plurality of ranking lists to be compared; selecting a search term in the local word frequency data table As the current target, the current word frequency data corresponding to the current target in the local word frequency data table is used as a candidate word frequency data; for each list of lists to be compared, if each list of lists to be compared is There is the current target in the current target, then the word frequency data corresponding to the current target in the list of each list to be compared is taken as a candidate word frequency data; the maximum value in the candidate word frequency data corresponding to the current target is taken as The current word frequency data of the current target, and the current target and the current word frequency data are associated and cached in the set intermediate cache table, and the selection operation of the current target is returned and performed, until multiple in the local word frequency data table. All search words are selected; the local word frequency data table is updated based on multiple search words cached in the intermediate cache table and corresponding current word frequency data.
在本实施例中,词频统计子进程可以结合本地榜单列表以及每个其他存储 服务点反馈的榜单列表对本地词频数据表进行全局性质的更新,且该种更新针对本地词频数据表中的每一个搜索词。对于本地词频数据表中的多个搜索词而言,其均存在位于榜单列表中的可能,为了保证搜索词所对应词频数据信息的全局性,需要通过搜索词在本地榜单列表以及其他存储服务点反馈的榜单列表中对应的词频数据,结合该搜索词在本地词频数据表中的词频数据,从中选取一个最大值作为该搜索词的当前词频数据。词频统计子进程的执行体现了词频统计子进程对本地词频数据表、本地榜单列表以及其他存储服务点反馈的榜单列表的遍历。In this embodiment, the word frequency statistics sub-process can update the local word frequency data table with a global nature in combination with the local ranking list and the ranking list fed back by each other storage service point, and this update is aimed at the data in the local word frequency data table. each search term. For multiple search words in the local word frequency data table, they may all be in the list. The corresponding word frequency data in the ranking list fed back by the service point is combined with the word frequency data of the search word in the local word frequency data table, and a maximum value is selected as the current word frequency data of the search word. The execution of the word frequency counting sub-process reflects the traversal of the word frequency counting sub-process on the local word frequency data table, the local ranking list, and the ranking lists fed back by other storage service points.
榜单生成子进程可以设置为:The list generation subprocess can be set to:
按照更新后的本地词频数据表中多个搜索词的当前词频数据由大到小的顺序排列所述多个搜索词;将排列后排名序号小于或等于设定阈值的搜索词记为热搜词,并基于所述热搜词及相应的当前词频数据形成当前榜单列表。Arrange the plurality of search words in descending order according to the current word frequency data of the plurality of search words in the updated local word frequency data table; record the search words whose ranking numbers are less than or equal to the set threshold as hot search words , and a current ranking list is formed based on the hot search words and the corresponding current word frequency data.
在本实施例中,通过词频统计子进程的执行保证本地词频数据表的数据准确性后,就可以由榜单生成子进程来生成当前榜单列表。榜单列表可理解成一个对搜索相对频繁的搜索词进行排名的表单,榜单生成子进程可以对本地词频数据表中多个搜索词按照对应的当前词频数据进行由大到小进行排序,然后截取排名前K(即,排名序号小于或等于K,K可以根据应用场景进行设定值)的搜索词记为热搜词,同时根据热搜词及当前词频数据形成当前榜单列表。In this embodiment, after the data accuracy of the local word frequency data table is ensured through the execution of the word frequency counting sub-process, the current ranking list can be generated by the ranking generating sub-process. The list list can be understood as a form for ranking the search words that are searched relatively frequently. The list generation subprocess can sort the multiple search words in the local word frequency data table from large to small according to the corresponding current word frequency data, and then Intercept the top K (that is, the ranking number is less than or equal to K, and K can be set according to the application scenario) search words are recorded as hot search words, and the current ranking list is formed according to the hot search words and current word frequency data.
基于本实施例一所提供的榜单服务系统中的榜单服务进程生成当前榜单列表时,主要结合了本地词频数据表、历史的本地榜单列表以及其他存储服务点反馈的榜单列表,由此所生成的当前榜单列表最大限度地避免了系统中单机房错误对全局的影响。同时,在系统运行过程中少量数据丢失也不会对全局榜单结果造成明显影响,由此实现了多节点之间用少量的数据同步来有效达成数据一致性及正确性的效果。When the current ranking list is generated based on the ranking service process in the ranking service system provided by the first embodiment, the local word frequency data table, the historical local ranking list and the ranking list fed back by other storage service points are mainly combined. The resulting list of current rankings minimizes the impact of errors in a single computer room in the system on the overall situation. At the same time, a small amount of data loss during the operation of the system will not have a significant impact on the results of the global list, thus realizing the effect of effectively achieving data consistency and correctness with a small amount of data synchronization between multiple nodes.
实施例二Embodiment 2
图2是本申请实施例二提供的一种榜单生成方法的流程示意图,该方法适用于榜单列表生成的情况,该方法可以由本申请上述实施例一提供的榜单服务系统执行。2 is a schematic flowchart of a method for generating a list provided in Embodiment 2 of the present application. The method is suitable for generating a list of lists, and the method can be executed by the list service system provided in Embodiment 1 of the present application.
根据上述实施例一对榜单服务系统的描述,可知榜单服务系统包括了:至少一个榜单服务进程、多个存储服务点以及搜索服务进程。According to the description of the list service system in the above embodiment, it can be seen that the list service system includes: at least one list service process, a plurality of storage service points, and a search service process.
如图2所示,本实施例二提供的一种榜单生成方法,包括如下操作:As shown in Figure 2, a method for generating a list provided by the second embodiment includes the following operations:
S201、榜单服务进程从所对应存储服务点中获取本地词频数据表、本地榜 单列表以及每个其他存储服务点相关的榜单列表。S201. The ranking service process obtains the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the corresponding storage service point.
在本实施例中,整个榜单服务系统中所包括存储服务点的数量与全球服务部署中所包含机房的数量相同,即,一个地域所对应的机房下可以存在一个存储服务点,此外,一个机房下可以包括创建于服务器上的一个或多个榜单服务进程,同一机房下的存储服务点与榜单服务进程进行关联。In this embodiment, the number of storage service points included in the entire ranking service system is the same as the number of computer rooms included in the global service deployment, that is, there may be one storage service point in a computer room corresponding to a region, and one The computer room may include one or more ranking service processes created on the server, and the storage service points in the same computer room are associated with the ranking service process.
本步骤给出了榜单服务进程从所关联的存储服务点中获取本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表的操作。关联同一存储服务点的榜单服务进程共享一份本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表。This step provides an operation for the ranking service process to obtain the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the associated storage service point. The ranking service processes associated with the same storage service point share a local word frequency data table, a local ranking list, and a ranking list related to each other storage service point.
S202、榜单服务进程根据获取的本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表生成当前榜单列表,并发送给对应的存储服务点,以替换所述存储服务点上原有的本地榜单列表。S202. The ranking service process generates a current ranking list according to the obtained local word frequency data table, the local ranking list and the ranking list related to each other storage service point, and sends it to the corresponding storage service point to replace the storage service point. The original list of local leaderboards on the service point.
示例性的,本步骤中榜单服务进程可以结合本地词频数据表,以及所有存储服务点上对应的本地榜单列表(即,所关联存储服务点上的本地榜单列表以及其他存储服务点同步至所关联存储服务点上的榜单列表),可以对本地词频数据表中的每个搜索词进行当前词频数据的重确定,之后可以选取按照相应的当前词频数据由大到小的顺序排列后处于前K名的K个搜索词,结合其对应的当前词频数据生成当前榜单列表。该当前榜单列表可以发送给所关联的存储服务点,以作为新的本地榜单列表替换所对应存储服务点上原有的本地榜单列表。Exemplarily, in this step, the ranking service process can combine the local word frequency data table and the corresponding local ranking lists on all storage service points (that is, the local ranking list on the associated storage service point and other storage service points are synchronized. to the ranking list on the associated storage service point), the current word frequency data can be re-determined for each search word in the local word frequency data table, and then the corresponding current word frequency data can be arranged in descending order. The K search terms in the top K are combined with the corresponding current word frequency data to generate the current list list. The current ranking list can be sent to the associated storage service point, and used as a new local ranking list to replace the original local ranking list on the corresponding storage service point.
上述重确定每个搜索词进行当前词频数据的过程可表述为:遍历本地词频数据表以及每个榜单列表,获取该搜索词所对应词频数据中的最大值,将该最大值作为该搜索词最终的当前词频数据。The above process of re-determining each search term for the current word frequency data can be expressed as: traversing the local word frequency data table and each list list, obtaining the maximum value in the word frequency data corresponding to the search term, and using the maximum value as the search term. The final current word frequency data.
本申请实施例二提供的一种榜单生成方法,用本申请实施例提供的榜单服务系统来执行,相比于背景技术中的榜单服务系统所执行的方法,本榜单生成方法最大限度地避免了单机房错误数据对全局的影响,更好地体现了所生成榜单列表的数据一致性和正确性。The method for generating a list provided by the second embodiment of the present application is performed by the list service system provided by the embodiment of the present application. Compared with the method performed by the list service system in the background art, the method for generating a list is the largest It minimizes the impact of incorrect data in a single computer room on the overall situation, and better reflects the data consistency and correctness of the generated list list.
作为本申请实施例二提供的一个可选的实施例,该方法还包括:搜索服务进程响应用户终端发送的搜索请求,并在确定所述搜索请求所关联搜索词的搜索结果为非空时,将所述搜索结果发送给任一关联的目标榜单服务进程;目标榜单服务进程在接收到所述搜索结果后,确定所述搜索结果中的所述搜索词的词频增量数据,并将所述搜索词及相应的词频增量数据反馈给所对应存储服务点。As an optional embodiment provided in the second embodiment of the present application, the method further includes: the search service process responds to the search request sent by the user terminal, and when it is determined that the search result of the search term associated with the search request is not empty, Send the search result to any associated target list service process; after receiving the search result, the target list service process determines the word frequency increment data of the search term in the search result, and sends the The search words and corresponding word frequency increment data are fed back to the corresponding storage service point.
在本可选实施例中,搜索服务进程为榜单列表的生成提供了搜索词的词频 数据,并通过目标榜单服务进程的运行实现了搜索词对应词频增量数据的全网同步。In this optional embodiment, the search service process provides the word frequency data of the search words for the generation of the list list, and realizes the network-wide synchronization of the incremental data of the word frequencies corresponding to the search words through the operation of the target list service process.
作为本申请实施例二提供的另一个可选实施例,该方法还包括:所述目标榜单服务进程对应的存储服务点根据所述搜索词及相应的词频增量数据更新已存储的本地词频数据表,并将所述搜索词及相应的词频增量数据同步给每个其他存储服务点;每个其他存储服务点根据所述目标榜单服务进程所对应存储服务点反馈的搜索词及相应的词频增量数据,更新相应已存储的本地词频数据表。As another optional embodiment provided in the second embodiment of the present application, the method further includes: the storage service point corresponding to the target ranking service process updates the stored local word frequency according to the search word and corresponding word frequency increment data data table, and synchronize the search term and corresponding word frequency increment data to each other storage service point; each other storage service point feeds back the search term and corresponding The word frequency increment data of , update the corresponding stored local word frequency data table.
在上述实施例的基础上,该方法还包括:所述榜单服务进程在接收到用户终端发送的榜单展示请求时,将从所对应存储服务点中获取的本地榜单列表反馈给所述用户终端,以通过所述用户终端进行榜单列表展示。On the basis of the above embodiment, the method further includes: when the ranking service process receives a ranking display request sent by the user terminal, feeding back the local ranking list obtained from the corresponding storage service point to the The user terminal is used to display the list of lists through the user terminal.
为便于对本实施例所提供榜单服务系统进行榜单生成过程的理解,图3是本申请实施例二提供的一种基于榜单服务系统实现榜单列表生成的示例流程图。如图3所示,给定了存在于榜单服务系统中的搜索服务进程、目标榜单服务进程、与目标榜单服务进程关联的目标存储服务点、以及其他存储服务点之间相互交互实现榜单列表生成的过程。In order to facilitate the understanding of the process of generating a list by the list service system provided in this embodiment, FIG. 3 is an exemplary flowchart of generating a list based on the list service system provided in Embodiment 2 of the present application. As shown in Figure 3, given the search service process, the target list service process, the target storage service point associated with the target list service process, and other storage service points that exist in the list service system. The process of generating the list list.
如图3所示,搜索服务进程、目标榜单服务进程、与目标榜单服务进程关联的目标存储服务点、以及其他存储服务点进行交互的过程如下:As shown in Figure 3, the interaction process between the search service process, the target ranking service process, the target storage service point associated with the target ranking service process, and other storage service points is as follows:
S1、搜索服务进程响应用户终端发送的搜索请求,并在确定所述搜索请求所关联搜索词的搜索结果为非空时,将所述搜索结果发送给目标榜单服务进程。S1. The search service process responds to the search request sent by the user terminal, and when it is determined that the search result of the search term associated with the search request is not empty, sends the search result to the target list service process.
本实施例中,搜索服务进程可以向与其关联的任一目标榜单服务进程发送搜索词,有效地规避了系统中需要全网所有的写流量集中到主节点的操作,提升了服务的横向拓展能力。In this embodiment, the search service process can send search words to any target ranking service process associated with it, which effectively avoids the operation in the system that requires all the write traffic of the entire network to be concentrated on the master node, and improves the horizontal expansion of the service. ability.
S2、目标榜单服务进程确定所述搜索结果中的搜索词的词频增量数据,并将所述搜索词及相应的词频增量数据反馈给关联的目标存储服务点。S2. The target list service process determines the word frequency increment data of the search words in the search result, and feeds back the search words and the corresponding word frequency increment data to the associated target storage service point.
本实施例中,接收到搜索服务进程的榜单服务进程可记为目标榜单服务进程,该目标榜单服务进程可以统计当前时刻下接收到该搜索词的数量,并作为词频增量数据。同时,目标榜单服务进程需要将接收到的搜索词及相应的词频增量数据反馈给与其关联的存储服务点,该存储服务点记为目标存储服务点。In this embodiment, the list service process that receives the search service process may be recorded as the target list service process, and the target list service process may count the number of received search words at the current moment, and use it as word frequency increment data. At the same time, the target ranking service process needs to feed back the received search words and corresponding word frequency increment data to the storage service point associated therewith, and the storage service point is recorded as the target storage service point.
S3、目标存储服务点根据所述搜索词及相应的词频增量数据更新所存储的本地词频数据表,并将所述搜索词及相应的词频增量数据同步给每个其他存储服务点。S3. The target storage service point updates the stored local word frequency data table according to the search word and the corresponding word frequency increment data, and synchronizes the search word and the corresponding word frequency increment data to each other storage service point.
本实施例中,目标存储服务点执行对本地词频数据表进行更新的操作,同时,为了保证其他存储服务点上相关数据的实时更新,还执行将所述搜索词及 相应的词频增量数据同步给每个其他存储服务点的操作。In this embodiment, the target storage service point performs an operation of updating the local word frequency data table, and at the same time, in order to ensure the real-time update of related data on other storage service points, it also performs synchronization of the search words and the corresponding word frequency increment data. Action for each other storage service point.
本步骤进行词频增量数据的同步,而非词频数据本身的同步,可规避一个存储服务点由于存储异常而导致的数据存储异常所引起的全网数据受污染的情况。In this step, the word frequency increment data is synchronized, not the word frequency data itself, which can avoid the situation of data pollution of the whole network caused by the abnormal data storage caused by the abnormal storage of one storage service point.
S4、每个其他存储服务点根据接收到的搜索词及相应的词频增量数据,更新相应已存储的本地词频数据表。S4. Each other storage service point updates the corresponding stored local word frequency data table according to the received search words and corresponding word frequency increment data.
本步骤中,每个其他存储服务点执行对本地词频数据表进行更新的操作。每个存储服务点存储并同步其他存储服务点的榜单列表,有助于规避部分存储服务点丢失数据带来的词频数据不准确。In this step, each other storage service point performs an operation of updating the local word frequency data table. Each storage service point stores and synchronizes the ranking lists of other storage service points, which helps to avoid inaccurate word frequency data caused by data loss in some storage service points.
S5、目标榜单服务进程从所述目标存储服务点中获取本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表。S5. The target ranking service process acquires a local word frequency data table, a local ranking list, and a ranking list related to each other storage service point from the target storage service point.
本步骤中,当目标榜单服务进程达到生成榜单列表的条件(如与上一次操作的间隔时长达到设定时长)时,执行从目标存储服务点中获取本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表的操作。In this step, when the target ranking service process reaches the conditions for generating the ranking list (for example, the interval from the previous operation reaches the set duration), execute the acquisition of the local word frequency data table and the local ranking list from the target storage service point. As well as the operation of each other storage service point related leaderboard list.
S6、目标榜单服务进程根据本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表生成当前榜单列表。S6. The target list service process generates the current list list according to the local word frequency data table, the local list list, and the list list related to each other storage service point.
本步骤中,目标榜单服务进程通过借鉴全局数据来生成当前榜单列表,有效保证了当前榜单列表的数据一致性和准确性。In this step, the target ranking service process generates the current ranking list by referring to the global data, which effectively ensures the data consistency and accuracy of the current ranking list.
S7、目标榜单服务进程将所述当前榜单列表发送给目标存储服务点。S7. The target ranking service process sends the current ranking list to the target storage service point.
本步骤中,通过将当前榜单列表发送给目标存储服务点,实现了目标存储服务点中所存储本地榜单列表的更新。In this step, by sending the current ranking list to the target storage service point, the update of the local ranking list stored in the target storage service point is achieved.
S8、目标存储服务点将所述当前榜单列表作为新的本地榜单列表替换已存储的本地榜单列表,并将新的本地榜单列表同步给每个其他存储服务点,以使每个其他存储服务点将接收的榜单列表作为新的本地榜单列表替换已存储的本地榜单列表。S8. The target storage service point replaces the stored local list of ranking lists with the current list of ranking lists as a new local ranking list, and synchronizes the new local ranking list to each other storage service point, so that each Other storage service points replace the stored local ranking list with the received ranking list as a new local ranking list.
本步骤中,将目标存储服务点中更新后的本地榜单列表同步到其他存储服务点,有效地实现了分布式架构下全网数据信息的有效同步。In this step, the updated local ranking list in the target storage service point is synchronized to other storage service points, which effectively realizes the effective synchronization of data information of the whole network under the distributed architecture.
实施例三Embodiment 3
图4是本申请实施例三提供的一种服务器的硬件结构示意图,该服务器设置为作为上述实施例一所提供榜单服务系统中的存储服务点,和/或,上述实施例一所提供榜单服务系统中的榜单服务进程的执行主体。可以包括:处理器和 存储装置。存储装置中存储有至少一条指令,且指令由所述处理器执行,使得所述服务器可以执行上述实施例二所提供榜单生成方法中存储服务点和/或榜单服务进程对应的操作步骤。FIG. 4 is a schematic diagram of the hardware structure of a server provided in Embodiment 3 of the present application. The server is set as a storage service point in the ranking service system provided by Embodiment 1 above, and/or the ranking list provided by Embodiment 1 above. The execution body of the ranking service process in a single-service system. May include: a processor and a storage device. At least one instruction is stored in the storage device, and the instruction is executed by the processor, so that the server can execute the operation steps corresponding to the storage service point and/or the list service process in the list generation method provided in the second embodiment.
参照图4,该服务器可以包括:处理器30、存储装置31、显示屏32、输入装置33、输出装置34以及通信装置35。该服务器中处理器30的数量可以是一个或者多个,图4中以一个处理器30为例。该服务器中存储装置31的数量可以是一个或者多个,图4中以一个存储装置31为例。该服务器的处理器30、存储装置31、显示屏32、输入装置33、输出装置34以及通信装置35可以通过总线或者其他方式连接,图4中以通过总线连接为例。4 , the server may include: a processor 30 , a storage device 31 , a display screen 32 , an input device 33 , an output device 34 and a communication device 35 . The number of processors 30 in the server may be one or more, and one processor 30 is taken as an example in FIG. 4 . The number of storage devices 31 in the server may be one or more, and one storage device 31 is taken as an example in FIG. 4 . The processor 30 , storage device 31 , display screen 32 , input device 33 , output device 34 and communication device 35 of the server may be connected by a bus or other means, and the connection by a bus is taken as an example in FIG. 4 .
实施例中,处理器30执行存储装置31中存储的一个或多个程序时,执行下述,如:榜单服务进程从所对应存储服务点中获取本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表;榜单服务进程根据获取的本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表生成当前榜单列表,并发送给对应的存储服务点,以作为新的本地榜单列表。In the embodiment, when the processor 30 executes one or more programs stored in the storage device 31, it executes the following, for example, the ranking service process obtains the local word frequency data table, the local ranking list and each list from the corresponding storage service point. a list of ranking lists related to other storage service points; the ranking service process generates the current ranking list according to the obtained local word frequency data table, the local ranking list and the ranking list related to each other storage service point, and sends it to the corresponding Store the service point as a new local leaderboard list.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请实施例提供的。示例性的,上述实施例所述的包括:榜单服务进程从所对应存储服务点中获取本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表;榜单服务进程根据获取的本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表生成当前榜单列表,并发送给对应的存储服务点,以作为新的本地榜单列表。The embodiments of the present application further provide a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute the computer-executable instructions provided by the embodiments of the present application when executed by a computer processor. Exemplarily, the above-mentioned embodiments include: the ranking service process obtains the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the corresponding storage service point; the ranking service process According to the obtained local word frequency data table, local ranking list, and ranking list related to each other storage service point, the current ranking list is generated, and sent to the corresponding storage service point as a new local ranking list.
对于服务器及存储介质实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the server and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, refer to the partial descriptions of the method embodiments.

Claims (16)

  1. 一种榜单服务系统,包括:至少一个榜单服务进程以及多个存储服务点,其中,不同存储服务点之间存在通信连接,且每个存储服务点与所述每个存储服务点关联的榜单服务进程之间存在通信连接;A ranking service system, comprising: at least one ranking service process and a plurality of storage service points, wherein there is a communication connection between different storage service points, and each storage service point is associated with each storage service point. There is a communication connection between the ranking service processes;
    每个存储服务点,设置为存储与所述每个存储服务点关联的榜单服务进程相关的本地词频数据表以及本地榜单列表;以及存储与每个其他存储服务点相关的榜单列表;Each storage service point is set to store a local word frequency data table and a local list of ranking lists related to the ranking service process associated with each storage service point; and store a ranking list related to each other storage service point;
    每个榜单服务进程,设置为根据从所述每个榜单服务进程对应的存储服务点中获取的本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表,生成当前榜单列表,并将所述当前榜单列表发送给所述每个榜单服务进程对应的存储服务点以使所述每个榜单服务进程对应的存储服务点采用所述当前榜单列表替换原有的本地榜单列表,将所述当前榜单列表作为新的本地榜单列表存储。Each ranking service process is configured to generate a list based on the local word frequency data table, the local ranking list and the ranking list related to each other storage service point obtained from the storage service point corresponding to each ranking service process. The current ranking list, and sending the current ranking list to the storage service point corresponding to each ranking service process, so that the storage service point corresponding to each ranking service process adopts the current ranking list Replacing the original local ranking list, and storing the current ranking list as a new local ranking list.
  2. 根据权利要求1所述的系统,还包括:搜索服务进程;The system of claim 1, further comprising: a search service process;
    所述搜索服务进程,设置为响应用户终端发送的搜索请求,并在确定所述搜索请求所关联搜索词的搜索结果为非空的情况下,将所述搜索结果发送给所述搜索服务进程关联的一目标榜单服务进程。The search service process is set to respond to the search request sent by the user terminal, and when it is determined that the search result of the search term associated with the search request is not empty, send the search result to the search service process for association A target list service process.
  3. 根据权利要求2所述的系统,其中,The system of claim 2, wherein,
    所述目标榜单服务进程,还设置为在接收到所述搜索结果后,确定所述搜索结果中的所述搜索词的词频增量数据,并将所述搜索词及所述词频增量数据反馈给所述目标榜单服务进程对应的存储服务点。The target list service process is further configured to, after receiving the search results, determine the word frequency increment data of the search words in the search results, and combine the search words and the word frequency increment data. Feedback to the storage service point corresponding to the target list service process.
  4. 根据权利要求3所述的系统,其中,The system of claim 3, wherein,
    所述目标榜单服务进程对应的存储服务点,还设置为根据接收到的所述搜索词及所述词频增量数据更新本存储服务点已存储的本地词频数据表,并将所述搜索词及所述词频增量数据同步给每个其他存储服务点;The storage service point corresponding to the target list service process is further configured to update the local word frequency data table stored in the storage service point according to the received search words and the word frequency increment data, and to store the search words. And the word frequency increment data is synchronized to each other storage service point;
    所述每个其他存储服务点,设置为根据接收到的所述搜索词及所述词频增量数据更新本存储服务点已存储的本地词频数据表。Each of the other storage service points is configured to update the local word frequency data table stored in the storage service point according to the received search words and the word frequency increment data.
  5. 根据权利要求4所述的系统,其中,所述目标榜单服务进程对应的存储服务点以及所述每个其他存储服务点,均设置为通过如下方式根据接收到的所述搜索词及所述词频增量数据更新本存储服务点已存储的本地词频数据表:The system according to claim 4, wherein the storage service point corresponding to the target list service process and each of the other storage service points are set to be based on the received search term and the received search term in the following manner. The incremental word frequency data update the local word frequency data table stored in this storage service point:
    在接收到所述搜索词及所述词频增量数据后,从本存储服务点已存储的本地词频数据表中查找是否存在所述搜索词;After receiving the search word and the word frequency increment data, find out whether the search word exists in the local word frequency data table that has been stored in the storage service point;
    响应于本存储服务点已存储的本地词频数据表中存在所述搜索词,确定所 述搜索词在所述本地词频数据表中对应的当前词频数据,并将所述当前词频数据与所述词频增量数据之和作为新的当前词频数据关联存储;In response to the existence of the search word in the local word frequency data table stored in the storage service point, determine the current word frequency data corresponding to the search word in the local word frequency data table, and compare the current word frequency data with the word frequency The sum of the incremental data is stored as the new current word frequency data;
    若响应于本存储服务点已存储的本地词频数据表中不存在所述搜索词,将所述搜索词添加至所述本地词频数据表,并将所述词频增量数据作为所述搜索词的当前词频数据关联存储在所述本地词频数据表中。If the search word does not exist in the local word frequency data table that has been stored in this storage service point, add the search word to the local word frequency data table, and use the word frequency increment data as the The current word frequency data is associated and stored in the local word frequency data table.
  6. 根据权利要求1所述的系统,其中,The system of claim 1, wherein,
    所述每个榜单服务进程,还设置为在接收到用户终端发送的榜单展示请求的情况下,将从所述每个榜单服务进程对应的存储服务点中获取的本地榜单列表反馈给所述用户终端,以通过所述用户终端进行榜单列表展示。Each ranking service process is further configured to, in the case of receiving a ranking display request sent by the user terminal, feedback the local ranking list obtained from the storage service point corresponding to each ranking service process. to the user terminal, so that the list of lists can be displayed through the user terminal.
  7. 根据权利要求1所述的系统,其中,The system of claim 1, wherein,
    所述每个榜单服务进程对应的存储服务点,还设置为接收所述每个榜单服务进程发送的所述当前榜单列表并将所述当前榜单列表作为新的本地榜单列表替换已存储的本地榜单列表,同时,将新的本地榜单列表同步发送给每个其他存储服务点,以使所述每个其他存储服务点将同步接收的榜单列表作为新的本地榜单列表替换已存储的本地榜单列表。The storage service point corresponding to each ranking service process is further configured to receive the current ranking list sent by each ranking service process and replace the current ranking list as a new local ranking list. The stored local ranking list, and at the same time, the new local ranking list is sent to each other storage service point synchronously, so that each other storage service point uses the synchronously received ranking list as a new local ranking list The list replaces the stored list of local leaderboards.
  8. 根据权利要求1-7中任一项所述的系统,其中,所述每个榜单服务进程,包括:The system according to any one of claims 1-7, wherein, each ranking service process includes:
    信息获取子进程,设置为获取所述每个榜单服务进程对应的存储服务点中当前存储的本地词频数据表、本地榜单列表以及每个其他存储服务点反馈的榜单列表;The information acquisition subprocess is set to acquire the local word frequency data table, the local list list and the list of lists fed back by each other storage service point currently stored in the storage service point corresponding to each list service process;
    词频统计子进程,设置为根据所述本地榜单列表、每个其他存储服务点反馈的榜单列表,对所述本地词频数据表中的多个搜索词的当前词频数据进行更新,获得更新后的本地词频数据表;The word frequency statistics sub-process is set to update the current word frequency data of multiple search words in the local word frequency data table according to the local ranking list and the ranking list fed back by each other storage service point, and obtain the updated word frequency data. The local word frequency data table of ;
    榜单生成子进程,设置为根据所述更新后的本地词频数据表,生成当前榜单列表;The list generation subprocess is set to generate the current list list according to the updated local word frequency data table;
    信息发送子进程,设置为将生成的所述当前榜单列表发送给所述每个榜单服务进程对应的存储服务点,以使所述每个榜单服务进程对应的存储服务点采用所述当前榜单列表替换已存储的本地榜单列表。The information sending sub-process is configured to send the generated current ranking list to the storage service point corresponding to each ranking service process, so that the storage service point corresponding to each ranking service process adopts the The current leaderboard list replaces the stored local leaderboard list.
  9. 根据权利要求7所述的系统,其中,所述词频统计子进程,设置为:The system according to claim 7, wherein, the word frequency statistics subprocess is set to:
    将所述本地榜单列表以及每个其他存储服务点反馈的榜单列表均作为待比对榜单列表,得到多个待比对榜单列表;Taking the local ranking list and the ranking list fed back by each other storage service point as the list of ranking lists to be compared, and obtaining a plurality of list of ranking lists to be compared;
    选取所述本地词频数据表中的所述多个搜索词中的一个搜索词作为当前目 标,并将所述当前目标在所述本地词频数据表中对应的当前词频数据作为一个候选词频数据;Choose a search term in the multiple search terms in the local word frequency data table as the current target, and use the current word frequency data corresponding to the current target in the local word frequency data table as a candidate word frequency data;
    针对每个待比对榜单列表,在所述每个待比对榜单列表中存在所述当前目标的情况下,将所述当前目标在所述每个待比对榜单列表中对应的词频数据作为一个候选词频数据;For each list of lists to be compared, in the case where the current target exists in the list of lists to be compared, the current target corresponding to the list of lists to be compared is set to Word frequency data as a candidate word frequency data;
    将所述当前目标所对应候选词频数据中的最大值作为所述当前目标的当前词频数据,并将所述当前目标与所述当前词频数据关联缓存至设定的中间缓存表,返回执行当前目标的选取操作,直至所述本地词频数据表中的所述多个搜索词均被选中;The maximum value in the candidate word frequency data corresponding to the current target is taken as the current word frequency data of the current target, and the current target and the current word frequency data are associated and cached to the set intermediate cache table, and return to execute the current target selection operation, until the multiple search words in the local word frequency data table are selected;
    基于所述中间缓存表中缓存的所述多个搜索词及所述多个搜索词对应的当前词频数据更新所述本地词频数据表。The local word frequency data table is updated based on the plurality of search words cached in the intermediate cache table and the current word frequency data corresponding to the plurality of search words.
  10. 根据权利要求7所述的系统,其中,所述榜单生成子进程,设置为:The system according to claim 7, wherein, the list generation sub-process is set to:
    按照更新后的本地词频数据表中的所述多个搜索词的当前词频数据由大到小的顺序排列所述多个搜索词;Arrange the plurality of search words in descending order according to the current word frequency data of the plurality of search words in the updated local word frequency data table;
    将排列后排名序号小于或等于设定阈值的搜索词记为热搜词,并基于所述热搜词及所述热搜词对应的当前词频数据形成当前榜单列表。A search term whose ranking sequence number after arrangement is less than or equal to the set threshold is recorded as a hot search term, and a current ranking list is formed based on the hot search term and the current word frequency data corresponding to the hot search term.
  11. 一种榜单生成方法,由权利要求1-10中任一项所述的榜单服务系统执行,包括:A method for generating a list, executed by the list service system according to any one of claims 1-10, comprising:
    榜单服务进程从所述榜单服务进程对应的存储服务点中获取本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表;The ranking service process obtains the local word frequency data table, the local ranking list and the ranking list related to each other storage service point from the storage service point corresponding to the ranking service process;
    所述榜单服务进程根据获取的本地词频数据表、本地榜单列表以及每个其他存储服务点相关的榜单列表生成当前榜单列表,并将所述当前榜单列表发送给所述榜单服务进程对应的存储服务点,以使所述榜单服务进程对应的存储服务点采用所述当前榜单列表替换所述榜单服务进程对应的存储服务点上原有的本地榜单列表。The ranking service process generates a current ranking list according to the obtained local word frequency data table, the local ranking list and the ranking list related to each other storage service point, and sends the current ranking list to the ranking list The storage service point corresponding to the service process, so that the storage service point corresponding to the ranking service process uses the current ranking list to replace the original local ranking list on the storage service point corresponding to the ranking service process.
  12. 根据权利要求11所述的方法,还包括:The method of claim 11, further comprising:
    搜索服务进程响应用户终端发送的搜索请求,并在确定所述搜索请求所关联搜索词的搜索结果为非空的情况下,将所述搜索结果发送给所述搜索服务进程关联的一目标榜单服务进程;The search service process responds to the search request sent by the user terminal, and sends the search result to a target list associated with the search service process under the condition that the search result of the search term associated with the search request is determined to be non-empty service process;
    所述目标榜单服务进程在接收到所述搜索结果后,确定所述搜索结果中的所述搜索词的词频增量数据,并将所述搜索词及所述词频增量数据反馈给所述目标榜单服务进程对应的存储服务点。After receiving the search result, the target ranking service process determines the word frequency increment data of the search word in the search result, and feeds back the search word and the word frequency increment data to the The storage service point corresponding to the target list service process.
  13. 根据权利要求12所述的方法,还包括:The method of claim 12, further comprising:
    所述目标榜单服务进程对应的存储服务点根据接收到的所述搜索词及所述词频增量数据更新本存储服务点已存储的本地词频数据表,并将所述搜索词及所述词频增量数据同步给每个其他存储服务点;The storage service point corresponding to the target ranking service process updates the local word frequency data table stored in the storage service point according to the received search words and the word frequency increment data, and converts the search words and the word frequency. Incremental data synchronization to each other storage service point;
    所述每个其他存储服务点根据所述目标榜单服务进程对应的存储服务点反馈的所述搜索词及所述词频增量数据,更新本存储服务点已存储的本地词频数据表。Each other storage service point updates the local word frequency data table stored in the storage service point according to the search word and the word frequency increment data fed back by the storage service point corresponding to the target ranking service process.
  14. 根据权利要求11-13中任一项所述的方法,还包括:The method of any of claims 11-13, further comprising:
    所述榜单服务进程在接收到用户终端发送的榜单展示请求的情况下,将从所述榜单服务进程对应的存储服务点中获取的本地榜单列表反馈给所述用户终端,以通过所述用户终端进行榜单列表展示。When the ranking service process receives the ranking display request sent by the user terminal, it feeds back the local ranking list obtained from the storage service point corresponding to the ranking service process to the user terminal, so as to pass The user terminal displays a list of lists.
  15. 一种服务器,设置为作为以下至少之一:权利要求1-10中任一项所述榜单服务系统中的存储服务点,权利要求1-10中任一项所述榜单服务系统中的榜单服务进程的执行终端,所述服务器包括:A server, set as at least one of the following: a storage service point in the ranking service system according to any one of claims 1-10, a server in the ranking service system according to any one of claims 1-10. The execution terminal of the ranking service process, the server includes:
    至少一个处理器;at least one processor;
    存储装置,设置为存储至少一个程序;a storage device configured to store at least one program;
    所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器设置为执行权利要求11-14中任一项所述的榜单生成方法。The at least one program is executed by the at least one processor, such that the at least one processor is configured to perform the method for generating a list of any one of claims 11-14.
  16. 一种计算机可读存储介质,存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求11-14中任一项所述的榜单生成方法。A computer-readable storage medium storing a computer program, wherein when the program is executed by a processor, the method for generating a list according to any one of claims 11-14 is implemented.
PCT/CN2021/108218 2020-08-14 2021-07-23 Ranking list service system, ranking list generation method, server, and storage medium WO2022033291A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010820861.X 2020-08-14
CN202010820861.XA CN112000885B (en) 2020-08-14 2020-08-14 List service system, list generation method, server and storage medium

Publications (1)

Publication Number Publication Date
WO2022033291A1 true WO2022033291A1 (en) 2022-02-17

Family

ID=73473216

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/108218 WO2022033291A1 (en) 2020-08-14 2021-07-23 Ranking list service system, ranking list generation method, server, and storage medium

Country Status (2)

Country Link
CN (1) CN112000885B (en)
WO (1) WO2022033291A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000885B (en) * 2020-08-14 2022-09-30 广州市百果园信息技术有限公司 List service system, list generation method, server and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160350442A1 (en) * 2015-05-29 2016-12-01 Salesforce.Com, Inc. Database searching using a graph of nodes and edges formed using log node pairs
CN106302829A (en) * 2016-10-26 2017-01-04 腾讯音乐娱乐(深圳)有限公司 A kind of information access method, device and server
CN107220287A (en) * 2017-04-24 2017-09-29 东软集团股份有限公司 For the index managing method of log query, device, storage medium and equipment
CN110096637A (en) * 2019-04-16 2019-08-06 广州虎牙信息科技有限公司 Method, apparatus, storage medium and the terminal device that more lists generate
CN110291515A (en) * 2017-02-13 2019-09-27 微软技术许可有限责任公司 Distributed index search in computing system
CN110377611A (en) * 2019-07-12 2019-10-25 北京三快在线科技有限公司 Integrate the method and device of ranking
CN112000885A (en) * 2020-08-14 2020-11-27 广州市百果园信息技术有限公司 List service system, list generation method, server and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9489447B2 (en) * 2014-02-21 2016-11-08 Google Inc. Scalable current leaderboard using delta-encoded updates
CN107341268B (en) * 2017-07-25 2020-06-05 北京奇艺世纪科技有限公司 Hot searching ranking method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160350442A1 (en) * 2015-05-29 2016-12-01 Salesforce.Com, Inc. Database searching using a graph of nodes and edges formed using log node pairs
CN106302829A (en) * 2016-10-26 2017-01-04 腾讯音乐娱乐(深圳)有限公司 A kind of information access method, device and server
CN110291515A (en) * 2017-02-13 2019-09-27 微软技术许可有限责任公司 Distributed index search in computing system
CN107220287A (en) * 2017-04-24 2017-09-29 东软集团股份有限公司 For the index managing method of log query, device, storage medium and equipment
CN110096637A (en) * 2019-04-16 2019-08-06 广州虎牙信息科技有限公司 Method, apparatus, storage medium and the terminal device that more lists generate
CN110377611A (en) * 2019-07-12 2019-10-25 北京三快在线科技有限公司 Integrate the method and device of ranking
CN112000885A (en) * 2020-08-14 2020-11-27 广州市百果园信息技术有限公司 List service system, list generation method, server and storage medium

Also Published As

Publication number Publication date
CN112000885B (en) 2022-09-30
CN112000885A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
EP3886399A1 (en) Method for invoking server and proxy server
EP3490224B1 (en) Data synchronization method and system
CN109800239B (en) Redis-based distributed architecture data sharing method
CA3065118C (en) Distributed searching and index updating method and system, servers, and computer devices
KR101750429B1 (en) Document editing system and method for collaborative editing
CN105791344B (en) Method, system, load balancer and the service bus device of gray scale issuing service processing
JP2001273219A (en) Picture sharing system
EP2434758A1 (en) Distributed node video monitoring system and management method thereof
GB2391663A (en) Establishing Coordinated Consumption of a Streamed Media Object by Multiple Devices
EP3817338B1 (en) Method and apparatus for acquiring rpc member information, electronic device and storage medium
CN104468163A (en) Method and device for disaster tolerant network construction, and disaster tolerant network
CN105791401A (en) Data interaction method and system of client and server in online and offline states
WO2022033291A1 (en) Ranking list service system, ranking list generation method, server, and storage medium
US10091288B2 (en) Ordered execution of tasks
CN114553867A (en) Cloud-native cross-cloud network monitoring method and device and storage medium
CN114625566A (en) Data disaster tolerance method and device, electronic equipment and storage medium
CN109560903A (en) A kind of vehicle-mounted command communications system of complete disaster tolerance
CN115190103A (en) Service grid-based service domain name resolution method, device and equipment
WO2019062156A1 (en) Storage procedure executing method and device, and storage medium
CN100423514C (en) Data synchronization method in distributed equipment according to address resolution protocol
JP2010152591A (en) Database system, data processing method, and data processing program
CN114679349B (en) Data communication method and device
CN110083653A (en) A kind of operating method of order data, device, computer equipment and storage medium
JP2002261800A (en) Service quality dynamic control device and control method
CN111600958B (en) Service discovery system, service data management method, server, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21855344

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21855344

Country of ref document: EP

Kind code of ref document: A1