CN105897440A - Concern page information distribution device, method and system - Google Patents

Concern page information distribution device, method and system Download PDF

Info

Publication number
CN105897440A
CN105897440A CN201610214688.2A CN201610214688A CN105897440A CN 105897440 A CN105897440 A CN 105897440A CN 201610214688 A CN201610214688 A CN 201610214688A CN 105897440 A CN105897440 A CN 105897440A
Authority
CN
China
Prior art keywords
inbox
user
buffering
news
users
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
CN201610214688.2A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610214688.2A priority Critical patent/CN105897440A/en
Publication of CN105897440A publication Critical patent/CN105897440A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1859Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The present invention discloses a concern page information distribution device, method and system. The concern page information distribution device comprises a data processing module, a cache inbox module and a scheduling module, the data processing module is set to query the user number of the concern page issued information when the concern page issued information is determined, the cache inbox module is set to store the issued information separately according to the user number, and the scheduling module is set to collect the stored issued information according to each predetermined time interval and write in a distributed storage database separately. By separately storing the concern page distribution information in the cache inboxes respectively corresponding to the users according to the user number, and then regularly collecting the stored issued information to distribute according to the predetermined time intervals, the high load state of a system can be relieved at the great concurrent writing of the concern page information, and the concern page information distribution speed and the query service are improved, thereby improving the user experience degree.

Description

