CN110502696A - A kind of method and apparatus of information stream distribution - Google Patents

A kind of method and apparatus of information stream distribution Download PDF

Info

Publication number
CN110502696A
CN110502696A CN201910718210.7A CN201910718210A CN110502696A CN 110502696 A CN110502696 A CN 110502696A CN 201910718210 A CN201910718210 A CN 201910718210A CN 110502696 A CN110502696 A CN 110502696A
Authority
CN
China
Prior art keywords
information
item
data
information flow
content
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.)
Pending
Application number
CN201910718210.7A
Other languages
Chinese (zh)
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.)
Nanjing Shangwang Network Technology Co.,Ltd.
Original Assignee
Shanghai Zhangmen 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 Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201910718210.7A priority Critical patent/CN110502696A/en
Publication of CN110502696A publication Critical patent/CN110502696A/en
Pending legal-status Critical Current

Links

Classifications

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

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)
  • Information Transfer Between Computers (AREA)

Abstract

The purpose of the application is to provide a kind of method of information stream distribution, applied to information flow discharge device, this method comprises: sending the acquisition request about first information stream to server, and receive the response message that the server is returned based on the acquisition request, wherein, the first information stream includes the quasi- one or more first information items for pushing to user equipment;If the response message lacks the part first information item that the first information stream includes, matching inquiry is carried out in the local cache of the information flow discharge device to obtain corresponding second information flow, wherein, the item of information content-data obtained in advance is stored in the local cache;By second information stream to the user equipment.The application can be avoided the case where server is returned without content, so that user obtains effective information in time.

Description

