User interconnection degree information processing method, query method, system and device

By acquiring and updating user interaction behavior log data, the problem of excessively long query time in traditional technologies is solved, and real-time consistency and fast query of user relationship information are achieved.

CN117290368BActive Publication Date: 2025-12-12TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311202688.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-18
Publication Date
2025-12-12
Estimated Expiration
2043-09-18

AI Technical Summary

Technical Problem

Traditional technologies cannot quickly query the relationship information between all users on the site and a specific user, and cannot process massive amounts of random user interaction data in real time, resulting in excessively long query times and an inability to guarantee the consistency of relationship information between users.

Method used

By acquiring interactive behavior flow data, retrieving correlation metadata from the correlation information database based on user identifiers, updating unprocessed interactive behavior data, and writing the updated correlation metadata into the database, the consistency of correlation information is ensured. A correlation information set for each user is designed to support fast querying.

Benefits of technology

It enables quick querying of the relationship information between all users on the site and a specified user while ensuring the consistency of the relationship information, and supports real-time processing and fast querying of massive amounts of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117290368B_ABST
    Figure CN117290368B_ABST
Patent Text Reader

Abstract

The application relates to a user correlation degree information processing method, a query method, a system, a device and a storage medium, and relates to the technical fields of Internet application and big data. The application can ensure the consistency of user correlation degree information and has the ability to quickly query the correlation degree information of a user and other users on a website. The method comprises the following steps: obtaining correlation degree meta-information between a first user and a second user from a correlation degree information library according to the user identifiers of the first user and the second user in interactive behavior flow data, the meta-information comprising processed flow identifiers between the first user and the second user and correlation degree information between the first user and the second user; judging whether the flow belongs to unprocessed flow according to the processed flow identifiers; updating the correlation degree meta-information according to the interactive behavior flow data; writing the updated correlation degree meta-information into the correlation degree information library; and updating the correlation degree information set of the first user and the second user in the correlation degree information library according to the updated correlation degree meta-information in the case of successful writing.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of Internet application and big data, and in particular to a user interconnection degree information processing method, a method for querying user interconnection degree information, a user interconnection degree information processing system, a computer device and a storage medium. BACKGROUND

[0002] Internet applications include various application programs with certain social attributes. In the user interaction scenarios of these application programs, a large number of interaction behaviors may be generated by all users of a website every day, such as playing works of other users, watching performances of other users in virtual scenes, and giving likes, lighting, and virtual gifts to performances of other users, sending messages, chatting, and the like. Among them, the interconnection degree information between users can be evaluated by counting the interaction behaviors of users, and the interconnection degree information can be used to measure the closeness between users.

[0003] The user interconnection degree information processing method provided by the traditional technology mainly focuses on the calculation of the interconnection degree information between users, and is oriented to a limited number of users based on strong social relationships. For the interconnection degree information between all users of a website, such as a large amount of random interaction behavior data between strangers (randomly playing works of users, and randomly matching in a song room), real-time dynamic processing cannot be performed, fast querying of the interconnection degree information between all users and a specified user cannot be achieved, and to ensure the consistency of the interconnection degree information between users, the interconnection degree information between users is discrete in terms of storage structure, and only one piece of interconnection degree information corresponds to each pair of users. If the interconnection degree information of a specified user is to be queried, the query can only be performed within a limited range (such as the range of users who have established a social relationship). If this method is applied to all users of a website, the discrete interconnection degree information needs to be scanned in full, which may result in a long query time. Therefore, the user interconnection degree information processing method provided by the traditional technology cannot be used to quickly query the interconnection degree information between all users of a website and a specified user while ensuring the consistency of the interconnection degree information between users. SUMMARY

[0004] Therefore, it is necessary to provide a user interconnection degree information processing method, a method for querying user interconnection degree information, a user interconnection degree information processing system, a computer device and a storage medium to solve the above technical problems.

[0005] In a first aspect, the present application provides a user interconnection degree information processing method. The method comprises:

[0006] obtaining interaction behavior stream data;

[0007] According to the user identifier of the first user and the second user in the interaction behavior flow data, the association degree meta information between the first user and the second user is obtained from the association degree information base; the association degree meta information includes the processed flow identifier between the first user and the second user and the association degree information between the first user and the second user;

[0008] According to the processed flow identifier, if the interaction behavior flow data belongs to unprocessed interaction behavior flow data, the association degree meta information is updated according to the interaction behavior flow data;

[0009] The updated association degree meta information is written into the association degree information base;

[0010] If the writing of the updated association degree meta information is successful, the association degree information set of the first user and the association degree information set of the second user in the association degree information base are updated according to the updated association degree meta information.

[0011] In a second aspect, the application provides a user association degree information processing system. The system comprises:

[0012] Message queue servers of different interaction types, an association degree information processing server and an association degree information base; wherein,

[0013] The message queue servers are configured to receive the interaction behavior flow data reported by the user terminal; the association degree information base is configured to store the association degree meta information between users and the association degree information set of each user;

[0014] The association degree information processing server is configured to receive the interaction behavior flow data from the message queue servers, and process the association degree meta information between the users and the association degree information set of each user in the association degree information base according to the user association degree information processing method.

[0015] In a third aspect, the application provides a method for querying user association degree information, applied to a user terminal. The method comprises:

[0016] Obtaining a current user identifier;

[0017] According to the current user identifier, a corresponding association degree information query request is sent to an association degree information processing server;

[0018] receiving the inter-user association degree information returned by the association degree information processing server; the inter-user association degree information comprises association degree information between the current user and an associated user; the associated user is a user having an association degree with the current user; the inter-user association degree information is obtained by the association degree information processing server from an association degree information set of the current user in an association degree information library; the association degree information processing server is configured to process the association degree meta information between users in the association degree information library and the association degree information set of each user according to the inter-user association degree information processing method.

[0019] In a fourth aspect, the present application further provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0020] obtaining interactive behavior flow data; obtaining association degree meta information between a first user and a second user from an association degree information library according to user identifiers of the first user and the second user in the interactive behavior flow data; the association degree meta information comprises processed flow identifiers between the first user and the second user and association degree information between the first user and the second user; when the interactive behavior flow data belongs to unprocessed interactive behavior flow data according to the processed flow identifiers, updating the association degree meta information according to the interactive behavior flow data; writing the updated association degree meta information into the association degree information library; when the writing of the updated association degree meta information is successful, updating an association degree information set of the first user and an association degree information set of the second user in the association degree information library according to the updated association degree meta information.

[0021] In a fifth aspect, the present application further provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0022] obtaining a current user identifier; sending an association degree information query request corresponding to the current user identifier to an association degree information processing server according to the current user identifier; receiving inter-user association degree information returned by the association degree information processing server; the inter-user association degree information comprises association degree information between the current user and an associated user; the associated user is a user having an association degree with the current user; the inter-user association degree information is obtained by the association degree information processing server from an association degree information set of the current user in an association degree information library; the association degree information processing server is configured to process the association degree meta information between users in the association degree information library and the association degree information set of each user according to the inter-user association degree information processing method.

[0023] In a sixth aspect, the present application also provides a computer readable storage medium. The computer readable storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the following steps:

[0024] obtaining interaction behavior flow data; obtaining, from the association degree information base, association degree meta information between the first user and the second user according to user identifiers of the first user and the second user in the interaction behavior flow data; the association degree meta information comprises processed flow identifiers between the first user and the second user and association degree information between the first user and the second user; when the interaction behavior flow data is determined to be unprocessed interaction behavior flow data according to the processed flow identifiers, updating the association degree meta information according to the interaction behavior flow data; writing the updated association degree meta information into the association degree information base; when the writing of the updated association degree meta information is successful, updating the association degree information set of the first user and the association degree information set of the second user in the association degree information base according to the updated association degree meta information.

[0025] In a seventh aspect, the present application also provides a computer readable storage medium. The computer readable storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the following steps:

[0026] obtaining a current user identifier; sending, to an association degree information processing server, an association degree information query request corresponding to the current user identifier according to the current user identifier; receiving user-to-user association degree information returned by the association degree information processing server; the user-to-user association degree information comprises association degree information between the current user and an associated user; the associated user is a user having an association degree with the current user; the user-to-user association degree information is obtained by the association degree information processing server from an association degree information set of the current user in an association degree information base; the association degree information processing server is configured to process association degree meta information between users and association degree information sets of the users in the association degree information base according to the user-to-user association degree information processing method.

[0027] The user interrelation degree information processing method, the query method, the system, the device and the storage medium, obtain the interactive behavior flow data, obtain the interrelation degree meta information between the first user and the second user from the interrelation degree information base according to the user identifier of the first user and the second user in the interactive behavior flow data, the interrelation degree meta information includes the processed flow identifier between the first and second users and the interrelation degree information between the first and second users, if the interactive behavior flow data is determined to be unprocessed according to the processed flow identifier, update the interrelation degree meta information according to the interactive behavior flow data, write the updated interrelation degree meta information into the interrelation degree information base, if the writing of the updated interrelation degree meta information is successful, update the interrelation degree information set of the first user and the interrelation degree information set of the second user in the interrelation degree information base according to the updated interrelation degree meta information. The method stores the interrelation degree information between users in the interrelation degree information base based on the interrelation degree meta information, and designs and stores the interrelation degree information set of each user containing the interrelation degree information between the user and other users in the station. For the continuously generated interactive behavior flow data, if the interactive behavior flow data is determined to be unprocessed according to the interrelation degree meta information in the interrelation degree information base, the interrelation degree meta information is updated according to the interactive behavior flow data, and if the updated interrelation degree meta information is successfully written into the interrelation degree information base, the interrelation degree information set of the corresponding user is updated according to the updated interrelation degree meta information, so as to ensure the consistency of the interrelation degree information, and the ability of quickly querying the interrelation degree information between the user and other users in the station is also provided, so that the interrelation degree information between the user and the specified user can be quickly queried under the premise of ensuring the consistency of the interrelation degree information between the users. BRIEF DESCRIPTION OF DRAWINGS

[0028] Figure 1 The application environment diagram of the related method in the embodiment of the present application is shown in the figure;

[0029] Figure 2 The flowchart of the user interrelation degree information processing method in the embodiment of the present application is shown in the figure;

[0030] Figure 3 The flowchart of the processed flow judgment in the embodiment of the present application is shown in the figure;

[0031] Figure 4 The flowchart of the user interrelation degree information processing method in the embodiment of the present application is shown in the figure;

[0032] Figure 5 The flowchart of the user interrelation degree information synchronization step in the embodiment of the present application is shown in the figure;

[0033] Figure 6 The structure diagram of the user interrelation degree information processing system in the embodiment of the present application is shown in the figure;

[0034] Figure 7A flowchart of a method for querying inter-user correlation degree information in an embodiment of the present application is shown in FIG. 1.

[0035] Figure 8 A schematic diagram of a display interface of inter-user correlation degree information in an embodiment of the present application is shown in FIG. 4.

[0036] Figure 9 An internal structure diagram of a computer device in an embodiment of the present application is shown in FIG. 5.

[0037] Figure 10 An internal structure diagram of a computer device in another embodiment of the present application is shown in FIG. 6. DETAILED DESCRIPTION

[0038] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0040] The inter-user correlation degree information processing method and the method for querying inter-user correlation degree information provided by the embodiments of the present application can be applied to, for example, Figure 1The application environment shown. The application environment can include: a user terminal, a message queue server, an association information processing server, and an association information library, wherein the user terminal can be a user terminal installed with a K-song application program or other Internet application program with certain social attributes, the message queue server can adopt a Kafka message queue service cluster, the interactive behavior log data generated by the user terminal can be reported to the message queue server, and the message queue server can send the interactive behavior log data to the association information processing server, wherein different message queue servers can serve interactive behavior log data of different interaction types, such as message queue server 1 can serve interactive behavior log data of the interaction type of gift consumption, message queue server 2 can serve interactive behavior log data of the interaction type of song room stay, and message queue server 3 can serve interactive behavior log data of the interaction type of work playing, and the like, the association information library is used to store association meta-information between users and association information sets of each user, the association information library can adopt a CKV+ database, which is a high-performance NoSQL KV database, compatible with Redis, Memcached, and ASN protocols, with the advantages of high performance, low latency, and low cost, capable of addressing massive data access, storage cost sensitivity, latency sensitivity, and the like, supporting CAS read-write operations to ensure the atomicity of data operations, wherein CAS: compare and swap, is a mechanism to solve the performance loss caused by using locks in the case of multi-thread parallelism, and the CAS operation includes three operands: memory location V, expected original value A, and new value B, if the value of the memory location matches the expected original value, the processor will automatically update the value of the location to the new value, otherwise the processor will not do anything. The association information processing server can process the interactive behavior log data received from each message queue server, and execute the user association information processing method of the present application to process the association meta-information between users and the association information sets of each user in the association information library.

[0041] In the application environment, the user terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, or the like; the server can be implemented by an independent server or a server cluster composed of multiple servers.

[0042] The following is based on Figure 1 The application environment shown, combined with various embodiments and corresponding drawings, the user association information processing method and the method for querying the user association information of the present application are described in detail.

[0043] In one embodiment, as Figure 2As shown, a user interconnection degree information processing method is provided, which can be executed by the interconnection degree information processing server as shown in the specification, and can include the following steps: Figure 1 As shown, a user interconnection degree information processing method is provided, which can be executed by the interconnection degree information processing server as shown in the specification, and can include the following steps:

[0044] In step S201, interaction behavior log data is acquired.

[0045] In this application, the user interconnection degree information is information used to represent the interconnection degree between two users, and can be used to represent the intimacy between two users. The user interconnection degree information can be a numerical value or a score between two users, and the intimacy can be used to reflect the intimacy between two users in multi-dimensional interaction behavior log data. The intimacy can be judged by the score between two users. Thus, in this step, the interconnection degree information processing server can acquire the interaction behavior log data generated by the user terminal in real time, and update the interconnection degree information between the corresponding two users.

[0046] In one embodiment, the interaction behavior log data acquired in step S201 can include:

[0047] Subscribing to the interaction behavior log data of each message queue server serving different interaction types; receiving the interaction behavior log data of the corresponding interaction type from each message queue server.

[0048] In this embodiment, in combination with Figure 1 , the interaction behavior log data generated by the user terminal in real time can be reported to the message queue server serving the interaction type according to the interaction type by the user terminal, and the interconnection degree information processing server. Thus, after the interaction behavior log data generated by the user terminal in real time is reported to the message queue server, the interconnection degree information processing server can receive the interaction behavior log data from the message queue server of the corresponding interaction type. For example, the K-song application, the first user plays a work recently sung by the second user in the K-song application on the user terminal, and the user terminal can generate the interaction behavior log data of the interaction type of work playing and report it to the corresponding message queue server 3. In the case that the interconnection degree information processing server subscribes to the interaction behavior log data of the message queue server 3, the interconnection degree information processing server can receive the real-time generated interaction behavior log data from the message queue server 3. Thus, by deploying the message queue server serving various interaction types, the interconnection degree information processing server can access and process massive multi-source interaction behavior log data in real time, and can provide technical implementation support for the fine real-time calculation of the user interconnection degree information in combination with the rich interconnection degree rule design.

[0049] Step S202, according to the user identification of the first user and the second user in the interactive behavior log data, obtaining the association degree meta information between the first user and the second user from the association degree information base.

[0050] Specifically, the interactive behavior log data generated by the user terminal can record the user identification of the first user, the user identification of the second user, the interaction value, the log identification and the like, wherein the interaction value refers to a value that can be used to measure / calculate the association degree according to the corresponding rule, such as the play time of the work, and the log identification refers to an identification for uniquely identifying the interactive behavior log data. In this step, the association degree information processing server parses the interactive behavior log data to obtain the user identification of the first user and the user identification of the second user in the interactive behavior log data, and then obtains the association degree meta information between the first user and the second user from the association degree information base according to the user identification of the first user and the user identification of the second user. Specifically, as shown in Figure 1 The association degree meta information belongs to the data structure designed in the application, which is a pair of user uniquely corresponding association degree meta information, such as the association degree meta information uniquely corresponding to the first user and the second user. The association degree meta information can store the log identification of the processed interactive behavior log data between the first user and the second user (denoted as processed log identification), the association degree information between the first user and the second user, the association relationship type (such as the intimate relationship type) between the first user and the second user, and the association degree task progress of the day and the like, wherein the processed interactive behavior log data log identification can include the processed interactive behavior log data log identification of the latest preset number (such as 200) between the first user and the second user. Specifically, the association degree information processing server obtains the association degree meta information between the first user and the second user from the association degree information base according to the user identification of the first user and the user identification of the second user, and loads the association degree meta information in the memory.

[0051] Step S203, if the processed log identification indicates that the interactive behavior log data belongs to the unprocessed interactive behavior log data, updating the association degree meta information according to the interactive behavior log data.

[0052] This step is mainly that the association degree information processing server judges that the real-time generated interactive behavior log data received belongs to the unprocessed interactive behavior log data according to the processed log identification in the obtained association degree meta information uniquely corresponding to the first user and the second user, and updates the cached association degree meta information in the memory according to the interactive behavior log data, so as to ensure the idempotency of the message queue when consuming and processing across systems.

[0053] In some embodiments, as Figure 3As shown, in the case that it is judged according to the processed flow identifier that the interactive behavior flow data belongs to the unprocessed interactive behavior flow data in step S203, before updating the correlation degree meta information according to the interactive behavior flow data, the method can further include:

[0054] In step S301, the flow identifier in the interactive behavior flow data is acquired.

[0055] In step S3021, if the flow identifier does not exist in the processed flow identifier, it is judged that the interactive behavior flow data belongs to the unprocessed interactive behavior flow data.

[0056] In step S3022, if the flow identifier exists in the processed flow identifier, the interactive behavior flow data is discarded.

[0057] In the embodiment, the correlation degree information processing server can obtain the processed flow identifier from the correlation degree meta information corresponding to the first user and the second user uniquely acquired from the correlation degree information database, and the correlation degree information processing server can also parse the interactive behavior flow data to obtain the flow identifier therein, and judge whether the interactive behavior flow data belongs to the unprocessed interactive behavior flow data according to the processed flow identifier and the flow identifier. Specifically, if the flow identifier already exists in the processed flow identifier, the correlation degree information processing server discards the interactive behavior flow data, and if the flow identifier does not exist in the processed flow identifier, it is judged that the interactive behavior flow data belongs to the unprocessed interactive behavior flow data, and the correlation degree meta information cached in the memory can be updated according to the interactive behavior flow data.

[0058] In some embodiments, the step S203 of updating the correlation degree meta information according to the interactive behavior flow data can specifically include:

[0059] The flow identifier is added to the processed flow identifier in the correlation degree meta information, and the correlation degree update information between the first user and the second user is calculated according to the interactive behavior flow data, and the correlation degree information between the first user and the second user in the correlation degree meta information is updated according to the correlation degree update information.

[0060] In this embodiment, after the correlation degree information processing server determines that the interactive behavior log data belongs to the unprocessed interactive behavior log data, on the one hand, the log identifier is added to the processed log identifiers in the correlation degree meta information cached in the memory, thereby ensuring the idempotency of the message queue when being consumed and processed across systems, and on the other hand, the correlation degree information processing server can also calculate the correlation degree update information between the first user and the second user according to the interactive behavior log data and a preset correlation degree information calculation rule, and update the correlation degree update information to the correlation degree information between the first user and the second user in the correlation degree meta information cached in the memory. For example, the interactive behavior log data can include information that the first user played a work sung by the second user for 5 minutes, the preset correlation degree information calculation rule can include an association degree that the cumulative score of playing a work is 1 every 5 minutes, and then the correlation degree information processing server can obtain the correlation degree update information that the score of the association degree is 1. The correlation degree update information can be updated by the correlation degree information processing server to the score of the association degree between the first user and the second user in the correlation degree meta information cached in the memory, so as to update the correlation degree information between the first user and the second user while ensuring idempotency. In addition, in specific implementation, the Internet application program can also involve business functions such as daily correlation degree promotion tasks, and the corresponding task progress can also be updated by the correlation degree information processing server according to the interactive behavior log data to the correlation degree meta information cached in the memory.

[0061] Step S204, write the updated correlation degree meta information into the correlation degree information library.

[0062] Specifically, the correlation degree information processing server can write the updated correlation degree meta information cached in the memory into the correlation degree information library through the API of the CAS write operation provided by the correlation degree information library. Combined with the CAS feature, the problem of log data retransmission caused by system failure in a short time is avoided, and the idempotency of the same log data processed by the correlation degree information processing server is ensured.

[0063] Step S205, in the case that the updated correlation degree meta information is written successfully, update the correlation degree information set of the first user and the correlation degree information set of the second user in the correlation degree information library according to the updated correlation degree meta information.

[0064] Specifically, in the case that the CAS write operation is successful, i.e. the updated association degree element information is written successfully, the association degree information processing server can update the association degree information set of the first user and the association degree information set of the second user in the association degree information library according to the updated association degree element information, wherein the association degree information set of the first user in the association degree information library contains the association degree information between the first user and all other users in the station, and the association degree information set of the second user in the association degree information library contains the association degree information between the second user and all other users in the station. The association degree information processing server can also report the update behavior of the association degree information to the data bank. Thus, by designing and storing the association degree information set containing the association degree information between each user and all other users in the station, and through the asynchronous update operation, the final consistency of the association degree information is ensured, and the ability to quickly query the association degree information between the user and all other users in the station is also possessed.

[0065] The user association degree information processing method of the embodiment acquires the interactive behavior log data, acquires the association degree element information between the first user and the second user from the association degree information library according to the user identifiers of the first user and the second user in the interactive behavior log data, the association degree element information including the processed log identifier between the first and second users and the association degree information between the first and second users, updates the association degree element information according to the interactive behavior log data in the case that the interactive behavior log data belongs to the unprocessed interactive behavior log data according to the processed log identifier, writes the updated association degree element information into the association degree information library, and updates the association degree information set of the first user and the association degree information set of the second user in the association degree information library according to the updated association degree element information in the case that the updated association degree element information is written successfully. The method stores the association degree information between users in the association degree information library based on the association degree element information, and also designs and stores the association degree information set containing the association degree information between each user and all other users in the station. For the continuously generated interactive behavior log data, the association degree element information in the association degree information library is used to determine whether the interactive behavior belongs to the unprocessed interactive behavior, the association degree element information is updated according to the interactive behavior log data, and the association degree information set of the corresponding user is updated according to the updated association degree element information in the case that the updated association degree element information is successfully written into the association degree information library, so as to ensure the final consistency of the association degree information, and the ability to quickly query the association degree information between the user and all other users in the station is also possessed, thereby enabling the association degree information between users to be ensured to be consistent, and the association degree information between the user and the specified user in the station to be quickly queried.

[0066] In one embodiment, after the step of writing the updated association degree element information into the association degree information library in step S204, the method can further include:

[0067] In a case where the writing of the updated association degree meta-information fails, the method returns to the step of obtaining the association degree meta-information between the first user and the second user from the association degree information library according to the user identifiers of the first user and the second user in the interactive behavior log data.

[0068] Specifically, after the association degree information processing server writes the updated association degree meta-information into the association degree information library, in a case where the writing is successful, the association degree information set of the corresponding user is asynchronously updated. In the embodiment, in a case where the writing fails, the association degree information processing server needs to perform a failure retry, i.e., returns to the step of obtaining the association degree meta-information between the first user and the second user from the association degree information library according to the user identifiers of the first user and the second user in the interactive behavior log data, i.e., returns to step S202 to perform again, i.e., the association degree information processing server obtains the association degree meta-information from the association degree information library, judges whether it is unprocessed log data, updates the association degree meta-information, writes the association degree meta-information into the association degree information library, and so on, thereby ensuring that the association degree information between each pair of users is accurately updated according to the interactive behaviors.

[0069] In one embodiment, the method for processing association degree information between users can further include the following steps:

[0070] When a preset service period is reached, the association degree meta-information corresponding to each user in the association degree information library is scanned, and the association degree information set of each user in the association degree information library is updated according to the association degree meta-information corresponding to each user.

[0071] In the embodiment, in addition to the asynchronous updating of the association degree information set of the corresponding user in the association degree information library in a case where the writing of the updated association degree meta-information is successful, the association degree information processing server can also perform a global operation on the association degree information library in a specific service period to update the association degree information set of all users. Specifically, the preset service period can be a daily service low peak period, the association degree information processing server can globally scan the association degree meta-information corresponding to all users in the association degree information library, and update the association degree information set of all users in the association degree information library according to the association degree meta-information corresponding to each user, thereby eliminating the problem of inaccurate association degree information caused by asynchronous updating failure that can occur during daily dynamic updating of the association degree information.

[0072] Reference Figure 4With a specific embodiment, the user interrelation degree information processing method provided in the present application is described. The user terminal can report the interactive behavior log data to the message queue server, the association information processing server can subscribe to the interactive behavior log data, and the interactive behavior log data is consumed in real time from the message queue server. According to the user identifier of the first user and the second user in the obtained interactive behavior log data, the association information processing server obtains the interrelation degree meta information between the first user and the second user from the association information library. Then, the association information processing server can perform idempotent judgment. The association information processing server obtains the log identifier in the interactive behavior log data. If the log identifier does not exist in the processed log identifier, it is judged that the interactive behavior log data belongs to unprocessed interactive behavior log data. If the log identifier exists in the processed log identifier, the interactive behavior log data is discarded. In the case of judging that the interactive behavior log data belongs to unprocessed interactive behavior log data according to the processed log identifier, the association information processing server updates the interrelation degree meta information according to the interactive behavior log data. Specifically, the log identifier can be added to the processed log identifier in the interrelation degree meta information, and the interrelation degree update information between the first user and the second user can be calculated according to the interactive behavior log data. According to the interrelation degree update information, the interrelation degree information between the first user and the second user in the interrelation degree meta information is updated to obtain updated interrelation degree meta information. Then, the association information processing server can write the updated interrelation degree meta information into the association information library. It is judged whether the updated interrelation degree meta information is successfully written into the association information library. In the case of successful writing, the association information processing server updates the interrelation degree information set of the first user and the interrelation degree information set of the second user in the association information library according to the updated interrelation degree meta information, and can also report the association information update behavior to the data bank. In the case of writing failure of the updated interrelation degree meta information, the association information processing server needs to perform failure retry, and returns to the step of obtaining the interrelation degree meta information between the first user and the second user from the association information library according to the user identifier of the first user and the second user in the interactive behavior log data.

[0073] Further, in combination with Figure 5In addition to the asynchronous updating of the association degree information set of the corresponding user in the association degree information library in the case of successful writing of the updated association degree element information, that is, the synchronous updating of the association information table according to the continuously generated stream data, the association degree information processing server can also perform global operation on the association degree information library at a specific business period to update the association degree information set of all users. Specifically, during the daily business off-peak period, the association degree information processing server can perform full-scan on the association degree element information corresponding to all users in the association degree information library, and update the association degree information set of all users in the association degree information library according to the association degree element information corresponding to each user, so as to eliminate the problem of inaccurate association degree information caused by asynchronous updating failure during daily dynamic updating of the association degree information.

[0074] The scheme of the embodiment ensures the eventual consistency of the association degree information, and has the ability to quickly query the association degree information of a user and other users in the whole station, so as to realize the quick query of the association degree information of the whole station user and the specified user under the premise of ensuring the consistency of the association degree information between users.

[0075] In one embodiment, the present application provides a user association degree information processing system, as shown in Figure 6 The system can include message queue servers (such as message queue server 1, message queue server 2, …, message queue server N) serving different interaction types, an association degree information processing server, and an association degree information library.

[0076] The message queue servers can be used to receive the interaction behavior stream data reported by the user terminal. The association degree information library is used to store the association degree element information between users and the association degree information set of each user. The association degree information processing server is used to receive the interaction behavior stream data from the message queue servers, and process the association degree element information between users and the association degree information set of each user in the association degree information library according to the user association degree information processing method of the present application.

[0077] The user association degree information processing system of the embodiment can access and process the multi-source massive stream data generated by the interaction of all users in the Internet application in real time, such as the real-time generation and storage of stream data in the message queue, such as interactive gift consumption, song room viewing behavior, sending private messages, playing works, etc. The real-time association degree information of all users in the whole station can be updated, ensuring the eventual consistency of the association degree information while having the ability to quickly query the association degree information of a user and other users in the whole station.

[0078] In one embodiment, as shown in Figure 7 A method for querying the association degree information between users is provided, which can be performed by a device as shown in Figure 1The method executed by the user terminal in the method can comprise the following steps:

[0079] In step S701, the current user identifier is obtained.

[0080] In step S702, the corresponding association degree information query request is sent to the association degree information processing server according to the current user identifier.

[0081] In step S703, the user-to-user association degree information returned by the association degree information processing server is received.

[0082] The method for querying the user-to-user association degree information in the embodiment can be used in an Internet application program with certain social attributes, such as a K-song application program. The K-song application program can be provided with a close friend function. The close friend function can be used to encourage long-term interaction between users. The user can query a user list of close friend relationships and a list of other users with association degree information in the whole network through a close friend block. The user can also encourage interaction between users and establish an association relationship through a daily task. For example, the user can query a list of close friend relationships and a list of other users with association degree information in the whole network through a close friend block. Figure 8 The (a) part to the (d) part in FIG. 8 respectively show the interface of close friend-my close friend, the interface of close friend-potential close friend, the interface of close friend-ranking, and the interface of close friend-intimacy task system. Specifically, in the embodiment, the user terminal can obtain the current user identifier, which can be the user identifier of the current user of the K-song application program. Then, the corresponding association degree information query request is sent to the association degree information processing server according to the current user identifier. The association degree information processing server is used to process the association degree meta-information between users in the association degree information database and the association degree information set of each user according to the user-to-user association degree information processing method described in any of the above embodiments. Specifically, the association degree information processing server can query the user-to-user association degree information in the association degree information set of the current user from the association degree information database when the association degree information query request is received. The user-to-user association degree information can include the association degree information between the current user and the associated user. The associated user can include the user with the association degree to the current user. Then, the association degree information processing server can return the user-to-user association degree information to the user terminal. The user terminal can receive the user-to-user association degree information returned by the association degree information processing server for display.

[0083] The embodiment can apply the user interrelation degree information processing method to an Internet application program with certain social attributes, such as a K-song application program, to query the user interrelation degree information, can realize bidirectional data query, that is, if there is interrelation degree information between the first user and the second user, the interrelation degree information can be queried by the first user or the second user, and the real-time data is ensured, the interrelation degree information of the corresponding user can be dynamically and real-timely updated after each user interaction behavior, and the interrelation degree information of each user and other users of the entire station can be quickly and real-timely queried, the query delay is small, which may need to be offline in the traditional technology or take a very long time, and the data source diversity feature is also provided, a plurality of source message queues can be analyzed and processed, and the processing is performed at the same time, so that the interaction between users can be continuously and real-timely stimulated, and the users can make friends and form association relationships.

[0084] It should be understood that, although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include a plurality of steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.

[0085] In one embodiment, a computer device, which can be a server, is provided, and an internal structure diagram of the computer device can be as shown in Figure 9 The computer device includes a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external devices through network connection. The computer program is executed by the processor to implement a user interrelation degree information processing method.

[0086] In one embodiment, a computer device is provided, which may be a user terminal, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external devices; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a method for querying information about relationships between users. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0087] Those skilled in the art will understand that Figure 9 and Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0088] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0089] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0090] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0091] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.

[0092] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A method of processing inter-user correlation information, characterized by, The method comprises: acquiring interactive behavior flow data; acquiring association degree meta information between the first user and the second user from the association degree information base according to the user identifiers of the first user and the second user in the interactive behavior flow data; the association degree meta information comprises processed flow identifiers between the first user and the second user and association degree information between the first user and the second user; updating the association degree meta information according to the interactive behavior flow data in the case that the interactive behavior flow data belongs to unprocessed interactive behavior flow data according to the processed flow identifiers; writing the updated association degree meta information into the association degree information base; updating the association degree information set of the first user and the association degree information set of the second user in the association degree information base according to the updated association degree meta information in the case that the writing of the updated association degree meta information is successful.

2. The method of claim 1, wherein, Before the updating of the association degree meta information according to the interactive behavior flow data in the case that the interactive behavior flow data belongs to unprocessed interactive behavior flow data according to the processed flow identifiers, the method further comprises: acquiring flow identifiers in the interactive behavior flow data; judging that the interactive behavior flow data belongs to unprocessed interactive behavior flow data in the case that the flow identifiers do not exist in the processed flow identifiers; discarding the interactive behavior flow data in the case that the flow identifiers exist in the processed flow identifiers.

3. The method of claim 2, wherein, The updating of the association degree meta information according to the interactive behavior flow data comprises: adding the flow identifiers into the processed flow identifiers in the association degree meta information, calculating association degree update information between the first user and the second user according to the interactive behavior flow data, and updating the association degree information between the first user and the second user in the association degree meta information according to the association degree update information.

4. The method of claim 1, wherein, After the writing of the updated association degree meta information into the association degree information base, the method further comprises: returning to the acquiring of the association degree meta information between the first user and the second user from the association degree information base according to the user identifiers of the first user and the second user in the interactive behavior flow data in the case that the writing of the updated association degree meta information fails.

5. The method of claim 1, wherein, The method further comprises: scanning association degree meta information corresponding to each user in the association degree information base when a preset service period is reached, and updating the association degree information set of each user in the association degree information base according to the association degree meta information corresponding to each user.

6. The method according to any one of claims 1 to 5, characterized in that, The acquiring of the interactive behavior flow data comprises: subscribing to interactive behavior flow data of each message queue server serving different interactive types; receiving interactive behavior flow data of corresponding interactive types from the each message queue server.

7. A user-inter-user correlation information processing system, characterized in that, The system comprises: each message queue server serving different interactive types, an association degree information processing server, and an association degree information base; wherein, the each message queue server is configured to receive interactive behavior flow data reported by a user terminal; and the association degree information base is configured to store association degree meta information between users and association degree information sets of each user. The correlation information processing server is configured to receive interactive behavior stream data from the message queue servers, and process the correlation meta information between the users and the correlation information set of each user in the correlation information database according to the method in any one of claims 1 to 6.

8. A method of querying inter-user association information, characterized by, The method applied to a user terminal comprises: obtaining a current user identifier; sending a corresponding correlation information query request to a correlation information processing server according to the current user identifier; receiving user correlation information returned by the correlation information processing server; the user correlation information comprises correlation information between the current user and an associated user; the associated user is a user having a correlation with the current user; the user correlation information is obtained by the correlation information processing server from a correlation information set of the current user in a correlation information database; the correlation information processing server is configured to process correlation meta information between the users and the correlation information set of each user in the correlation information database according to the method in any one of claims 1 to 6. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. The processor executes the computer program to implement the steps of the method in any one of claims 1 to 6 or claim 8.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 6 or claim 8.

Citation Information

Patent Citations

  • Social information display method and server

    CN108600080A

  • Method and device for constructing a big data precision model

    CN109767302A