CN112887426B - Information stream pushing method and device, electronic equipment and storage medium - Google Patents

Information stream pushing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112887426B
CN112887426B CN202110230281.XA CN202110230281A CN112887426B CN 112887426 B CN112887426 B CN 112887426B CN 202110230281 A CN202110230281 A CN 202110230281A CN 112887426 B CN112887426 B CN 112887426B
Authority
CN
China
Prior art keywords
information
stream
static
dynamic
database
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.)
Active
Application number
CN202110230281.XA
Other languages
Chinese (zh)
Other versions
CN112887426A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110230281.XA priority Critical patent/CN112887426B/en
Publication of CN112887426A publication Critical patent/CN112887426A/en
Application granted granted Critical
Publication of CN112887426B publication Critical patent/CN112887426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The application discloses a pushing method, a pushing device, a pushing system, electronic equipment, a storage medium and a program product of information flow, which relate to artificial intelligence, big data, computer vision, intelligent searching and information flow in data processing and comprise the following steps: according to the pushing request, the static information of each target information stream is determined from a preset data storage, the dynamic information corresponding to the static information of each target information stream is obtained from a preset database, the dynamic information in the database is updated in real time, and each target information stream is generated and pushed according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream, so that the pushed information stream has higher timeliness, accuracy and reliability, the storage resources and space of the data storage can be reduced, the storage performance of the data storage is improved, and the technical effect of saving the storage resources is realized.

Description

