A method, device, equipment and storage medium for obtaining sorting information
By setting up corresponding modules in the edge server, updating and feedback sorting information, the problem of untimely sorting information in cross-server activities is solved, and the timely update and accurate display of sorting information is achieved.
Patent Information
- Application Number
- CN202111268281.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-10-29
AI Technical Summary
During cross-server activities, multiple server users cannot accurately and timely display cross-server activity sorting information, resulting in users being unable to adjust ranking attributes in time.
By setting up a requesting user identification module, a sorting information generation module and a sorting message feedback module in the edge server, in response to the sorting information acquisition request, obtaining the requesting user identification, updating the current sorting information based on the user attribute update information obtained from the log server, and generating a sorting information feedback message to send to the client.
It improves the sorting speed and the generation speed of information feedback, so that the sorting information can be updated in a timely manner, and solves the problem of untimely sorting information in cross-server activities.
Smart Images

Figure CN114011085B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a method, device, equipment and storage medium for obtaining sorting information. Background Art
[0002] Currently, most games have various game activities, and rewards can be distributed according to the player's ranking in the game leaderboard. For users, those who follow the activities generally hope to obtain the current ranking information in time through the displayed leaderboard to decide whether to adjust the ranking attributes. In cross-server activities, there are many users on multiple servers, and it is impossible to accurately and timely display the cross-server activity ranking information. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, equipment and storage medium for obtaining sorting information, so as to realize smooth display of chat information.
[0004] In a first aspect, an embodiment of the present invention provides a method for obtaining ranking information, which is applied to an edge server, and the method includes:
[0005] In response to the detected ranking information acquisition request, acquiring a requesting user identifier corresponding to the ranking information acquisition request;
[0006] Determine the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information of the changed attribute obtained from the log server, and the current sorting information is obtained from the database server;
[0007] A sorting information feedback message is generated based on the target sorting information, and the sorting information feedback message is sent to the client.
[0008] In a second aspect, an embodiment of the present invention further provides a method for obtaining ranking information, which is applied to a client and includes:
[0009] In response to the detected ranking information acquisition event, acquiring a requesting user identifier corresponding to the ranking information acquisition event;
[0010] Generate a sorting information acquisition request based on the requesting user identifier, and send the sorting information acquisition request to the edge server;
[0011] Receive the sorting information feedback message returned by the edge server, and generate a sorting information display interface according to the sorting information feedback message.
[0012] In a third aspect, an embodiment of the present invention further provides a ranking information acquisition device, which is configured on an edge server and includes:
[0013] A requesting user identification module, used to obtain a requesting user identification corresponding to the sorting information obtaining request in response to the detected sorting information obtaining request;
[0014] A sorting information generating module, used to determine the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information of the changed attribute obtained from the log server, and the current sorting information is obtained from the database server;
[0015] The sorting message feedback module is used to generate a sorting information feedback message based on the target sorting information and send the sorting information feedback message to the client.
[0016] In a fourth aspect, an embodiment of the present invention further provides a ranking information acquisition device, which is configured on a client and includes:
[0017] A requesting user identification module, used to obtain a requesting user identification corresponding to the sorting information acquisition event in response to the detected sorting information acquisition event;
[0018] A sorting information request module, used to generate a sorting information acquisition request based on a requesting user identifier, and send the sorting information acquisition request to an edge server;
[0019] The sorting information display module is used to receive the sorting information feedback message returned by the edge server and generate a sorting information display interface according to the sorting information feedback message.
[0020] In a fifth aspect, an embodiment of the present invention further provides a computer device, the device comprising:
[0021] one or more processors;
[0022] A storage device for storing one or more programs;
[0023] When one or more programs are executed by one or more processors, the one or more processors implement the method for obtaining sorting information provided by any embodiment of the present invention.
[0024] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for obtaining sorting information as provided in any embodiment of the present invention.
[0025] The method for obtaining sorting information provided by the embodiment of the present invention obtains the requesting user identifier corresponding to the sorting information obtaining request by responding to the detected sorting information obtaining request; determines the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user change attribute information of the attribute change obtained from the log server, and the current sorting information is obtained from the database server; generates a sorting information feedback message based on the target sorting information, and sends the sorting information feedback message to the client. The edge server sorts according to the user attribute update information and the sorting information obtained from the database server, thereby improving the sorting speed, thereby improving the generation speed of the sorting information feedback message, and enabling the sorting information to be updated in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flowchart of a method for obtaining sorting information provided in Embodiment 1 of the present invention;
[0027] Figure 2 It is a flowchart of a method for obtaining sorting information provided by Embodiment 2 of the present invention;
[0028] Figure 3 is a structural diagram of a device for obtaining ranking information provided by Embodiment 3 of the present invention;
[0029] Figure 4 It is a structural diagram of a device for obtaining ranking information provided by a fourth embodiment of the present invention;
[0030] Figure 5 It is a structural diagram of a computer device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0031] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0032] Embodiment 1
[0033] Figure 1It is a flowchart of a method for obtaining ranking information provided in the first embodiment of the present invention. This embodiment can be applied to the situation when responding to a ranking information acquisition request initiated by a client and sending a ranking information feedback message for display, and is particularly applicable to the situation when responding to a ranking information acquisition request initiated by a game application on a mobile terminal. The method can be executed by a ranking information acquisition device, and the ranking information acquisition device can be implemented in software and / or hardware. For example, the ranking information acquisition device can be configured in a computer device, such as an edge server. Figure 1 As shown, the method includes:
[0034] S110 . In response to the detected ranking information acquisition request, acquire a requesting user identifier corresponding to the ranking information acquisition request.
[0035] In order to solve the technical problem in the prior art that when a user obtains sorting information through a client, it is necessary to interact with the central server, data server, and gateway server multiple times before obtaining the sorting information, in this embodiment, an edge server is set up for generating and feeding back sorting information. In order to better solve the above technical problems and improve the display speed of message information, the central processor of the edge server provided in the embodiment of the present invention needs to have a high-intensity computing power of more than 64 cores for quickly sorting according to user attribute information and generating sorting information feedback messages.
[0036] It is understandable that in order to enable the interaction between the client and the edge server regarding sorting information, it is necessary to predefine the method class, and in order to be able to sort the user attributes in the edge server, it is necessary to predefine the method class for executing the sorting. Exemplarily, a rankCalcMgr can be implemented in the edge server for communicating with the game center business server, as well as edge computing rankings. Furthermore, in order to further improve the sorting speed, an in-memory database is provided in the edge server, and the sorting operation is performed through the in-memory database. Therefore, it is necessary to implement a rankDB for managing a local server in memory form. At the same time, in order to be able to obtain the changed user attribute information in a timely manner, it is also necessary to implement a rankDataMgr for communicating with the front end once every 0.1 seconds.
[0037] In this embodiment, the client directly sends a ranking information acquisition request to the edge server. The ranking information acquisition request can be a request initiated by the user through the client for displaying ranking information. For example, when the user enters the ranking system through the client, the ranking information acquisition request is triggered. After the edge server receives the ranking information acquisition request initiated by the client, it parses the ranking information acquisition request, obtains the requesting user identifier corresponding to the ranking information acquisition request, and performs ranking based on the requesting user identifier.
[0038] S120. Determine target sorting information corresponding to the requesting user identifier according to current sorting information and user attribute update information, wherein the user attribute update information is user attribute change information of attributes changed obtained from the log server, and the current sorting information is obtained from the database server.
[0039] Generally speaking, a database server can only store information about users of this server, and cannot obtain change information about users of other servers in real time. Therefore, in this embodiment, it is necessary to obtain user attribute update information from the log server corresponding to the database server. Generally speaking, multiple database servers correspond to one log server, and cross-server activities are cross-server activities between game servers corresponding to multiple database servers corresponding to the log server.
[0040] When user attributes are updated, the log server will perform corresponding updates, but the log server updates the attribute information of the user's changes. In other words, the user attribute update information provided by the log server is the changed attribute information of the user whose attributes have changed. For example, assuming that the user attributes include food production, troop combat power, and town power score, and the user only updates the food production attribute information, the user attribute update information provided by the log server only contains the changed food production attribute information. Therefore, the user attribute update information obtained from the log server occupies little memory, and the edge server does not need to set up a memory database to achieve the update of the sorting.
[0041] In this embodiment, the edge server can periodically obtain user attribute update information from the log server and periodically obtain sorting information from the database server to improve the accuracy of the generated sorting information. During cross-server activities, in order to simplify the complexity of the sorting operation and ensure the accuracy of the sorting information, the edge server can periodically request the latest M data changes from the log server at intervals of 50ms. The sorting information of local players is obtained from the database server at intervals of 1s. After detecting the request for obtaining sorting information, the current sorting is updated according to the obtained user attribute update information, and the sorting operation is performed. Among them, the current sorting information is periodically obtained by the edge server from the database server to ensure the accuracy of the sorting information.
[0042] It should be noted that the edge server can update all the current sorting information according to the user attribute update information obtained from the database server to obtain the target sorting information. However, the amount of calculation required for all updates is large and time-consuming. Considering that users are mainly concerned about their own sorting data, such as whether their own ranking is rising or falling, in order to quickly provide users with the data they are concerned about, only users with a set interval in the user ranking can be sorted, so that users can quickly understand their own ranking situation.
[0043] In one embodiment of the present invention, the target sorting information corresponding to the requesting user identifier is determined based on the current sorting information and the user attribute update information, including: performing the following operations through the memory database: updating the current sorting information based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and determining the target sorting information corresponding to the requesting user identifier based on the updated sorting information. Preferably, the sorting operation is performed through the memory database in the edge server to speed up the sorting speed. Optionally, part of the user attribute update information can be selected based on the requesting user identifier to update the current sorting information. It can be understood that the selected part of the attribute update information is the attribute update information of the user corresponding to the sorting number associated with the sorting number corresponding to the requesting user identifier.
[0044] In one embodiment, the current sorting information is updated based on the user attribute update information and the requesting user identifier to obtain the updated sorting information, including: determining the current sorting sequence number of the requesting user identifier in the current sorting information; determining the associated attribute update information associated with the current sorting sequence number in the user attribute update information; and updating the current sorting information based on the associated attribute update information to obtain the updated sorting information. Optionally, the attribute information required for sorting can be determined based on the current sorting sequence number of the requesting user identifier in the current sorting information. Among them, the attribute information required for sorting is part of the information in the user attribute update information. Exemplarily, assuming that the current sorting sequence number of the requesting user identifier in the current sorting information is 10, then based on sequence number 10, part of the information is selected from the user attribute update information as the associated attribute update information, and re-sorting is performed according to the associated attribute information.
[0045] Optionally, determining the associated attribute update information associated with the current sorting sequence number in the user attribute update information includes: determining the updated sorting sequence number and the updated user identifier corresponding to the updated sorting sequence number according to the current sorting sequence number; and using the user attribute update information corresponding to the updated user identifier as the associated attribute update information. Generally speaking, the ranking of a user in the ranking list is affected by the users before and after its own ranking. Therefore, the updated sorting sequence number is determined according to the current sorting sequence number, the user representation corresponding to the updated sorting sequence number is used as the updated user identifier, and the attribute update information of the updated user identifier in the user attribute update information is used as the associated attribute update information. Exemplarily, assuming that the current sorting sequence number is 10, based on the current sorting sequence number 10, the updated sorting sequence number 9 and the updated sorting sequence number 11 are determined, then the user identifier 1 corresponding to the updated sorting sequence number 9 and the user identifier 2 corresponding to the updated sorting sequence number 10 are determined, and then the attribute update information corresponding to the user identifier 1 and the attribute update information corresponding to the user identifier 2 in the user attribute update information are used as the associated attribute update information.
[0046] Based on the above scheme, the update sorting number is determined according to the current sorting number, including: taking the sorting number that is within the set interval threshold from the current sorting number as the update sorting number. Optionally, the interval threshold can be set according to the actual server requirements, and the update sorting number is determined based on the pre-set interval threshold. Assuming that the interval threshold is set to N and the current sorting number is M, the update sorting number is an integer between MN and M+N.
[0047] In one embodiment of the present invention, the current sorting information is updated based on the associated attribute update information to obtain the updated sorting information, including: determining the updated sorting sequence number corresponding to the updated user identifier based on the associated attribute update information corresponding to the updated user identifier for each updated user identifier in turn; and updating the current sorting information based on the updated sorting sequence number of each updated user identifier to obtain the updated sorting information. After determining the updated user identifier, the updated attribute value of the updated user is calculated for each updated user identifier in turn, and the updated sorting sequence number of the updated user is determined based on the updated attribute value. The updated sorting information can be obtained by updating the current sorting information based on the updated sorting sequence number.
[0048] S130: Generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client.
[0049] In this embodiment, the edge server completes the sorting of users associated with the requesting user identifier, generates a sorting information feedback message, and sends the sorting information feedback message to the client, so that the client can receive the sorting information feedback message after one interaction with the edge server, thereby speeding up the display speed of the sorting information and improving the accuracy of the displayed sorting information.
[0050] It should be noted that when a user initiates a ranking information acquisition request, the edge server may perform more than one ranking and send ranking information feedback messages. To ensure the accuracy of the ranking information display, when the user client is always in the ranking system interface, the edge server will periodically perform the ranking operation and generate and send ranking information feedback messages. Among them, the timing frequency can be set according to actual needs. For example, the edge server can perform sorting every 0.1s and send the ranking information feedback message to the client.
[0051] The method for obtaining sorting information provided by the embodiment of the present invention obtains the requesting user identifier corresponding to the sorting information obtaining request by responding to the detected sorting information obtaining request; determines the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the complete attribute information of the user whose attributes have changed obtained from the database server; generates a sorting information feedback message based on the target sorting information, and sends the sorting information feedback message to the client. The sorting information obtained from the database server is updated and sorted by the edge server according to the user attribute update information obtained from the log server, thereby improving the sorting speed during cross-server activities, thereby improving the generation speed of the sorting information feedback message, so that the sorting information can be updated in time.
[0052] Embodiment 2
[0053] Figure 2 1 is a flow chart of a method for obtaining ranking information provided in Embodiment 2 of the present invention. This embodiment can be applied to the case where ranking information is displayed to a user in response to a detected ranking information obtaining event, and is particularly applicable to the case where ranking information is obtained in response to a detected ranking information obtaining event in a game application. The method can be executed by a ranking information obtaining device, which can be implemented in software and / or hardware, for example, the ranking information obtaining device can be configured in a computer device, such as a client.
[0054] like Figure 2 As shown, the method includes:
[0055] S210: In response to a detected ranking information acquisition event, acquire a requesting user identifier corresponding to the ranking information acquisition event.
[0056] In this embodiment, the client detects a ranking information acquisition event initiated by a user, generates a ranking information acquisition request according to the ranking information acquisition event, and sends the ranking information acquisition request to the edge server to obtain the message display content corresponding to the ranking information acquisition event from the edge server.
[0057] Exemplarily, a user may trigger a ranking information acquisition event by entering a ranking system of an application in a client. After detecting the ranking information acquisition event triggered by the user, the client determines the user identifier as the requesting user identifier.
[0058] S220: Generate a sorting information acquisition request based on the requesting user identifier, and send the sorting information acquisition request to the edge server.
[0059] After the client determines the requesting user ID, it generates a sorting information acquisition request based on the requesting user ID and the sorting information acquisition event, and sends the sorting information acquisition request to the edge server. Specifically, the sorting information acquisition request can be sent to the edge server by calling a setting interface through a predefined class.
[0060] S230: Receive a sorting information feedback message returned by the edge server, and generate a sorting information display interface according to the sorting information feedback message.
[0061] After receiving the sorting information acquisition request, the edge server performs a sorting operation, and generates a sorting information feedback message based on the sorting result and sends it to the client. The client receives the sorting information feedback message returned by the edge server, and generates a sorting information display interface based on the sorting information feedback message for display. Among them, the specific method of the edge server performing the sorting operation and generating the sorting information feedback message based on the sorting result can refer to the sorting information acquisition method provided in Example 1, which will not be repeated here.
[0062] The method for obtaining sorting information provided by the embodiment of the present invention obtains the requesting user identifier corresponding to the sorting information obtaining event by responding to the detected sorting information obtaining event; generates a sorting information obtaining request based on the requesting user identifier, and sends the sorting information obtaining request to the edge server; receives the sorting information feedback message returned by the edge server, and generates a sorting information display interface according to the sorting information feedback message. The user can obtain the sorting information through one interaction between the client and the edge server, and the sorting speed is accelerated by performing the sorting operation in the edge server, so that the sorting information can be updated in time.
[0063] Embodiment 3
[0064] Figure 3 is a schematic diagram of the structure of a ranking information acquisition device provided in Embodiment 3 of the present invention. The ranking information acquisition device can be implemented in software and / or hardware, for example, the ranking information acquisition device can be configured in a computer device, such as an edge server. Figure 3 As shown, the device includes a requesting user identification module 310, a sorting information generating module 320 and a sorting message feedback module 330, wherein:
[0065] A requesting user identification module 310 is used to obtain a requesting user identification corresponding to the sorting information obtaining request in response to the detected sorting information obtaining request;
[0066] The sorting information generating module 320 is used to determine the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information of the changed attribute obtained from the log server, and the current sorting information is obtained from the database server;
[0067] The sorting message feedback module 330 is used to generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client.
[0068] The sorting information acquisition device provided by the embodiment of the present invention responds to the detected sorting information acquisition request through the request user identification module configured in the edge server, and obtains the request user identification corresponding to the sorting information acquisition request; the sorting information generation module determines the target sorting information corresponding to the request user identification according to the current sorting information and the user attribute update information, wherein the user attribute update information is obtained from the database server; the sorting message feedback module generates a sorting information feedback message based on the target sorting information, and sends the sorting information feedback message to the client. The edge server updates and sorts the sorting information obtained from the database server according to the user attribute update information obtained from the log server, thereby improving the sorting speed during cross-server activities, thereby improving the generation speed of the sorting information feedback message, so that the sorting information can be updated in time.
[0069] Optionally, based on the above solution, the sorting information generating module 320 is specifically used for:
[0070] The current sorting information is updated based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and the target sorting information corresponding to the requesting user identifier is determined according to the updated sorting information.
[0071] Optionally, based on the above solution, the sorting information generating module 320 is specifically used for:
[0072] Determine the current sorting sequence number of the requesting user identifier in the current sorting information;
[0073] Determine the associated attribute update information associated with the current sorting sequence number in the user attribute update information;
[0074] The current sorting information is updated based on the associated attribute update information to obtain updated sorting information.
[0075] Optionally, based on the above solution, the sorting information generating module 320 is specifically used for:
[0076] Determine the update sorting sequence number and the update user identifier corresponding to the update sorting sequence number according to the current sorting sequence number;
[0077] The user attribute update information corresponding to the updated user identifier is used as the associated attribute update information.
[0078] Optionally, based on the above solution, the sorting information generating module 320 is specifically used for:
[0079] The sorting sequence number whose interval with the current sorting sequence number is within the set interval threshold is used as the updated sorting sequence number.
[0080] Optionally, based on the above solution, the sorting information generating module 320 is specifically used for:
[0081] For each updating user identifier in turn, determining an update sorting sequence number corresponding to the updating user identifier based on the associated attribute update information corresponding to the updating user identifier;
[0082] The current sorting information is updated based on the update sorting sequence number of each update user identifier to obtain the updated sorting information.
[0083] The ranking information acquisition device provided in the embodiment of the present invention can execute the ranking information acquisition method provided in the first embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0084] Embodiment 4
[0085] Figure 4 1 is a schematic diagram of the structure of a ranking information acquisition device provided by Embodiment 4 of the present invention. The ranking information acquisition device can be implemented in software and / or hardware. For example, the ranking information acquisition device can be configured in a computer device, such as a client. Figure 4 As shown, the device includes a requesting user identification module 410, a sorting information requesting module 420 and a sorting information displaying module 430, wherein:
[0086] A requesting user identification module 410 is used to obtain a requesting user identification corresponding to the sorting information obtaining event in response to the detected sorting information obtaining event;
[0087] A sorting information request module 420, configured to generate a sorting information acquisition request based on a requesting user identifier, and send the sorting information acquisition request to an edge server;
[0088] The sorting information display module 430 is used to receive the sorting information feedback message returned by the edge server and generate a sorting information display interface according to the sorting information feedback message.
[0089] The sorting information acquisition device provided by the embodiment of the present invention responds to the detected sorting information acquisition event through the request user identification module configured in the client, and obtains the request user identification corresponding to the sorting information acquisition event; the sorting information request module generates a sorting information acquisition request based on the request user identification, and sends the sorting information acquisition request to the edge server; the sorting information display module receives the sorting information feedback message returned by the edge server, and generates a sorting information display interface according to the sorting information feedback message. The user can obtain the sorting information through one interaction between the client and the edge server, and the sorting speed is accelerated by performing the sorting operation in the edge server, so that the sorting information can be updated in time.
[0090] The ranking information acquisition device provided in the embodiment of the present invention can execute the ranking information acquisition method provided in the second embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0091] Embodiment 5
[0092] Figure 5 It is a structural diagram of a computer device provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary computer device 512 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The computer device 512 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0093] like Figure 5 As shown, the computer device 512 is in the form of a general-purpose computing device. The components of the computer device 512 may include, but are not limited to: one or more processors 516, a system memory 528, and a bus 518 that connects various system components (including the system memory 528 and the processor 516).
[0094] Bus 518 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a local bus to processor 516, or a bus structure using any of a variety of bus architectures. These architectures include, by way of example, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0095] The computer device 512 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 512, including volatile and non-volatile media, removable and non-removable media.
[0096] System memory 528 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 530 and / or cache memory 532. Computer device 512 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage device 534 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 518 via one or more data medium interfaces. The memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0097] A program / utility 540 having a set (at least one) of program modules 542 may be stored, for example, in the memory 528, such program modules 542 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 542 generally perform the functions and / or methods of the embodiments described herein.
[0098] The computer device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 512, and / or communicate with any device that enables the computer device 512 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 522. In addition, the computer device 512 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) via a network adapter 520. As shown, the network adapter 520 communicates with other modules of the computer device 512 via a bus 518. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0099] The processor 516 executes various functional applications and data processing by running the program stored in the system memory 528, for example, implementing the method for obtaining the sorting information provided in the first embodiment of the present invention, which includes:
[0100] In response to the detected ranking information acquisition request, acquiring a requesting user identifier corresponding to the ranking information acquisition request;
[0101] Determine the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information of the changed attribute obtained from the log server, and the current sorting information is obtained from the database server;
[0102] Generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client;
[0103] And / or, implementing the method for obtaining ranking information provided in the second embodiment of the present invention, the method comprising:
[0104] In response to the detected ranking information acquisition event, acquiring a requesting user identifier corresponding to the ranking information acquisition event;
[0105] Generate a sorting information acquisition request based on the requesting user identifier, and send the sorting information acquisition request to the edge server;
[0106] Receive the sorting information feedback message returned by the edge server, and generate a sorting information display interface according to the sorting information feedback message.
[0107] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the sorting information acquisition method provided by any embodiment of the present invention.
[0108] Embodiment 6
[0109] Embodiment 6 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for obtaining sorting information provided in Embodiment 1 of the present invention is implemented. The method includes:
[0110] In response to the detected ranking information acquisition request, acquiring a requesting user identifier corresponding to the ranking information acquisition request;
[0111] Determine the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information of the changed attribute obtained from the log server, and the current sorting information is obtained from the database server;
[0112] Generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client;
[0113] And / or, implementing the method for obtaining ranking information provided in the second embodiment of the present invention, the method comprising:
[0114] In response to the detected ranking information acquisition event, acquiring a requesting user identifier corresponding to the ranking information acquisition event;
[0115] Generate a sorting information acquisition request based on the requesting user identifier, and send the sorting information acquisition request to the edge server;
[0116] Receive the sorting information feedback message returned by the edge server, and generate a sorting information display interface according to the sorting information feedback message.
[0117] Of course, the computer-readable storage medium provided by an embodiment of the present invention stores a computer program which is not limited to the above method operations, but can also execute related operations of the sorting information acquisition method provided by any embodiment of the present invention.
[0118] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0119] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0120] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0121] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0122] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for obtaining ranking information, characterized in that: Applied to an edge server, the method comprises: In response to the detected ranking information acquisition request, acquiring a requesting user identifier corresponding to the ranking information acquisition request; Determine the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information of the changed attribute obtained from the log server, and the current sorting information is obtained by the edge server from the database server at regular intervals; Generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client; The determining, according to the current sorting information and the user attribute update information, the target sorting information corresponding to the requesting user identifier comprises: The current sorting information is updated based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and target sorting information corresponding to the requesting user identifier is determined according to the updated sorting information.
2. The method according to claim 1, characterized in that The updating of the current sorting information based on the user attribute update information and the requesting user identifier to obtain updated sorting information includes: Determine the current sorting sequence number of the requesting user identifier in the current sorting information; Determine associated attribute update information associated with the current sorting sequence number in the user attribute update information; The current sorting information is updated based on the associated attribute update information to obtain the updated sorting information.
3. The method according to claim 2, characterized in that The determining the associated attribute update information associated with the current sorting sequence number in the user attribute update information includes: Determine an update sorting number and an update user identifier corresponding to the update sorting number according to the current sorting number; The user attribute update information corresponding to the updated user identifier is used as the associated attribute update information.
4. The method according to claim 3, characterized in that The step of determining an updated sorting sequence number according to the current sorting sequence number includes: The sorting number that is within a set interval threshold from the current sorting number is used as the updated sorting number.
5. The method according to claim 2, characterized in that: The updating of the current sorting information based on the associated attribute update information to obtain the updated sorting information includes: For each updating user identifier in turn, determining an update sorting sequence number corresponding to the updating user identifier based on the associated attribute update information corresponding to the updating user identifier; The current sorting information is updated based on the update sorting sequence number of each update user identifier to obtain the update sorting information.
6. A method for obtaining ranking information, characterized in that: Applied to the client, including: In response to the detected ranking information acquisition event, acquiring a requesting user identifier corresponding to the ranking information acquisition event; Generate a sorting information acquisition request based on the requesting user identifier, and send the sorting information acquisition request to an edge server; Receive a sorting information feedback message returned by the edge server, and generate a sorting information display interface according to the sorting information feedback message; The receiving the sorting information feedback message returned by the edge server includes: After receiving the sorting information acquisition request, the edge server determines the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information of the changed attribute obtained from the log server, and the current sorting information is obtained by the edge server from the database server at regular intervals; Generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client; The determining, according to the current sorting information and the user attribute update information, the target sorting information corresponding to the requesting user identifier comprises: The current sorting information is updated based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and target sorting information corresponding to the requesting user identifier is determined according to the updated sorting information.
7. A device for obtaining ranking information, characterized in that: Configured on the edge server, including: A requesting user identification module, used to obtain a requesting user identification corresponding to the sorting information acquisition request in response to the detected sorting information acquisition request; A sorting information generating module, used to determine the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information obtained from the log server, and the current sorting information is obtained by the edge server from the database server at regular intervals; A sorting message feedback module, used to generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client; The sorting information generating module is specifically used for: The current sorting information is updated based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and target sorting information corresponding to the requesting user identifier is determined according to the updated sorting information.
8. A device for obtaining ranking information, characterized in that: Configured on the client, including: A requesting user identification module, configured to obtain a requesting user identification corresponding to a detected sorting information acquisition event in response to the detected sorting information acquisition event; A sorting information request module, configured to generate a sorting information acquisition request based on the requesting user identifier, and send the sorting information acquisition request to an edge server; A sorting information display module, used to receive the sorting information feedback message returned by the edge server, and generate a sorting information display interface according to the sorting information feedback message; The receiving the sorting information feedback message returned by the edge server includes: After receiving the sorting information acquisition request, the edge server determines the target sorting information corresponding to the requesting user identifier according to the current sorting information and the user attribute update information, wherein the user attribute update information is the user attribute change information of the changed attribute obtained from the log server, and the current sorting information is obtained by the edge server from the database server at regular intervals; Generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client; The determining, according to the current sorting information and the user attribute update information, the target sorting information corresponding to the requesting user identifier comprises: The current sorting information is updated based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and target sorting information corresponding to the requesting user identifier is determined according to the updated sorting information.
9. A computer device, characterized in that: The device comprises: one or more processors; A storage device for storing one or more programs; When one or more programs are executed by one or more processors, the one or more processors implement the method for obtaining sorting information as described in any one of claims 1 to 5; and / or implement the method for obtaining sorting information as described in claim 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the method for obtaining ranking information as described in any one of claims 1 to 5; and / or, it implements the method for obtaining ranking information as described in claim 6.
Citation Information
Patent Citations
Ranking list generation method and system, server and storage medium
CN111569435A
Data processing method and device, computer equipment and medium
CN112165482A
Ranking list processing method and device, equipment and storage medium
CN112765499A