A kind of pay close attention to the dispensing device of page information, method and system
Technical field
The present invention relates to mobile Internet high speed storing technical field, a kind of distribution paying close attention to page information Device, method and system.
Background technology
At present, along with the high speed development of mobile Internet, come into big data age, for paying close attention to page Framework all uses push-model to design dissemination system, so-called push-model, it is simply that tie up for each user Protect 1 and pay close attention to page inbox, it is assumed that 1 user is paid close attention to by 1000 people, this user posts when Can be distributed to pay close attention to by posting the inbox of the vermicelli of this user, as long as from addressee when like this inquiring about Inquiring about in case, query performance is the highest, a kind of optimal way typically utilizing space for time, simultaneously So be equivalent to 1 number according to 1000 number evidences can be become, need short time substantial amounts of write, so to soon The requirement of speed information sharing is more and more higher.
In prior art, the NoSQL data base MongoDB of employing stores the concern page addressee of user Case, but MongoDB there will be high IO and the situation of high CPU big concurrently write when, makes Become MongoDB cluster to be in the situation of high capacity, have a strong impact on MongoDB writing speed with external Inquiry service, reduces the Experience Degree of user.
Summary of the invention
In order to solve above-mentioned technical problem, the invention provides and a kind of pay close attention to the dispensing device of page information, side Method and system, it is possible to paying close attention to the high load condition alleviating system when that page information carrying out big concurrently write, Improve writing speed and the inquiry service paying close attention to page information, thus improve user experience.
In order to reach the object of the invention, first aspect, the invention provides a kind of distribution paying close attention to page information Device, is applied to server, including: data processing module, caching inbox module and scheduler module;
Described data processing module, is set to determine when described concern page releases news, inquires about described concern The number of users that page releases news;
Described caching inbox module, be set to according to described number of users store respectively described in release news;
Described scheduler module, is set to releasing news after collecting storage the most at predetermined intervals It is respectively written into distributed storage data base.
Embodiments provide a kind of dispensing device paying close attention to page information, including: data processing module, Caching inbox module and scheduler module;Described data processing module is set to determine that described concern page is issued During information, inquiring about the number of users that described concern page releases news, described caching inbox module is set to According to described number of users store respectively described in release news, described scheduler module is set to every time according in advance Fixed time interval is collected releasing news after storing and is respectively written into distributed storage data base, by closing The distribution information of note page is respectively stored in the caching inbox that each user is corresponding according to number of users, so After releasing news and be distributed after periodic collection storage at predetermined intervals, enabling to pass Note page information carries out alleviating the when of big concurrently write the high load condition of system, improves concern page information The speed of distribution and inquiry service, thus improve user experience.
In one embodiment, described caching inbox module is also configured to dividing according to described number of users Not Cun Chu described in release news before, be also configured to:
The buffering inbox that each user is corresponding is built according to described number of users.
Build buffering corresponding to each user by caching inbox module 20 according to described number of users to receive Part case, consequently facilitating by the user being distributed to correspondence of the information of issue, also allow for follow-up to inquire about use The information that family is received.
In one embodiment, described caching inbox module is set to deposit respectively according to described number of users Release news described in storage, refer to:
Described caching inbox module is set to determine the buffering inbox number of correspondence according to described number of users Amount, by described release news be numbered after be respectively stored into the buffering of each user in a predetermined sequence Inbox.
Determined the buffering inbox quantity of correspondence according to described number of users by caching inbox module 20, By described release news be numbered after be respectively stored into the buffering addressee of each user in a predetermined sequence Case, consequently facilitating rapidly by the user being distributed to correspondence of the information of multiple issues, it is simple to follow-up permissible The information that inquiry user is received.
In one embodiment, described scheduler module is set to collect the most at predetermined intervals deposit Releasing news after storage is respectively written into distributed storage data base, refers to:
Described scheduler module is set to inquire about at predetermined intervals the buffering addressee of each user every time Case, collects in the buffering inbox of each user releasing news of in described predetermined time interval storage It is respectively written into distributed storage data base.
Inquired about the buffering inbox of each user by scheduler module the most at predetermined intervals, receive Collect in the buffering inbox of each user releasing news of storage in described predetermined time interval to write respectively Enter distributed storage data base, concern page is released news carry out concurrently writing greatly the most in batches, improve Storage efficiency, alleviates the high load condition of system.
In one embodiment, this device also includes: distributed storage DBM;
Described distributed storage DBM, is set to permanently store collected releasing news.
The distribution letter that collected different user is paid close attention to is permanently stored by distributed storage DBM Breath, consequently facilitating user's subsequent query, improves the satisfaction of user.
Second aspect, the invention provides a kind of distribution method paying close attention to page information, is applied to server, Including:
Determine when described concern page releases news, inquire about the number of users that described concern page releases news;
According to described number of users store respectively described in release news;
Releasing news after collecting storage the most at predetermined intervals is respectively written into distributed storage number According to storehouse.
Embodiments provide a kind of distribution method paying close attention to page information, comprise determining that described concern When page releases news, inquire about the number of users that described concern page releases news, divide according to described number of users Not Cun Chu described in release news, releasing news respectively after collecting storage the most at predetermined intervals Write distributed storage data base, by being respectively stored in the distribution information paying close attention to page according to number of users In the caching inbox that each user is corresponding, then according to after predetermined time interval periodic collection storage Release news and be distributed, enabling alleviate system to paying close attention to the when that page information carrying out big concurrently write High load condition, improve speed and the inquiry service paying close attention to page information distribution, thus improve user Experience Degree.
In one embodiment, before releasing news described in storing respectively according to described number of users, also Including:
The buffering inbox that each user is corresponding is built according to described number of users.
By building, according to described number of users, the buffering inbox that each user is corresponding, consequently facilitating will send out The user being distributed to correspondence of the information of cloth, it is simple to follow-up can inquire about the information that user is received.
In one embodiment, according to described number of users store respectively described in release news, including:
Determine the buffering inbox quantity of correspondence according to described number of users, described releasing news is compiled The buffering inbox of each user it is respectively stored in a predetermined sequence after number.
By according to described number of users determine correspondence buffering inbox quantity, by described release news into The buffering inbox of each user it is respectively stored in a predetermined sequence after line number, consequently facilitating quickly Ground is by the user being distributed to correspondence of the information of multiple issues, it is simple to follow-up can inquire about what user was received Information.
In one embodiment, releasing news respectively after collecting storage the most at predetermined intervals Write distributed storage data base, including:
Inquire about the buffering inbox of each user every time at predetermined intervals, collect each user's In buffering inbox, in described predetermined time interval, releasing news of storage is respectively written into distributed storage Data base.
By inquiring about the buffering inbox of each user at predetermined intervals every time, collect each use In the buffering inbox at family in described predetermined time interval storage release news be respectively written into distributed Storage data base, releases news to concern page the most in batches and carries out concurrently writing greatly, improve storage effect Rate, alleviates the high load condition of system.
In one embodiment, described method also includes:
Permanently store collected releasing news.
By permanently storing the distributed intelligence that collected different user is paid close attention to, look into consequently facilitating user is follow-up Ask, improve the satisfaction of user.
The third aspect, invention provides a kind of dissemination system paying close attention to page information, described system Including dispensing device and the mobile terminal of paying close attention to page information any one of above-described embodiment.
The embodiment of the present invention provides a kind of dissemination system paying close attention to page information, and described system includes in embodiment Any one pays close attention to dispensing device and the mobile terminal of page information, will close by paying close attention to the dissemination system of page information The distribution information of note page is respectively stored in the caching inbox that each user is corresponding according to number of users, so After releasing news and be distributed after periodic collection storage at predetermined intervals, enabling to pass Note page information carries out alleviating the when of big concurrently write the high load condition of system, improves concern page information The speed of distribution and inquiry service, thus improve user experience.
Other features and advantages of the present invention will illustrate in the following description, and, partly from froming the perspective of Bright book becomes apparent, or understands by implementing the present invention.The purpose of the present invention is excellent with other Point can be realized by structure specifically noted in description, claims and accompanying drawing and be obtained.
Accompanying drawing explanation
Accompanying drawing is used for providing being further appreciated by technical solution of the present invention, and constitutes one of description Point, it is used for explaining technical scheme together with embodiments herein, is not intended that the present invention The restriction of technical scheme.
A kind of each embodiment of dissemination system one paying close attention to page information that Fig. 1 provides for realizing the present invention can The hardware architecture diagram of the mobile terminal of choosing;
The structural representation of a kind of dispensing device embodiment one paying close attention to page information that Fig. 2 provides for the present invention Figure;
The buffering inbox of a kind of dispensing device embodiment one paying close attention to page information that Fig. 3 provides for the present invention Structural representation;
The flow process signal of a kind of distribution method embodiment one paying close attention to page information that Fig. 4 provides for the present invention Figure;
The flow process signal of a kind of dissemination system embodiment one paying close attention to page information that Fig. 5 provides for the present invention Figure.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further Explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit Determine the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description In, use for represent element such as " module ", " parts " or " unit " suffix only for Be conducive to the explanation of the present invention, itself do not have specific meaning.Therefore, " module " and " parts " can Mixedly to use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include (individual digital helps for such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA Reason), PAD (panel computer), PMP (portable media player), the movement of guider etc. The fixed terminal of terminal and such as numeral TV, desk computer etc..Hereinafter it is assumed that terminal is mobile Terminal.However, it will be understood by those skilled in the art that, except be used in particular for mobile purpose element it Outward, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is for realizing the movement of a kind of each embodiment of dissemination system paying close attention to page information that the present invention provides One optional hardware architecture diagram of terminal.
Mobile terminal 100 can include wireless communication unit 110, user input unit 130, memorizer 160, Controller 180 and power subsystem 190 etc..Fig. 1 shows the mobile terminal with various assembly, but should It is understood by, it is not required that implement all assemblies illustrated.Can alternatively implement more or less of group Part.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 with wireless Radio communication between communication system or network.Such as, wireless communication unit can include broadcast reception In module 111, mobile communication module 112, wireless Internet module 113 and short range communication module 114 extremely Few one.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receive broadcast singal and/ Or broadcast related information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast control services Device can be to generate and send broadcast singal and/or the server of broadcast related information or the previous existence of reception The broadcast singal become and/or broadcast related information and send it to the server of terminal.Broadcast singal can To include TV broadcast singal, radio signals, data broadcasting signal etc..And, broadcast singal May further include the broadcast singal combined with TV or radio signals.Broadcast related information also may be used To provide via mobile communications network, and in this case, broadcast related information can be by mobile communication Module 112 receives.Broadcast singal can exist in a variety of manners, and such as, it can be with digital multimedia The broadcast electronic program guides (EPG) of (DMB), the electronic service of digital video broadcast-handheld (DVB-H) refer to The form in south (ESG) etc. and exist.Broadcast reception module 111 can be by using various types of broadcast System receives signal broadcast.Especially, broadcast reception module 111 can be by using such as multimedia broadcasting -ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting combine The digit broadcasting system closing service (ISDB-T) etc. receives digital broadcasting.Broadcast reception module 111 can be by It is configured to be adapted to provide for the various broadcast systems of broadcast singal and above-mentioned digit broadcasting system.Via broadcast Broadcast singal that receiver module 111 receives and/or broadcast related information can be stored in memorizer 160 (or Other type of storage medium) in.
Mobile communication module 112 send radio signals to base station (such as, access point, node B etc.), In exterior terminal and server at least one and/or receive from it radio signal.Such radio Signal can include voice call signal, video calling signal or according to text and/or Multimedia Message The various types of data sent and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can internal or Externally it is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (nothing Line LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA be (high Speed downlink packets accesses) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology Including bluetoothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
It is mobile to control that user input unit 130 can generate key input data according to the order of user's input The various operations of terminal.User input unit 130 allows user to input various types of information, and permissible Including keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electricity The sensitive component of change held etc.), roller, rocking bar etc..Especially, when touch pad as a layer When being superimposed upon on display unit 151, touch screen can be formed.
Memorizer 160 can store the process performed by controller 180 and control the software program etc. of operation Deng, or can temporarily store oneself through output maybe will export data (such as, telephone directory, message, Still image, video etc.).And, memorizer 160 can store and be applied to touch screen about when touch Time the vibration of various modes of output and the data of audio signal.
Memorizer 160 can include the storage medium of at least one type, described storage medium include flash memory, Hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), read only memory (ROM), electrically erasable Read only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, light Dish etc..And, mobile terminal 100 can be connected the storage function performing memorizer 160 with by network Network storage device cooperation.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice Control that call, data communication, video calling etc. are relevant and process.It addition, controller 180 can wrap Including the multi-media module 1810 for reproducing (or playback) multi-medium data, multi-media module 1810 can be with structure Make in controller 180, or it is so structured that separate with controller 180.Controller 180 can perform mould Formula identifying processing, to be identified as character by the handwriting input performed on the touchscreen or picture drafting input Or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides behaviour Make the suitable electric power needed for each element and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any group The computer-readable medium closed is implemented.Implementing for hardware, embodiment described herein can pass through Use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, control Device processed, microcontroller, microprocessor, it is designed to perform in the electronic unit of function described herein At least one is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implement, the embodiment of such as process or function can with allow perform at least one function or The single software module of operation is implemented.Software code can be write by with any suitable programming language Software application (or program) implement, software code can be stored in memorizer 160 and by controlling Device 180 processed performs.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe Various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. In slide type mobile terminal as example.Therefore, the present invention can be applied to any kind of mobile whole End, and it is not limited to slide type mobile terminal.
The embodiment of the present invention is mainly used in distributes the server that above-mentioned mobile terminal concern page releases news, This server can be computer, server etc., this mobile terminal can be smart mobile phone, intelligent watch, Hand-held set, panel computer etc., but be not limited thereto.
The apparatus and method that the present embodiments relate to, it is intended to solve the NoSQL number used in prior art Store the concern page inbox of user according to storehouse MongoDB, but MongoDB is concurrently writing greatly Time there will be high IO and the situation of high CPU, cause MongoDB cluster to be in the situation of high capacity, sternly Ghost image rings MongoDB writing speed and externally inquires about service, and the technology of the Experience Degree reducing user is asked Topic.
With specifically embodiment, technical scheme is described in detail below.These tools below The embodiment of body can be combined with each other, may be in some embodiment for same or analogous concept or process Repeat no more.
The structural representation of a kind of dispensing device embodiment one paying close attention to page information that Fig. 2 provides for the present invention, As in figure 2 it is shown, this device is applied to server, including: data processing module 10, caching inbox module 20 and scheduler module 30;
Described data processing module 10, is set to determine when described concern page releases news, inquires about described pass The number of users that note page releases news.
Concrete, data processing module 10 can be user by mobile terminal, such as mobile phone, panel computer Etc. carry out operation pay close attention to page release news when, determine when described concern page has new information to issue, just The vermicelli number of users that this concern page is corresponding can be inquired about, such as: the wechat public number of CCTV, when this account The when of issuing article or short message, the vermicelli number of users of this account can be inquired about, if CCTV is micro- Letter public number has 1,000,000 vermicelli users, then can inquire the account of this 1,000,000 vermicelli in the way of paging, Inquire about this user by how many people is paid close attention to, check out paying close attention to this user's vermicelli in the way of paging, but also It is not limited to this.
Described caching inbox module 20, is set to store described issue respectively according to described number of users and believes Breath.
Concrete, this caching inbox module 20 can be that (Key-Value based on internal memory deposits Redis Storage system) do data buffering, use the list structure of Redis to carry out building buffering inbox, can be every Individual vermicelli user builds buffering inbox, and the information issuing user and concern page is numbered, Fig. 3 Structure for the buffering inbox of a kind of dispensing device embodiment one paying close attention to page information of present invention offer is shown It is intended to, as it is shown on figure 3, such as: key is user id, stores the information identification that user receives in list Code (postId), is cached to the Redis buffering inbox of each vermicelli user released news the most respectively In, wherein, each vermicelli user can a corresponding Key, such as: Key name is " userId:12121 ", PostId will the left side of push to list, but be not limited to this.
Described scheduler module 30, is set to the issue letter after collecting storage the most at predetermined intervals Breath is respectively written into distributed storage data base.
Concrete, described scheduler module 30 can use Quartz to realize, and Quartz is that a timing is adjusted Degree task framework, as long as can be achieved with timer-triggered scheduler by simple configuration, can be every time according to predetermined Data are inquired about in time interval timing from Redis cluster, and wherein, this predetermined time interval can basis Practical situation is determined, as every 6 hours, or 12 hours etc., after starting Quartz, will All of ID, traverse user ID can be inquired, ID is assembled into key (userId:123232) The data collecting predetermined quantity in Redis can be distributed with circulation timing, by the issue after distribution In information persistence write distributed storage data base, but it is not limited to this.
Embodiments provide a kind of dispensing device paying close attention to page information, including: data processing module, Caching inbox module and scheduler module;Described data processing module is set to determine that described concern page is issued During information, inquiring about the number of users that described concern page releases news, described caching inbox module is set to According to described number of users store respectively described in release news, described scheduler module is set to every time according in advance Fixed time interval is collected releasing news after storing and is respectively written into distributed storage data base, by closing The distribution information of note page is respectively stored in the caching inbox that each user is corresponding according to number of users, so After releasing news and be distributed after periodic collection storage at predetermined intervals, enabling to pass Note page information carries out alleviating the when of big concurrently write the high load condition of system, improves concern page information The speed of distribution and inquiry service, thus improve user experience.
Further, on the basis of above-described embodiment, described caching inbox module 20 is set at root According to described number of users store respectively described in release news before, be also configured to:
The buffering inbox that each user is corresponding is built according to described number of users.
Concrete, described caching inbox module 20 can be Redis to create buffering inbox, should Redis can use list structure to carry out building buffering inbox, as it is shown on figure 3, to the powder released news Silk user is numbered, and can represent the ID of user with key, builds correspondence according to the numbering of user The corresponding buffering inbox of buffering inbox, i.e. each user, but it is not limited to this.
Build buffering corresponding to each user by caching inbox module 20 according to described number of users to receive Part case, consequently facilitating by the user being distributed to correspondence of the information of issue, also allow for follow-up to inquire about use The information that family is received.
Further, on the basis of above-described embodiment, described caching inbox module 20 is set to basis Described number of users releases news described in storing respectively, refers to:
Described caching inbox module 20 is set to determine the buffering addressee of correspondence according to described number of users Box number, by described release news be numbered after be respectively stored into each user's in a predetermined sequence Buffering inbox.
Concrete, described caching inbox module 20 can be Redis, and this Redis can be according to vermicelli user Quantity determines the quantity of buffering inbox, it is ensured that vermicelli user and buffering inbox one_to_one corresponding, this Redis List structure can be used to carry out building buffering inbox, as it is shown on figure 3, and to received issue letter Breath is numbered (postId), is respectively written in the Redis buffering inbox of each vermicelli user, such as: Key name is " userId:12121 ", postId will the left side of push to list, but be not limited to this.
Determined the buffering inbox quantity of correspondence according to described number of users by caching inbox module 20, By described release news be numbered after be respectively stored into the buffering addressee of each user in a predetermined sequence Case, consequently facilitating rapidly by the user being distributed to correspondence of the information of multiple issues, it is simple to follow-up permissible The information that inquiry user is received.
Further, on the basis of above-described embodiment, described scheduler module 30 is set to every time according in advance Fixed time interval is collected releasing news after storing and is respectively written into distributed storage data base, refers to:
Described scheduler module 30 is set to inquire about at predetermined intervals the buffering of each user every time and receives Part case, collects the issue letter of storage in described predetermined time interval in the buffering inbox of each user Breath is respectively written into distributed storage data base.
Concrete, this scheduler module 30 can use Quartz to realize the scheduling of information, and Quartz is individual fixed Time scheduler task framework, as long as can be achieved with timer-triggered scheduler by simple configuration, so can be according in advance Fixed time interval inquires about the distributed intelligence being distributed to each vermicelli user from the buffering inbox of Redis, Wherein, predetermined time interval can configure voluntarily according to practical situation, collects each vermicelli user and exists The write distributed storage data base that releases news received in predetermined time interval, such as: assume 6 In individual hour, each vermicelli user being carried out 100 distributions, if there being 100 general-purpose families, just having had 100,000,000 times Distribution, if this dispensed amount is shouldered MongoDB aspect and can be caused huge pressure, if little by 6 The data set of 100 distributions time in dresses up a data write, and write number of times is just reduced to 1,000,000 times, Greatly reduce the pressure of MongoDB, but be not limited to this.
Inquired about the buffering inbox of each user by scheduler module the most at predetermined intervals, receive Collect in the buffering inbox of each user releasing news of storage in described predetermined time interval to write respectively Enter distributed storage data base, concern page is released news carry out concurrently writing greatly the most in batches, improve Storage efficiency, alleviates the high load condition of system.
Further, on the basis of above-described embodiment, this device also includes: distributed storage data base Module 40;
Described distributed storage DBM 40, is set to permanently store collected releasing news.
Concrete, described distributed storage DBM 40 can be MongoDB cluster, Ke Yichi Longization storage data, serve the effect of data persistence, wherein, the data knot in MongoDB Structure is as follows:
{
userId:232781,
postIds:[12121,28990,28789,90890,809809]
,
The distribution letter that collected different user is paid close attention to is permanently stored by distributed storage DBM 40 Breath, consequently facilitating user's subsequent query, improves the satisfaction of user.
The schematic flow sheet of a kind of distribution method embodiment one paying close attention to page information that Fig. 4 provides for the present invention, As shown in Figure 4, the method is applied to server, including:
S101, determine when described concern page releases news, inquire about the number of users that described concern page releases news Amount.
Concrete, user by mobile terminal, such as mobile phone, panel computer etc. carry out operation and pay close attention to page The when of releasing news, determine when described concern page has new information to issue, this concern page will be inquired about right The vermicelli number of users answered, if the wechat public number of CCTV has 1,000,000 vermicelli users, then can be with paging Mode inquire the account of this 1,000,000 vermicelli, inquire about this user by how many people is paid close attention to, by this use of concern Family vermicelli checks out in the way of paging, the article wechat public number of CCTV issued or short message Batch is written to cache in inbox, but is not limited to this.
S102, the buffering inbox of structure user, store described issue respectively according to described number of users and believe Breath.
Concrete, this caching inbox module 20 can be that (Key-Value based on internal memory deposits Redis Storage system) do data buffering, use the list structure of Redis to carry out building buffering inbox, can be every Individual vermicelli user builds buffering inbox, and the information issuing user and concern page is numbered, such as figure Shown in 3, such as: key is user id, list stores the message identification code (postId) that user receives, In the Redis buffering inbox of each vermicelli user being cached to the most respectively to release news, wherein, often Individual vermicelli user can a corresponding Key, such as: Key name is " userId:12121 ", postId will The left side of meeting push to list, but it is not limited to this.
Releasing news after S103, the most at predetermined intervals collection storage is respectively written into distributed Storage data base.
Concrete, Quartz can be used to realize, Quartz is a timer-triggered scheduler task framework, as long as Can be achieved with timer-triggered scheduler by simple configuration, can the most at predetermined intervals timing from Inquiring about data in Redis cluster, wherein, this predetermined time interval can be determined according to practical situation, As every 6 hours, or 12 hours etc., after starting Quartz, it will inquire all of ID, traverse user ID, ID is assembled into key (userId:123232) and receives in Redis Collection can be distributed with circulation timing to the data of predetermined quantity, and the persistence that releases news after distributing is write Enter in distributed storage data base, but be not limited to this.
Embodiments provide a kind of distribution method paying close attention to page information, comprise determining that described concern When page releases news, inquire about the number of users that described concern page releases news, divide according to described number of users Not Cun Chu described in release news, releasing news respectively after collecting storage the most at predetermined intervals Write distributed storage data base, by being respectively stored in the distribution information paying close attention to page according to number of users In the caching inbox that each user is corresponding, then according to after predetermined time interval periodic collection storage Release news and be distributed, enabling alleviate system to paying close attention to the when that page information carrying out big concurrently write High load condition, improve speed and the inquiry service paying close attention to page information distribution, thus improve user Experience Degree.
Further, on the basis of above-described embodiment, described storing respectively according to described number of users Before releasing news, also include:
Each user is numbered, builds corresponding buffering inbox according to the numbering of user.
Concrete, can be Redis to create buffering inbox, this Redis can use list structure to enter Row builds buffering inbox, as it is shown on figure 3, be all numbered the vermicelli user released news, permissible Representing the ID of user with key, build corresponding buffering inbox according to the numbering of user, i.e. each is used The corresponding buffering inbox in family, but it is not limited to this.
By building, according to described number of users, the buffering inbox that each user is corresponding, consequently facilitating will send out The user being distributed to correspondence of the information of cloth, it is simple to follow-up can inquire about the information that user is received.
Further, on the basis of above-described embodiment, store described sending out respectively according to described number of users Cloth information, including:
Determine the buffering inbox quantity of correspondence according to described number of users, described releasing news is compiled The buffering inbox of each user it is respectively stored in a predetermined sequence after number.
Concrete, can be Redis, this Redis can determine buffering inbox according to vermicelli number of users Quantity, it is ensured that vermicelli user and buffering inbox one_to_one corresponding, this Redis can use list structure to carry out structure Build buffering inbox, as it is shown on figure 3, and received releasing news is numbered (postId), It is respectively written in the Redis buffering inbox of each vermicelli user, such as: Key name is " userId:12121 ", postId will the left side of push to list, but be not limited to this.
By according to described number of users determine correspondence buffering inbox quantity, by described release news into The buffering inbox of each user it is respectively stored in a predetermined sequence after line number, consequently facilitating quickly Ground is by the user being distributed to correspondence of the information of multiple issues, it is simple to follow-up can inquire about what user was received Information.
Further, on the basis of above-described embodiment, collect storage the most at predetermined intervals After release news and be respectively written into distributed storage data base, including:
Inquire about the buffering inbox of each user every time at predetermined intervals, collect each user's In buffering inbox, in described predetermined time interval, releasing news of storage is respectively written into distributed storage Data base.
Concrete, Quartz can be used to realize the scheduling of information, Quartz is a timer-triggered scheduler task frame Frame, as long as can be achieved with timer-triggered scheduler by simple configuration, so can be at predetermined intervals From the buffering inbox of Redis, inquiry is distributed to the distributed intelligence of each vermicelli user, wherein, predetermined Time interval can configure voluntarily according to practical situation, collects each vermicelli user between the predetermined time Every the interior write distributed storage data base that releases news received, such as: to often in assuming 6 hours Individual vermicelli has carried out 100 distributions, if there being 100 general-purpose families, just has the distribution of 100,000,000 times, this dispensed amount If shouldering MongoDB aspect can cause huge pressure, if by interior 100 time distribution in 6 hours Data set dresses up a data write, and write number of times is just reduced to 1,000,000 times, greatly reduces The pressure of MongoDB, but it is not limited to this.
By inquiring about the buffering inbox of each user at predetermined intervals every time, collect each use In the buffering inbox at family in described predetermined time interval storage release news be respectively written into distributed Storage data base, releases news to concern page the most in batches and carries out concurrently writing greatly, improve storage effect Rate, alleviates the high load condition of system.
Further, on the basis of above-described embodiment, the method also includes: permanently stores and is extracted The distributed intelligence that different user is paid close attention to.
Concrete, can be by MongoDB cluster as distributed storage data base, can be with persistence Storage data, serve the effect of data persistence, and wherein, the data structure in MongoDB is such as Under:
{
userId:232781,
postIds:[12121,28990,28789,90890,809809]
,
By permanently storing the distributed intelligence that collected different user is paid close attention to, look into consequently facilitating user is follow-up Ask, improve the satisfaction of user.
The embodiment of the present invention provides a kind of dissemination system paying close attention to page information, and described system includes above-mentioned enforcement Dispensing device and the mobile terminal of page information is paid close attention to any one of example.
Concrete, the clothes of the dispensing device of page information are included paying close attention to for paying close attention to the dissemination system of page information Business device and the mutual process of mobile terminal, citing below is described in detail:
The schematic flow sheet of a kind of dissemination system embodiment one paying close attention to page information that Fig. 5 provides for the present invention, As shown in the figure, it is assumed that there are 100,000 vermicellis in CCTV in the wechat public number paid close attention to, it is possible to use mobile phone or flat Issue in wechat public number on the mobile terminals 100 such as plate computer much about the most de novo News information, these message can be sent to pay close attention to page by the communication module of mobile phone or panel computer and believe The server 200 of the dispensing device of breath, the data processing module inquiry by the dispensing device paying close attention to page information should The concern vermicelli quantity of the wechat public number of CCTV, sends the news information issued according to vermicelli quantity To in the buffering inbox of vermicelli, then by paying close attention to the buffer module of the dispensing device of page information according to this centre Depending on wechat public number pay close attention to vermicelli quantity build each pay close attention to vermicelli buffering inbox, caching should The information that the wechat public number of CCTV is issued, then the scheduler module collection paying close attention to the dispensing device of page information should The issue of information content predetermined in the buffering inbox of each concern vermicelli of the wechat public number of this CCTV Information, such as can releasing news at interval of receiving of buffering each vermicelli in inbox for 6 hours Write distributed storage data base, as persistence, follow-up concern vermicelli is by mobile phone or flat board electricity The mobile terminals such as brain can view all information that CCTV's public number is issued.
The embodiment of the present invention provides a kind of dissemination system paying close attention to page information, and described system includes in embodiment Any one pays close attention to dispensing device and the mobile terminal of page information, will close by paying close attention to the dissemination system of page information The distribution information of note page is respectively stored in the caching inbox that each user is corresponding according to number of users, so After releasing news and be distributed after periodic collection storage at predetermined intervals, enabling to pass Note page information carries out alleviating the when of big concurrently write the high load condition of system, improves concern page information The speed of distribution and inquiry service, thus improve user experience.
It should be noted that in this article, term " include ", " comprising " or its any other become Body is intended to comprising of nonexcludability, so that include the process of a series of key element, method, article Or device not only includes those key elements, but also includes other key elements being not expressly set out, or Also include the key element intrinsic for this process, method, article or device.There is no more restriction In the case of, statement " including ... " key element limited, it is not excluded that including the mistake of this key element Journey, method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned Embodiment method can add the mode of required general hardware platform by software and realize, naturally it is also possible to logical Cross hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the present invention's The part that prior art is contributed by technical scheme the most in other words can be with the form body of software product Revealing to come, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light Dish) in, including some instructions with so that a station terminal equipment (can be mobile phone, computer, service Device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or Connect and be used in other relevant technical fields, be the most in like manner included in the scope of patent protection of the present invention.

Claims (11)

1. pay close attention to a dispensing device for page information, be applied to server, it is characterised in that including: number According to processing module, caching inbox module and scheduler module;
Described data processing module, is set to determine when described concern page releases news, inquires about described concern The number of users that page releases news;
Described caching inbox module, be set to according to described number of users store respectively described in release news;
Described scheduler module, is set to releasing news after collecting storage the most at predetermined intervals It is respectively written into distributed storage data base.
Device the most according to claim 1, it is characterised in that described caching inbox module also sets It is set to, before releasing news described in storing respectively according to described number of users, be also configured to:
The buffering inbox that each user is corresponding is built according to described number of users.
Device the most according to claim 2, it is characterised in that described caching inbox module is arranged According to described number of users store respectively described in release news, refer to:
Described caching inbox module is set to determine the buffering inbox number of correspondence according to described number of users Amount, by described release news be numbered after be respectively stored into the buffering of each user in a predetermined sequence Inbox.
Device the most according to claim 1, it is characterised in that described scheduler module is set to every time Releasing news after collecting storage at predetermined intervals is respectively written into distributed storage data base, is Refer to:
Described scheduler module is set to inquire about at predetermined intervals the buffering addressee of each user every time Case, collects in the buffering inbox of each user releasing news of in described predetermined time interval storage It is respectively written into distributed storage data base.
Device the most according to claim 1, it is characterised in that this device also includes: distributed deposit Storage DBM;
Described distributed storage DBM, is set to permanently store collected releasing news.
6. pay close attention to a distribution method for page information, be applied to server, it is characterised in that including:
Determine when described concern page releases news, inquire about the number of users that described concern page releases news;
According to described number of users store respectively described in release news;
Releasing news after collecting storage the most at predetermined intervals is respectively written into distributed storage number According to storehouse.
Method the most according to claim 6, it is characterised in that according to described number of users respectively Before releasing news described in storage, also include:
The buffering inbox that each user is corresponding is built according to described number of users.
Method the most according to claim 6, it is characterised in that deposit respectively according to described number of users Release news described in storage, including:
Determine the buffering inbox quantity of correspondence according to described number of users, described releasing news is compiled The buffering inbox of each user it is respectively stored in a predetermined sequence after number.
Method the most according to claim 6, it is characterised in that the most at predetermined intervals Collect releasing news after storage and be respectively written into distributed storage data base, including:
Inquire about the buffering inbox of each user every time at predetermined intervals, collect each user's In buffering inbox, in described predetermined time interval, releasing news of storage is respectively written into distributed storage Data base.
Method the most according to claim 6, it is characterised in that described method also includes:
Permanently store collected releasing news.
11. 1 kinds of dissemination systems paying close attention to page information, it is characterised in that described system includes above-mentioned 1-5 Any one pays close attention to dispensing device and the mobile terminal of page information.
CN201610214688.2A 2016-04-07 2016-04-07 Concern page information distribution device, method and system Pending CN105897440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610214688.2A CN105897440A (en) 2016-04-07 2016-04-07 Concern page information distribution device, method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610214688.2A CN105897440A (en) 2016-04-07 2016-04-07 Concern page information distribution device, method and system

Publications (1)

Publication Number Publication Date
CN105897440A true CN105897440A (en) 2016-08-24

Family

ID=57013129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610214688.2A Pending CN105897440A (en) 2016-04-07 2016-04-07 Concern page information distribution device, method and system

Country Status (1)

Country Link
CN (1) CN105897440A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880529A (en) * 2012-09-13 2013-01-16 新浪网技术(中国)有限公司 Memory data backup method and memory data backup system
CN103095684A (en) * 2012-12-13 2013-05-08 微梦创科网络科技(中国)有限公司 Method obtaining attention user aggregate information, device and system
CN103530335A (en) * 2013-09-30 2014-01-22 广东电网公司汕头供电局 In-stockroom operation method and device of electric power measurement acquisition system
US20150188879A1 (en) * 2013-12-30 2015-07-02 Ideaware Inc. Apparatus for grouping servers, a method for grouping servers and a recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880529A (en) * 2012-09-13 2013-01-16 新浪网技术(中国)有限公司 Memory data backup method and memory data backup system
CN103095684A (en) * 2012-12-13 2013-05-08 微梦创科网络科技(中国)有限公司 Method obtaining attention user aggregate information, device and system
CN103530335A (en) * 2013-09-30 2014-01-22 广东电网公司汕头供电局 In-stockroom operation method and device of electric power measurement acquisition system
US20150188879A1 (en) * 2013-12-30 2015-07-02 Ideaware Inc. Apparatus for grouping servers, a method for grouping servers and a recording medium

Similar Documents

Publication Publication Date Title
CN103617680B (en) A kind of intellectual access method and system based on Quick Response Code management manipulation
CN101004758A (en) Method and corresponding system for creating and obtaining report forms
CN101697560A (en) Mobile terminal and message display method thereof
CN102158539A (en) Dynamic syndicated content delivery system and method
CN101800792A (en) Mobile phone internet traffic counting and displaying method and device, and mobile phone
CN102883056A (en) Short message reminding method and mobile terminal
CN102130999A (en) To-be-processed information prompting method and terminal
CN105094531A (en) Icon ordering system and method
CN101345912A (en) Method for acquiring information as well as hand-held mobile communications device for implementing the method
CN101110839B (en) Method and system for optimizing metadata passing in a push content processing protocol
CN101795443A (en) Service reminder method, service reminder system and communication system
CN106020725A (en) Application file processing apparatus and method
CN106331005A (en) Message management method and device
CN102111447A (en) System and method for mixed mode delivery of dynamic content to a mobile device
CN105554859A (en) Message notification processing method of terminal, and terminal
CN104375751A (en) Message content display method and device
EP3591923B1 (en) Broadcast receiver registration method, device, terminal apparatus, and storage medium
CN101184197A (en) Method and system for digital television user identification
CN105897440A (en) Concern page information distribution device, method and system
CN101079900B (en) System and method for the fragmentation of mobile content
CN102143440A (en) Method and device for processing short message service
CN201213269Y (en) Free communication system for mobile communication apparatus
CN101729929A (en) System for accessing mass data with intelligent network business libraries, device and method
CN101110838B (en) Multi-layered enveloped method and system for push content metadata
CN102308604A (en) Cluster on-line charge mode and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160824