Information stream pushing method and device, electronic equipment and storage medium
Technical Field
The present application relates to artificial intelligence, big data, computer vision, intelligent searching, and information flow in data processing, and more particularly, to a method, apparatus, system, electronic device, storage medium, and program product for pushing information flow.
Background
In the internet technology, it is necessary to provide information streams for terminal devices, i.e. for users. Wherein the information stream may also be referred to as a feed stream; feed stream refers to a data stream that is pushed to a user at regular time in a business side product (e.g., application, applet, web page, etc.).
In the prior art, when pushing an information stream, static information and dynamic information of the information stream are acquired from a data memory, and the information stream is generated based on the static information and the dynamic information.
However, since specific information in the information stream is changed in real time and the frequency of the change is high, the difficulty of modifying the information stream in the data storage is great. Therefore, if the pushing of the information stream is performed based on the information stream stored in the data storage, there is a possibility that the pushed information stream has hysteresis, resulting in a problem that the accuracy and reliability of the information stream pushing are low.
Disclosure of Invention
Provided are a method, an apparatus, a system, an electronic device, a storage medium, and a program product for pushing an information stream, which are used for improving the accuracy and reliability of information stream pushing.
According to a first aspect of the present application, there is provided a method for pushing an information stream, including:
Receiving a push request, wherein the push request is used for indicating to push at least one target information stream;
according to the push request, determining static information of each target information flow from a preset data storage, and acquiring dynamic information corresponding to the static information of each target information flow from a preset database, wherein the dynamic information in the database is updated in real time;
and generating and pushing each target information stream according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream.
According to a second aspect of the present application, there is provided a pushing device for information flow, including:
the device comprises a receiving unit, a sending unit and a sending unit, wherein the receiving unit is used for receiving a pushing request, and the pushing request is used for indicating to push at least one target information stream;
the determining unit is used for determining static information of each target information stream from a preset data storage according to the push request;
the first acquisition unit is used for acquiring dynamic information corresponding to static information of each target information stream from a preset database, wherein the dynamic information in the database is updated in real time;
The generating unit is used for generating each target information stream according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream;
and the pushing unit is used for pushing each target information stream.
According to a third aspect of the present application, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of the present application, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect.
According to a fifth aspect of the present application, there is provided a computer program product comprising: a computer program stored in a readable storage medium, from which it can be read by at least one processor of an electronic device, the at least one processor executing the computer program causing the electronic device to perform the method of the first aspect.
According to a sixth aspect of the present application, there is provided a push system for information flows, comprising: the apparatus, terminal device of the second aspect, wherein,
the terminal equipment is used for sending a pushing request, receiving each target information stream pushed by the device and displaying each target information stream.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present application;
FIG. 2 is a schematic diagram according to a second embodiment of the present application;
FIG. 3 is a schematic diagram according to a third embodiment of the present application;
FIG. 4 is an interface diagram of a corresponding operation background of a data store according to an embodiment of the present application;
FIG. 5 is a scene graph of a push method of information flow in which embodiments of the present application may be implemented;
FIG. 6 is a schematic diagram according to a fourth embodiment of the present application;
FIG. 7 is a schematic diagram according to a fifth embodiment of the present application;
Fig. 8 is a block diagram of an electronic device for implementing a pushing method of an information flow according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The application provides a pushing method, a pushing device, electronic equipment, a storage medium and a program product of information flow, which are applied to artificial intelligence, big data, computer vision, intelligent search and information flow in the processing field so as to achieve the accuracy and the reliability of information flow pushing.
Fig. 1 is a schematic diagram according to a first embodiment of the present application, and as shown in fig. 1, a method for pushing an information flow provided in an embodiment of the present application includes:
s101: a push request is received.
The push request is used for indicating to push at least one target information flow.
For example, the execution body of the embodiment may be a recommendation device (hereinafter referred to as a recommendation device) of an information flow, and the recommendation device may be a server (specifically, may be a cloud server, may be a local server), may be a processor, may be a chip, or the like, which is not limited in this embodiment.
In some embodiments, if the recommending apparatus is a server, the recommending apparatus may be a corresponding server such as an application, an applet, a website, and a web page.
The information stream is understood to be a data stream, such as a feed stream, provided by the recommending means to the user. Accordingly, the recommendation request may be understood as a request initiated by the user based on the terminal device for indicating to acquire the feed stream, for example, the push request may be initiated by the user based on the service requirements such as access or viewing of the user.
S102: according to the push request, determining static information of each target information flow from a preset data storage, and acquiring dynamic information corresponding to the static information of each target information flow from a preset database.
Wherein the dynamic information in the database is updated in real time.
It should be noted that, one information stream may include two dimensions of content, where one dimension of content is a static dimension, and the other dimension is a dynamic dimension, and we may refer to the content of the static dimension as static information of the information stream, and the content of the dynamic dimension as dynamic information of the information stream.
Static information is understood to mean, for example, information that is relatively fixed in the content of the information stream and that is less susceptible to changes, such as the title (i.e., name) and identification of the information stream.
Accordingly, dynamic information may be understood as information that changes relatively with time in the content of the information stream, such as the number of praise and reading of the information stream.
Illustratively, in the present embodiment, a feature of storing only static information in the data memory is introduced, and a feature of updating dynamic information in real time is introduced.
Specifically, as is known from the above description of the related art, in the related art, both static information and dynamic information are stored in a data storage, and when there is a push demand, a push device may acquire the static information and the dynamic information from the data storage.
However, on the one hand, the frequency of change of the information flow is faster, and the difficulty of modifying the dynamic information in the data storage is greater, if the dynamic information needs to be modified manually, in this implementation, the dynamic information is stored in the database and has the characteristic of updating in real time, so when the information flow is pushed based on the dynamic information, the timeliness, the accuracy and the reliability of the pushed information flow can be improved.
On the other hand, the data memory has a certain memory space, if a scheme of storing both static information and dynamic information into the data memory in the related technology is adopted, there may be a disadvantage of consuming memory resources and space of the data memory and affecting the memory performance of the data memory, thereby realizing the technical effect of saving memory resources.
S103: and generating and pushing each target information stream according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream.
Illustratively, this step may be understood as: when the pushing device determines static information and dynamic information corresponding to each target information stream, the determined static information and dynamic information with corresponding relation can be packaged to obtain corresponding target information streams, and the packaged target information streams can be pushed, so that a user can browse or watch the target information streams pushed by the pushing device.
Based on the above analysis, the embodiment of the application provides a method for pushing an information stream, which includes: receiving a push request, wherein the push request is used for indicating to push at least one target information stream, determining static information of each target information stream from a preset data memory according to the push request, and acquiring dynamic information corresponding to the static information of each target information stream from a preset database, wherein the dynamic information in the database is updated in real time, and each target information stream is generated and pushed according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream; on the other hand, the data memory has a certain memory space, and by storing static information in the data memory and separately storing dynamic information, the memory resource and space of the data memory can be reduced, and the memory performance of the data memory can be improved, thereby realizing the technical effect of saving the memory resource.
Fig. 2 is a schematic diagram according to a second embodiment of the present application, and as shown in fig. 2, a method for pushing an information flow provided in the embodiment of the present application includes:
s201: and obtaining original information streams, and analyzing each original information stream to obtain static information and initial dynamic information corresponding to each original information stream.
The original information stream can be understood as an information stream uploaded to the pushing device by a user with pushing requirements through a terminal device establishing communication with the pushing device. Whereas the understanding of the static information and the initial dynamic information corresponding to the original information stream may be referred to in the first embodiment.
However, in connection with the above analysis, it should be noted that static information may be understood as substantially fixed information, and dynamic information may be understood as information that may change over time, and thus, for the purpose of distinguishing, the acquired dynamic information of the original information stream is referred to as initial dynamic information.
In some embodiments, the static information includes a plurality of static fields and static content corresponding to each static field; the dynamic information includes a plurality of dynamic fields and dynamic content corresponding to each dynamic field.
For example, for any original information stream, the static information of the original information stream may include a plurality of static fields, such as a title (i.e., name) of the original information stream, an identification ID of the original information stream, and a type (e.g., video and article, etc.) of the original information stream, and so on.
Correspondingly, if the static field is the title of the original information stream, the corresponding static content may be "first of Tang poem"; if the static field is an identification of the original information stream, the corresponding static content may be "123", and so on.
As another example, for any original information stream, the dynamic information of the original information stream may include a plurality of dynamic fields, such as the number of reads of the original information stream and the number of praise of the original information stream, and so on.
Accordingly, if the dynamic field is the reading number of the original information stream, the corresponding dynamic content may be "50"; if the dynamic field is the number of praise of the original information stream, the corresponding dynamic content is "40", and so on. Illustratively, the dynamic content of the initial dynamic information is typically 0.
S202: static information corresponding to each original information stream is stored in a data memory, and initial dynamic information corresponding to each original information stream is stored in a database.
In this embodiment, after analyzing any original information stream, the pushing device stores the static information corresponding to any original information stream obtained by analysis in the data memory, without storing both the static information corresponding to any original information stream and the initial dynamic information in the data memory as in the related art, so that the storage space of the data memory can be saved, and the defect of high difficulty in modifying the initial dynamic information stored in the data memory when the initial dynamic information corresponding to any original information stream changes is avoided.
S203: and monitoring initial dynamic information corresponding to each original information stream.
Illustratively, this step may be understood as: after storing the initial dynamic information corresponding to each original information stream, the pushing device may monitor the initial dynamic information corresponding to each original information stream to determine whether the initial dynamic information corresponding to each original information stream changes in order to improve accuracy and reliability of the information stream pushed to the user.
For example, in combination with the above embodiment, the pushing device may monitor the initial number of praise and the number of reading corresponding to each piece of original information.
In this embodiment, the initial dynamic information corresponding to each original information stream is monitored, and the monitoring time of the pushing device is not limited, that is, if the initial dynamic information corresponding to any original information stream changes, the pushing device can continuously monitor the changed dynamic information.
S204: if the initial dynamic information corresponding to any original information flow is monitored to change, updating the initial dynamic information corresponding to any original information flow based on the change of the initial dynamic information corresponding to any original information flow.
For example, if the pushing device monitors the initial dynamic information corresponding to each original information stream, and if it may monitor that one or more initial dynamic information corresponding to the original information streams changes, the pushing device may update the initial dynamic information corresponding to the original information stream based on the change of the initial dynamic information of the original information stream.
Of course, in other embodiments, the pushing device monitors the initial dynamic information corresponding to each original information stream, and if it may be monitored that the initial dynamic information corresponding to each original information stream is unchanged, it is not necessary to update the initial dynamic information corresponding to any original information stream.
In some embodiments, an interface for updating the dynamic information may be provided in the pushing device, and may specifically be an interface for providing an entity counting service, so as to implement updating of the dynamic information based on the interface, such as updating of the praise number and the reading number based on the interface.
In this embodiment, the pushing device monitors the initial dynamic information corresponding to each original information stream, so that when the initial dynamic information corresponding to any original information stream is monitored to change, the initial dynamic information corresponding to any original information stream is updated based on the change of the initial dynamic information corresponding to any original information stream, so that the dynamic information of any original information stream can be updated, the updating difficulty of the dynamic information is reduced, the reliability of updating the dynamic information is improved, and the technical effects of improving the pushing accuracy and reliability are achieved.
S205: a push request is received.
The push request is used for indicating to push at least one target information flow.
S206: according to the push request, determining static information of each target information flow from the data memory, and acquiring dynamic information corresponding to the static information of each target information flow from the database.
S207: and generating and pushing each target information stream according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream.
Illustratively, description about S205 to S207 may be made with reference to S101 to S103 in the first embodiment, and will not be repeated here.
Fig. 3 is a schematic diagram according to a third embodiment of the present application, and as shown in fig. 3, a method for pushing an information flow provided in the embodiment of the present application includes:
s301: and obtaining original information streams, and analyzing each original information stream to obtain static information and initial dynamic information corresponding to each original information stream.
S302: static information corresponding to each original information stream is stored in a data memory, and initial dynamic information corresponding to each original information stream is stored in a database.
Illustratively, with respect to S301 to S302, reference may be made to S201 to S202 in the second embodiment, and a detailed description thereof will be omitted.
S303: and acquiring a heat value of each original information stream.
Wherein the heat value can be used to characterize the degree of interest to the user of the original information stream, and in comparison, the higher the degree of interest to the user, the greater the heat value; the lower the degree of attention of the user, the smaller the heat value.
S304: if the heat value of any original information stream is smaller than the second heat threshold value, deleting static information corresponding to any original information stream from the data memory; and/or the number of the groups of groups,
and deleting dynamic information corresponding to any original information stream from the database.
Illustratively, the second heat threshold may be set by the pushing device based on requirements, history, and experiments, which is not limited in this embodiment.
In connection with the above analysis, the higher the degree of attention of the user of a certain original information stream, the larger the heat value of the original information stream, the embodiment can be understood as: the pushing device judges the magnitude of the heat value and the second heat value of any original information stream, if the heat value of any original information stream is smaller than the second heat threshold value, the degree of attention of a user of any original information stream is relatively smaller, and in order to save the storage space of the data memory, the pushing device can delete static information corresponding to any original information stream from the data memory, and of course, the pushing device can delete dynamic information corresponding to any original information in countercurrent from the database.
It should be noted that, S303 and S304 are update processing of the pushing device for an existing original information stream, in other embodiments, the pushing device may further process an added information stream (i.e. an added information stream), and may include the following processing steps:
Step 1: and acquiring the newly-added information flow, and if the heat value of the newly-added information flow is larger than the second heat threshold value, analyzing the newly-added information flow to obtain static information and initial dynamic information corresponding to the newly-added information flow.
Step 2: and adding static information corresponding to the newly added information flow to a data memory, and adding initial dynamic information corresponding to the newly added information flow to a database.
In connection with the above analysis, the present embodiment can be understood as follows: for the newly added information stream with higher attention degree by the user, the pushing device can analyze the newly added information stream, store static information obtained by analysis into the data memory, and store the obtained initial dynamic information into the database, so that the pushed information stream has higher attention degree during subsequent pushing, the effectiveness and reliability of pushing are improved, the pushed information stream can be favored by the user, and the experience of the user is improved.
In some embodiments, the pushing device may build an operation background corresponding to the data storage through accessing a low code front end framework (amis) component, and may provide an operation entry, so that a user managing the pushing device performs addition, deletion and verification on static information of the information flow.
For example, taking a feed stream as an example, an interface of an operation background corresponding to a data storage constructed by a pushing device may refer to fig. 4, where:
a user managing the pushing device can click a virtual key of 'newly added data' shown in fig. 4 to add the feed stream; the user managing the push device may select and/or input search criteria such as the type of feed stream (i.e., type of information stream) and status shown in fig. 4, and may, of course, further include: entity type, date, title, entity ID, etc., and searching to obtain corresponding feed stream when clicking the 'search' virtual key; a user managing the pushing device can click on a 'modify' virtual key to modify static information, such as modifying date, title and the like; the user managing the push device may click on the "delete" virtual key to delete the feed stream.
It should be noted that the above examples and fig. 4 are only for exemplary illustration, and the pushing device may provide an operation background, and should not be construed as limiting the operation background.
S305: a push request is received.
The push request is used for indicating to push at least one target information flow.
For an exemplary description of S305, reference may be made to S101, which is not repeated here.
In some embodiments, the push request is a request indicating acquisition of a new information stream; the static information in each target information stream is the static information acquired in a preset time period.
The preset time period can be understood as a time period closest to the current time, and the current time is the time corresponding to the push request.
In addition, if the push request is a request for indicating to acquire a new information stream, static information acquired in a certain period of time (such as a half hour) recently may be determined as static information in the target information stream, so as to improve the technical effect of timeliness of information stream push.
In some embodiments, the push request is a request indicating that a pushed information stream is acquired; each target information stream is an information stream located after a preset sorting value in the set of original target streams, and the preset sorting value is a sorting value of the information stream pushed for the last time before the current time.
That is, the push request may be a request for acquiring the latest information flow, or may be a request for acquiring an existing (i.e. pushed) information flow, and if the request for acquiring the existing information flow is a request for acquiring the existing information flow, the information flow after the last pushed information flow ordering value before the current time may be pushed.
In this embodiment, the information stream after the sorting value of the information stream pushed last time before the current time is used as the target information stream, so that repeated pushing can be avoided, the accuracy and reliability of pushing can be improved, and the browsing experience of the user can be met.
In some embodiments, the pushing device deletes the pushed information stream from a preset information stream set, where the preset information stream set includes information streams that are located after a preset sorting value in a set of original target streams.
It should be noted that, in this embodiment, by deleting the pushed information stream, repeated pushing of the information stream can be avoided, so as to achieve the technical effects of effectiveness and reliability of pushing.
For example, the pushing device may select each target information flow from the preset information flow set based on the preset pushing number and the sorting value of the information flow pushed last time before the current time.
The pushing number can be understood as the number of target information streams which are set by the pushing device and can be pushed to the user at one time, namely the number of target information streams which can be displayed by the terminal device at one time.
For example, the pushing method of the information flow in the embodiment of the present application may be suitable for an application scenario as shown in fig. 5, and accordingly, the pushing device may be a server 501 as shown in fig. 5, and the terminal device may be a mobile terminal 502 as shown in fig. 5.
Specifically, the server 501 may select a 3-item target information stream as shown in fig. 5 based on the push number 3, and transmit the 3-item target information stream to the mobile terminal 502.
Wherein the 3-item label information includes as shown in fig. 5: "the graceful plant poem" corresponds to the information flow, "the best poem" the "hairpin phoenix" red shorthand "corresponds to the information flow, and" easy to read the wrong 50 historic names "corresponds to the information flow.
Also, illustratively, "" plant verse "in the poem" is static information corresponding to the item mark information stream, and "414 forwards" and "648 praise" are dynamic information corresponding to the item mark information stream.
Accordingly, the mobile terminal 502 receives the 3-item target information stream transmitted by the server 501, and may display the 3-item target information stream, and the display interface may be as shown in fig. 5.
S306: static information of each target information stream is determined from the data storage according to the push request.
Illustratively, with respect to S306, reference may be made to the description of determining the dynamic information of each target information flow in S102, which is not described herein.
S307: and if the first database comprises dynamic information corresponding to the static information of each target information flow, acquiring the dynamic information corresponding to the static information of each target information flow from the first database.
The database comprises a first database, and the first database is used for storing dynamic information that the data heat value is larger than a first heat threshold value.
In some embodiments, the first database is a remote dictionary service redis database.
Similarly, the first heat threshold may also be set by the pushing device based on the requirement, the history, the test, and the like, which is not limited in this embodiment.
It should be noted that, in this embodiment, the first database is used to store the dynamic information with the heat value greater than the first heat threshold, and especially when the redis database is used to store the dynamic information with the heat value greater than the first heat threshold, the read-write performance of the dynamic information with the heat value greater than the first heat threshold can be further improved, so that the technical effects of accuracy and reliability of pushing are improved.
In some embodiments, dynamic information having a heat value greater than a first heat threshold may be stored in a key-value pair (key-value) manner. The acquiring of the dynamic information corresponding to the static information may include the steps of:
step 1: based on the static information of each target information stream, a key in a key value pair for indicating dynamic information corresponding to the static information of each target information stream is determined.
Step 2: and acquiring dynamic information corresponding to the static information of each target information stream from the database based on the determined key and the key value pair for indicating the dynamic information corresponding to the static information of each target information stream.
In the embodiment, when the static information and the dynamic information are stored separately, the keys in the key value pair are determined based on the static information, so that the dynamic information corresponding to the static information is determined based on the keys and the key value pair, and the technical effects of efficiency and accuracy of acquiring the dynamic information corresponding to the static information can be improved.
In some embodiments, for any target information stream, when determining static information of the target information stream, the pushing device may determine a string of the static information, perform hash calculation on the string based on a hash algorithm to obtain a hash value, use the hash value as a key value (i.e. a key in a key value pair), and obtain dynamic information corresponding to the static information based on the key value and the key value pair.
In other embodiments, if the first database does not include dynamic information corresponding to static information of each target information flow, and the second database includes dynamic information corresponding to static information of each target information flow, dynamic information corresponding to static information of each target information flow is obtained from the second database.
The database also comprises a second database, and the second database is used for storing dynamic information that the data heat value is smaller than the first heat threshold.
In this embodiment, the pushing device stores the dynamic information with the heat value smaller than the first heat threshold based on the second database, so that the technical effect of storing the integrity of the dynamic information can be achieved.
It should be noted that the database may include a first database or a second database, and in some embodiments, the pushing device may determine the first database and the second database based on the read-write capability of different databases.
For example, the pushing device may determine a database with relatively strong read-write capability as a first database, and a database with relatively weak read-write capability as a second database.
Specifically, the pushing device may determine the redis database as the first database and the relational mysql database as the second database. That is, in some embodiments, the second database may be a relational mysql database.
The pushing device can store dynamic information by combining the redis database and the mysql database, store the dynamic information with the heat value larger than the first threshold value into the redis database, and store the dynamic information with the heat value smaller than the first threshold value into the mysql database, so that the higher read-write performance of the redis database is fully utilized, and the integrity and reliability of the dynamic information are ensured. Accordingly, when the dynamic information is acquired, the dynamic information is preferentially acquired from the redis database, and if the redis database is not available, the dynamic information is acquired from the mysql database, so that the reliability of acquiring the dynamic information is improved, and the technical effect of the reliability of information flow pushing is further realized.
S308: and generating and pushing each target information stream according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream.
Illustratively, the description of S308 may be described with reference to S103 in the first embodiment, and will not be repeated here.
Fig. 6 is a schematic diagram of a fourth embodiment of the present application, as shown in fig. 6, a pushing device 600 for information flow provided in an embodiment of the present application includes:
the receiving unit 601 is configured to receive a push request, where the push request is used to instruct to push at least one target information stream.
The determining unit 602 is configured to determine static information of each target information stream from a preset data storage according to the push request.
The first obtaining unit 603 is configured to obtain dynamic information corresponding to static information of each target information stream from a preset database, where the dynamic information in the database is updated in real time.
The generating unit 604 is configured to generate each target information stream according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream.
A pushing unit 605, configured to push each target information stream.
Fig. 7 is a schematic diagram of a fifth embodiment of the present application, as shown in fig. 7, a pushing device 700 for information flow provided in the embodiment of the present application includes:
a second acquisition unit 701, configured to acquire an original information stream.
The first analysis unit 702 is configured to analyze each original information stream to obtain static information and initial dynamic information corresponding to each original information stream.
The storage unit 703 is configured to store static information corresponding to each original information stream in the data memory, and store initial dynamic information corresponding to each original information stream in the database.
And the monitoring unit 704 is configured to monitor initial dynamic information corresponding to each original information stream.
And the updating unit 705 is configured to update the initial dynamic information corresponding to any original information stream based on the change of the initial dynamic information corresponding to any original information stream if it is monitored that the initial dynamic information corresponding to any original information stream changes.
A third obtaining unit 706, configured to obtain a heat value of each original information stream.
A deleting unit 707, configured to delete the static information corresponding to any original information stream from the data memory if the heat value of any original information stream is less than the second heat threshold; and/or the number of the groups of groups,
And deleting dynamic information corresponding to any original information stream from the database.
A fourth acquiring unit 708, configured to acquire the new added information stream.
The second analysis unit 709 is configured to analyze the newly added information stream if the heat value of the newly added information stream is greater than the second heat threshold value, so as to obtain static information and initial dynamic information corresponding to the newly added information stream.
And the adding unit 710 is configured to add static information corresponding to the new added information stream to the data storage, and add initial dynamic information corresponding to the new added information stream to the database.
A receiving unit 7111, configured to receive a push request, where the push request is used to instruct to push at least one target information stream.
In some embodiments, the push request is a request indicating acquisition of a new information stream; the static information in each target information stream is the static information acquired in a preset time period.
In some embodiments, the push request is a request indicating that a pushed information stream is acquired; each target information stream is an information stream located after a preset sorting value in the set of original target streams, and the preset sorting value is a sorting value of the information stream pushed for the last time before the current time.
In some embodiments, each target information stream is a pushed information stream deleted from a preset information stream set, wherein the preset information stream set includes information streams located after a preset ranking value in a set of original target streams.
And the determining unit 712 is configured to determine static information of each target information stream from a preset data storage according to the push request.
A first obtaining unit 713, configured to obtain dynamic information corresponding to static information of each target information stream from a preset database, where the dynamic information in the database is updated in real time.
In some embodiments, the database includes a first database for storing dynamic information that the data heat value is greater than a first heat threshold; the first obtaining unit 713 is configured to obtain, if the first database includes dynamic information corresponding to static information of each of the target information flows, dynamic information corresponding to static information of each of the target information flows from the first database.
In some embodiments, the database further comprises a second database for storing dynamic information that the data heat value is less than the first heat threshold; the first obtaining unit 713 is configured to obtain, if the first database does not include dynamic information corresponding to static information of each target information stream, and the second database includes dynamic information corresponding to static information of each target information stream, dynamic information corresponding to static information of each target information stream from the second database.
In some embodiments, the static information includes a plurality of static fields and static content corresponding to each static field; the dynamic information includes a plurality of dynamic fields and dynamic content corresponding to each dynamic field.
In some embodiments, the first acquisition unit 713 includes:
a determining subunit 7131, configured to determine, based on the static information of each target information stream, a key in the key value pair for indicating the dynamic information corresponding to the static information of each target information stream.
And an acquiring subunit 7132, configured to acquire, from the database, dynamic information corresponding to the static information of each target information stream based on the determined key and the key value pair for indicating the dynamic information corresponding to the static information of each target information stream.
The generating unit 714 is configured to generate each target information stream according to the static information of each target information stream and the dynamic information corresponding to the static information of each target information stream.
A pushing unit 715, configured to push each target information stream.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
According to an embodiment of the present application, there is also provided a computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Fig. 8 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the electronic device 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as the push method of information streams. For example, in some embodiments, the push method of information flow may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When a computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the push method of information flow described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the push method of the information flow in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
According to another aspect of the embodiment of the present application, the embodiment of the present application further provides a pushing system for an information flow, where the system includes: the information flow pushing apparatus according to any of the foregoing embodiments, for example, the information flow pushing apparatus shown in fig. 6 or fig. 7, further includes a terminal device, where,
and the terminal equipment is used for sending the pushing request, receiving each target information stream pushed by the pushing device of the information stream, and displaying each target information stream.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (19)

1. A push method for an information stream, comprising:
receiving a push request, wherein the push request is used for indicating to push at least one target information stream;
according to the push request, determining static information of each target information flow from a preset data storage, and acquiring dynamic information corresponding to the static information of each target information flow from a preset database, wherein the dynamic information in the database is updated in real time; the database comprises a first database and a second database, wherein the first database is used for storing dynamic information of which the data heat value is larger than a first heat threshold value, and the second database is used for storing dynamic information of which the data heat value is smaller than the first heat threshold value; the read-write capability of the first database is higher than that of the second database; packaging the determined static information and dynamic information with the corresponding relation to obtain corresponding target information streams, and pushing each packaged target information stream;
the method further comprises the steps of:
acquiring original information streams, and analyzing each original information stream to obtain static information and initial dynamic information corresponding to each original information stream;
Storing static information corresponding to each original information stream into the data memory, and storing initial dynamic information corresponding to each original information stream into the database;
monitoring initial dynamic information corresponding to each original information flow;
if the initial dynamic information corresponding to any original information flow is monitored to change, updating the initial dynamic information corresponding to any original information flow based on the change of the initial dynamic information corresponding to any original information flow;
the step of obtaining dynamic information corresponding to the static information of each target information stream from a preset database comprises the following steps:
if the first database comprises dynamic information corresponding to the static information of each target information flow, acquiring the dynamic information corresponding to the static information of each target information flow from the first database;
and if the first database does not comprise the dynamic information corresponding to the static information of each target information flow and the second database comprises the dynamic information corresponding to the static information of each target information flow, acquiring the dynamic information corresponding to the static information of each target information flow from the second database.
2. The method of claim 1, further comprising, after storing initial dynamic information corresponding to each of the original information streams in the database:
acquiring a heat value of each original information stream;
if the heat value of any original information stream is smaller than the second heat threshold value, deleting static information corresponding to any original information stream from the data memory; and/or the number of the groups of groups,
and deleting the dynamic information corresponding to any original information stream from the database.
3. The method of claim 1, further comprising, after storing initial dynamic information corresponding to each of the original information streams in the database:
acquiring a new information flow, and if the heat value of the new information flow is larger than a second heat threshold value, analyzing the new information flow to obtain static information and initial dynamic information corresponding to the new information flow;
and adding static information corresponding to the newly added information flow to the data memory, and adding initial dynamic information corresponding to the newly added information flow to the database.
4. The method of claim 1, wherein the push request is a request indicating acquisition of a new information flow; the static information in each target information stream is the static information acquired in a preset time period.
5. The method of claim 1, wherein the push request is a request indicating acquisition of a pushed information stream; each target information stream is an information stream located after a preset sorting value in the original target stream set, wherein the preset sorting value is the sorting value of the information stream pushed for the last time before the current time.
6. The method of claim 5, wherein before determining static information for each of the target information flows from a preset data store according to the push request, further comprising:
and deleting the pushed information streams from a preset information stream set, wherein the preset information stream set comprises information streams positioned behind the preset sorting value in the original target stream set.
7. The method of claim 1, wherein the static information comprises a plurality of static fields and static content corresponding to each static field; the dynamic information includes a plurality of dynamic fields and dynamic content corresponding to each dynamic field.
8. The method of claim 1, wherein obtaining dynamic information corresponding to static information of each target information stream from a preset database comprises:
Determining keys in a key value pair for indicating dynamic information corresponding to the static information of each target information stream based on the static information of each target information stream;
and acquiring dynamic information corresponding to the static information of each target information stream from the database based on the determined key and the key value pair for indicating the dynamic information corresponding to the static information of each target information stream.
9. A push device for information streams, comprising:
the device comprises a receiving unit, a sending unit and a sending unit, wherein the receiving unit is used for receiving a pushing request, and the pushing request is used for indicating to push at least one target information stream;
the determining unit is used for determining static information of each target information stream from a preset data storage according to the push request;
the first acquisition unit is used for acquiring dynamic information corresponding to static information of each target information stream from a preset database, wherein the dynamic information in the database is updated in real time; the database comprises a first database and a second database, wherein the first database is used for storing dynamic information of which the data heat value is larger than a first heat threshold value, and the second database is used for storing dynamic information of which the data heat value is smaller than the first heat threshold value; the read-write capability of the first database is higher than that of the second database;
The generating unit is used for packaging the determined static information and dynamic information with the corresponding relation to obtain a corresponding target information flow;
the pushing unit is used for pushing each packaged target information stream;
the second acquisition unit is used for acquiring the original information stream;
the first analysis unit is used for analyzing each original information stream to obtain static information and initial dynamic information corresponding to each original information stream;
a storage unit for storing static information corresponding to each original information stream into the data memory and storing initial dynamic information corresponding to each original information stream into the database
The monitoring unit is used for monitoring initial dynamic information corresponding to each original information flow;
the updating unit is used for updating the initial dynamic information corresponding to any original information stream based on the change of the initial dynamic information corresponding to any original information stream if the change of the initial dynamic information corresponding to any original information stream is monitored;
the first obtaining unit is configured to obtain, if the first database includes dynamic information corresponding to static information of each target information flow, dynamic information corresponding to static information of each target information flow from the first database;
And if the first database does not comprise the dynamic information corresponding to the static information of each target information flow and the second database comprises the dynamic information corresponding to the static information of each target information flow, acquiring the dynamic information corresponding to the static information of each target information flow from the second database.
10. The apparatus of claim 9, further comprising:
a third obtaining unit, configured to obtain a heat value of each original information stream;
a deleting unit, configured to delete static information corresponding to any original information stream from the data memory if a heat value of the any original information stream is less than a second heat threshold; and/or the number of the groups of groups,
and deleting the dynamic information corresponding to any original information stream from the database.
11. The apparatus of claim 9, further comprising:
a fourth obtaining unit, configured to obtain a new added information stream;
the second analysis unit is used for analyzing the newly-added information flow if the heat value of the newly-added information flow is larger than a second heat threshold value to obtain static information and initial dynamic information corresponding to the newly-added information flow;
and the adding unit is used for adding the static information corresponding to the newly added information flow to the data memory and adding the initial dynamic information corresponding to the newly added information flow to the database.
12. The apparatus of claim 9, wherein the push request is a request indicating acquisition of a new information flow; the static information in each target information stream is the static information acquired in a preset time period.
13. The apparatus of claim 9, wherein the push request is a request indicating acquisition of a pushed information stream; each target information stream is an information stream located after a preset sorting value in the original target stream set, wherein the preset sorting value is the sorting value of the information stream pushed for the last time before the current time.
14. The apparatus of claim 13, wherein each of the target information flows is a pushed information flow deleted from a set of preset information flows, wherein a set of preset information flows includes information flows in a set of original target flows that follow the preset ranking value.
15. The apparatus of claim 9, wherein the static information comprises a plurality of static fields and static content corresponding to each static field; the dynamic information includes a plurality of dynamic fields and dynamic content corresponding to each dynamic field.
16. The apparatus of claim 9, wherein the first acquisition unit comprises:
A determining subunit, configured to determine, based on the static information of each target information stream, a key in a key value pair that is used to indicate dynamic information corresponding to the static information of each target information stream;
and the acquisition subunit is used for acquiring the dynamic information corresponding to the static information of each target information stream from the database based on the determined key and the key value pair used for indicating the dynamic information corresponding to the static information of each target information stream.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A push system for information streams, comprising: the apparatus, terminal device according to any of claims 9 to 16, wherein,
The terminal equipment is used for sending a pushing request, receiving each target information stream pushed by the device and displaying each target information stream.
CN202110230281.XA 2021-03-02 2021-03-02 Information stream pushing method and device, electronic equipment and storage medium Active CN112887426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110230281.XA CN112887426B (en) 2021-03-02 2021-03-02 Information stream pushing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110230281.XA CN112887426B (en) 2021-03-02 2021-03-02 Information stream pushing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112887426A CN112887426A (en) 2021-06-01
CN112887426B true CN112887426B (en) 2023-05-30

Family

ID=76055184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110230281.XA Active CN112887426B (en) 2021-03-02 2021-03-02 Information stream pushing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112887426B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052040B (en) * 2022-04-26 2024-04-19 浪潮通信技术有限公司 Feed stream implementation method, system, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8688702B1 (en) * 2010-09-14 2014-04-01 Imdb.Com, Inc. Techniques for using dynamic data sources with static search mechanisms
CN109168031A (en) * 2018-11-06 2019-01-08 杭州云英网络科技有限公司 Streaming Media method for pushing and device, steaming media platform

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172151B (en) * 2017-05-18 2020-08-07 百度在线网络技术(北京)有限公司 Method and device for pushing information
CN109241477A (en) * 2018-07-27 2019-01-18 沈文策 A kind of Website page loading method, device, electronic equipment and storage medium
CN110532428A (en) * 2019-09-02 2019-12-03 广州华多网络科技有限公司 Hot word configuration method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8688702B1 (en) * 2010-09-14 2014-04-01 Imdb.Com, Inc. Techniques for using dynamic data sources with static search mechanisms
CN109168031A (en) * 2018-11-06 2019-01-08 杭州云英网络科技有限公司 Streaming Media method for pushing and device, steaming media platform

Also Published As

Publication number Publication date
CN112887426A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN107609192A (en) The supplement searching method and device of a kind of search engine
CN112528067A (en) Graph database storage method, graph database reading method, graph database storage device, graph database reading device and graph database reading equipment
CN107291835B (en) Search term recommendation method and device
CN112887426B (en) Information stream pushing method and device, electronic equipment and storage medium
CN113904943A (en) Account detection method and device, electronic equipment and storage medium
CN114880498B (en) Event information display method and device, equipment and medium
CN116597443A (en) Material tag processing method and device, electronic equipment and medium
CN116226150A (en) Data processing method, device, equipment and medium based on distributed database
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN114564149B (en) Data storage method, device, equipment and storage medium
CN113868254B (en) Method, device and storage medium for removing duplication of entity node in graph database
CN113722593B (en) Event data processing method, device, electronic equipment and medium
CN113590447B (en) Buried point processing method and device
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN115329150A (en) Method and device for generating search condition tree, electronic equipment and storage medium
CN112860626B (en) Document ordering method and device and electronic equipment
CN115168732A (en) Resource recommendation method, device, equipment and storage medium
CN115328898A (en) Data processing method and device, electronic equipment and medium
CN113961797A (en) Resource recommendation method and device, electronic equipment and readable storage medium
CN112632384A (en) Data processing method and device for application program, electronic equipment and medium
CN113569144B (en) Method, device, equipment, storage medium and program product for searching promotion content
CN113032402B (en) Method, device, equipment and storage medium for storing data and acquiring data
CN113326416A (en) Method for retrieving data, method and device for sending retrieved data to client
CN117278777A (en) Video processing method and device and electronic equipment
CN116244321A (en) Data updating method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant