CN113010799A - Method and device for acquiring media information, electronic equipment and storage medium - Google Patents

Method and device for acquiring media information, electronic equipment and storage medium Download PDF

Info

Publication number
CN113010799A
CN113010799A CN202110002746.6A CN202110002746A CN113010799A CN 113010799 A CN113010799 A CN 113010799A CN 202110002746 A CN202110002746 A CN 202110002746A CN 113010799 A CN113010799 A CN 113010799A
Authority
CN
China
Prior art keywords
target
media information
interaction
social
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110002746.6A
Other languages
Chinese (zh)
Other versions
CN113010799B (en
Inventor
蒋万伟
刘晓光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110002746.6A priority Critical patent/CN113010799B/en
Publication of CN113010799A publication Critical patent/CN113010799A/en
Application granted granted Critical
Publication of CN113010799B publication Critical patent/CN113010799B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method and a device for acquiring media information, electronic equipment and a storage medium; the method comprises the following steps: acquiring an interaction time record of media information corresponding to a target object; the interaction time record is used for recording the corresponding interaction time when the social object having the social relationship with the target object executes the interaction action aiming at the media information; determining a target social object with an interactive action aiming at the media information in a target time period based on the interactive time record; acquiring an interaction history record of the target social contact object, wherein the interaction history record is used for recording target media information of the interaction behavior executed by the corresponding target social contact object; acquiring the target media information based on the interaction history record, wherein the target media information is used for being recommended to a terminal corresponding to the target object; by the method and the device, the storage cost can be saved, the query efficiency of the media information is improved, and the instantaneity of information recommendation is ensured.

Description

Method and device for acquiring media information, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet and block chain technologies, and in particular, to a method and an apparatus for acquiring media information, an electronic device, and a storage medium.
Background
In the information flow recommendation scene, the social relationship-based recommendation has been increasingly emphasized due to its strong interpretability and rich and diverse content. In the related art, when a friend executes an interactive behavior for media information, the content of the media information corresponding to the interactive behavior is stored, and then the content of the media information on which each friend has executed the interactive behavior is stored, so that when recommendation is performed based on a social relationship, the stored media information is read and recommended to a user. When the number of friends is large and the interaction behavior is frequent, the data to be stored is very large, and the storage cost is high; and when recommendation is performed, time consumption required for reading the stored content is also increased correspondingly, resulting in poor instantaneity of recommendation.
Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring media information, electronic equipment and a storage medium, which can save storage cost, improve the query efficiency of the media information and ensure the instantaneity of information recommendation.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a method for acquiring media information, which comprises the following steps:
acquiring an interaction time record of media information corresponding to a target object;
the interaction time record is used for recording the corresponding interaction time when the social object having the social relationship with the target object executes the interaction action aiming at the media information;
determining a target social object with an interactive action aiming at the media information in a target time period based on the interactive time record;
acquiring an interaction history record of the target social contact object, wherein the interaction history record is used for recording target media information of the interaction behavior executed by the corresponding target social contact object;
and acquiring the target media information based on the interaction history, wherein the target media information is used for being recommended to a terminal corresponding to the target object.
An embodiment of the present application further provides an apparatus for acquiring media information, including:
the first acquisition module is used for acquiring the interaction time record of the media information corresponding to the target object;
the interaction time record is used for recording the corresponding interaction time when the social object having the social relationship with the target object executes the interaction action aiming at the media information;
the determining module is used for determining a target social object which executes the interaction action aiming at the media information in a target time period based on the interaction time record;
the second acquisition module is used for acquiring an interaction history record of the target social contact object, wherein the interaction history record is used for recording target media information of the interaction behavior executed by the corresponding target social contact object;
and the third acquisition module is used for acquiring the target media information based on the interaction history record, and the target media information is used for being recommended to a terminal corresponding to the target object.
In the foregoing solution, the first obtaining module is further configured to, when it is detected that a first social contact object having a social relationship with the target object performs an interaction action for first media information, obtain interaction time corresponding to the first social contact object in the interaction time record, and obtain interaction time corresponding to the first social contact object in the interaction time record
Acquiring a time interval between the time of executing the interaction action aiming at the first media information and the interaction time corresponding to the first social contact object in the interaction time record;
and when the time interval reaches a time interval threshold value, updating the interaction time corresponding to the first social object in the interaction time record according to the time for executing the interaction action aiming at the first media information.
In the foregoing solution, the first obtaining module is further configured to, when it is detected that the target object performs an interaction behavior for second media information, obtain interaction time corresponding to the target object in a target interaction time record corresponding to a second social contact object, where the second social contact object and the target object have a social relationship;
acquiring a time interval between the time for executing the interactive behavior aiming at the second media information and the interactive time corresponding to the target object in the target interactive time record;
and when the time interval reaches a time interval threshold value, updating the interaction time corresponding to the target object in the target interaction time record according to the time for executing the interaction behavior aiming at the second media information.
In the above scheme, the apparatus further comprises:
a storage module for storing the interaction history of the social object in a first time period to a local database, and
generating a remote storage task corresponding to the social object;
the remote storage task is used for indicating that the interaction history of the social object in the first time period stored in the local database is stored in a remote database.
In the above scheme, the storage module is further configured to establish a communication connection between terminals corresponding to the social contact object based on a stateful protocol;
receiving an interaction history record of the social objects sent by the terminal in the first time period through the communication connection;
and storing the interaction history records of the social objects in the first time period to a local database.
In the above scheme, the number of the social objects is at least two, each social object corresponds to one remote storage task, and the storage module is further configured to determine a priority score corresponding to each remote storage task;
sequencing the remote storage tasks according to the priority scores to obtain a remote storage task sequence;
and based on the remote storage task sequence, sequentially executing the remote storage tasks according to the sequence from high priority to low priority.
In the above scheme, the storage module is further configured to obtain, according to the interaction history within the first time period corresponding to each social object, the number of media information within the first time period corresponding to each remote storage task;
acquiring an interaction timestamp corresponding to the target media information with the earliest interaction time in the interaction history records of the social contact objects;
and determining a priority score corresponding to each remote storage task based on the acquired interaction timestamp and the number of the media information.
In the above scheme, the second obtaining module is further configured to send an obtaining request of an interaction history record corresponding to the target social contact object to a remote database;
when the number of the target social contact objects is at least two, receiving an interaction history record list of each target social contact object returned by the remote database;
and merging the interaction history list of each target social object to obtain the interaction history.
In the above scheme, the storage module is further configured to store the interaction history of the social object to a blockchain network;
correspondingly, the obtaining of the interaction history of the target social object includes:
generating and sending a transaction for obtaining an interaction history record of a target social object in a blockchain network;
receiving an interaction history of the target social object returned by the blockchain network based on the transaction.
In the above scheme, the apparatus further comprises:
the recommending module is used for responding to a media information acquiring request aiming at the target object and acquiring portrait information of the target object;
when the number of the target media information is at least two, screening the target recommended media information matched with the portrait information of the target object from the at least two target media information;
and recommending the target recommended media information to a terminal corresponding to the target object.
In the above scheme, the recommending module is further configured to respond to a media information obtaining request for the target object, and when there are at least two pieces of target media information, obtain an interaction time corresponding to each piece of target media information;
selecting target media information with the interaction time within a second time period from the at least two pieces of target media information as target recommended media information;
and recommending the target recommended media information to a terminal corresponding to the target object.
In the above scheme, the recommending module is further configured to generate prompt information corresponding to the target media information, where the prompt information is used to prompt that the corresponding target social contact object performs the interaction behavior for the target media information;
recommending the target media information carrying the prompt information to a terminal corresponding to the target object so that the terminal presents the target media information and presents the prompt information at the same time.
An embodiment of the present application further provides an electronic device, including:
a memory for storing executable instructions;
and the processor is used for realizing the method for acquiring the media information provided by the embodiment of the application when the processor executes the executable instructions stored in the memory.
The embodiment of the present application further provides a computer-readable storage medium, which stores executable instructions, and when the executable instructions are executed by a processor, the method for acquiring media information provided by the embodiment of the present application is implemented.
The embodiment of the application has the following beneficial effects:
the interaction time corresponding to the execution of the interaction action aiming at the media information by the social contact object having the social relationship with the target object is recorded through the interaction time record, and then when the information recommendation based on the social relationship is carried out on the target object, the target social contact object having the interaction action aiming at the media information is determined in the target time period based on the time interaction record, so that when the media information recommendation is carried out, only the interaction history record of the target social contact object needs to be obtained, and then the target media information used for recommendation can be determined according to the interaction history record of the target social contact object.
Compared with the related technology, the method and the device have the advantages that only the corresponding interaction time when the social contact object executes the interaction action aiming at the media information needs to be stored during storage, so that the data volume needing to be stored is reduced, and the storage cost is saved; and the media information for recommendation can be determined only by reading the interaction history of the social contact object in the target time period, so that the query efficiency of the media information is improved, and the instantaneity of information recommendation is ensured.
Drawings
Fig. 1 is a schematic architecture diagram of a system 100 for acquiring media information according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an electronic device 500 for a method for acquiring media information according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for acquiring media information according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating an update flow of an interaction time record according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a storage flow of interaction history records provided by an embodiment of the present application;
fig. 6 is a schematic diagram of a flow for acquiring an interaction history provided in an embodiment of the present application;
FIG. 7 is a schematic representation of a presentation of media information provided by an embodiment of the application;
fig. 8 is a schematic application architecture diagram of a blockchain network 800 according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a block chain in a block chain network 800 according to an embodiment of the present application;
fig. 10 is a functional architecture diagram of a blockchain network 800 according to an embodiment of the present application;
fig. 11 is a schematic flowchart of a method for acquiring media information according to an embodiment of the present application;
FIG. 12 is a diagram illustrating a distribution of amounts of media information interacted with by a target object at different times according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of a media information acquiring apparatus 555 according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, so as to enable the embodiments of the application described herein to be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
1) The signature, namely the digital signature, is a section of digital string which can be generated only by a sender of the information and cannot be forged by others, and is also a valid proof for the authenticity of the information sent by the sender of the information; digital signatures typically define two complementary operations, one for signing and the other for verification, the application of asymmetric key cryptography and digital digest technology.
2) Transactions (transactions), equivalent to the computer term "Transaction," include operations that need to be committed to a blockchain network for execution and do not refer solely to transactions in the context of commerce, which embodiments of the present invention follow in view of the convention colloquially used in blockchain technology.
For example, a deployment (deployment) transaction is used to install a specified smart contract to a node in a blockchain network and is ready to be invoked; the Invoke (Invoke) transaction is used to append records of the transaction in the blockchain by invoking the smart contract and to perform operations on the state database of the blockchain, including update operations (including adding, deleting, and modifying key-value pairs in the state database) and query operations (i.e., querying key-value pairs in the state database).
3) A Block chain (Blockchain) is a storage structure for encrypted, chained transactions formed from blocks (blocks).
4) A Blockchain Network (Blockchain Network) incorporates new blocks into a set of nodes of a Blockchain in a consensus manner.
5) Ledger (legger) is a general term for blockchains (also called Ledger data) and state databases synchronized with blockchains. Wherein, the blockchain records the transaction in the form of a file in a file system; the state database records the transactions in the blockchain in the form of different types of Key (Key) Value pairs for supporting fast query of the transactions in the blockchain.
6) Intelligent Contracts (Smart Contracts), also known as chain codes (chaincodes) or application codes, are programs deployed in nodes of a blockchain network, and the nodes execute the intelligent Contracts called in received transactions to perform operations of updating or querying key-value data of a state database.
7) Consensus (Consensus), a process in a blockchain network, is used to agree on transactions in a block among a plurality of nodes involved, the agreed block is to be appended to the end of the blockchain, and the mechanisms for achieving Consensus include Proof of workload (PoW, Proof of Work), Proof of rights and interests (PoS, Proof of rights of stamp), Proof of equity authority (DPoS, released Proof of-of-stamp), Proof of Elapsed Time (PoET, Proof of Elapsed Time), and so on.
8) The terminal comprises a client and an application program running in the terminal and used for providing various services, such as an instant messaging client and a video playing client.
9) In response to the condition or state on which the performed operation depends, one or more of the performed operations may be in real-time or may have a set delay when the dependent condition or state is satisfied; there is no restriction on the order of execution of the operations performed unless otherwise specified.
10) Social relationships: refers to any relationship created by 2 or more human individuals on the network, including friends, concerns, and the like.
11) Remote Dictionary service (Redis, Remote Dictionary Server): the method is an open-source free high-performance key-value database, and simultaneously provides storage of data structures such as list, set, zset, hash and the like.
12) Stateful protocols, that is, protocols that require maintenance of intermediate states, such as the TCP protocol. The TCP protocol needs to establish a connection before sending data, needs to save a state during sending data, and needs to disconnect after sending is completed. Similar to making telephone calls in real life.
Based on the above explanations of terms and terms involved in the embodiments of the present application, the following describes a system for acquiring media information provided by the embodiments of the present application. Referring to fig. 1, fig. 1 is a schematic structural diagram of a system 100 for acquiring media information according to an embodiment of the present application, in order to support an exemplary application, terminals (exemplary terminals 400-1 and 400-2 are shown) are connected to a server 200 through a network 300, and the network 300 may be a wide area network or a local area network, or a combination of the two, and uses a wireless or wired link to implement data transmission.
The terminals (such as the terminal 400-1 and the terminal 400-2) are provided with application clients for viewing media information, and are used for responding to a media information acquisition instruction triggered by a target object and sending a media information acquisition request aiming at the target object to the server 200.
The server 200 is used for acquiring an interaction time record of the media information corresponding to the target object; determining a target social object with an interactive action aiming at the media information in a target time period based on the interactive time record; acquiring an interaction history record of a target social object; acquiring target media information based on the interactive history record; recommending the target media information to a terminal corresponding to the target object;
terminals (e.g., terminal 400-1 and terminal 400-2) for presenting the received target media information recommended by the server 200 on a graphical interface 410 (graphical interface 410-1 and graphical interface 410-2 are exemplarily shown).
In practical application, the server 200 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a CDN, a big data and artificial intelligence platform, and the like. The terminals (e.g., terminal 400-1 and terminal 400-2) may be, but are not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart television, a smart watch, and the like. The terminals (e.g., terminal 400-1 and terminal 400-2) and the server 200 may be directly or indirectly connected through wired or wireless communication, and the application is not limited thereto.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an electronic device 500 for a method for acquiring media information according to an embodiment of the present application. In practical applications, the electronic device 500 may be a server or a terminal shown in fig. 1, and an electronic device implementing the method for acquiring media information according to the embodiment of the present application is described by taking the electronic device 500 as the server shown in fig. 1 as an example, where the electronic device 500 provided in the embodiment of the present application includes: at least one processor 510, memory 550, at least one network interface 520, and a user interface 530. The various components in the electronic device 500 are coupled together by a bus system 540. It is understood that the bus system 540 is used to enable communications among the components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 540 in fig. 2.
The Processor 510 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The user interface 530 includes one or more output devices 531 enabling presentation of media content, including one or more speakers and/or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components to facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 550 optionally includes one or more storage devices physically located remote from processor 510.
The memory 550 may comprise volatile memory or nonvolatile memory, and may also comprise both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 550 described in embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
An operating system 551 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a network communication module 552 for communicating to other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
a presentation module 553 for enabling presentation of information (e.g., a user interface for operating peripherals and displaying content and information) via one or more output devices 531 (e.g., a display screen, speakers, etc.) associated with the user interface 530;
an input processing module 554 to detect one or more user inputs or interactions from one of the one or more input devices 532 and to translate the detected inputs or interactions.
In some embodiments, the media information obtaining apparatus provided in this embodiment of the present application may be implemented in software, and fig. 2 illustrates a media information obtaining apparatus 555 stored in a memory 550, which may be software in the form of programs and plug-ins, and includes the following software modules: the first obtaining module 5551, the determining module 5552, the second obtaining module 5553 and the third obtaining module 5554 are logical modules, and therefore, the functions of the respective modules will be described below, which may be arbitrarily combined or further split according to the implemented functions.
In other embodiments, the apparatus for acquiring media information provided in this embodiment may be implemented by a combination of hardware and software, and as an example, the apparatus for acquiring media information provided in this embodiment may be a processor in the form of a hardware decoding processor, which is programmed to execute the method for acquiring media information provided in this embodiment, for example, the processor in the form of a hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
Based on the above description of the system and the electronic device for acquiring media information provided in the embodiments of the present application, a method for acquiring media information provided in the embodiments of the present application is described below. In some embodiments, the method for acquiring media information provided by the embodiments of the present application may be implemented by a server or a terminal alone, or implemented by a server and a terminal in a cooperation manner. Referring to fig. 3, fig. 3 is a schematic flowchart of a method for acquiring media information according to an embodiment of the present application, where the method for acquiring media information according to the embodiment of the present application includes:
step 101: and the server acquires the interactive time record of the media information corresponding to the target object.
The interaction time record is used for recording the corresponding interaction time when the social object having the social relationship with the target object executes the interaction action aiming at the media information.
Here, in some embodiments, the server may be a recommendation server for media information recommendations. In practical application, a user can browse recommended media information through a terminal provided with a media information recommendation client. Specifically, the terminal sends a media information acquisition request to the recommendation server in response to a media information acquisition instruction triggered by the user (for example, triggered by an operation of refreshing a page or the like), and the recommendation server returns recommended media information determined based on a recommendation policy to the terminal of the user in response to the media information acquisition request, so that the user can view the recommended media information. The media information can be presented in a media information stream mode so as to give a user a good browsing experience.
In some other embodiments, the server may also be a query server for querying and obtaining interaction time records of the target object. In practical application, a user can browse recommended media information through a terminal provided with a media information recommendation client. Specifically, the terminal sends a media information acquisition request to the recommendation server in response to a media information acquisition instruction triggered by the user (for example, triggered by an operation of refreshing a page or the like), and the recommendation server queries and acquires recommended media information for recommendation through the query server in response to the media information acquisition request, so that the recommended media information queried and returned by the query server is recommended to the terminal of the user, so that the user can view the recommended media information. The media information can be presented in a media information stream mode so as to give a user a good browsing experience.
Based on this, in the embodiment of the application, when the server recommends the media information, the server first obtains the interaction time record of the media information corresponding to the target object, so as to determine the media information recommended to the target object based on the interaction time record. Here, the interaction time record is used to record an interaction time (specifically, may be an interaction time point) corresponding to a time when the social object having a social relationship with the target object performs an interaction action with respect to the media information. Then, the media information recommended to the target object is determined based on the interaction time record, for example, the media information corresponding to the interaction behavior within the preset time period in the interaction time record may be determined as the media information for recommendation. The social relationship can be a friend relationship, an attention relationship and the like; the media information may be a video, an article, music, etc., and the corresponding interactive behavior may be an article reading behavior, a video viewing behavior, a music listening behavior, etc. Therefore, the purpose of recommending the media information according to the social relationship of the target object can be achieved, an atmosphere of a social community is created for the user, the user experience is improved, and the user stickiness of the recommendation system is increased.
In some embodiments, the server may update the interaction time record for the target object by: when detecting that a first social contact object having a social relationship with a target object executes an interaction action aiming at first media information, acquiring interaction time corresponding to the first social contact object in an interaction time record, and acquiring a time interval between the time for executing the interaction action aiming at the first media information and the interaction time corresponding to the first social contact object in the interaction time record; and when the time interval reaches a time interval threshold value, updating the interaction time corresponding to the first social object in the interaction time record according to the time for executing the interaction action aiming at the first media information.
In practical application, when a social object having a social relationship with a target object executes an interaction action for media information, an interaction time record of corresponding interaction time is set for the target object, and the interaction time record is updated according to the interaction time of the social object executing the interaction action for the media information.
The update of the interaction time record of the target object is described by taking the social object as a first social object as an example, and there is at least one social relationship (such as a friend relationship and an attention relationship) between the first social object and the target object. When the server detects that the first social contact object executes the interaction action aiming at the first media information, the interaction time of the corresponding first social contact object recorded in the current interaction time record is obtained; then, a time interval between the time of executing the interaction action for the first media information and the interaction time of the corresponding first social object recorded in the interaction time record is obtained. Meanwhile, a time interval threshold (for example, 1 day) may also be preset, and when it is determined that the time interval reaches the time interval threshold, the interaction time corresponding to the first social object in the interaction time record is updated according to the time for performing the interaction behavior with respect to the first media information.
Specifically, the time for executing the interaction behavior for the first media information may be further recorded in the interaction time record of the target object, so as to ensure that the time for the first social contact object to execute the interaction behavior for the first media information each time is recorded in the interaction time record of the target object; the interaction time of the corresponding first social contact object recorded in the interaction time record can be replaced by the time of executing the interaction behavior aiming at the first media information, so that the time of the first social contact object executing the interaction behavior aiming at the first media information recently is recorded in the interaction time record of the target object.
In some embodiments, the server may update the interaction time record for the social object by: when the target object is detected to execute the interaction behavior aiming at the second media information, acquiring the interaction time of the corresponding target object in the target interaction time record corresponding to the second social object; acquiring a time interval between the time for executing the interactive behavior aiming at the second media information and the interactive time of the corresponding target object in the target interactive time record; and when the time interval reaches the time interval threshold, updating the interaction time of the corresponding target object in the target interaction time record according to the time for executing the interaction behavior aiming at the second media information. Wherein the second social object has a social relationship with the target object.
In practical application, the interaction time of the target object performing the interaction behavior with respect to the second media information is also recorded in the target interaction time record corresponding to the social contact object. In this way, for each user, an interaction time record is maintained for the server, so as to record the corresponding interaction time when the social object having a social relationship with the user performs an interaction action for the media information.
Here, the update of the target interaction time record of the second social object, which has at least one social relationship (such as a friend relationship and an attention relationship) with the target object, is explained. When the server detects that the target object executes the interaction behavior aiming at the second media information, the interaction time of the corresponding target object recorded in the target interaction time record corresponding to the second social contact object is obtained; and then acquiring the time interval between the time for executing the interactive behavior aiming at the second media information and the interactive time of the corresponding target object in the target interactive time record. Meanwhile, a time interval threshold (for example, 1 day) may also be preset, and when it is determined that the time interval reaches the time interval threshold, the interaction time of the corresponding target object in the target interaction time record is updated according to the time for performing the interaction behavior with respect to the second media information.
Specifically, the time for executing the interaction behavior for the second media information may be further recorded in the target interaction time record of each second social contact object, so as to ensure that the time for the target object to execute the interaction behavior for the second media information each time is recorded in the target interaction time record of each second social contact object; the interaction time of the corresponding target object recorded in the target interaction time record of each second social contact object may also be replaced with the time for executing the interaction behavior for the second media information, so as to ensure that the time for the target object to execute the interaction behavior for the second media information most recently is recorded in the interaction time record of each second social contact object.
Therefore, when the media information is recommended to the users, the media information recommended to the corresponding users can be determined according to the interaction time record corresponding to each user, the purpose of recommending the media information according to the social relationship of the users is achieved, and an atmosphere of a social community is created for the users.
Referring to fig. 4, fig. 4 is a schematic view illustrating an update flow of an interaction time record according to an embodiment of the present application. Here, the update flow of the interaction time record corresponding to each user (i.e. the update time receiving queue of the user) is described, including:
step 401, detecting an interaction behavior (such as a reading behavior) of a user for media information;
step 402, acquiring the last write diffusion time of a user;
the method includes the steps that interaction time of last execution of interaction behavior recorded in interaction time records corresponding to social objects with social relations with users is obtained, and the interaction time is write diffusion time of the users at last time.
Step 403, determining whether write diffusion is needed, if yes, executing step 404, and if not, executing step 407;
specifically, it may be determined according to a preset time interval threshold (e.g., 1 day), when a time interval between the detected interaction time of the user for the interaction behavior of the media information and the interaction time of the last interaction behavior executed in the interaction time record is greater than the time interval threshold, step 404 is executed at this time, and when the time interval is less than the time interval threshold, step 407 is not needed at this time.
Step 404, updating the write diffusion time of the user;
that is, the write diffusion time of the user is updated to be the interaction time of the detected interaction behavior of the user for the media information, because if the write diffusion is needed, the interaction time of the detected interaction behavior of the user for the media information is recorded in the interaction time records of the social objects.
Step 405, pulling an object list of social objects having social relations with the user;
that is, when the social relationship is a friend relationship, the friend list of the user can be directly pulled.
Step 406, writing the detected interaction time of the user for the interaction behavior of the media information into an update time receiving queue of the friend;
and step 407, ending.
Step 102: and determining a target social object with the interactive action aiming at the media information in the target time period based on the interactive time record.
Here, in practical applications, a target time period may be set in advance, such as within the last 3 days from the current date. And then, according to the interaction time record of the target object, determining a target social object which performs the interaction action aiming at the media information in the target time period, such as determining that a friend who has read the article action in the last 3 days.
Step 103: and acquiring an interaction history record of the target social object.
The interaction history record is used for recording target media information of the interaction behavior executed by the corresponding target social contact object.
Here, after determining the target social object for which the interaction with the media information is performed within the target time period, the interaction history of the target social object is obtained, and the target media information for which the interaction with the target social object is performed is recorded in the interaction history, for example, the interaction history may be social object 1-media information ID1, social object 2-media information ID2, social object 3-media information ID3, or the like.
In some embodiments, the server may store the interaction history by: storing the interaction history of the social contact object in a first time period to a local database, and generating a remote storage task corresponding to the social contact object; the remote storage task is used for indicating that the interaction history of the social objects in the first time period stored in the local database is stored in the remote database.
Here, the server needs to store an interaction history of each user, where the user includes a social object and a target object. When the server stores the interaction history of the user for the media information, the interaction history of the user within a period of time can be stored in the local database, and then the interaction history of the user within a period of time in the local database is stored in the remote database, so that the online writing conflict of the interaction history of the user is reduced, and the writing success rate is improved.
Specifically, the description will be given taking a user as a social object as an example. A first time period, such as 1 day or 0.5 day, for storing in the local database may be preset. Then storing the interaction history records of the social objects in the first time period to a local database; and simultaneously generating a remote storage task corresponding to the social object, wherein the remote storage task is used for indicating that the interaction history records of the social object in the first time period stored in the local database are stored in the remote database.
In some embodiments, the server may store the interaction history of the social object for the first time period to a local database by: establishing communication connection between terminals corresponding to the social contact objects based on the stateful protocol; receiving an interaction history record of a social object sent by a terminal in a first time period through communication connection; the interaction history of the social object within the first time period is stored to a local database.
Here, in order to avoid a situation that storage aggregation efficiency is affected due to storage requests of media information interaction history records of a user falling on different machines, in the process of local storage, the server establishes communication connection between terminals corresponding to social objects based on a stateful protocol so as to keep the communication connection continuous. Therefore, through the communication connection, the interaction history of the social object uploaded by the terminal in the first time period is received, namely the interaction history of the social object is uploaded by the terminal once every time the social object performs the interaction action aiming at the media information. In this way, the server receives the interaction history of the social contact object uploaded in the first time period, and stores the interaction history of the social contact object in the first time period to the local database.
In some embodiments, when the number of social objects is at least two and each social object corresponds to one remote storage task, the server may perform the remote storage task by: determining a priority score corresponding to each remote storage task; sequencing the remote storage tasks according to the priority scores to obtain a remote storage task sequence; and based on the remote storage task sequence, sequentially executing the remote storage tasks according to the sequence from high priority to low priority.
After the interaction history records of the social objects in the first time period are stored in the local database, the server continues to execute the remote storage task generated for each social object, namely the interaction history records of the social objects in the first time period stored in the local database are stored in the remote database.
Specifically, the server may determine a priority score corresponding to each remote storage task, and then sequence the remote storage tasks according to the priority scores to obtain a remote storage task sequence, so that the remote storage tasks are sequentially executed according to the sequence of priorities from high to low in the remote storage sequence. In practical applications, the calculation manner of the priority score of each remote storage task can be set according to requirements, for example, the calculation manner can be determined according to variables such as the morning and evening of the recorded time of the interaction history record, the quantity of the involved media information and the like. The priority corresponding to the priority score may be higher than the priority score, and higher than the corresponding priority, or may be lower than the priority score, and higher than the corresponding priority, and is determined according to the calculation method of the priority score by specifically adopting which corresponding method of the priority score and the priority.
In some embodiments, the server may determine the priority score corresponding to each remote storage task by: acquiring the quantity of media information in a first time period corresponding to each remote storage task according to the interaction history record in the first time period corresponding to each social object; acquiring an interaction timestamp corresponding to the target media information with the earliest interaction time in the interaction history records of the social objects; and determining a priority score corresponding to each remote storage task based on the acquired interaction timestamp and the quantity of the media information.
In practical application, the priority score corresponding to each remote storage task may be determined according to the number of media information within a first time period corresponding to each remote storage task and an interaction timestamp corresponding to the target media information with the earliest interaction time in the interaction history of each social object. In practical implementation, the calculation of the priority score may be performed by the following formula: score (user _ id) ═ first _ timestamp-10 × n, where first _ stamp is an interaction timestamp corresponding to the target media information with the earliest interaction time, n is the number of media information in the first time period, and score (user _ id) is a priority score corresponding to the remote storage task.
Here, in actual implementation, the priority corresponding to the priority score obtained based on the above formula is: the lower the priority score, the higher the priority. Based on the above, the remote storage task can be added into the priority scheduling queue with lower priority score and higher priority, and then the server executes the remote storage task in sequence based on the priority scheduling queue.
Referring to fig. 5, fig. 5 is a schematic diagram of a storage flow of an interaction history record provided by an embodiment of the present application. Here, in step 501, in a first time period, when the terminal detects that the user performs an interactive behavior with respect to the media information, a single interactive history record (e.g., a reading record) is reported to the server; step 502, the server stores a single interaction history record (e.g. reading record) in a local database; step 503, generating remote storage tasks and determining the priority scores of the remote storage tasks; step 504, adding each remote storage task into a priority scheduling queue, and storing a plurality of interaction history records in a first time period to a remote database based on a priority scheduling policy.
Based on this, in some embodiments, the server may obtain the interaction history of the target social object by: sending an acquisition request of an interaction history record corresponding to the target social contact object to a remote database; when the number of the target social contact objects is at least two, receiving an interaction history record list of each target social contact object returned by the remote database; and merging the interaction history list of each target social object to obtain an interaction history.
In practical applications, the server may obtain the interaction history of the target social object from a remote database. Specifically, the server sends an acquisition request of the interaction history record of the target social object to the remote database, specifically, sends the acquisition request to the server where the remote database is located. And after the server where the remote database is located finds the interaction history records of the target social contact objects, if a plurality of target social contact objects are found, returning the interaction history record list of each target social contact object to the server. After receiving the interaction history list of each target social object, the server may merge the interaction history lists to obtain an interaction history of the target social object.
Referring to fig. 6, fig. 6 is a schematic diagram of an acquisition flow of an interaction history record provided in an embodiment of the present application. Here, a flow of a server obtaining an interaction history of a social object when a user requests media information is described, including:
601, receiving a media information acquisition request of a user;
step 602, obtaining and reading an update time receiving queue corresponding to a user;
i.e. reading the interaction time record corresponding to the user.
Step 603, determining a target social object with an interactive behavior in a target time period;
namely, a friend list of media information reading behaviors is determined in a preset target time period.
Step 604, obtaining an interaction history list corresponding to each target social object;
that is, for each friend in the friend list having media information reading behavior, the reading history list corresponding to the friend is obtained, including reading friend 1 reading history list, friend 2 reading history list … … friend m reading history list, and the like.
Step 605, merging the interaction history lists corresponding to each target social object to obtain all interaction history records of the target social objects with interaction behavior in the target time period.
After all interaction history records of the target social contact object with the interaction behavior in the target time period are obtained, target media information of the target social contact object which has executed the interaction behavior is obtained from the interaction history records, and therefore the target media information is recommended to a terminal of a user, and information recommendation based on the social relationship is achieved.
Step 104: and acquiring target media information based on the interaction history.
And the target media information is used for recommending to a terminal corresponding to the target object.
Here, in an actual application, target media information of an interaction performed by each target social object is recorded in the interaction history, so that after the server acquires the interaction history of the target social object, the server may acquire at least one piece of target media information of an interaction performed by each target social object according to the interaction history.
In some embodiments, the server may recommend the target media information to the target object by: acquiring portrait information of a target object in response to a media information acquisition request for the target object; when the number of the target media information is at least two, screening the target recommended media information matched with the portrait information of the target object from the at least two target media information; and recommending the target recommended media information to a terminal corresponding to the target object.
In practical applications, after the server acquires the target media information, when the target media information is recommended to the target object, the acquired target media information may be further filtered. Specifically, the filtering may be performed based on the portrait information of the target object: when a media information acquisition request triggered by a media information recommendation client terminal arranged by a target object through a terminal is received, if at least two pieces of acquired target media information are acquired, portrait information of the target object is acquired, such as basic information (including user identification, age, gender and the like), behavior information (browsing, collecting, forwarding and the like), interest tags, social objects which have recently exchanged and the like of the target object. And then selecting target recommended media information matched with the portrait information of the target object from the acquired at least two pieces of target media information according to the portrait information of the target object, so as to recommend the target recommended media information to a terminal corresponding to the target object.
In some embodiments, the server may recommend the target media information to the target object by: responding to a media information acquisition request aiming at a target object, and acquiring interaction time corresponding to each target media information when the number of the target media information is at least two; selecting target media information with the interaction time within a second time period from the at least two pieces of target media information as target recommended media information; and recommending the target recommended media information to a terminal corresponding to the target object.
In practical applications, after the server acquires the target media information, when the target media information is recommended to the target object, the acquired target media information may be further filtered. Specifically, the screening may be performed according to the interaction time corresponding to each target media information: when a media information acquisition request triggered by a target object through a media information recommendation client set by a terminal is received, if at least two pieces of acquired target media information are acquired, acquiring interaction time corresponding to each piece of target media information, namely time when a social contact object performs an interaction action on the target media information, and specifically acquiring the interaction time from an interaction time record corresponding to the target object. Then, a second time period for media information screening is preset, for example, within 3 days in the near future from the current date, so that the target media information with the interaction time within the second time period is selected as the target recommended media information from the at least two pieces of acquired target media information, and the target recommended media information is recommended to the terminal corresponding to the target object.
In some embodiments, the server may recommend the target media information to the target object by: generating prompt information corresponding to the target media information; recommending the target media information carrying the prompt information to a terminal corresponding to the target object so that the terminal presents the target media information and presents the prompt information at the same time. The prompt information is used for prompting that the corresponding target social contact object executes an interactive behavior aiming at the target media information.
In practical application, when recommending the target media information to the terminal of the target object, the server also generates prompt information aiming at the target media information, wherein the prompt information is used for prompting that the corresponding target social contact object executes an interactive behavior aiming at the target media information. Therefore, the target media information carrying the prompt information is recommended to the terminal corresponding to the target object, so that the terminal presents the target media information and presents the prompt information at the same time. By way of example, referring to fig. 7, fig. 7 is a schematic presentation diagram of media information provided by an embodiment of the present application. Here, the video "3 minutes that has seen user A finishes, the most deceptive quantum entanglement phenomenon in physics, probably overturn your world view" recommends to user B, this user B and user A are friend relation, this moment in the view interface at user B's terminal, it finishes to present this video 3 minutes, the most deceptive quantum entanglement phenomenon in physics, probably overturn your world view ", present the suggestion information that" friend is seeing "simultaneously, in order to indicate that user B its user A has seen this video" 3 minutes finishes, the most deceptive quantum entanglement phenomenon in physics, probably overturn your world view ". Thereby creating a community atmosphere for the user.
In some embodiments, the server may also store the interaction history by: storing interaction history records of the social objects to a blockchain network; accordingly, the server may obtain the interaction history of the target social object by: generating and sending a transaction for obtaining an interaction history record of a target social object in a blockchain network; an interaction history of the target social object returned by the blockchain network based on the transaction is received.
Here, the server may further store the interaction history of the social object in the blockchain network in combination with the blockchain technology, so that when the server acquires the interaction history of the target object, the server can directly acquire the interaction history of the social object from the blockchain network.
In practical application, after receiving an interaction history of a social object uploaded by a terminal, a server generates a transaction for storing the interaction history of the social object, and sends the generated transaction to a node of a block chain network, so that the node identifies the transaction together and stores the interaction history of the social object to the block chain network; before storing the key information to the blockchain network, the server can also obtain the summary information of the key corresponding to the interaction history record of the social object; and storing the obtained digest information of the key to the blockchain network.
Next, a block chain network according to an embodiment of the present invention will be described. Fig. 8 is a schematic diagram of an application architecture of a blockchain network according to an embodiment of the present invention, which includes a blockchain network 800 (exemplarily showing a consensus node 810, such as a consensus node 810-1 to a consensus node 810-3), an authentication center 900, and a service agent 1000, which are respectively described below.
The type of blockchain network 800 is flexible and may be, for example, any of a public chain, a private chain, or a federation chain. Taking a public chain as an example, any electronic device (e.g., terminal/server) of a business entity can access the blockchain network 800 without authorization; taking the alliance chain as an example, after obtaining authorization, the electronic device under the jurisdiction of the service agent may access the blockchain network 800. And as such, becomes a client node in the blockchain network 800.
In some embodiments, the client node may act as a mere watcher of the blockchain network 800, i.e., provides functionality to support the business entity to initiate transactions (e.g., for uplink storage of data or querying of data on the chain), and may be implemented by default or selectively (e.g., depending on the specific business requirements of the business entity) with respect to the functions of the consensus node 810 of the blockchain network 800, such as a ranking function, a consensus service, and an accounting function, etc. Therefore, the data and the service processing logic of the service subject can be migrated to the blockchain network 800 to the maximum extent, and the credibility and traceability of the data and service processing process are realized through the blockchain network 800.
The consensus nodes in blockchain network 800 receive transactions submitted by client nodes (e.g., client nodes 1010 attributed to business entity 1000) from different business entities (e.g., business entity 1000), execute the transactions to update the ledger or query the ledger, and various intermediate or final results of executing the transactions may be returned to the business entity's client nodes for display.
An exemplary application of a blockchain is described below with an example in which a business entity accesses a blockchain network to achieve acquisition of an interaction history of a social object.
Referring to fig. 8, a service principal 1000 involved in the data packet transmission method registers from a certificate authority 900 to obtain a digital certificate, where the digital certificate includes a public key of the service principal and a digital signature signed by the certificate authority 900 on the public key and identity information of the service principal, is used to be attached to a transaction together with the digital signature of the service principal for the transaction, and is sent to a blockchain network, so that the blockchain network takes the digital certificate and the signature from the transaction, verifies the authenticity of the message (i.e., whether the message is tampered) and the identity information of the service principal sending the message, and verifies the blockchain network according to the identity, for example, whether the service principal has the right to initiate the transaction. Clients running on electronic devices (e.g., terminals or servers) hosted by the business entity may request access from blockchain network 800 to become client nodes.
First, when acquiring an interaction history of a social object, the client node 1010 of the service agent 1000 generates a transaction for acquiring the interaction history of the social object stored in the blockchain, specifies an intelligent contract that needs to be invoked to implement the acquisition operation of the interaction history of the social object and parameters transferred to the intelligent contract in the transaction, and broadcasts the transaction to a consensus node in the blockchain network 800, where the transaction also carries a digital certificate of the client node 1010 and a signed digital signature (for example, a digest of the transaction is encrypted by using a private key in the digital certificate of the client node 1010).
Then, when the consensus node 810 of the blockchain network 800 receives the transaction, the digital certificate and the digital signature carried by the transaction are verified, and after the verification is successful, whether the business entity 1000 has the transaction right is determined according to the identity of the business entity 1000 carried in the transaction, and the transaction fails due to any verification judgment of the digital signature and the right verification. After successful verification, the consensus node 810 signs its own digital signature (e.g., by encrypting the digest of the transaction using the private key of node 810-1) and continues to broadcast in the blockchain network 800.
Finally, after receiving the transaction successfully verified, the consensus node 810 in the blockchain network 800 fills the transaction into a new block and broadcasts the new block. When broadcasting a new block, the consensus node 810 in the block chain network 800 performs a consensus process on the new block, and if the consensus is successful, adds the new block to the tail of the block chain stored in the consensus node, updates the state database according to the transaction result, and executes the transaction in the new block: and for the submitted transaction for acquiring the interaction history of the social object, inquiring a key value pair corresponding to the interaction history of the social object from the state database, and returning a transaction result.
As an example of a block chain, referring to fig. 9, fig. 9 is a schematic structural diagram of a block chain in a block chain network 800 according to an embodiment of the present invention, where a header of each block may include hash values of all transactions in the block and also include hash values of all transactions in a previous block, a record of a newly generated transaction is filled in the block and is added to a tail of the block chain after being identified by nodes in the block chain network, so as to form a chain growth, and a chain structure based on hash values between blocks ensures tamper resistance and forgery prevention of transactions in the block.
An exemplary functional architecture of a block chain network provided in the embodiment of the present invention is described below, referring to fig. 10, fig. 10 is a schematic functional architecture diagram of a block chain network 800 provided in the embodiment of the present invention, which includes an application layer 1, a consensus layer 2, a network layer 3, a data layer 4, and a resource layer 5, and the following description is separately given.
The resource layer 5 encapsulates the computing, storage, and communication resources that implement each node 810 in the blockchain network 800.
The data layer 4 encapsulates various data structures that implement the ledger, including blockchains implemented as files in a file system, key-value type state databases, and presence certificates (e.g., hash trees of transactions in blocks).
The network layer 3 encapsulates the functions of a Point-to-Point (P2P) network protocol, a data propagation mechanism and a data verification mechanism, an access authentication mechanism and service body identity management.
Wherein the P2P network protocol implements communication between nodes 810 in the blockchain network 800, the data propagation mechanism ensures propagation of transactions in the blockchain network 800, and the data verification mechanism is used for implementing reliability of data transmission between nodes 810 based on cryptography methods (e.g., digital certificates, digital signatures, public/private key pairs); the access authentication mechanism is used for authenticating the identity of the service subject added into the block chain network 800 according to an actual service scene, and endowing the service subject with the authority of accessing the block chain network 800 when the authentication is passed; the business entity identity management is used to store the identity of the business entity that is allowed to access blockchain network 800, as well as the permissions (e.g., the types of transactions that can be initiated).
Consensus layer 2 encapsulates the functions of a mechanism for nodes 810 in blockchain network 800 to agree on a block (i.e., a consensus mechanism), transaction management, and ledger management. The consensus mechanism comprises consensus algorithms such as POS, POW and DPOS, and the pluggable consensus algorithm is supported.
The transaction management is used for verifying the digital signature carried in the transaction received by the node 810, verifying the identity information of the service body, and judging and confirming whether the service body has the authority to perform the transaction (reading the relevant information from the identity management of the service body) according to the identity information; for the service agents authorized to access the blockchain network 800, the service agents all have digital certificates issued by the certificate authority, and the service agents sign the submitted transactions by using private keys in the digital certificates of the service agents, so that the legal identities of the service agents are declared.
The ledger administration is used to maintain blockchains and state databases. For the block with the consensus, adding the block to the tail of the block chain; executing the transaction in the acquired consensus block, updating the key-value pairs in the state database when the transaction comprises an update operation, querying the key-value pairs in the state database when the transaction comprises a query operation and returning a query result to the client node of the business entity. Supporting query operations for multiple dimensions of a state database, comprising: querying the chunk based on the chunk sequence number (e.g., hash value of the transaction); inquiring the block according to the block hash value; inquiring a block according to the transaction serial number; inquiring the transaction according to the transaction serial number; inquiring account data of a business main body according to an account (serial number) of the business main body; and inquiring the block chain in the channel according to the channel name.
The application layer 1 encapsulates various services that can be implemented by the blockchain network, including tracing, crediting, and verifying transactions.
By applying the embodiment of the application, the interaction time corresponding to the execution of the interaction action aiming at the media information by the social contact object having the social relationship with the target object is recorded through the interaction time record, and then when the information recommendation based on the social relationship is performed on the target object, the target social contact object executing the interaction action aiming at the media information in the target time period is determined based on the time interaction record, so that when the media information recommendation is performed, only the interaction history record of the target social contact object needs to be acquired, and the target media information used for recommendation is determined according to the interaction history record of the target social contact object.
Compared with the related technology, the method and the device have the advantages that only the corresponding interaction time when the social contact object executes the interaction action aiming at the media information needs to be stored during storage, so that the data volume needing to be stored is reduced, and the storage cost is saved; and the media information for recommendation can be determined only by reading the interaction history of the social contact object in the target time period, so that the query efficiency of the media information is improved, and the instantaneity of information recommendation is ensured.
Next, a description is continued on the method for acquiring media information provided in the embodiment of the present application, and the method for acquiring media information provided in the embodiment of the present application may be cooperatively implemented by a terminal and a server. Referring to fig. 11, fig. 11 is a schematic flowchart of a method for acquiring media information according to an embodiment of the present application, where the method for acquiring media information according to the embodiment of the present application includes:
step 201: and the terminal responds to a media information acquisition instruction triggered by the target object and sends a media information acquisition request aiming at the target object to the server.
Here, the terminal is provided with a media information recommendation client, and the terminal sends a media information acquisition request to the server in response to a media information acquisition instruction (such as that triggered by an operation of refreshing a page) triggered by a user.
Step 202: and the server responds to the media information acquisition request and acquires the interactive time record of the media information corresponding to the target object.
When the server recommends the media information, firstly, the interaction time record of the media information corresponding to the target object is obtained, and therefore the media information recommended to the target object is determined based on the interaction time record. Here, the interaction time record is used to record an interaction time (specifically, may be an interaction time point) corresponding to a time when the social object having a social relationship with the target object performs an interaction action with respect to the media information. Then, the media information recommended to the target object is determined based on the interaction time record, for example, the media information corresponding to the interaction behavior within the preset time period in the interaction time record may be determined as the media information for recommendation. The social relationship can be a friend relationship, an attention relationship and the like; the media information may be a video, an article, music, etc., and the corresponding interactive behavior may be an article reading behavior, a video viewing behavior, a music listening behavior, etc. Therefore, the purpose of recommending the media information according to the social relationship of the target object can be achieved, and an atmosphere of a social community is created for the user.
Step 203: and determining a target social object with the interactive action aiming at the media information in the target time period based on the interactive time record.
Here, in practical applications, a target time period may be set in advance, such as within the last 3 days from the current date. And then, according to the interaction time record of the target object, determining a target social object which performs the interaction action aiming at the media information in the target time period, such as determining that a friend who has read the article action in the last 3 days.
Step 204: and acquiring an interaction history record of the target social object.
Here, the interaction history is used to record target media information of the interaction performed by the corresponding target social object.
Step 205: and acquiring target media information based on the interaction history.
Step 206: and recommending the target media information to a terminal corresponding to the target object.
Here, the server may further filter the target media information based on the image information of the target object, etc., to improve the accuracy of information recommendation.
Step 207: the terminal presents the recommended target media information.
Here, in practical applications, when recommending the target media information to the terminal of the target object, the server further generates prompt information for the target media information, where the prompt information is used to prompt that the corresponding target social object performs an interaction action with respect to the target media information. Therefore, the target media information carrying the prompt information is recommended to the terminal corresponding to the target object, so that the terminal presents the target media information and presents the prompt information at the same time. Thereby creating a community atmosphere for the user.
By applying the embodiment of the application, the interaction time corresponding to the execution of the interaction action aiming at the media information by the social contact object having the social relationship with the target object is recorded through the interaction time record, and then when the information recommendation based on the social relationship is performed on the target object, the target social contact object executing the interaction action aiming at the media information in the target time period is determined based on the time interaction record, so that when the media information recommendation is performed, only the interaction history record of the target social contact object needs to be acquired, and the target media information used for recommendation is determined according to the interaction history record of the target social contact object.
Compared with the related technology, the method and the device have the advantages that only the corresponding interaction time when the social contact object executes the interaction action aiming at the media information needs to be stored during storage, so that the data volume needing to be stored is reduced, and the storage cost is saved; and the media information for recommendation can be determined only by reading the interaction history of the social contact object in the target time period, so that the query efficiency of the media information is improved, and the instantaneity of information recommendation is ensured.
An exemplary application of the embodiments of the present application in a practical application scenario will be described below.
The terms and expressions which have been employed in the embodiments of the present application are explained with reference to the accompanying drawings, in which: 1) social relationships: refers to any relationship created by 2 or more human individuals on the network, including friends, concerns, and the like.
2) The content publishing queue: it can be regarded as an outbox, which stores all the contents issued by the user himself.
3) A content receiving queue: it can be considered as an inbox and stores the contents published by all friends.
4) Update time receive queue: which may be considered an inbox, stores the most recent update times of all buddy published content.
5) And (3) reading diffusion: when the user generates the content, the content is stored in the content publishing queue of the user, and when the user reads the content, the user needs to traverse the content publishing queue of each friend of the user.
6) And (3) writing diffusion: when the user generates the content, the content is stored in the content receiving queue of the friend of the user, and when the user reads the content, the user only needs to read the content receiving queue of the user.
7) Redis: the method is an open-source free high-performance key-value database, and simultaneously provides storage of data structures such as list, set, zset, hash and the like.
8) And (4) releasing the content: the method is mainly used for recommending the contents seen by friends of the user to the user, is not similar to the traditional content production, and defines that the user can be regarded as releasing a new content when reading an article.
In the information flow recommendation scene, the social relationship-based recommendation has been increasingly emphasized due to its strong interpretability and rich and diverse content. The social relationship-based content recommendation storage scheme generally involves 2 stages: the first is the writing stage of the user content, and the second is the reading stage of the friend content. The related technology mainly comprises the following 2 technical schemes:
(1) the friend content storage scheme based on read diffusion comprises the following steps: in the writing stage, when a user generates or issues content, the generated content is written into a content issuing queue of the user; in the reading phase: the user reads the friend list of the user, then reads the content release queues of all friends in the friend list in batch, and generates a recommended content candidate set after splicing. Popular saying is to write once and read many times. However, the bottleneck of this scheme is that if the friend level of the user is large, a large read diffusion effect is generated when the content publishing queues of the friends are read in batch, and specifically, if 1 user has 300 friends, the user needs to query the content publishing queues of 300 friends when requesting a recommendation system, which causes a great pressure on the back-end system. At the same time, the time-consuming and failure problems are more pronounced.
(2) The friend content storage scheme based on write diffusion comprises the following steps: in the writing stage, when a user generates content, reading a friend list of the user, and then writing and diffusing the generated content into content receiving queues of all friends; in the reading phase: the user directly reads the content receiving queue of the user. Popular is to write many times and read once. However, the bottleneck of this solution is that if the friends of the user are very large in magnitude, when the user writes to the content receiving queue of the friends in batch, one piece of content will store N (N is the number of friends), which may require a larger storage capacity, and thus, a great pressure is applied to the storage cost.
Based on this, the embodiments of the present application provide an optimization scheme based on read-write diffusion bonding to solve at least the problems in the related art, and the following detailed description is provided. According to the scheme, when a user generates content, the specific content is not written and diffused to a content receiving queue of a friend, but the content generating time is written and diffused to an update time receiving queue of the friend; when a user reads the content publishing queues of all friends, the user does not directly request the content publishing queues of all friends, but reads the update time receiving queue of the user firstly, finds the friend list with the content in the latest period of time, and finally reads the content publishing queues of the friends. The scheme is specifically composed of the following parts:
first, a user content distribution queue (i.e., a user's interaction history) storage module
Usually the media information that the user interacts with is written in real time, but the requirements on timeliness in real scenarios do not need to be so high. The requirement of fully implementing real-time writing requires a great challenge to the response capability of the back-end storage. The interactive behavior of the user generally has continuity, multiple pieces of media information may be interacted in a short time, and the applicant counts the distribution of active user interactive behaviors, as shown in fig. 12, fig. 12 is a schematic diagram illustrating the quantity distribution of media information interacted by a target object at different times according to the embodiment of the present application, where it can be seen that the interactive behavior of the media information of the user is relatively concentrated between interaction times 21:36-23:31, and if the interaction history records are still directly uploaded to a remote database one by one at this time, a write conflict is easily caused, and situations such as a write failure occur. Therefore, the applicant proposes a scheme for aggregating the write interaction history records to reduce the write peak value, namely, the user interaction history records in a time period are written into the local database, and then the user interaction history records in the time period in the local database are uploaded to the remote database, so that the remote database realizes the effect of writing once at intervals, the write conflict of the user content distribution queue is reduced, and the write success rate is improved.
As shown in fig. 5, includes: step 501, in a first time period, when detecting that a user executes an interactive behavior for media information, a terminal reports a single interactive history record (such as a reading record) to a server; step 502, the server stores a single interaction history record (e.g. reading record) in a local database; step 503, generating remote storage tasks and determining the priority scores of the remote storage tasks; step 504, adding each remote storage task into a priority scheduling queue, and storing a plurality of interaction history records in a first time period to a remote database based on a priority scheduling policy.
In practical implementation, the content publishing queue (i.e. interaction history) storage service of the user is split into a write aggregation service and a write scheduling service, and the write aggregation service and the write scheduling service communicate through local redis. In order to avoid the situation that the aggregation efficiency is affected due to the fact that user requests fall on different machines, a stateful protocol mode is adopted to ensure that the same user request is processed on the same machine as much as possible, namely interaction history records of the user in a time period are aggregated and stored in a local database of one machine.
The write aggregation service temporarily writes the reading history (i.e. interaction history) of a user in a time period into a local database redis, generates a remote storage task for the user, places the remote storage task of the user into a priority scheduling queue, executes the remote storage task of the user according to the priority scheduling queue, and stores the interaction history stored locally into a remote database. The priority scheduling queue is implemented by using a sorted set of redis, key is a user identifier, and score is a priority score. Since users who want to write earlier and write more should be scheduled preferentially, the applicant designs a calculation function of a priority score as score (user _ id) ═ first _ timestamp-10 × n, where first _ stamp is an interaction timestamp corresponding to target media information with the earliest interaction time, n is the number of media information in a first time period, and score (user _ id) is a priority score corresponding to a remote storage task. The lower the score, the higher the priority at the time of scheduling. Further, by limiting the speed at which local aggregate writes are processed, the pressure on downstream storage may be reduced.
Second, the user performs a write diffusion service for interactive time of media information interactive behavior
As shown in fig. 4, when a user generates an interactive behavior, firstly, the latest write diffusion time of the user is queried, if the write diffusion time is greater than a preset write diffusion time interval threshold (generally set to 1 day), a social object list (such as a friend list) of the user is pulled, and since each user is provided with an update time receiving queue (i.e., an interactive time record) of its friend, at this time, the time for generating a content is written into the update time receiving queue of each friend of the user; if the value is less than the preset value, ending the process; the queue is in a sorted set structure of redis, the key of the queue is a friend identifier, and the score is interaction time. And at the moment, the write diffusion of the interaction time can be realized by updating the update time receiving queues of all friends of the user. The purpose of setting the write-diffusion time interval threshold is to reduce the magnitude of write diffusion by sacrificing a certain time precision, to realize coarse-grained write diffusion time update, and to reduce the performance overhead of write diffusion read time. Meanwhile, the production content updating time of the write diffusion user is used, so that the specific content data of the write diffusion user is avoided, and the storage cost of the write diffusion is reduced.
Third, an interaction history service for obtaining social objects
As shown in fig. 6, when a user requests media information, it is first determined how long the interaction behavior of the social object in the target time period needs to be queried, and in consideration of timeliness of recommended content, in practical applications, the target time period may be set to be the last 3 days of the current date. And then finding out all target social objects with interactive behaviors in the target time period, pulling an interactive history record list of each target social object from a remote database by using a zrangebyscore command of redis, merging and returning media information related to the interactive history record list to the user after the pulling is successful, and thus recommending the media information based on the social relationship.
In practical applications, when recommending the media information to the terminal of the target object, the server further generates prompt information for the media information, where the prompt information is used to prompt that the corresponding target social contact object (such as a friend of the target object) has performed an interactive action (such as reading the media information) on the media information. Therefore, the media information carrying the prompt information is recommended to the terminal corresponding to the target object, so that the terminal presents the target media information and presents the prompt information at the same time. By way of example, referring to fig. 7, fig. 7 is a schematic presentation diagram of media information provided by an embodiment of the present application. Here, the video "3 minutes that has seen user A finishes, the most deceptive quantum entanglement phenomenon in physics, probably overturn your world view" recommends to user B, this user B and user A are friend relation, this moment in the view interface at user B's terminal, it finishes to present this video 3 minutes, the most deceptive quantum entanglement phenomenon in physics, probably overturn your world view ", present the suggestion information that" friend is seeing "simultaneously, in order to indicate that user B its user A has seen this video" 3 minutes finishes, the most deceptive quantum entanglement phenomenon in physics, probably overturn your world view ". Thereby creating a community atmosphere for the user.
In practical applications, the social relationship may not be limited to a friend relationship, but may also be applied to a concern relationship, that is, after a concern account issues an article, a fan may receive recommended content. The behavior data of the friend is not limited to the watched articles, and can also be applied to contents such as published micro-blogs, comments, praise or forwarded articles and the like. The stored medium may also be not limited to a redis database, but may be other key-value databases.
By applying the embodiment of the application, firstly, compared with the traditional user reading history writing scheme, the application provides a method for writing local redis first and then aggregating writing by users who have more and more priority queue scheduling behaviors earlier, so that the writing peak value of the redis on the line is greatly reduced, and the writing performance is improved.
Secondly, compared with the traditional reading history writing diffusion scheme, the reading time writing diffusion scheme is provided, and the reading time can be stored only by 4 bytes, so that the storage cost can be greatly saved compared with the original hundreds of reading histories. Meanwhile, a scheme of writing and diffusing at intervals is provided according to actual scene requirements, the magnitude of writing and diffusing is reduced by sacrificing certain time precision, and good cost performance is achieved.
Thirdly, compared with the traditional reading diffusion scheme, the scheme that the friend list with the reading history is determined firstly and then the reading history list of the diffusion friend is read is provided. Because only a part of friends of the user have recent reading history, the reading of a large part of friends without reading history can be avoided, thereby reducing the multiple of reading diffusion and the reading pressure stored at the back end.
Continuing with the description of the media information obtaining device 555 provided in the present application, in some embodiments, the media information obtaining device may be implemented by a software module. Referring to fig. 13, fig. 13 is a schematic structural diagram of a media information acquiring apparatus 555 according to an embodiment of the present application, where the media information acquiring apparatus 555 according to the embodiment of the present application includes:
a first obtaining module 5551, configured to obtain an interaction time record of media information corresponding to a target object;
the interaction time record is used for recording the corresponding interaction time when the social object having the social relationship with the target object executes the interaction action aiming at the media information;
a determining module 5552, configured to determine, based on the interaction time record, a target social object for which an interaction action with respect to the media information is performed within a target time period;
a second obtaining module 5553, configured to obtain an interaction history record of the target social object, where the interaction history record is used to record target media information of the corresponding target social object that has performed the interaction behavior;
a third obtaining module 5554, configured to obtain the target media information based on the interaction history, where the target media information is used to recommend to a terminal corresponding to the target object.
In some embodiments, the first obtaining module 5551 is further configured to, when it is detected that a first social object having a social relationship with the target object performs an interaction action for first media information, obtain an interaction time corresponding to the first social object in the interaction time record, and obtain an interaction time of the first social object in the interaction time record
Acquiring a time interval between the time of executing the interaction action aiming at the first media information and the interaction time corresponding to the first social contact object in the interaction time record;
and when the time interval reaches a time interval threshold value, updating the interaction time corresponding to the first social object in the interaction time record according to the time for executing the interaction action aiming at the first media information.
In some embodiments, the first obtaining module 5551 is further configured to, when it is detected that the target object performs an interaction behavior for second media information, obtain an interaction time corresponding to the target object in a target interaction time record corresponding to a second social object, where the second social object has a social relationship with the target object;
acquiring a time interval between the time for executing the interactive behavior aiming at the second media information and the interactive time corresponding to the target object in the target interactive time record;
and when the time interval reaches a time interval threshold value, updating the interaction time corresponding to the target object in the target interaction time record according to the time for executing the interaction behavior aiming at the second media information.
In some embodiments, the apparatus further comprises:
a storage module for storing the interaction history of the social object in a first time period to a local database, and
generating a remote storage task corresponding to the social object;
the remote storage task is used for indicating that the interaction history of the social object in the first time period stored in the local database is stored in a remote database.
In some embodiments, the storage module is further configured to establish a communication connection between terminals corresponding to the social object based on a stateful protocol;
receiving an interaction history record of the social objects sent by the terminal in the first time period through the communication connection;
and storing the interaction history records of the social objects in the first time period to a local database.
In some embodiments, the number of social objects is at least two, each social object corresponds to one of the remote storage tasks, and the storage module is further configured to determine a priority score corresponding to each of the remote storage tasks;
sequencing the remote storage tasks according to the priority scores to obtain a remote storage task sequence;
and based on the remote storage task sequence, sequentially executing the remote storage tasks according to the sequence from high priority to low priority.
In some embodiments, the storage module is further configured to obtain, according to an interaction history record of each social object in the first time period, a number of media information in the first time period corresponding to each remote storage task;
acquiring an interaction timestamp corresponding to the target media information with the earliest interaction time in the interaction history records of the social contact objects;
and determining a priority score corresponding to each remote storage task based on the acquired interaction timestamp and the number of the media information.
In some embodiments, the second obtaining module 5553 is further configured to send a obtaining request of the interaction history record corresponding to the target social object to a remote database;
when the number of the target social contact objects is at least two, receiving an interaction history record list of each target social contact object returned by the remote database;
and merging the interaction history list of each target social object to obtain the interaction history.
In some embodiments, the storage module is further configured to store the interaction history of the social object to a blockchain network;
correspondingly, the obtaining of the interaction history of the target social object includes:
generating and sending a transaction for obtaining an interaction history record of a target social object in a blockchain network;
receiving an interaction history of the target social object returned by the blockchain network based on the transaction.
In some embodiments, the apparatus further comprises:
the recommending module is used for responding to a media information acquiring request aiming at the target object and acquiring portrait information of the target object;
when the number of the target media information is at least two, screening the target recommended media information matched with the portrait information of the target object from the at least two target media information;
and recommending the target recommended media information to a terminal corresponding to the target object.
In some embodiments, the recommendation module is further configured to, in response to a media information acquisition request for the target object, acquire, when there are at least two pieces of target media information, an interaction time corresponding to each piece of target media information;
selecting target media information with the interaction time within a second time period from the at least two pieces of target media information as target recommended media information;
and recommending the target recommended media information to a terminal corresponding to the target object.
In some embodiments, the recommendation module is further configured to generate prompt information corresponding to the target media information, where the prompt information is used to prompt a corresponding target social object to perform the interaction behavior with respect to the target media information;
recommending the target media information carrying the prompt information to a terminal corresponding to the target object so that the terminal presents the target media information and presents the prompt information at the same time.
By applying the embodiment of the application, the interaction time corresponding to the execution of the interaction action aiming at the media information by the social contact object having the social relationship with the target object is recorded through the interaction time record, and then when the information recommendation based on the social relationship is performed on the target object, the target social contact object executing the interaction action aiming at the media information in the target time period is determined based on the time interaction record, so that when the media information recommendation is performed, only the interaction history record of the target social contact object needs to be acquired, and the target media information used for recommendation is determined according to the interaction history record of the target social contact object.
Compared with the related technology, the method and the device have the advantages that only the corresponding interaction time when the social contact object executes the interaction action aiming at the media information needs to be stored during storage, so that the data volume needing to be stored is reduced, and the storage cost is saved; and the media information for recommendation can be determined only by reading the interaction history of the social contact object in the target time period, so that the query efficiency of the media information is improved, and the instantaneity of information recommendation is ensured.
An embodiment of the present application further provides an electronic device, where the electronic device includes:
a memory for storing executable instructions;
and the processor is used for realizing the method for acquiring the media information provided by the embodiment of the application when the processor executes the executable instructions stored in the memory.
Embodiments of the present application also provide a computer program product or a computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for acquiring the media information provided by the embodiment of the application.
The embodiment of the present application further provides a computer-readable storage medium, which stores executable instructions, and when the executable instructions are executed by a processor, the method for acquiring media information provided by the embodiment of the present application is implemented.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
The above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (15)

1. A method for acquiring media information, the method comprising:
acquiring an interaction time record of media information corresponding to a target object;
the interaction time record is used for recording the corresponding interaction time when the social object having the social relationship with the target object executes the interaction action aiming at the media information;
determining a target social object with an interactive action aiming at the media information in a target time period based on the interactive time record;
acquiring an interaction history record of the target social contact object, wherein the interaction history record is used for recording target media information of the interaction behavior executed by the corresponding target social contact object;
and acquiring the target media information based on the interaction history, wherein the target media information is used for being recommended to a terminal corresponding to the target object.
2. The method of claim 1, wherein the method further comprises:
when detecting that a first social contact object having a social relationship with the target object executes an interaction action aiming at first media information, acquiring interaction time corresponding to the first social contact object in the interaction time record, and
acquiring a time interval between the time of executing the interaction action aiming at the first media information and the interaction time corresponding to the first social contact object in the interaction time record;
and when the time interval reaches a time interval threshold value, updating the interaction time corresponding to the first social object in the interaction time record according to the time for executing the interaction action aiming at the first media information.
3. The method of claim 1, wherein the method further comprises:
when the target object is detected to execute an interaction action aiming at second media information, acquiring interaction time corresponding to the target object in a target interaction time record corresponding to a second social object, wherein the second social object and the target object have a social relationship;
acquiring a time interval between the time for executing the interactive behavior aiming at the second media information and the interactive time corresponding to the target object in the target interactive time record;
and when the time interval reaches a time interval threshold value, updating the interaction time corresponding to the target object in the target interaction time record according to the time for executing the interaction behavior aiming at the second media information.
4. The method of claim 1, wherein the method further comprises:
storing the interaction history of the social objects in a first time period to a local database, and
generating a remote storage task corresponding to the social object;
the remote storage task is used for indicating that the interaction history of the social object in the first time period stored in the local database is stored in a remote database.
5. The method of claim 4, wherein storing the interaction history of the social object over the first time period to a local database comprises:
establishing communication connection between terminals corresponding to the social contact objects based on a stateful protocol;
receiving an interaction history record of the social objects sent by the terminal in the first time period through the communication connection;
and storing the interaction history records of the social objects in the first time period to a local database.
6. The method of claim 4, wherein the number of social objects is at least two, each of the social objects corresponding to one of the remote storage tasks, the method further comprising:
determining a priority score corresponding to each of the remote storage tasks;
sequencing the remote storage tasks according to the priority scores to obtain a remote storage task sequence;
and based on the remote storage task sequence, sequentially executing the remote storage tasks according to the sequence from high priority to low priority.
7. The method of claim 6, wherein said determining a priority score corresponding to each of said remote storage tasks comprises:
acquiring the quantity of the media information in the first time period corresponding to each remote storage task according to the interaction history record in the first time period corresponding to each social object;
acquiring an interaction timestamp corresponding to the target media information with the earliest interaction time in the interaction history records of the social contact objects;
and determining a priority score corresponding to each remote storage task based on the acquired interaction timestamp and the number of the media information.
8. The method of claim 1, wherein the obtaining the interaction history of the target social object comprises:
sending an acquisition request of an interaction history record corresponding to the target social contact object to a remote database;
when the number of the target social contact objects is at least two, receiving an interaction history record list of each target social contact object returned by the remote database;
and merging the interaction history list of each target social object to obtain the interaction history.
9. The method of claim 1, wherein the method further comprises:
storing an interaction history of the social object to a blockchain network;
correspondingly, the obtaining of the interaction history of the target social object includes:
generating and sending a transaction for obtaining an interaction history record of a target social object in a blockchain network;
receiving an interaction history of the target social object returned by the blockchain network based on the transaction.
10. The method of claim 1, wherein after obtaining the target media information based on the interaction history, the method further comprises:
in response to a media information acquisition request for the target object, acquiring portrait information of the target object;
when the number of the target media information is at least two, screening the target recommended media information matched with the portrait information of the target object from the at least two target media information;
and recommending the target recommended media information to a terminal corresponding to the target object.
11. The method of claim 1, wherein after obtaining the target media information based on the interaction history, the method further comprises:
responding to a media information acquisition request aiming at the target object, and acquiring interaction time corresponding to each target media information when the number of the target media information is at least two;
selecting target media information with the interaction time within a second time period from the at least two pieces of target media information as target recommended media information;
and recommending the target recommended media information to a terminal corresponding to the target object.
12. The method of claim 1, wherein the method further comprises:
generating prompt information corresponding to the target media information, wherein the prompt information is used for prompting that the corresponding target social contact object executes the interaction behavior aiming at the target media information;
recommending the target media information carrying the prompt information to a terminal corresponding to the target object so that the terminal presents the target media information and presents the prompt information at the same time.
13. An apparatus for acquiring media information, the apparatus comprising:
the first acquisition module is used for acquiring the interaction time record of the media information corresponding to the target object;
the interaction time record is used for recording the corresponding interaction time when the social object having the social relationship with the target object executes the interaction action aiming at the media information;
the determining module is used for determining a target social object which executes the interaction action aiming at the media information in a target time period based on the interaction time record;
the second acquisition module is used for acquiring an interaction history record of the target social contact object, wherein the interaction history record is used for recording target media information of the interaction behavior executed by the corresponding target social contact object;
and the third acquisition module is used for acquiring the target media information based on the interaction history record, and the target media information is used for being recommended to a terminal corresponding to the target object.
14. An electronic device, characterized in that the electronic device comprises:
a memory for storing executable instructions;
a processor, configured to execute the executable instructions stored in the memory, and to implement the method for acquiring media information according to any one of claims 1 to 12.
15. A computer-readable storage medium storing executable instructions for implementing the method of acquiring media information according to any one of claims 1 to 12 when executed.
CN202110002746.6A 2021-01-04 2021-01-04 Method and device for acquiring media information, electronic equipment and storage medium Active CN113010799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110002746.6A CN113010799B (en) 2021-01-04 2021-01-04 Method and device for acquiring media information, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110002746.6A CN113010799B (en) 2021-01-04 2021-01-04 Method and device for acquiring media information, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113010799A true CN113010799A (en) 2021-06-22
CN113010799B CN113010799B (en) 2024-06-18

Family

ID=76384186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110002746.6A Active CN113010799B (en) 2021-01-04 2021-01-04 Method and device for acquiring media information, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113010799B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102317941A (en) * 2011-07-30 2012-01-11 华为技术有限公司 Information recommending method, recommending engine and network system
US20130086159A1 (en) * 2011-09-29 2013-04-04 Nader Gharachorloo Media content recommendations based on social network relationship
US20140088952A1 (en) * 2012-09-25 2014-03-27 United Video Properties, Inc. Systems and methods for automatic program recommendations based on user interactions
CN107896235A (en) * 2016-09-29 2018-04-10 腾讯科技(深圳)有限公司 Information-pushing method, device, network access equipment, terminal and social interaction server device
US20190042585A1 (en) * 2017-08-01 2019-02-07 Yandex Europe Ag Method of and system for recommending media objects
CN110197386A (en) * 2018-04-12 2019-09-03 腾讯科技(深圳)有限公司 Media resource method for pushing and device, storage medium and electronic device
CN111046221A (en) * 2019-12-17 2020-04-21 腾讯科技(深圳)有限公司 Song recommendation method and device, terminal equipment and storage medium
CN112131457A (en) * 2019-06-25 2020-12-25 腾讯科技(深圳)有限公司 Information recommendation method, device and system and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102317941A (en) * 2011-07-30 2012-01-11 华为技术有限公司 Information recommending method, recommending engine and network system
US20130086159A1 (en) * 2011-09-29 2013-04-04 Nader Gharachorloo Media content recommendations based on social network relationship
US20140088952A1 (en) * 2012-09-25 2014-03-27 United Video Properties, Inc. Systems and methods for automatic program recommendations based on user interactions
CN107896235A (en) * 2016-09-29 2018-04-10 腾讯科技(深圳)有限公司 Information-pushing method, device, network access equipment, terminal and social interaction server device
US20190042585A1 (en) * 2017-08-01 2019-02-07 Yandex Europe Ag Method of and system for recommending media objects
CN110197386A (en) * 2018-04-12 2019-09-03 腾讯科技(深圳)有限公司 Media resource method for pushing and device, storage medium and electronic device
CN112131457A (en) * 2019-06-25 2020-12-25 腾讯科技(深圳)有限公司 Information recommendation method, device and system and storage medium
CN111046221A (en) * 2019-12-17 2020-04-21 腾讯科技(深圳)有限公司 Song recommendation method and device, terminal equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
潘虹;王子鹏;: "区块链技术对社交媒体信息归档的应用探究", 中国档案, no. 06 *
鲁骁;李鹏;王斌;李应博;房婧;: "一种基于用户互动话题的微博推荐算法", 中文信息学报, no. 03 *

Also Published As

Publication number Publication date
CN113010799B (en) 2024-06-18

Similar Documents

Publication Publication Date Title
CN113711536B (en) Extracting data from a blockchain network
CN106453066B (en) Group session processing method, terminal, server and system
US10296764B1 (en) Verifiable cryptographically secured ledgers for human resource systems
US11386050B2 (en) Activity verification using a distributed database
Tramp et al. An architecture of a distributed semantic social network
TW201317799A (en) Sharing control system and method for network resources download information
CN108512814B (en) Media data processing method, device and system
WO2017167121A1 (en) Method and device for determining and applying association relationship between application programs
CN111078745A (en) Data uplink method and device based on block chain technology
CN112075062A (en) Automated commit transaction management in blockchain networks
CN110023901A (en) System and method for updating multilayer application stack based on cloud
CN111177246A (en) Service data processing method and device
CN111475538A (en) Data processing method, device and storage medium
CN111291394A (en) False information management method, false information management device and storage medium
CN112766998A (en) Data processing method and device for business activities
JP2023547716A (en) merkle proof entity
CN110555482A (en) Vulgar picture identification method and device based on artificial intelligence and electronic equipment
EP3513316B1 (en) Personalized search environment
CN112995014B (en) Method and device for mass sending of messages
CN113010799B (en) Method and device for acquiring media information, electronic equipment and storage medium
WO2023273922A1 (en) Account management method, system, and computer readable storage medium
US10652180B1 (en) Systems, methods and products for micro-content creation, organization, analysis, and publication
CN111324271A (en) Multimedia information processing method and device, electronic equipment and storage medium
CN111292184A (en) File feedback alarm prompting method and device and storage medium
CN113743055A (en) Text information processing method and device, electronic equipment, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40045998

Country of ref document: HK

GR01 Patent grant