CN108959443A - A kind of information-pushing method, information processing method and device - Google Patents

A kind of information-pushing method, information processing method and device Download PDF

Info

Publication number
CN108959443A
CN108959443A CN201810608401.3A CN201810608401A CN108959443A CN 108959443 A CN108959443 A CN 108959443A CN 201810608401 A CN201810608401 A CN 201810608401A CN 108959443 A CN108959443 A CN 108959443A
Authority
CN
China
Prior art keywords
information
keyword
pushed
candidate
candidate information
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
CN201810608401.3A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201810608401.3A priority Critical patent/CN108959443A/en
Publication of CN108959443A publication Critical patent/CN108959443A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a kind of information-pushing methods, information processing method and device, wherein, above- mentioned information method for pushing is applied to Front End Server, it include: to be recorded according to the information browse of client, determine keyword corresponding to information to be pushed, the keyword is sent to background server, so that background server searches the candidate information to match with the keyword in the database, it will be in candidate information deposit Redis set, Redis set is stored in the memory of the background server, the candidate information for the condition that meets is obtained from Redis set, as information to be pushed;The information to be pushed is sent to the client.The time-consuming of process of information push can be reduced using technical solution provided by the embodiment of the present invention, to improve information pushing efficiency.

Description

A kind of information-pushing method, information processing method and device
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of information-pushing method, information processing method and dress It sets.
Background technique
With popularizing for Internet technology, have become user in information such as Client browse news, information using network Obtain a kind of important way of information.It, can be in such a way that information pushes in order to make user get newest information in time Send information to client.
The prior art when carrying out information push, frequently with method be that Front End Server is clear according to the information of client It lookes at record, is obtained from the database being stored on background server hard disk and record corresponding information with the Client browse, It is pushed to client.
When using the prior art to client terminal pushed information, Front End Server is needed from the number on background server hard disk According to obtaining information in library, and the speed that Front End Server obtains data from the hard disk of background server is slower, and information is caused to push away Taking a long time for journey is passed through, pushing efficiency is lower.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of information-pushing method, information processing method and device, to reduce The time-consuming of process of information push, to improve information pushing efficiency.
Specific technical solution is as follows:
In a first aspect, being applied to Front End Server the embodiment of the invention provides a kind of information-pushing method, comprising:
It is recorded according to the information browse of client, determines keyword corresponding to information to be pushed;
The keyword is sent to background server, so that the background server is searched and the pass in the database The candidate information that key word matches, will be in candidate information deposit Redis set;Redis set be stored in it is described after In the memory of platform server;
The candidate information that the condition that meets is obtained from Redis set, as information to be pushed;
The information to be pushed is sent to the client.
Optionally, the candidate information that the condition that meets is obtained from Redis set, as information to be pushed, packet It includes:
From the candidate information after Redis set sequence, the candidate information for being arranged in predetermined position is obtained, as Information to be pushed.
Second aspect, the embodiment of the invention provides a kind of information processing methods, are applied to background server, comprising:
Receive the keyword that Front End Server is sent;Wherein, the keyword is the Front End Server according to client Information browse record determine after be sent to the background server;
The candidate information to match with the keyword is searched in the database;
By in candidate information deposit Redis set, meet so that Front End Server is obtained from Redis set The candidate information of condition is sent to the client as information to be pushed, and by the information to be pushed;The Redis collection Conjunction is stored in the memory of the background server.
It is optionally, described to search the candidate information to match with the keyword in the database, comprising:
Lookup matches with the keyword in the database, and the candidate information updated within a preset period of time.
It is optionally, described that the candidate information is stored in Redis set, comprising:
According to the renewal time of each candidate information, the candidate information is ranked up, by the time after sequence It selects in information deposit Redis set.
It is optionally, described that the candidate information is stored in Redis set, comprising:
It is directed to the browsing time of each candidate information according to the client, the candidate information is ranked up, it will In candidate information deposit Redis set after sequence.
Optionally, after the keyword for receiving the Front End Server transmission, further includes:
According to the keyword, analog information corresponding with the keyword is obtained in the database;
The analog information is stored in and is recommended in article library, the recommendation article inventory is stored in the database;
Correspondingly, described search the candidate information to match with the keyword in the database, comprising:
The analog information to match with the keyword is searched in recommending article library, as candidate information.
It optionally, include the corresponding relationship of each information and each message identification in the database;Any message identification Include: the key word in title of the information, the public keyword of the information, the information keys of the information, the information information compile Number, the information of the information deliver at least one of time.
The third aspect, the embodiment of the invention provides a kind of information push-delivery apparatus, are applied to Front End Server, comprising:
Keyword determination unit determines pass corresponding to information to be pushed for recording according to the information browse of client Key word;
Keyword transmission unit, for the keyword to be sent to background server, so that the background server exists The candidate information to match with the keyword is searched in database, it will be in candidate information deposit Redis set;It is described Redis set is stored in the memory of the background server;
Information to be pushed determination unit meets the candidate information of condition for obtaining from Redis set, as to Pushed information;
Information to be pushed transmission unit, for the information to be pushed to be sent to the client.
Optionally, the information to be pushed determination unit, is specifically used for:
From the candidate information after Redis set sequence, the candidate information for being arranged in predetermined position is obtained, as Information to be pushed.
Fourth aspect, the embodiment of the invention provides a kind of information processing units, are applied to background server, comprising:
Keyword receiving unit, for receiving the keyword of Front End Server transmission;Wherein, before the keyword is described Platform server is sent to the background server after determining according to the information browse of client record;
Candidate information searching unit, for searching the candidate information to match with the keyword in the database;
Candidate information unloading unit, for by candidate information deposit Redis set, so that Front End Server is from institute The candidate information for obtaining the condition that meets in Redis set is stated, is sent to institute as information to be pushed, and by the information to be pushed State client;The Redis set is stored in the memory of the background server.
Optionally, the candidate information searching unit, is specifically used for:
Lookup matches with the keyword in the database, and the candidate information updated within a preset period of time.
Optionally, the candidate information unloading unit, is specifically used for:
According to the renewal time of each candidate information, the candidate information is ranked up, by the time after sequence It selects in information deposit Redis set.
Optionally, the candidate information unloading unit, is specifically used for:
It is directed to the browsing time of each candidate information according to the client, the candidate information is ranked up, it will In candidate information deposit Redis set after sequence.
Optionally, the information processing unit further include:
Analog information acquiring unit, for obtaining in the database corresponding with the keyword according to the keyword Analog information;
Analog information unloading unit is recommended in article library, the recommendation article inventory for the analog information to be stored in It is stored in the database;
Correspondingly, the candidate information searching unit, is specifically used for: being searched and the keyword phase in recommending article library Matched analog information, as candidate information.
It optionally, include the corresponding relationship of each information and each message identification in the database;Any message identification Include: the key word in title of the information, the public keyword of the information, the information keys of the information, the information information compile Number, the information of the information deliver at least one of time.
5th aspect, the embodiment of the invention also provides a kind of Front End Servers, including processor, communication interface, storage Device and communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the push of any information described in first aspect Method.
6th aspect, the embodiment of the invention also provides a kind of background servers, including processor, communication interface, storage Device and communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the processing of any information described in second aspect Method.
7th aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium Instruction is stored in storage media, when run on a computer, so that computer executes any information described in first aspect Method for pushing.
Eighth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium Instruction is stored in storage media, when run on a computer, so that computer executes any information described in second aspect Processing method.
Information-pushing method, information processing method and device provided in an embodiment of the present invention, Front End Server is according to client The information browse at end records, and determines keyword corresponding to information to be pushed, after the keyword is sent to background server, Background server searches the candidate information to match with the keyword in the database, and the candidate information is stored in Redis In set, Front End Server is obtained from Redis set again meets the candidate information of condition, as information to be pushed, and will be to Pushed information is sent to client, and the Redis set is stored in the memory of the background server.
In the embodiment of the present invention, since Front End Server is from the Redis set being stored in background server memory Information to be pushed is obtained, reads data from the database in background server hard disk so as to reduce Front End Server Number, and the speed that Front End Server obtains information from the memory of background server is greater than Front End Server from background service The speed of information is read in device hard disk, therefore can reduce the time-consuming of process of information push, improves information pushing efficiency.Certainly, It implements any of the products of the present invention or method must be not necessarily required to reach all the above advantage simultaneously.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of information-pushing method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of information processing method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of information push-delivery apparatus provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of information processing unit provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of Front End Server provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of background server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to reduce the time-consuming of process of information push, to improve information pushing efficiency, the embodiment of the invention provides one Kind of information-pushing method, information processing method and device, by Front End Server from being stored in background server memory Information to be pushed is obtained in Redis set, it is possible to reduce Front End Server is read from the database in background server hard disk The number of data improves information pushing efficiency so as to reduce the time-consuming of process of information push.First below to of the invention real Information-pushing method provided by example is applied to be introduced.
It should be noted that information-pushing method provided by the embodiment of the present invention can be applied to Internet technology row Industry.
Information-pushing method provided by the embodiment of the present invention, can be applied to Front End Server, as shown in Figure 1, the party Method may include steps of:
S110: it is recorded according to the information browse of client, determines keyword corresponding to information to be pushed.
It is understood that record the information of the daily browsing of user in the browsing record of client corresponding to user, The information of the daily browsing of user is usually exactly the more interested information of user.Therefore, in embodiments of the present invention, foreground services Device can be recorded according to the information browse of client, keyword corresponding to information to be pushed be determined, so as to according to the pass Key word is to user's pushed information.
For example, the information browse of the available client of Front End Server records, counted from above- mentioned information browsing record The browsing time of the information including any word is more than preset quantity within a preset period of time, then can be using the word as letter to be pushed The corresponding keyword of breath.
Above-mentioned preset time period for example can be from current time in two days, in three days or any times such as in one week The specific time of preset time period can be arranged in section, those skilled in the art according to the actual situation, and the embodiment of the present invention is not specific Limit the time range of above-mentioned preset time period.
Specifically for example, Front End Server is counted from current time in three days from above- mentioned information browsing record, including " generation The browsing time of the information of this word of boundary's cup " is more than 8 times, then " world cup " can serve as key corresponding to information to be pushed Word.
S120: being sent to background server for above-mentioned keyword so that above-mentioned background server search in the database with The candidate information that above-mentioned keyword matches, will be in above-mentioned candidate information deposit Redis set;Above-mentioned Redis set is stored in In the memory of above-mentioned background server.
In order to allow background server preferably to provide information to be pushed for Front End Server, Front End Server has been determined After keyword corresponding to information to be pushed, above-mentioned keyword can be sent to background server.
Above-mentioned Redis set is a storing data library, and the data in Redis set all cache in memory.
Since the memory headroom of server is limited, memory usage, which crosses conference, runs the system of server slowly, causes Server processing speed in the task of processing is excessively slow to be even unable to complete processing.Therefore, in embodiments of the present invention, background service Device can search the candidate to match with above-mentioned keyword after the keyword for receiving Front End Server transmission in the database Information, and will be in candidate information deposit Redis set.
For example, background server can search the phase including above-mentioned keyword or including above-mentioned keyword in the database The candidate information of word is closed, and will be in candidate information deposit Redis set.
Due to Redis set in data all cache the candidate information quantity found from database in memory compared with It is few, so that the memory headroom of the occupied background server of candidate information is also less, it will not influence background server to task Processing speed, while Front End Server can also be made quickly to obtain information to be pushed from background server.
S130: the candidate information for the condition that meets is obtained from above-mentioned Redis set, as information to be pushed.
It is understood that the candidate information to match with above-mentioned keyword that background server is found in the database Usually there are many items, and the information bar number pushed to user is usually less, for example, one or two letter would generally be pushed to user Breath.It therefore, is to implement from a small number of information to be pushed is selected in a fairly large number of candidate information in Redis set in the present invention In example, Front End Server can obtain the candidate information for the condition that meets from above-mentioned Redis set, as information to be pushed.
Such as the most information of click volume can be obtained from above-mentioned Redis set, as information to be pushed;Or it can be with Renewal time newest one or two information are obtained from above-mentioned Redis set, as information to be pushed.
S140: above-mentioned information to be pushed is sent to above-mentioned client.
After Front End Server has determined information to be pushed, so that it may the information to be pushed are sent to client, to use Family gets the pushed information in time.
Information-pushing method provided by the embodiment of the present invention, since Front End Server is from being stored in background server Information to be pushed is obtained in the Redis set deposited, so as to reduce Front End Server from background server hard disk The number of data is read in database, and Front End Server obtains the fast speed of information from the memory of background server, because This can reduce the time-consuming of process of information push, improve information pushing efficiency.
In a kind of embodiment of the embodiment of the present invention, the determination of information to be pushed in step S130, can also by with Under type is realized:
From the candidate information after Redis set sequence, the candidate information for being arranged in predetermined position is obtained, as wait push away It delivers letters breath.
Candidate information after above-mentioned sequence, such as can be the candidate information after sorting sooner or later by renewal time, it can also be with It is the candidate information after how much sorting by click volume.The candidate information for being arranged in predetermined position is obtained, such as can be acquisition It is arranged in first three newest candidate information of renewal time, or can be to obtain and be arranged in first three most candidate of click volume Information.
After candidate information is ranked up, information to be pushed can be selected from the candidate information after sequence more quickly, To improve information pushing speed and information pushing efficiency.
Information processing method is provided for the embodiments of the invention below to be introduced.
Information processing method provided by the embodiment of the present invention is applied to background server, as shown in Fig. 2, this method can To include the following steps:
S210: the keyword that Front End Server is sent is received;Wherein, above-mentioned keyword is above-mentioned Front End Server according to visitor The information browse record at family end is sent to above-mentioned background server after determining.
It is understood that record the information of the daily browsing of user in the browsing record of client corresponding to user, The information of the daily browsing of user is usually exactly the more interested information of user.Therefore, in embodiments of the present invention, foreground services Device can be recorded according to the information browse of client, keyword corresponding to information to be pushed be determined, so as to according to the pass Key word is to user's pushed information.
For example, the information browse of the available client of Front End Server records, counted from above- mentioned information browsing record The browsing time of the information including any word is more than preset quantity within a preset period of time, then can be using the word as letter to be pushed The corresponding keyword of breath.
Above-mentioned preset time period for example can be from current time in two days, in three days or any times such as in one week The specific time of preset time period can be arranged in section, those skilled in the art according to the actual situation, and the embodiment of the present invention is not specific Limit the time range of above-mentioned preset time period.
Specifically for example, Front End Server is counted from current time in three days from above- mentioned information browsing record, including " generation The browsing time of the information of this word of boundary's cup " is more than 8 times, then " world cup " can serve as key corresponding to information to be pushed Word.
Background server is stored in memory after needing to screen the information in database in information process. Therefore, in embodiments of the present invention, background server can receive the keyword of Front End Server transmission, should so as to basis Keyword screens the information in database.
S220: the candidate information to match with above-mentioned keyword is searched in the database.
Since the memory headroom of background server is limited, memory usage, which crosses conference, runs the system of server slowly, Cause server processing speed in the task of processing is excessively slow to be even unable to complete processing.Therefore, in embodiments of the present invention, backstage Server can be searched in the database and match with above-mentioned keyword after the keyword for receiving Front End Server transmission Candidate information.
For example, background server can search the phase including above-mentioned keyword or including above-mentioned keyword in the database Close the candidate information of word.
The related term of above-mentioned keyword, such as when keyword is " tourism ", the related term of above-mentioned keyword can be " machine The words such as ticket ", " tourist group ", " one-day tour ".The prior art can be used to realize how to determine keyword in those skilled in the art Related term, the embodiment of the present invention repeats no more specifically how to determine the keyword of keyword.
In practical applications, to may include each information and each message identification in above-mentioned database convenient for information searching Corresponding relationship.Any information mark may include: the key word in title of the information, the public keyword of the information, the information Information keys, the information encoding of the information, the information information deliver at least one of time.This field is with regard to technical staff The message identification of other forms can also be set according to the actual situation.
S230: above-mentioned candidate information is stored in Redis set, so that above-mentioned Front End Server is gathered from above-mentioned Redis The middle candidate information for obtaining the condition that meets, is sent to above-mentioned client as information to be pushed, and by above-mentioned information to be pushed;On Redis set is stated to be stored in the memory of above-mentioned background server.
To allow Front End Server quickly to obtain information to be pushed from background server, in the embodiment of the present invention In, after background server finds candidate information, above-mentioned candidate information can be stored in Redis set.
Above-mentioned Redis set is a storing data library, and the data in Redis set all cache in memory.
The candidate information to match with above-mentioned keyword that background server is found in the database usually has many items, And the information bar number pushed to user is usually less, in embodiments of the present invention, Front End Server can be gathered from above-mentioned Redis The middle candidate information for obtaining the condition that meets, as information to be pushed, to allow Front End Server quantity from Redis set A small number of information to be pushed is selected in more candidate information.
Such as the most information of click volume can be obtained from above-mentioned Redis set, as information to be pushed;Or it can be with Renewal time newest one or two information are obtained from above-mentioned Redis set, as information to be pushed.
Information processing method provided by the embodiment of the present invention, when candidate information is stored in Redis collection by background server After in conjunction, Front End Server can obtain information to be pushed from the Redis set being stored in background server memory, Read the number of data so as to reduce Front End Server from the database in background server hard disk, and Front End Server The fast speed of information is obtained from the memory of background server, therefore can reduce the time-consuming of process of information push, improves letter Cease pushing efficiency.
To make the information for being pushed to user be the information just updated nearest a period of time, in a kind of reality of the embodiment of the present invention It applies in mode, the lookup of candidate information in step S220 can be realized according to the following steps:
Lookup matches with the keyword in the database, and the candidate information updated within a preset period of time.On State preset time period and can be in nearest one day, most in a couple of days in etc. the period close from current time.
When the candidate information of acquisition is the information updated within the period close from current time, can make to be pushed to The information of user is the information just updated, so that user be allow to get newer pushed information in time.
In a kind of embodiment of the embodiment of the present invention, candidate information is stored in Redis set in step S230, it can To realize according to the following steps: according to the renewal time of each candidate information, being ranked up to the candidate information, by the institute after sequence It states in candidate information deposit Redis set.
For example, background server can be ranked up each candidate information by renewal time by evening to early, after sequence In the candidate information deposit Redis set.
After candidate information is ranked up, Front End Server can be made to select from the candidate information after sequence more quickly Information to be pushed, to improve information pushing speed and information pushing efficiency.Meanwhile being sorted by evening to early by renewal time, It can also better ensure that is pushed to user is the information of recent renewal.
In a kind of embodiment of the embodiment of the present invention, by candidate information deposit Redis set in step S230, go back It can realize according to the following steps: be directed to the browsing time of each candidate information according to client, the candidate information is carried out Sequence, will be in the candidate information deposit Redis set after sequence.
For example, background server can be ranked up each candidate information by by browsing time from more to less, after sequence The candidate information deposit Redis set in.
It is ranked up from more to less by by browsing time, can better ensure that user's push be hot information.
It is understood that selecting candidate information directly from database when the data volume in database is more and depositing The speed entered in memory is slower.For improve candidate information selection and unloading speed, in a kind of embodiment party of the embodiment of the present invention It, can be the following steps are included: being obtained and the keyword phase in the database according to above-mentioned keyword after step S210 in formula Corresponding analog information;The analog information is stored in and is recommended in article library, above-mentioned recommendation article inventory is stored in the database.
Correspondingly, in step S220 candidate information lookup, can realize according to the following steps: recommend article library in search The analog information to match with the keyword, as candidate information.
Above-mentioned analog information can be information identical with above-mentioned candidate information.In the database in a fairly large number of information After filtering out in the analog information deposit recommendation article library of negligible amounts, background server can be made quickly to carry out candidate information Determination and unloading, the speed of information processing is improved, to improve the speed to user's pushed information.
Information push-delivery apparatus is provided for the embodiments of the invention below to be introduced.
Information push-delivery apparatus provided by the embodiment of the present invention, can be applied to Front End Server, as shown in figure 3, the dress It sets and may include:
Keyword determination unit 310 determines corresponding to information to be pushed for being recorded according to the information browse of client Keyword;
Keyword transmission unit 320, for the keyword to be sent to background server, so that the background server The candidate information to match with the keyword is searched in the database, it will be in candidate information deposit Redis set;It is described Redis set is stored in the memory of the background server;
Information to be pushed determination unit 330 is made for obtaining the candidate information for the condition that meets from Redis set For information to be pushed;
Information to be pushed transmission unit 340, for the information to be pushed to be sent to the client.
Information push-delivery apparatus provided by the embodiment of the present invention, since Front End Server is from being stored in background server Information to be pushed is obtained in the Redis set deposited, so as to reduce Front End Server from background server hard disk The number of data is read in database, and Front End Server obtains the fast speed of information from the memory of background server, because This can reduce the time-consuming of process of information push, improve information pushing efficiency.
In a kind of embodiment of the embodiment of the present invention, the information to be pushed determination unit 330 can specifically be used In:
From the candidate information after Redis set sequence, the candidate information for being arranged in predetermined position is obtained, as Information to be pushed.
Information processing unit is provided for the embodiments of the invention below to be introduced.
Information processing unit provided by the embodiment of the present invention, can be applied to background server, as shown in figure 4, the dress It sets and may include:
Keyword receiving unit 410, for receiving the keyword of Front End Server transmission;Wherein, the keyword is institute It states after Front End Server is determined according to the information browse of client record and is sent to the background server;
Candidate information searching unit 420, for searching the candidate information to match with the keyword in the database;
Candidate information unloading unit 430, used in gathering candidate information deposit Redis, so that Front End Server The candidate information that the condition that meets is obtained from Redis set, sends as information to be pushed, and by the information to be pushed To the client;The Redis set is stored in the memory of the background server.
Information processing unit provided by the embodiment of the present invention, when candidate information is stored in Redis collection by background server After in conjunction, Front End Server can obtain information to be pushed from the Redis set being stored in background server memory, Read the number of data so as to reduce Front End Server from the database in background server hard disk, and Front End Server The fast speed of information is obtained from the memory of background server, therefore can reduce the time-consuming of process of information push, improves letter Cease pushing efficiency.
In a kind of embodiment of the embodiment of the present invention, the candidate information searching unit 420 specifically can be used for: Lookup matches with the keyword in the database, and the candidate information updated within a preset period of time.
In a kind of embodiment of the embodiment of the present invention, the candidate information unloading unit 430 specifically can be used for: According to the renewal time of each candidate information, the candidate information is ranked up, the candidate information after sequence is deposited Enter in Redis set.
In a kind of embodiment of the embodiment of the present invention, the candidate information unloading unit 430 specifically can be used for: It is directed to the browsing time of each candidate information according to the client, the candidate information is ranked up, after sequence In the candidate information deposit Redis set.
In a kind of embodiment of the embodiment of the present invention, the information processing unit can also include:
Analog information acquiring unit, for obtaining in the database corresponding with the keyword according to the keyword Analog information;
Analog information unloading unit is recommended in article library, the recommendation article inventory for the analog information to be stored in It is stored in the database;
Correspondingly, the candidate information searching unit 420, specifically can be used for: recommend article library in search with it is described The analog information that keyword matches, as candidate information.
In a kind of embodiment of the embodiment of the present invention, including pair of each information and each message identification in the database It should be related to;Any message identification include: the key word in title of the information, the public keyword of the information, the information letter Breath keyword, the information encoding of the information, the information information deliver at least one of time.
The embodiment of the invention also provides a kind of Front End Servers, as shown in figure 5, including processor 501, communication interface 502, memory 503 and communication bus 504, wherein processor 501, communication interface 502, memory 503 pass through communication bus 504 complete mutual communication,
Memory 503, for storing computer program;
Processor 501 when for executing the program stored on memory 503, realizes following steps:
It is recorded according to the information browse of client, determines keyword corresponding to information to be pushed;
The keyword is sent to background server, so that the background server is searched and the pass in the database The candidate information that key word matches, will be in candidate information deposit Redis set;Redis set be stored in it is described after In the memory of platform server;
The candidate information that the condition that meets is obtained from Redis set, as information to be pushed;
The information to be pushed is sent to the client.
Front End Server provided by the embodiment of the present invention is from the Redis set being stored in background server memory Information to be pushed is obtained, reads data from the database in background server hard disk so as to reduce Front End Server Number, and Front End Server obtains the fast speed of information from the memory of background server, therefore can reduce information push The time-consuming of process improves information pushing efficiency.
The embodiment of the invention also provides a kind of background servers, as shown in fig. 6, including processor 601, communication interface 602, memory 603 and communication bus 604, wherein processor 601, communication interface 602, memory 603 pass through communication bus 604 complete mutual communication,
Memory 603, for storing computer program;
Processor 601 when for executing the program stored on memory 603, realizes following steps:
Receive the keyword that Front End Server is sent;Wherein, the keyword is the Front End Server according to client Information browse record determine after be sent to the background server;
The candidate information to match with the keyword is searched in the database;
By in candidate information deposit Redis set, meet so that Front End Server is obtained from Redis set The candidate information of condition is sent to the client as information to be pushed, and by the information to be pushed;The Redis collection Conjunction is stored in the memory of the background server.
After candidate information is stored in Redis set by background server provided by the embodiment of the present invention, foreground service Device can obtain information to be pushed from the Redis set being stored in background server memory, before reducing Platform server reads the number of data from the database in background server hard disk, and Front End Server is from background server The fast speed of information is obtained in memory, therefore can reduce the time-consuming of process of information push, improves information pushing efficiency.
The communication bus that above-mentioned server is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned server and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited in the computer readable storage medium Instruction is contained, when run on a computer, so that computer executes following methods:
It is recorded according to the information browse of client, determines keyword corresponding to information to be pushed;
The keyword is sent to background server, so that the background server is searched and the pass in the database The candidate information that key word matches, will be in candidate information deposit Redis set;Redis set be stored in it is described after In the memory of platform server;
The candidate information that the condition that meets is obtained from Redis set, as information to be pushed;
The information to be pushed is sent to the client.
Storage medium provided by the embodiment of the present invention, since Front End Server is from being stored in background server memory Redis set in obtain information to be pushed, so as to reducing Front End Server from the data in background server hard disk The number of data is read in library, and Front End Server obtains the fast speed of information from the memory of background server, therefore can To reduce the time-consuming of process of information push, information pushing efficiency is improved.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited in the computer readable storage medium Instruction is contained, when run on a computer, so that computer executes following methods:
Receive the keyword that Front End Server is sent;Wherein, the keyword is the Front End Server according to client Information browse record determine after be sent to the background server;
The candidate information to match with the keyword is searched in the database;
By in candidate information deposit Redis set, meet so that Front End Server is obtained from Redis set The candidate information of condition is sent to the client as information to be pushed, and by the information to be pushed;The Redis collection Conjunction is stored in the memory of the background server.
Storage medium provided by the embodiment of the present invention, when candidate information is stored in Redis set by background server Afterwards, Front End Server can obtain information to be pushed from the Redis set being stored in background server memory, thus The number that Front End Server reads data from the database in background server hard disk can be reduced, and Front End Server is from rear The fast speed of information is obtained in the memory of platform server, therefore can reduce the time-consuming of process of information push, is improved information and is pushed away Send efficiency.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device/ For server/storage medium embodiment, since it is substantially similar to the method embodiment, so be described relatively simple, it is related Place illustrates referring to the part of embodiment of the method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of information-pushing method is applied to Front End Server characterized by comprising
It is recorded according to the information browse of client, determines keyword corresponding to information to be pushed;
The keyword is sent to background server, so that the background server is searched and the keyword in the database The candidate information to match, will be in candidate information deposit Redis set;The Redis set is stored in the backstage clothes It is engaged in the memory of device;
The candidate information that the condition that meets is obtained from Redis set, as information to be pushed;
The information to be pushed is sent to the client.
2. the method according to claim 1, wherein described obtain from Redis set meets condition Candidate information, as information to be pushed, comprising:
From the candidate information after Redis set sequence, the candidate information for being arranged in predetermined position is obtained, as wait push away It delivers letters breath.
3. a kind of information processing method is applied to background server characterized by comprising
Receive the keyword that Front End Server is sent;Wherein, the keyword is letter of the Front End Server according to client Breath browsing record is sent to the background server after determining;
The candidate information to match with the keyword is searched in the database;
By in candidate information deposit Redis set, meet so that the Front End Server is obtained from Redis set The candidate information of condition is sent to the client as information to be pushed, and by the information to be pushed;The Redis collection Conjunction is stored in the memory of the background server.
4. according to the method described in claim 3, it is characterized in that, described search in the database matches with the keyword Candidate information, comprising:
Lookup matches with the keyword in the database, and the candidate information updated within a preset period of time.
5. according to the method described in claim 3, it is characterized in that, it is described by the candidate information deposit Redis set in, packet It includes:
According to the renewal time of each candidate information, the candidate information is ranked up, by the candidate letter after sequence In breath deposit Redis set.
6. according to the method described in claim 3, it is characterized in that, it is described by the candidate information deposit Redis set in, packet It includes:
It is directed to the browsing time of each candidate information according to the client, the candidate information is ranked up, will be sorted In candidate information deposit Redis set afterwards.
7. according to the method described in claim 3, it is characterized in that, the keyword for receiving the Front End Server and sending Afterwards, further includes:
According to the keyword, analog information corresponding with the keyword is obtained in the database;
The analog information is stored in and is recommended in article library, the recommendation article inventory is stored in the database;
Correspondingly, described search the candidate information to match with the keyword in the database, comprising:
The analog information to match with the keyword is searched in recommending article library, as candidate information.
8. according to the method described in claim 3, it is characterized in that, including each information and each message identification in the database Corresponding relationship;Any message identification includes: the key word in title of the information, the public keyword of the information, the information Information keys, the information encoding of the information, the information information deliver at least one of time.
9. a kind of information push-delivery apparatus is applied to Front End Server characterized by comprising
Keyword determination unit determines keyword corresponding to information to be pushed for recording according to the information browse of client;
Keyword transmission unit, for the keyword to be sent to background server, so that the background server is in data The candidate information to match with the keyword is searched in library, it will be in candidate information deposit Redis set;The Redis Set is stored in the memory of the background server;
Information to be pushed determination unit, for obtaining the candidate information for the condition that meets from Redis set, as wait push Information;
Information to be pushed transmission unit, for the information to be pushed to be sent to the client.
10. a kind of information processing unit is applied to background server characterized by comprising
Keyword receiving unit, for receiving the keyword of Front End Server transmission;Wherein, the keyword is the foreground clothes Business device is sent to the background server after determining according to the information browse of client record;
Candidate information searching unit, for searching the candidate information to match with the keyword in the database;
Candidate information unloading unit, for by candidate information deposit Redis set, so that the Front End Server is from institute The candidate information for obtaining the condition that meets in Redis set is stated, is sent to institute as information to be pushed, and by the information to be pushed State client;The Redis set is stored in the memory of the background server.
CN201810608401.3A 2018-06-13 2018-06-13 A kind of information-pushing method, information processing method and device Pending CN108959443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810608401.3A CN108959443A (en) 2018-06-13 2018-06-13 A kind of information-pushing method, information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810608401.3A CN108959443A (en) 2018-06-13 2018-06-13 A kind of information-pushing method, information processing method and device

Publications (1)

Publication Number Publication Date
CN108959443A true CN108959443A (en) 2018-12-07

Family

ID=64488425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810608401.3A Pending CN108959443A (en) 2018-06-13 2018-06-13 A kind of information-pushing method, information processing method and device

Country Status (1)

Country Link
CN (1) CN108959443A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816495A (en) * 2019-02-13 2019-05-28 北京达佳互联信息技术有限公司 Merchandise news method for pushing, system and server and storage medium
CN109815416A (en) * 2019-01-29 2019-05-28 北京字节跳动网络技术有限公司 Method for pushing, the device of related information, electronic equipment and storage medium
CN110247963A (en) * 2019-05-31 2019-09-17 北京智慧云行科技有限责任公司 A kind of data push method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150112996A1 (en) * 2013-10-23 2015-04-23 Microsoft Corporation Pervasive search architecture
CN105630913A (en) * 2015-12-22 2016-06-01 福建星海通信科技有限公司 Redis pipeline communication-based message passing method and system
US20160171557A1 (en) * 2014-12-11 2016-06-16 Connectivity, Inc. Customer Insight System Architecture
CN106168971A (en) * 2016-07-08 2016-11-30 北京麒麟合盛网络技术有限公司 information subscribing method and device
CN107844595A (en) * 2017-11-21 2018-03-27 安徽网才信息技术股份有限公司 A kind of job hunting website position intelligent recommendation method
CN108038196A (en) * 2017-12-12 2018-05-15 北京锐安科技有限公司 A kind of data handling system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150112996A1 (en) * 2013-10-23 2015-04-23 Microsoft Corporation Pervasive search architecture
US20160171557A1 (en) * 2014-12-11 2016-06-16 Connectivity, Inc. Customer Insight System Architecture
CN105630913A (en) * 2015-12-22 2016-06-01 福建星海通信科技有限公司 Redis pipeline communication-based message passing method and system
CN106168971A (en) * 2016-07-08 2016-11-30 北京麒麟合盛网络技术有限公司 information subscribing method and device
CN107844595A (en) * 2017-11-21 2018-03-27 安徽网才信息技术股份有限公司 A kind of job hunting website position intelligent recommendation method
CN108038196A (en) * 2017-12-12 2018-05-15 北京锐安科技有限公司 A kind of data handling system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815416A (en) * 2019-01-29 2019-05-28 北京字节跳动网络技术有限公司 Method for pushing, the device of related information, electronic equipment and storage medium
WO2020156236A1 (en) * 2019-01-29 2020-08-06 北京字节跳动网络技术有限公司 Associated information pushing method and apparatus, electronic device and storage medium
CN109816495A (en) * 2019-02-13 2019-05-28 北京达佳互联信息技术有限公司 Merchandise news method for pushing, system and server and storage medium
CN110247963A (en) * 2019-05-31 2019-09-17 北京智慧云行科技有限责任公司 A kind of data push method and system

Similar Documents

Publication Publication Date Title
CN108197331B (en) User interest exploration method and device
US8671097B2 (en) Method and system for log file analysis based on distributed computing network
US8005823B1 (en) Community search optimization
CN102663064B (en) A kind of disposal route of favorites data and device
CN108874812B (en) Data processing method, server and computer storage medium
CN102799610A (en) Method and system for collecting network information
CN104281638B (en) POI information provides system, POI information provides device, POI information output device and POI information providing method
CN109977296B (en) Information pushing method, device, equipment and storage medium
CN103888837A (en) Video information pushing method and device
CN103186666B (en) Method, device and equipment for searching based on favorites
CN107872534B (en) Information pushing method and device, server and readable storage medium
CN103617196B (en) Recommend method, browser, server and the system of network address
CN106354797B (en) Data recommendation method and device
CN108959443A (en) A kind of information-pushing method, information processing method and device
US10977677B2 (en) Contact importer
CN105975537A (en) Sorting method and device of application program
CN111738785A (en) Product selection method, system and storage medium
CN105574030A (en) Information search method and device
KR101682659B1 (en) Method for customized news alarm based on keyword and management server for news search for the same
KR101122737B1 (en) Apparatus and method for establishing search database for knowledge node coupling structure
CN103634470A (en) Human-computer interaction prediction method based on terminal mobile data access network Qos
CN105045835A (en) Information searching method and apparatus
CN105095404A (en) Method and apparatus for processing and recommending webpage information
CN110188277A (en) A kind of recommended method and device of resource
CN109727056A (en) Financial institution's recommended method, equipment, storage medium and device

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181207