A kind of method and apparatus of information stream distribution
Technical field
This application involves the communications field more particularly to a kind of technologies of information stream distribution.
Background technique
With the development of internet, smart phone is universal, and user can be by the relevant information flow of active push, to obtain phase The information answered.Under normal conditions, information flow content source is pushed according to the information for the characteristics of user being directly user's progress personalization. Information flow content distribution system is the bridge acted between information flow content source and user, if information flow content source can not be after Continuous content or the information flow content distribution system of providing can all use family that can not obtain from the acquisition content failure of information flow content source To effective content, so that influencing the usage experience of user.
Summary of the invention
The purpose of the application is to provide a kind of method and apparatus of information stream distribution.
According to the one aspect of the application, a kind of method of information stream distribution is provided, this method comprises:
The acquisition request about first information stream is sent to server, and receives the server and is based on the acquisition request The response message of return, wherein the first information stream includes the quasi- one or more first information items for pushing to user equipment;
If the response message lacks the part first information item that the first information stream includes, in the information stream distribution Matching inquiry is carried out in the local cache of equipment to obtain corresponding second information flow, wherein be stored in the local cache The item of information content-data obtained in advance;
By second information stream to the user equipment.
According to the one aspect of the application, a kind of network equipment of information stream distribution is provided, which includes:
Module one by one for sending the acquisition request about first information stream to server, and receives the server base In the response message that the acquisition request returns, wherein the first information stream include quasi- one for pushing to user equipment or Multiple first information items;
One or two modules, if lacking the part first information item that the first information stream includes, In for the response message Matching inquiry is carried out in the local cache of the information flow discharge device to obtain corresponding second information flow, wherein described The item of information content-data obtained in advance is stored in ground caching;
One or three modules are used for second information stream to the user equipment.
According to the one aspect of the application, a kind of equipment of information stream distribution is provided, wherein the equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Device is managed to execute:
The acquisition request about first information stream is sent to server, and receives the server and is based on the acquisition request The response message of return, wherein the first information stream includes the quasi- one or more first information items for pushing to user equipment;
If the response message lacks the part first information item that the first information stream includes, in the information stream distribution Matching inquiry is carried out in the local cache of equipment to obtain corresponding second information flow, wherein be stored in the local cache The item of information content-data obtained in advance;
By second information stream to the user equipment.
According to the one aspect of the application, the computer-readable medium of store instruction is provided, described instruction is being performed When system is carried out:
The acquisition request about first information stream is sent to server, and receives the server and is based on the acquisition request The response message of return, wherein the first information stream includes the quasi- one or more first information items for pushing to user equipment;
If the response message lacks the part first information item that the first information stream includes, in the information stream distribution Matching inquiry is carried out in the local cache of equipment to obtain corresponding second information flow, wherein be stored in the local cache The item of information content-data obtained in advance;
By second information stream to the user equipment.
Compared with prior art, information flow discharge device sends the acquisition about first information stream to server in the application Request, then receives the response message that the server is returned based on the acquisition request, if the response message lacks part First information item, wherein the first information item is the quasi- item of information for pushing to user equipment, and information flow discharge device is from local Matching inquiry is carried out in caching to obtain corresponding second information flow and be sent to user equipment, wherein in the local cache It is stored with the item of information content-data obtained in advance.The case where server is returned without content is avoided, information flow content is improved The efficiency of distribution, so that user obtains effective information in time, the information flow for promoting user obtains experience.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 shows a kind of method flow diagram of information stream distribution of one embodiment according to the application;
Fig. 2 shows the method flow diagrams according to a kind of information stream distribution of the application another embodiment;
Fig. 3 shows the method flow that local cache is safeguarded in a kind of information stream distribution according to the application one embodiment Figure;
Fig. 4 shows a kind of method flow diagram of information stream distribution according to the application another embodiment;
Fig. 5 shows a kind of equipment schematic diagram of information flow discharge device according to the application one embodiment;
Fig. 6 shows the exemplary system that can be used for implementing each embodiment described herein.
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network and trusted party include one or more Processor (for example, central processing unit (Central Processing Unit, CPU)), input/output interface, network interface and Memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (Random Access Memory, RAM) and/or the forms such as Nonvolatile memory, such as read-only memory (Read Only Memory, ROM) Or flash memory (Flash Memory).Memory is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer include, but are not limited to phase change memory (Phase-Change Memory, PCM), it is programmable with Machine accesses memory (Programmable Random Access Memory, PRAM), static random access memory (Static Random-Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable it is read-only Memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), flash memory Or other memory techniques, read-only disc read only memory (CD-ROM) (Compact Disc Read-Only Memory, CD-ROM), number Multifunctional optical disk (Digital Versatile Disc, DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage Or other magnetic storage devices or any other non-transmission medium, it can be used for storing and can be accessed by a computing device information.
The application meaning equipment includes but is not limited to that user equipment, the network equipment or user equipment and the network equipment pass through Network is integrated constituted equipment.The user equipment includes but is not limited to that any one can carry out human-computer interaction with user The mobile electronic product, such as smart phone, tablet computer etc. of (such as human-computer interaction is carried out by touch tablet), the mobile electricity Sub- product can use any operating system, such as Android operation system, iOS operating system.Wherein, the network equipment The electronic equipment of numerical value calculating and information processing can be carried out automatically according to the instruction for being previously set or storing including a kind of, Hardware includes but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), digital signal processor (Digital Signal Processor, DSP), embedded device etc..The network equipment includes but is not limited to computer, network host, single network server, multiple The cloud that network server collection or multiple servers are constituted;Here, cloud is by the big meter based on cloud computing (Cloud Computing) Calculation machine or network server are constituted, wherein cloud computing is one kind of distributed computing, by the computer set group of a group loose couplings At a virtual supercomputer.The network includes but is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, VPN net Network, wireless self-organization network (Ad Hoc network) etc..Preferably, the equipment, which can also be, runs on the user equipment, net Network equipment or user equipment are mutually collected with touch terminal by network with the network equipment, the network equipment, touch terminal or the network equipment At the program in the equipment constituted.
Certainly, those skilled in the art will be understood that above equipment is only for example, other are existing or are likely to occur from now on Equipment be such as applicable to the application, should also be included within the application protection scope, and be incorporated herein by reference.
In the description of the present application, the meaning of " plurality " is two or more, unless otherwise specifically defined.
Fig. 1 shows the typical scene of the application, and user holds user equipment, and answering using A is presented in user equipment With interface, wherein the user equipment includes but is not limited to that the calculating of mobile phone, plate, notebook etc. (have and touch screen) is set It is standby.This applies the corresponding information flow discharge device of A (for example, using the corresponding network equipment of A) to server (for example, third party The network equipment of content source is provided) acquisition request (step S101a) of the transmission about first information stream, and receive the server Based on the response message (step S101b) that the acquisition request returns, here, step S101 includes step S101a and step S101b, wherein the first information stream includes the quasi- one or more first information items for pushing to user equipment, if the sound Information is answered to lack part first information item that the part first information stream includes (for example, the response message lacks one One item of information, the first information item are the video information of Sport Class) (step S102), information flow discharge device is in local cache It is middle that matching inquiry is carried out to obtain corresponding second item of information (for example, other videos related with sport are believed according to Sport Class Breath), wherein the item of information content-data obtained in advance is stored in the local cache.Then, information flow discharge device is by Two information flows (for example, content that the item of information content in the response message combines the second item of information) are sent to the user and set For (step S103), the push of video information related with sport is received in the application interface using A of user equipment.
Fig. 2 shows the method according to a kind of information stream distribution of one embodiment of the application, the method includes the steps S101, step S102 and step S103.In step s101, information flow discharge device is sent to server about first information stream Acquisition request, and receive the response message that the server is returned based on the acquisition request, wherein the first information stream Including the quasi- one or more first information items for pushing to user equipment;In step s 102, if the response message lacks institute State the part first information item that first information stream includes, information flow discharge device in the local cache of information flow discharge device into Row matching inquiry is to obtain corresponding second information flow, wherein is stored in the item of information obtained in advance in the local cache Hold data;In step s 103, information flow discharge device is by second information stream to the user equipment.
Specifically, in step s101, information flow discharge device sends to server and asks about the acquisition of first information stream It asks, and receives the response message that the server is returned based on the acquisition request, wherein the first information stream includes quasi- push away It send to one or more first information items of user equipment.Wherein, the information flow discharge device includes and obtains information flow The system equipment of the corresponding server-side of user equipment, the server include that database, redis caching and third party http are asked The content providers such as interface are sought, the first information stream includes the first information item of multiple classifications such as video, picture, text, institute Stating response message includes the one or more first information items returned based on the acquisition request.For example, being waited in user equipment During being pushed information flow, information flow discharge device sends the acquisition request about first information stream to server, and connects Receive the response message that the server is returned based on the acquisition request.
In step s 102, if the response message lacks the part first information item that the first information stream includes, letter Breath stream distribution equipment carries out matching inquiry in the local cache of the information flow discharge device to obtain corresponding second information Stream, wherein the item of information content-data obtained in advance is stored in the local cache.For example, if information flow discharge device to Server sends the acquisition request about first information stream, wherein the first information stream includes intending pushing to user equipment Multiple first information items, and receive the response message that the server is returned based on the acquisition request, wherein the response letter Breath includes the item of information less than the multiple first information item, and information flow discharge device lacks described in part in the response message In the case where the part first information item that first information stream includes, matching is carried out in the local cache of information flow discharge device and is looked into (for example, the classification of the first information item lacked according to the response message carries out matching inquiry) is ask to obtain corresponding second letter Breath stream, wherein the item of information content-data obtained in advance is stored in the local cache.In some embodiments, it is described Matching inquiry is carried out in the local cache of the information flow discharge device to obtain corresponding second information flow, comprising: to described Part first information item carries out matching inquiry in the local cache of information flow discharge device respectively, with obtain corresponding one or Multiple second items of information, wherein each second item of information corresponds to a first information item of the part first information item;Root According to the response message and one or more of second items of information, corresponding second information flow is generated.For example, information stream distribution The part first information item that equipment lacks response message confirmation is (for example, first information item A, first information item B and the One item of information C) matching inquiry is carried out in local cache respectively (for example, carrying out according to the classification of the first information item, property Matching inquiry), to obtain corresponding one or more second items of information, wherein each second item of information is as replacement information items Corresponding to the first information item lacked in the response message.Then, information flow discharge device by one or Multiple second items of information of person are inserted into its position of the corresponding part first information item in response message, to generate the second letter Breath stream.In this case, the part first information that the part lacked according to the response message the first information stream includes Item obtains corresponding second item of information in local cache, ultimately produces complete second information flow, guarantees that information flow is pushing To the integrality before user, obtains effective information in time for subsequent user and basis is provided.In some embodiments, in step In S102, if the quantity of the part first information item is less than or equal to scheduled first amount threshold, to the part first Item of information carries out matching inquiry in the local cache of information flow discharge device respectively, to obtain corresponding one or more second Item of information, wherein each second item of information corresponds to the first information item lacked in the response message;According to institute Response message and one or more of second items of information are stated, corresponding second information flow is generated.For example, information flow discharge device The part first information item that response message confirmation is lacked is (for example, first information item A, first information item B and the first letter Cease item C) matching inquiry is carried out in local cache respectively (for example, being matched according to classification, the property of the first information item Inquiry), to obtain corresponding one or more second items of information, wherein each second item of information is corresponding as replacement information items One lacked in the response message the first information item.The item of information only lacked in response message is less than or equal to In the case where scheduled first amount threshold (for example, 1-2 item of information), each can be lacked by searching in local cache Corresponding second item of information of one item of information carrys out completion first information stream, to obtain the second information flow, improves the second information flow The efficiency of generation.In some embodiments, in step s 102, if the quantity of the part first information item is greater than described first Amount threshold, information flow discharge device determine quasi- the second information flow for pushing to the user equipment;By in the information flow Matching inquiry is carried out in the local cache of discharge device to obtain the content information of each item of information in second information flow.Example Such as, information flow discharge device receives the response message that the server is returned based on the acquisition request, if lacking in response message When the quantity of few first information item is greater than first amount threshold, the second information flow of quasi- push, information flow are redefined Discharge device according to response in information the part first information item lacked and the first information item not lacked respectively locally slow It deposits middle progress matching inquiry (for example, matching inquiry is carried out according to the classification of the first information item, property), it is corresponding to obtain One or more second items of information, wherein each second item of information corresponds in the response message as replacement information items One or more first information item, subsequent information flow discharge device are complete by one or more second item of information redefined Portion substitutes the item of information content in the response message, to obtain the second information flow, improves the effect of the second information flow generation Rate.In some embodiments, in step s 102, if the response message lacks the part that the first information stream includes or complete Portion's first information item, information flow discharge device determine quasi- the second information flow for pushing to the user equipment;By in the letter It ceases and carries out matching inquiry in the local cache of stream distribution equipment to obtain the content information of each item of information in second information flow, Wherein, the item of information content-data obtained in advance is stored in the local cache.For example, described in the reception of information flow discharge device The response message that server is returned based on the acquisition request, if information flow discharge device, which determines, lacks at least in response message One item of information, redefines the second information flow of quasi- push, the part that information flow discharge device lacks in information according to response the One item of information and the first information item not lacked carry out matching inquiry (for example, according to described first in local cache respectively Classification, the property of item of information carry out matching inquiry), to obtain corresponding one or more second items of information, wherein each second Item of information corresponds to one or more first information item in the response message, subsequent information flow point as replacement information items Equipment is sent out by the item of information content in response message described in one or more the second item of information replacing whole redefined, from And the second information flow is obtained, improve the efficiency of the second information flow generation.
In step s 103, information flow discharge device is by second information stream to the user equipment.In information The confirmation of stream distribution equipment is intended after being sent to the second information flow of user equipment, and second information stream to the user is set It is standby.Under the premise of being stored with the item of information content-data obtained in advance in the local cache, server is avoided without content The case where return.
For example, user holds user equipment, the application interface for applying A is presented in user equipment.This applies the corresponding information flow of A Discharge device (for example, using the corresponding network equipment of A) is sent to server (for example, third party's network equipment) about the first letter The acquisition request of stream is ceased, and receives the response message that the server is returned based on the acquisition request, wherein first letter Breath stream includes the quasi- one or more first information items for pushing to user equipment, if the response message lacks part described first Part first information item that information flow includes (for example, the response message includes the items of information such as the text of Sport Class, picture, Lack the video information items of Sport Class), information flow discharge device carries out matching inquiry according to Sport Class in local cache To obtain corresponding second item of information (for example, other video informations related with sport), wherein stored in the local cache There is the item of information content-data obtained in advance.Then, information flow discharge device is by the second information flow (text of Sport Class Word, picture and video information related with sport) it is sent to the user equipment, the application interface using A of user equipment In receive the pushed information of the second information flow.
In some embodiments, the method also includes step S106 (not shown), in step s 106, information stream distribution Equipment obtains item of information content-data according to scheduled storage condition, by the local cache from the server in advance, And it is stored.It is follow-up service in the case where local cache obtains item of information content-data from the server in advance The imperfect supplement that carries out of the response message that device returns provides the foundation.In some embodiments, the predetermined storage condition includes At least one of below:
1) the item of information content-data does not repeat to be stored in the local cache;
For example, the local cache of information flow discharge device periodically from server obtain item of information content-data, and according to Whether the item of information content-data that local cache log confirmation is got repeats with the data being locally stored, if repeating, house The information item data for abandoning the acquisition stores the information item data into local cache if not repeating.
2) content intact of the item of information content-data;
3) data format of the item of information content-data is correct;
4) content of the item of information content-data is not empty.
For example, the local cache of information flow discharge device periodically obtains item of information content-data from server, and detect The validity of the item of information content-data of acquisition, if effectively (for example, the content intact of the item of information content-data, data lattice Formula is correct and content is not empty), which is stored into local cache, if in vain, giving up the information of the acquisition Item data.Under the conditions of this acquisition, the lossless information flow of high quality can be obtained.
In some embodiments, the method also includes step S104 (not shown), in step S104, information stream distribution Equipment is updated operation to the item of information content-data, and is stored.It is carried out more to the item of information content-data Under news, valid data can be obtained in time for subsequent user, basis is provided, while made all within the same time User can be pushed to different content.In some embodiments, the update operation includes at least one of the following:
If 1) the remaining access times of the item of information content-data are less than scheduled frequency threshold value, will be in the item of information The remaining access times for holding data are set as predetermined number of times threshold value;
For example, information flow discharge device periodically successively updates the one or more item of information content number in local cache According to if the remaining access times of this item of information content-data are less than scheduled frequency threshold value (for example, 0 time), to this information Item content-data executes delete operation, and is updated to the new item of information content-data obtained from server, and new information is arranged The remaining access times of item content-data are set as predetermined number of times threshold value.
If 2) the current holding time of the item of information content-data is greater than scheduled effective time threshold value, by the information The current holding time of item content-data is set as specified time threshold value.
For example, information flow discharge device periodically successively updates the one or more item of information content number in local cache According to if the current holding time of this item of information content-data is greater than scheduled effective time threshold value (for example, when scheduled effective Between threshold value be 2h, current holding time of this item of information content-data is 3h), deletion is executed to this item of information content-data Operation, and it is updated to the new item of information content-data obtained from server, the current guarantor of new item of information content-data is set Depositing the time is set as specified time threshold value.It is subsequent user energy in the case where being updated to the item of information content-data Enough valid data that obtain in time provide basis, while it is different that all users within the same time are pushed to Content.
In some embodiments, in step s 103, information flow discharge device detects whether second information flow meets Scheduled querying condition, if satisfied, by second information stream to the user equipment.Can be timely for subsequent user Basis is provided to valid data, while all users within the same time being allowed to be pushed to different content.In In some embodiments, the scheduled querying condition includes following at least any one:
1) the remaining access times of second information flow are greater than pre-determined number threshold value;
2) the current holding time of second information flow is less than scheduled effective time threshold value;
3) second information flow is not by the user equipment access;
For example, information flow discharge device obtains the second information flow generated, and to multiple second letters in the second information flow Breath item data is detected.Information flow discharge device detects the second information item data one by one, judges the second information item data Whether it was used by a user, and if using, traversed other multiple second information item datas, was not accessed by the user until inquiring The second information item data.Then, the residue for the second information item data that the judgement of information flow discharge device was not accessed by the user Whether access times are greater than pre-determined number threshold value, if so, information flow discharge device subsequently determines whether working as the second information item data Whether the preceding holding time is less than scheduled effective time threshold value, if so, the second information that will be generated by the second information item data Stream pushes to user equipment.Valid data can be obtained in time for subsequent user, basis is provided, while making within the same time All users can be pushed to different content.
In some embodiments, the method also includes step S105 (not shown), in step s105, if the user Equipment gets second information flow, and information flow discharge device makes the corresponding residue of the second information flow described in local cache Reducing is executed with number.For example, all the second items of information in the second information flow are pushed to use in information flow discharge device After the equipment of family, the remaining access times of second item of information of whole are carried out to subtract primary operation, it is convenient surplus in subsequent basis Remaining access times operate to be updated.
Fig. 3 shows the method that local cache is safeguarded in a kind of information flow distribution procedure according to the application one embodiment, The local cache of information flow discharge device obtains data (step S21) from content server (content source), if the data have Effect (for example, the content intact of the data, data format are correct and content is not empty), information flow discharge device, which detects this, to be had Whether effect data have existed in local cache (step S22), if it is not, local cache stores the valid data;If so, Whether the remaining access times that information flow discharge device detects the valid data are 0 (step S23), and if 0 time, local cache is more The new data (for example, deleting the data, obtaining more new data corresponding with the data), and the residue for resetting the data makes With number and time-out time.If remaining access times are greater than 0 time, when information flow discharge device detects the data and whether has arrived expired Between, if so, local cache updates the data (for example, deleting the data, obtaining more new data corresponding with the data), and again The remaining access times and time-out time (step S24) of the data are set.
The method that Fig. 4 shows a kind of information stream distribution according to the application another embodiment, information flow discharge device exist Called data in local cache, if local cache is sky, information flow discharge device obtains empty data;If local cache is not sky, Information flow discharge device obtains a data, if the data are not empty data, information flow discharge device judges the residue of the data Whether access times are 0 (step S31), and if 0 time, local cache updates data (for example, deleting the data) (step S32), the detection that new data carry out residue degree is then obtained;If remaining access times are greater than 0 time, information flow discharge device Detect whether the data have arrived expired time (step S33), if so, local cache updates the data (for example, deleting the data), Then obtain the detection that new data carry out residue degree;If the data do not arrive expired time, the detection of information flow discharge device should Whether data were used by a user (step S34), if the data had had the historical record for pushing to user equipment, information flow Discharge device obtains the detection that new data carry out residue degree;If the data do not arrive expired time, and the data did not had and pushed away It send to the historical record of user equipment, the data are pushed to use by information flow discharge device Family equipment, while the remaining access times of the data are subtracted 1 and are marked and are had been used.
Fig. 5 shows a kind of information flow discharge device of information stream distribution of one embodiment according to the application, the letter It ceases stream distribution equipment and includes module 101, one or two modules of module 102 and one or three 103 one by one.Module 101 one by one are used for server The acquisition request about first information stream is sent, and receives the response message that the server is returned based on the acquisition request, Wherein, the first information stream includes the quasi- one or more first information items for pushing to user equipment;One or two modules 102 are used If lacking the part first information item that the first information stream includes in the response message, in the local of information flow discharge device Matching inquiry is carried out in caching to obtain corresponding second information flow, wherein be stored in the local cache and obtain in advance Item of information content-data;One or three modules 103 are used for second information stream to the user equipment.
Specifically, module 101 one by one for sending the acquisition request about first information stream to server, and receive institute State the response message that server is returned based on the acquisition request, wherein the first information stream includes quasi- pushing to user and setting Standby one or more first information items.Wherein, the information flow discharge device includes the user equipment pair with acquisition information flow The system equipment for the server-side answered, the server include in database, redis caching and third party's http request interface etc. Hold provider, the first information stream includes the first information item of multiple classifications such as video, picture, text, the response message Including the one or more first information items returned based on the acquisition request.For example, being pushed information in user equipment waiting During stream, information flow discharge device sends the acquisition request about first information stream to server, and receives the service The response message that device is returned based on the acquisition request.
One or two modules 102, if lacking the part first information item that the first information stream includes for the response message, Matching inquiry is carried out in the local cache of the information flow discharge device to obtain corresponding second information flow, wherein described The item of information content-data obtained in advance is stored in local cache.For example, being closed if information flow discharge device is sent to server In the acquisition request of first information stream, wherein the first information stream includes the quasi- multiple first information for pushing to user equipment , and receiving the response message that the server is returned based on the acquisition request, wherein the response message includes being less than institute The item of information of multiple first information items is stated, information flow discharge device lacks the part first information stream packet in the response message In the case where the part first information item included, in the local cache of information flow discharge device carry out matching inquiry (for example, according to The classification for the first information item that the response message lacks carries out matching inquiry) to obtain corresponding second information flow, wherein institute State the item of information content-data for being stored in local cache and obtaining in advance.In some embodiments, described in the information flow point It sends out and carries out matching inquiry in the local cache of equipment to obtain corresponding second information flow, comprising: to the part first information Item carries out matching inquiry in the local cache of information flow discharge device respectively, to obtain corresponding one or more second information , wherein each second item of information corresponds to a first information item of the part first information item;Believed according to the response Breath and one or more of second items of information generate corresponding second information flow.It is described in the information flow discharge device It is same or similar with the embodiment of Fig. 2 with the operation for obtaining corresponding second information flow that matching inquiry is carried out in local cache, therefore It repeats no more, is incorporated herein by reference.In some embodiments, one or two module 12, if being used for the part first The quantity of item of information is less than or equal to scheduled first amount threshold, to the part first information item respectively in information stream distribution Matching inquiry is carried out in the local cache of equipment, to obtain corresponding one or more second items of information, wherein each second letter Breath item corresponds to the first information item lacked in the response message;According to the response message and it is one or Multiple second items of information generate corresponding second information flow.It is described to the part first information item respectively in the information flow The operation that matching inquiry is carried out in the local cache of discharge device is same or similar with the embodiment of Fig. 2, and so it will not be repeated, herein It is incorporated herein by reference.In some embodiments, one or two module 102, if the quantity for the part first information item Greater than first amount threshold, quasi- the second information flow for pushing to the user equipment is determined;By in the information flow point It sends out and carries out matching inquiry in the local cache of equipment to obtain the content information of each item of information in second information flow.The portion The operation for dividing the quantity of first information item to be greater than first amount threshold is same or similar with the embodiment of Fig. 2, therefore no longer superfluous It states, is incorporated herein by reference.In some embodiments, one or two module 102, if lacking institute for the response message Stating first information stream some or all of includes first information item, determines quasi- the second information flow for pushing to the user equipment; By matching inquiry being carried out in the local cache of the information flow discharge device to obtain each information in second information flow The content information of item, wherein the item of information content-data obtained in advance is stored in the local cache.The response message lacks Few first information stream some or all of includes that the operation of first information item is same or similar with the embodiment of Fig. 2, therefore not It repeats, is incorporated herein by reference again.
One or three modules 103 are used for second information stream to the user equipment.It is true in information flow discharge device Recognize after intending being sent to the second information flow of user equipment, by second information stream to the user equipment.At described Under the premise of being stored with the item of information content-data obtained in advance in ground caching, the case where server is returned without content is avoided.
Here, the example in relation to above-mentioned module one by one 101, the specific implementation of one or two modules of module 102 and one or three 103 Same or similar with the embodiment in relation to step S101, S102 and S103 in Fig. 2, so it will not be repeated, wraps by reference herein Contained in this.
In some embodiments, the information flow discharge device further includes one or six module, 106 (not shown), one or six modules 106, for item of information content number to be obtained from the server in advance by the local cache according to scheduled storage condition According to, and stored.The specific implementation of one or six module 106 is same or similar with the embodiment of abovementioned steps S106, So it will not be repeated, is incorporated herein by reference.In some embodiments, the predetermined storage condition include it is following at least One:
1) the item of information content-data does not repeat to be stored in the local cache;
2) content intact of the item of information content-data;
3) data format of the item of information content-data is correct;
4) content of the item of information content-data is not empty.
The operation of the predetermined storage condition and the embodiment of Fig. 2 are same or similar, and so it will not be repeated, herein with reference side Formula is incorporated herein.
In some embodiments, the information flow discharge device further includes one or four module, 104 (not shown), one or four modules 104, for being updated operation to the item of information content-data, and stored.The specific implementation of one or four module 104 Mode is same or similar with the embodiment of abovementioned steps S104, and so it will not be repeated, is incorporated herein by reference.Some In embodiment, the update operation is included at least one of the following:
If 1) the remaining access times of the item of information content-data are less than scheduled frequency threshold value, will be in the item of information The remaining access times for holding data are set as predetermined number of times threshold value;
If 2) the current holding time of the item of information content-data is greater than scheduled effective time threshold value, by the information The current holding time of item content-data is set as specified time threshold value.
The update operation is same or similar with the embodiment of Fig. 2, and so it will not be repeated, is contained in by reference herein This.
In some embodiments, one or three module 103, for detecting whether second information flow meets scheduled inquiry item Part, if satisfied, by second information stream to the user equipment.It is pre- whether detection second information flow meets The operation of fixed querying condition and the embodiment of Fig. 2 are same or similar, and so it will not be repeated, is incorporated herein by reference. In some embodiments, the scheduled querying condition includes following at least any one:
1) the remaining access times of second information flow are greater than pre-determined number threshold value;
2) the current holding time of second information flow is less than scheduled effective time threshold value;
3) second information flow is not by the user equipment access;
The operation of the scheduled querying condition is same or similar with the embodiment of Fig. 2, and so it will not be repeated, herein with reference Mode is incorporated herein.
In some embodiments, the information flow discharge device further includes 105 (not shown) of First Five-Year Plan module, First Five-Year Plan module 105, it is corresponding to the second information flow described in local cache surplus if getting second information flow for the user equipment Remaining access times execute reducing.The specific implementation of the First Five-Year Plan module 105 is identical as the embodiment of abovementioned steps S105 Or it is close, so it will not be repeated, is incorporated herein by reference.
In addition to the method and apparatus of the various embodiments described above introduction, present invention also provides a kind of computer-readable storage mediums Matter, the computer-readable recording medium storage have computer code, when the computer code is performed, such as preceding any one The method is performed.
Present invention also provides a kind of computer program products, when the computer program product is executed by computer equipment When, such as preceding described in any item methods are performed.
Present invention also provides a kind of computer equipment, the computer equipment includes:
One or more processors;
Memory, for storing one or more computer programs;
When one or more of computer programs are executed by one or more of processors so that it is one or Multiple processors realize such as preceding described in any item methods.
Fig. 6 shows the exemplary system that can be used for implementing each embodiment described herein;
As shown in Figure 6 in some embodiments, system 300 can be as any one equipment in each embodiment. In some embodiments, system 300 may include one or more computer-readable mediums with instruction (for example, system stores Device or NVM/ store equipment 320) and coupled with the one or more computer-readable medium and be configured as executing instruction with Realize module thereby executing movement described herein one or more processors (for example, (one or more) processor 305)。
For one embodiment, system control module 310 may include any suitable interface controller, with to (one or It is multiple) at least one of processor 305 and/or any suitable equipment or component that communicate with system control module 310 mentions For any suitable interface.
System control module 310 may include Memory Controller module 330, to provide interface to system storage 315.It deposits Memory controller module 330 can be hardware module, software module and/or firmware module.
System storage 315 can be used for for example, load of system 300 and storing data and/or instruction.For a reality Example is applied, system storage 315 may include any suitable volatile memory, for example, DRAM appropriate.In some embodiments In, system storage 315 may include four Synchronous Dynamic Random Access Memory of Double Data Rate type (DDR4SDRAM).
For one embodiment, system control module 310 may include one or more input/output (I/O) controller, with Equipment 320 is stored to NVM/ and (one or more) communication interface 325 provides interface.
For example, NVM/ storage equipment 320 can be used for storing data and/or instruction.NVM/ storage equipment 320 may include appointing It anticipates nonvolatile memory appropriate (for example, flash memory) and/or to may include that any suitable (one or more) is non-volatile deposit Equipment is stored up (for example, one or more hard disk drives (HDD), one or more CD (CD) drivers and/or one or more Digital versatile disc (DVD) driver).
NVM/ storage equipment 320 may include a part for the equipment being physically mounted on as system 300 Storage resource or its can by the equipment access without a part as the equipment.For example, NVM/ storage equipment 320 can It is accessed by network via (one or more) communication interface 325.
(one or more) communication interface 325 can be provided for system 300 interface with by one or more networks and/or with Other any equipment communications appropriate.System 300 can be according to any mark in one or more wireless network standards and/or agreement Quasi- and/or agreement is carried out wireless communication with the one or more components of wireless network.
For one embodiment, at least one of (one or more) processor 305 can be with system control module 310 The logic of one or more controllers (for example, Memory Controller module 330) is packaged together.For one embodiment, (one It is a or multiple) at least one of processor 305 can encapsulate with the logic of one or more controllers of system control module 310 Together to form system in package (SiP).For one embodiment, at least one of (one or more) processor 305 It can be integrated on same mold with the logic of one or more controllers of system control module 310.For one embodiment, At least one of (one or more) processor 305 can be with the logic of one or more controllers of system control module 310 It is integrated on same mold to form system on chip (SoC).
In various embodiments, system 300 can be, but not limited to be: server, work station, desk-top calculating equipment or movement It calculates equipment (for example, lap-top computing devices, handheld computing device, tablet computer, net book etc.).In various embodiments, System 300 can have more or fewer components and/or different frameworks.For example, in some embodiments, system 300 includes One or more video cameras, keyboard, liquid crystal display (LCD) screen (including touch screen displays), nonvolatile memory port, Mutiple antennas, graphic chips, specific integrated circuit (ASIC) and loudspeaker.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, the software program of the application can be executed to implement the above steps or functions by processor.Similarly, the application Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, example Such as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution. Those skilled in the art will be understood that the existence form of computer program instructions in computer-readable medium includes but is not limited to Source file, executable file, installation package file etc., correspondingly, the mode that computer program instructions are computer-executed include but Be not limited to: the computer directly execute the instruction or the computer compile the instruction after execute program after corresponding compiling again, Perhaps the computer reads and executes the instruction or after the computer reads and install and execute corresponding installation again after the instruction Program.Here, computer-readable medium can be for computer access any available computer readable storage medium or Communication media.
Communication media includes whereby including, for example, computer readable instructions, data structure, program module or other data Signal of communication is transmitted to the medium of another system from a system.Communication media may include having the transmission medium led (such as electric Cable and line (for example, optical fiber, coaxial etc.)) and can propagate wireless (not having the transmission the led) medium of energy wave, such as sound, electricity Magnetic, RF, microwave and infrared.Computer readable instructions, data structure, program module or other data can be embodied as example wireless Medium (such as carrier wave or be such as embodied as spread spectrum technique a part similar mechanism) in modulated message signal. Term " modulated message signal " refers to that one or more feature is modified or is set in a manner of encoded information in the signal Fixed signal.Modulation can be simulation, digital or Hybrid Modulation Technology.
As an example, not a limit, computer readable storage medium may include such as computer-readable finger for storage Enable, the volatile and non-volatile that any method or technique of the information of data structure, program module or other data is realized, can Mobile and immovable medium.For example, computer readable storage medium includes, but are not limited to volatile memory, such as with Machine memory (RAM, DRAM, SRAM);And nonvolatile memory, such as flash memory, various read-only memory (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, FeRAM);And magnetic and optical storage apparatus (hard disk, Tape, CD, DVD);Or other currently known media or Future Development can store the computer used for computer system Readable information/data.
Here, including a device according to one embodiment of the application, which includes for storing computer program The memory of instruction and processor for executing program instructions, wherein when the computer program instructions are executed by the processor When, trigger method and/or technology scheme of the device operation based on aforementioned multiple embodiments according to the application.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple Unit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to table Show title, and does not indicate any particular order.

Claims (14)

1. a kind of method of information stream distribution is applied to information flow discharge device, wherein the described method includes:
The acquisition request about first information stream is sent to server, and receives the server and is returned based on the acquisition request Response message, wherein the first information stream includes the quasi- one or more first information items for pushing to user equipment;
If the response message lacks the part first information item that the first information stream includes, in the information flow discharge device Local cache in carry out matching inquiry to obtain corresponding second information flow, wherein be stored in the local cache in advance The item of information content-data of acquisition;
By second information stream to the user equipment.
It is described to be carried out in the local cache of the information flow discharge device 2. according to the method described in claim 1, wherein With inquiry to obtain corresponding second information flow, comprising:
Matching inquiry is carried out in the local cache of the information flow discharge device respectively to the part first information item, to obtain Obtain corresponding one or more second items of information, wherein each second item of information corresponds to the one of the part first information item A first information item;
According to the response message and one or more of second items of information, corresponding second information flow is generated.
3. according to the method described in claim 1, wherein, including if the response message lacks the first information stream Part first information item carries out matching inquiry in the local cache of the information flow discharge device to obtain corresponding second letter Breath stream, comprising:
If the quantity of the part first information item is less than or equal to scheduled first amount threshold, to the part first information Item carries out matching inquiry in the local cache of the information flow discharge device respectively, to obtain corresponding one or more second Item of information, wherein each second item of information corresponds to the first information item lacked in the response message;
According to the response message and one or more of second items of information, corresponding second information flow is generated.
4. according to the method described in claim 3, wherein, including if the response message lacks the first information stream Part first information item carries out matching inquiry in the local cache of the information flow discharge device to obtain corresponding second letter Breath stream, further includes:
If the quantity of the part first information item is greater than first amount threshold, determines and intend pushing to the user equipment Second information flow;
It is each in second information flow to obtain by carrying out matching inquiry in the local cache of the information flow discharge device The content information of item of information.
5. according to the method described in claim 1, wherein, including if the response message lacks the first information stream Part first information item carries out matching inquiry in the local cache of the information flow discharge device to obtain corresponding second letter Breath stream, comprising:
If it some or all of includes first information item that the response message, which lacks the first information stream, determines and quasi- pushes to institute State the second information flow of user equipment;
It is each in second information flow to obtain by carrying out matching inquiry in the local cache of the information flow discharge device The content information of item of information, wherein the item of information content-data obtained in advance is stored in the local cache.
6. according to the method described in claim 1, wherein, the method also includes:
According to scheduled storage condition, item of information content-data is obtained from the server by the local cache in advance, And it is stored.
7. according to the method described in claim 6, wherein, the predetermined storage condition includes at least one of the following:
The item of information content-data does not repeat to be stored in the local cache;
The content intact of the item of information content-data;
The data format of the item of information content-data is correct;
The content of the item of information content-data is not empty.
8. according to the method described in claim 6, wherein, the method also includes:
Operation is updated to the item of information content-data, and is stored.
9. according to the method described in claim 8, wherein, the update operation includes at least one of the following:
If the remaining access times of the item of information content-data are less than scheduled frequency threshold value, by the item of information content-data Remaining access times be set as predetermined number of times threshold value;
If the current holding time of the item of information content-data is greater than scheduled effective time threshold value, by the item of information content The current holding time of data is set as specified time threshold value.
10. described by second information stream to the user equipment, packet according to the method described in claim 1, wherein It includes:
Detect whether second information flow meets scheduled querying condition, if satisfied, by second information stream to institute State user equipment.
11. according to the method described in claim 10, wherein, the scheduled querying condition includes following at least any one:
The remaining access times of second information flow are greater than pre-determined number threshold value;
The current holding time of second information flow is less than scheduled effective time threshold value;
Second information flow is not by the user equipment access.
12. according to the method described in claim 10, wherein, the method also includes:
If the user equipment gets second information flow, the corresponding residue of the second information flow described in local cache is made Reducing is executed with number.
13. a kind of information flow discharge device, which is characterized in that the equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute the method as described in any one of claims 1 to 12.
14. a kind of computer-readable medium of store instruction, described instruction makes system carry out such as claim 1 when executed To the operation of any one of 12 the methods.
CN201910718210.7A 2019-08-05 2019-08-05 A kind of method and apparatus of information stream distribution Pending CN110502696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910718210.7A CN110502696A (en) 2019-08-05 2019-08-05 A kind of method and apparatus of information stream distribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910718210.7A CN110502696A (en) 2019-08-05 2019-08-05 A kind of method and apparatus of information stream distribution

Publications (1)

Publication Number Publication Date
CN110502696A true CN110502696A (en) 2019-11-26

Family

ID=68587879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910718210.7A Pending CN110502696A (en) 2019-08-05 2019-08-05 A kind of method and apparatus of information stream distribution

Country Status (1)

Country Link
CN (1) CN110502696A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182050A (en) * 2019-12-26 2020-05-19 上海掌门科技有限公司 Method and equipment for realizing communication between application and server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101529372A (en) * 2006-09-08 2009-09-09 谷歌公司 Local search using address completion
CN104580437A (en) * 2014-12-30 2015-04-29 创新科存储技术(深圳)有限公司 Cloud storage client and high-efficiency data access method thereof
CN105791366A (en) * 2014-12-26 2016-07-20 中国电信股份有限公司 Large file HTTP-Range downloading method, cache server and system
CN107908775A (en) * 2017-11-30 2018-04-13 掌阅科技股份有限公司 The dynamic of merchandise news shows method, electronic equipment, storage medium
CN109871251A (en) * 2019-01-17 2019-06-11 平安科技(深圳)有限公司 A kind of processing method of response data, device, storage medium and terminal device
CN110069267A (en) * 2019-03-15 2019-07-30 平安普惠企业管理有限公司 Data-updating method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101529372A (en) * 2006-09-08 2009-09-09 谷歌公司 Local search using address completion
CN105791366A (en) * 2014-12-26 2016-07-20 中国电信股份有限公司 Large file HTTP-Range downloading method, cache server and system
CN104580437A (en) * 2014-12-30 2015-04-29 创新科存储技术(深圳)有限公司 Cloud storage client and high-efficiency data access method thereof
CN107908775A (en) * 2017-11-30 2018-04-13 掌阅科技股份有限公司 The dynamic of merchandise news shows method, electronic equipment, storage medium
CN109871251A (en) * 2019-01-17 2019-06-11 平安科技(深圳)有限公司 A kind of processing method of response data, device, storage medium and terminal device
CN110069267A (en) * 2019-03-15 2019-07-30 平安普惠企业管理有限公司 Data-updating method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182050A (en) * 2019-12-26 2020-05-19 上海掌门科技有限公司 Method and equipment for realizing communication between application and server
CN111182050B (en) * 2019-12-26 2022-10-11 上海掌门科技有限公司 Method and equipment for realizing communication between application and server

Similar Documents

Publication Publication Date Title
CN108958780A (en) A kind of method and apparatus of the more new information for program of lodging for rendering
CN104899325A (en) APP (application) acquired data collection method, terminal, server and system
CN110765395B (en) Method and equipment for providing novel information
CN110266505A (en) A kind of method and apparatus managing session group
CN103279396A (en) System and method for transferring applications and session state to a secondary device
CN110413827A (en) It is a kind of for providing the method and apparatus of target image information
CN110502873A (en) A kind of method and apparatus for the reading permission managing novel chapters and sections
CN110780887A (en) Method and equipment for providing application installation package
CN103067479A (en) Network disk synchronized method and system based on file coldness and hotness
CN110032321A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN112995239A (en) Data processing method and device
EP3506599B1 (en) Method for synchronizing contact information, apparatus and medium
CN105404437B (en) A kind of method and device of information operation
CN107086937A (en) A kind of monitoring method and equipment
CN109710280B (en) Method and equipment for installing application on user equipment
CN110519250A (en) It is a kind of that the method and apparatus of information flow is provided
CN110262810A (en) A kind of method and apparatus of installation application
CN110515692A (en) A kind of method and apparatus applied for starting reading
CN109976832A (en) It is a kind of that the method and apparatus of boarding program is provided
CN110502299A (en) It is a kind of for providing the method and apparatus of novel information
CN110286920A (en) A kind of method and apparatus of installation application
CN110502696A (en) A kind of method and apparatus of information stream distribution
CN110166955B (en) Method and equipment for reminding schedule
CN110516414A (en) A kind of method and apparatus of access novel payment chapters and sections
CN102902593A (en) Protocol distribution processing system based on cache mechanism

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200703

Address after: Room 909, No. 12, Huangshan Road, Jianye District, Nanjing City, Jiangsu Province

Applicant after: Nanjing Shangwang Network Technology Co.,Ltd.

Address before: 201806, room 5358, 140 Shanghai Yi Road, Shanghai, Jiading District

Applicant before: SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd.