CN104243523A - Method for building microblog messages and microblog foreground server - Google Patents

Method for building microblog messages and microblog foreground server Download PDF

Info

Publication number
CN104243523A
CN104243523A CN201310244481.6A CN201310244481A CN104243523A CN 104243523 A CN104243523 A CN 104243523A CN 201310244481 A CN201310244481 A CN 201310244481A CN 104243523 A CN104243523 A CN 104243523A
Authority
CN
China
Prior art keywords
source content
message
informed
map listing
informed source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310244481.6A
Other languages
Chinese (zh)
Other versions
CN104243523B (en
Inventor
杜佳利
李鑫竺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310244481.6A priority Critical patent/CN104243523B/en
Publication of CN104243523A publication Critical patent/CN104243523A/en
Application granted granted Critical
Publication of CN104243523B publication Critical patent/CN104243523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for building microblog messages and a microblog foreground server. The method for building microblog messages comprises the steps of building a mapping list of message publishing source IDs and message source content, finding out message solid content and a message publishing source ID corresponding to a microblog message ID when a microblog message displaying request of a user is received, obtaining message source content according to the mapping list, and building a microblog message through the message solid content and the message source content. By means of the technical scheme, the message source content in the mapping list is obtained through the message publishing source IDs, management of the message source content through the mapping list is facilitated, operation burden of a background server is reduced, and the background server can quickly feed the message solid content back to the microblog foreground server so that the microblog foreground server can build microblog messages in time to respond to user requests.

Description

Build method and the microblogging Front End Server of Twitter message
Technical field
The present invention relates to technical field of microblog, particularly relate to the method and microblogging Front End Server that build Twitter message.
Background technology
Microblogging (MicroBlog), be one based on the sharing of customer relationship message, propagate and obtain platform, user by setting up individual community based on technology such as WEB, WAP, can realize immediately sharing of message.
In prior art, microblogging Front End Server, when building Twitter message, obtains Twitter message ID, obtains message entity content and the informed source content of Twitter message ID from background server, then builds Twitter message according to message entity content and source content.Informed source content comprises the mobile terminal of different platform, different editions, dissimilar, different editions browser, and third-party application etc.Such as, user uses iPhone4 mobile phone to deliver microblogging, and the informed source content of this Twitter message is " iPhone4 client "; And for example, user delivers microblogging by QQ7.3 version browser, and the informed source content of this Twitter message is " QQ7.3 version browser ".
To in the research and practice process of prior art, inventor finds that prior art at least exists following problem: because the message entity content of each Twitter message ID and informed source content are all kept at background server, when informed source content needs amendment, the informed source content that the Twitter message ID of whole background server is corresponding all needs amendment, the management of informed source content is inconvenient, and the operation of background server burden is heavy, be difficult to rapid feedback message entity content to microblogging Front End Server, microblogging Front End Server is difficult to build Twitter message response user request in time, when the microblogging application request that microblogging Front End Server processes is more simultaneously, background server feedback message physical contents and the slow problem of informed source content speed particularly outstanding, affect service performance and the stability of whole microblog system.
Summary of the invention
The embodiment of the present invention provides the method and microblogging Front End Server that build Twitter message, its convenient management to message source content, can build Twitter message response user request in time.
The embodiment of the present invention is by the following technical solutions:
First aspect, provides a kind of method building Twitter message, comprising: set up the map listing that message delivers source ID and informed source content; When receiving user and showing the request of Twitter message, find message entity content corresponding to the Twitter message ID of this Twitter message and message to deliver source ID, obtain informed source content according to map listing; Message entity content is built Twitter message together with informed source content.
Second aspect, provides a kind of microblogging Front End Server, comprising: map listing sets up unit, delivers the map listing of source ID and informed source content for setting up message; Informed source contents acquiring unit, for when receiving user and showing the request of Twitter message, finds message entity content corresponding to the Twitter message ID of this Twitter message and message to deliver source ID, obtains informed source content according to map listing; Twitter message display unit, for building Twitter message by message entity content together with informed source content.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought:
The technical program sets up the map listing that message delivers source ID and informed source content, the informed source content in source ID acquisition map listing is delivered by message, be convenient to by the management of map listing to message source content, reduce the operation burden of background server, background server can rapid feedback message entity content to microblogging Front End Server, microblogging Front End Server can build in time Twitter message response user request; When the microblogging application request that microblogging Front End Server processes is more simultaneously, advantage is particularly evident faster for background server feedback message physical contents speed ratio, improves service performance and the stability of whole microblog system.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing the embodiment of the present invention is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the content of the embodiment of the present invention and these accompanying drawings.
Fig. 1 is the method flow diagram of structure Twitter message method first embodiment that the embodiment of the present invention provides.
Fig. 2 is the method flow diagram of structure Twitter message method second embodiment that the embodiment of the present invention provides.
Fig. 3 is the method flow diagram of structure Twitter message method the 3rd embodiment that the embodiment of the present invention provides.
Fig. 4 is the method flow diagram of structure Twitter message method the 4th embodiment that the embodiment of the present invention provides.
Fig. 5 is the block diagram of microblogging Front End Server first embodiment that the embodiment of the present invention provides.
Fig. 6 is the block diagram of microblogging Front End Server second embodiment that the embodiment of the present invention provides.
Embodiment
The technical problem solved for making the present invention, the technical scheme of employing and the technique effect that reaches are clearly, be described in further detail below in conjunction with the technical scheme of accompanying drawing to the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, it is the method flow diagram of structure Twitter message method first embodiment that the embodiment of the present invention provides.The method is applied to microblogging Front End Server, microblogging Front End Server refers to the Front End Server for providing the service of response user side microblogging application request, microblogging Front End Server belongs to the front desk service functional module in microblog system, and this microblog system general reference is based on the microblog system of the technology such as WEB, WAP.
The method of this structure Twitter message, comprises the steps:
S101, set up message and deliver source ID and the map listing of informed source content.
This map listing preserves the corresponding relation that message delivers source ID and informed source content, and map listing can be managed by system manager.Such as, map listing is arranged with some source content hurdles from top to bottom, it can be a Digital ID that message delivers source ID, article n-th, the message in source content hurdle delivers source ID for " 10000 ", corresponding informed source content is " iPhone4 client ", article (n+1)th, the message in source content hurdle delivers source ID for " 10001 ", and corresponding informed source content is " QQ7.3 version browser ".Microblogging Front End Server finds message corresponding to Twitter message ID to deliver source ID for " 10001 ", then can obtain informed source content " QQ7.3 version browser " from map listing (n+1)th source content hurdle.Microblogging Front End Server can set up map listing at local cache.
S102, when receiving user and showing the request of Twitter message, find message entity content corresponding to the Twitter message ID of this Twitter message and message to deliver source ID, obtain informed source content according to map listing.
The corresponding Twitter message ID of every bar Twitter message, background server preserves message entity content corresponding to Twitter message ID and message delivers source ID.Microblogging Front End Server can obtain the message entity content of the Twitter message ID of Twitter message from background server and message delivers source ID.The map listing of microblogging Front End Server by setting up in advance, can deliver source ID according to message and obtain informed source content.
Front End Server is generally used for curstomer-oriented end, the request of customer in response end, and background server is generally used for preserves working procedure and business datum; Here, differentiation Front End Server and background server are the facilities in order to business development and management, and they belong to the different business function module of microblog system respectively, and can share same set of hardware.
S103, message entity content is built Twitter message together with informed source content.
Message in map listing is delivered informed source content corresponding to source ID and message entity content is integrated, obtain Twitter message; By this Twitter message customer in response request.
To sum up, in the embodiment of the present invention, set up the map listing that message delivers source ID and informed source content, the informed source content in source ID acquisition map listing is delivered by message, be convenient to by the management of map listing to message source content, such as the informed source content that message delivers source ID corresponding is increased, deletes, revised, reduce the operation burden of background server, background server can rapid feedback message entity content to microblogging Front End Server, microblogging Front End Server can build in time Twitter message response user request.When the microblogging application request that microblogging Front End Server processes is more simultaneously, advantage is particularly evident faster for background server feedback message physical contents speed ratio, improves service performance and the stability of whole microblog system.
Please refer to Fig. 2, it is the method flow diagram of structure Twitter message method second embodiment that the embodiment of the present invention provides.The main distinction of the first embodiment of the present embodiment and above-mentioned structure Twitter message method is, informed source content will be obtained according to map listing, specifically be divided into following two kinds of situations, if map listing has message to deliver informed source content corresponding to source ID, directly read the informed source content of this correspondence, if map listing does not have message to deliver informed source content corresponding to source ID, read the informed source content of acquiescence.
The method of this structure Twitter message, comprises the steps:
S201, set up message and deliver source ID and the map listing of informed source content.
S202, when receive user show the request of Twitter message time, find message entity content corresponding to the Twitter message ID of this Twitter message and message deliver source ID.
S203, judge whether map listing has message to deliver informed source content corresponding to source ID, if had, continues step S204, otherwise, continue step S205.
S204, read the informed source content of this correspondence, continue step S206.
The informed source content of S205, reading acquiescence, continues step S206.
If in the map listing record of local cache, this message does not deliver informed source content corresponding to source ID, then the informed source content of the acquiescence of reading pre-set.Such as, the program is applied to telecom operators' microblogging business, and the informed source content of acquiescence can be " telecom operators' microblogging ".
S206, message entity content is built Twitter message together with informed source content.Here informed source content, comprises the informed source content of above-mentioned correspondence and the informed source content of acquiescence.
To sum up, in the embodiment of the present invention, judge whether map listing has message to deliver informed source content corresponding to source ID, if had, read the informed source content of this correspondence to build Twitter message, otherwise the informed source content of reading acquiescence is to build Twitter message; Because the kind of informed source content is a lot, map listing in microblogging Front End Server cannot be contained all message and delivers informed source content corresponding to source ID, adopts said method can solve in map listing and can not find the problem that message delivers the corresponding informed source content of source ID.The informed source content in source ID acquisition map listing is delivered by message, be convenient to by the management of map listing to message source content, alleviate the operation burden of background server, background server can rapid feedback message entity content to microblogging Front End Server, microblogging Front End Server can build in time Twitter message response user request.
Please refer to Fig. 3, it is the method flow diagram of structure Twitter message method the 3rd embodiment that the embodiment of the present invention provides.The main distinction of the second embodiment of the present embodiment and above-mentioned structure Twitter message method is: will obtain informed source content according to map listing, specifically be divided into following three kinds of situations, the map listing commonly used as human configuration have message to deliver informed source content that informed source content corresponding to source ID then directly reads this correspondence, the map listing commonly used as human configuration do not have the map listing dynamically updating focus to have message to deliver informed source content that informed source content corresponding to source ID then reads this correspondence, the map listing commonly used as human configuration and the map listing dynamically updating focus all do not have message to deliver informed source content that informed source content corresponding to source ID then reads this acquiescence, increase and send inquiry request to informed source inquiry background server, use the informed source content update returned to dynamically update the content of the map listing of focus.
The method of this structure Twitter message, comprises the steps:
S301, set up message and deliver source ID and the map listing of informed source content.
In the embodiment of the present invention, set up the map listing that human configuration is commonly used and the map listing dynamically updating focus, the former is system manager's human configuration, the latter is that the information source content delivering source ID corresponding according to used message dynamically updates, and these two map listings can be kept at the local cache of microblogging Front End Server.
S302, when receive user show the request of Twitter message time, find message entity content corresponding to the Twitter message ID of this Twitter message and message deliver source ID.
S303, judge whether map listing that human configuration is commonly used has message to deliver informed source content corresponding to source ID, if had, continues step S304, otherwise, continue step S305.
The map listing that human configuration is commonly used is the conventional map listing of related personnel's human configuration such as system manager, this list records microblog system the most frequently used or have a significant impact to microblogging business or the message of manual amendment in time must deliver the corresponding relation of originate ID and source content.The map listing that this human configuration is commonly used is usually smaller, is the list that first microblogging Front End Server is inquired about.Such as, can by before rank 5 mobile terminal, before rank 5 browser be recorded to the conventional map listing of this human configuration; And for example, when when source content changes, the map listing of database of informed source inquiry background server has little time to change, keeper can initiatively modify in the conventional map listing of this human configuration.
S304, read the informed source content of the correspondence of the map listing that this human configuration is commonly used, continue step S308.
S305, judge whether the map listing dynamically updating focus has message to deliver informed source content corresponding to source ID, if had, continues step S306, otherwise, continue step S307.
The map listing dynamically updating focus is after microblog system is run, and constantly updates the map listing using message to deliver information source content corresponding to source ID.Dynamically update the map listing of focus by dynamically updating to reflect the informed source content of used focus of a certain period, microblogging Front End Server cannot inquire after message delivers informed source content corresponding to source ID in the map listing that human configuration is commonly used, and delivers in the row of source inquire about in the message dynamically updating focus.
When the message of Twitter message that microblogging Front End Server builds is delivered and is inquired corresponding informed source content the map listing that source ID cannot commonly use from human configuration and the map listing dynamically updating focus, deliver informed source content corresponding to source ID to informed source inquiry background server query messages, and Query Result Regeneration dynamics is upgraded the map listing of focus.
Informed source inquiry background server belongs to one of them background server, in the present embodiment, informed source inquiry background server preserves the complete map list that message delivers informed source content corresponding to source ID, and microblogging Front End Server obtains informed source content by the complete map list of informed source inquiry background server.
In the embodiment of the present invention, the map listing dynamically updating focus comprises some source content hurdles, every bar source content hurdle comprise message deliver source ID and informed source content corresponding relation, this source content hurdle last service time.The complete map list of the map listing that human configuration is commonly used, the map listing of renewal focus, informed source inquiry background server, these three row tableau formats can be identical.
S306, read the informed source content that this dynamically updates the correspondence of the map listing of focus, continue step S308.
The informed source content of S307, reading acquiescence, continues step S308 and step S309.It should be noted that, step S308 and step S309 does not have sequencing relation.
S308, message entity content is built Twitter message together with informed source content.Here informed source content, comprises the informed source content of informed source content corresponding to above-mentioned steps S304, step S306 and acquiescence.
S309, send to informed source inquiry background server the inquiry request that query messages delivers informed source content corresponding to source ID, continue step S310.
Deliver source ID as this message in the map listing of microblogging Front End Server, there is no corresponding informed source content, then send inquiry request to informed source inquiry background server, by the complete map list of query messages source inquiry background server, this message is found to deliver informed source content corresponding to source ID.
Step S310-step S313 is the process that the informed source content update using informed source inquiry background server to return dynamically updates the map listing of focus.
S310, receive the informed source content that returns of informed source inquiry background server.
Whether the memory space that the map listing that S311, judgement dynamically update focus takies is more than or equal to preset memory space threshold value, if so, continues step S312, otherwise, continue step S313.
S312, according to finding out last service time and deleting the informed source content bar do not used at most dynamically updated in the map listing of focus, message is delivered source ID and to add in the map listing dynamically updating focus with the informed source content corresponding relation that returns and generate new informed source content bar.When this message next time deliver source ID inquiry dynamically update the map listing of focus time, corresponding informed source content can be found.
Cause too greatly the time delay of inquiring about this list excessive for avoiding the map listing dynamically updating focus of microblogging Front End Server local cache, affect response speed and the runnability of microblogging Front End Server, in the present embodiment, pre-set spatial cache threshold value, when the spatial cache that map listing takies is more than or equal to preset spatial cache threshold value, delete the informed source content bar do not used at most, effectively the spatial cache that map listing takies is controlled in suitable scope.Spatial cache threshold value can adjust according to business demand and server performance.
By the last service time of the informed source content bar of map listing, the informed source content bar do not used at most can be found from all informed source content bar, such as the last service time of all informed source content bar and current time are compared, what time phase difference was maximum is the informed source content bar do not used at most, is then deleted.
S313, message delivered source ID and add in the map listing dynamically updating focus with the informed source content corresponding relation that returns and generate new informed source content bar.When this message next time deliver source ID inquiry dynamically update the map listing of focus time, corresponding informed source content can be found.
If not this information that to dynamically update in the map listing of focus of microblogging Front End Server local cache delivers informed source content corresponding to source ID, then obtain the informed source content of acquiescence, build micro-blog information, return to client, thus quickening response speed, improve service performance, be kept at microblogging Front End Server from the informed source content that inquires of information source inquiry background server and dynamically update the map listing of focus for using next time.
If dynamically updating in the map listing of focus of microblogging Front End Server local cache does not have information to deliver informed source content corresponding to source ID, it not the informed source content obtaining acquiescence, build micro-blog information according to the informed source content of acquiescence and return to client, but inquire information from information source inquiry background server and deliver informed source content corresponding to source ID, then micro-blog information is built according to the information source inquiry informed source content that inquires of background server and information entity content, return to client, the informed source content delivering source ID corresponding owing to inquiring information from information source inquiry background server needs some times, when particularly the inquiry request that simultaneously receives of information source inquiry background server is more, query time can be long, cause in time micro-blog information to be returned to client, response time is longer, customer experience is good not.
If the complete map list that information source is inquired about background server by microblogging Front End Server reads microblogging Front End Server local cache, on the one hand, to cause too greatly microblogging Front End Server to inquire about the time delay of this list excessive in complete map list; On the other hand, complete map list needs often to safeguard, namely microblogging Front End Server needs the integrality of the complete map list guarantee data of Period Synchronization Information source inquiry background server, synchronous process will cause two servers to process mass data, increase the weight of the operation burden of two servers.
To sum up, microblogging Front End Server adopts L2 cache strategy, set up two map listings, wherein, the map listing that the human configuration in level cache is commonly used is keeper's active arrangement, and record is commonly used to source contents, important service source content, promptly revises source content, this list amendment flexibly, can carry out error handle by manual intervention, improve the reliability of microblog system, the map listing that human configuration is commonly used is the list first inquired about, the map listing dynamically updating focus in L2 cache is for dynamically updating, record a period of time used focus source content, the complete map list of just query messages source inquiry background server when the map listing that inquiry dynamically updates focus does not have a recording messages source content, decrease the number of times of query messages source inquiry background server, reduce the burden of server, and microblogging Front End Server the time that local cache is inquired about compare informed source inquiry background server inquiry time short, set up at microblogging Front End Server the map listing dynamically updating focus and accelerate the client end response time.When microblogging Front End Server brings into operation, first set up map listing and the empty map listing dynamically updating focus that human configuration commonly uses, then constantly update the data dynamically updating the map listing of focus.
Adopt L2 cache strategy to improve flexibility and the validity of system management, greatly reduce the interface interchange pressure to informed source inquiry background server, cost performance is high, promotes the runnability of microblogging Front End Server.The inquiry request of the microblogging Front End Server of the technical program can be responded timely, the inquiry velocity of the complete map list of informed source inquiry background server is than very fast, the query interface service of good high concurrent low time delay can be provided, thus improve service performance and the stability of whole microblog system.
Microblogging Front End Server is by judging whether the spatial cache that the map listing dynamically updating focus of local cache takies is more than or equal to preset spatial cache threshold value, if, then delete the informed source content bar do not used at most, effectively the spatial cache that the map listing dynamically updating focus takies is controlled in suitable scope, improve the utilization rate of hot spot data, thus ensure response speed and the runnability of microblogging Front End Server.
The informed source content in source ID acquisition map listing is delivered by message, be convenient to by the management of map listing to message source content, alleviate the operation burden of background server, background server can rapid feedback message entity content to microblogging Front End Server, microblogging Front End Server can build in time Twitter message response user request.
Please refer to Fig. 4, the method flow diagram of the 4th embodiment of the structure Twitter message method that its embodiment of the present invention provides.The main distinction of the 3rd embodiment of the present embodiment and above-mentioned structure Twitter message method is: the 3rd embodiment is by judging whether memory space that the map listing dynamically updating focus takies is more than or equal to preset memory space threshold value and determines to delete source content hurdle, and whether the quantity that the present embodiment passes through the informed source content bar dynamically updated in the map listing of focus judging local cache is more than or equal to preset amount threshold decision deletion source content hurdle, hurdle.
The method of this structure Twitter message, comprises the steps:
S401, set up message and deliver source ID and the map listing of informed source content.
S402, when receive user show the request of Twitter message time, find message entity content corresponding to the Twitter message ID of this Twitter message and message deliver source ID.
S403, judge whether map listing that human configuration is commonly used has message to deliver informed source content corresponding to source ID, if had, continues step S404, otherwise, continue step S405.
S404, read the informed source content of the correspondence of the map listing that this human configuration is commonly used, continue step S408.
S405, judge whether the map listing dynamically updating focus has message to deliver informed source content corresponding to source ID, if had, continues step S406, otherwise, continue step S407.
S406, read the informed source content that this dynamically updates the correspondence of the map listing of focus, continue step S408.
The informed source content of S407, reading acquiescence, continues step S408 and step S409.It should be noted that, step S408 and step S409 does not have sequencing relation.
S408, message entity content is built Twitter message together with informed source content.
S409, send to informed source inquiry background server the inquiry request that query messages delivers informed source content corresponding to source ID, continue step S410.
S410, receive the informed source content that returns of informed source inquiry background server.
S411, judge whether the quantity of the informed source content bar dynamically updated in the map listing of focus of local cache is more than or equal to preset hurdle amount threshold, if so, continue step S412, otherwise, continue step S413.
In the embodiment of the present invention, the map listing dynamically updating focus comprises some source content hurdles, every bar source content hurdle comprise message deliver source ID and source content corresponding relation, this source content hurdle last service time.When certain source content hurdle is used, the last service time on this source content hurdle can be upgraded.
Cause too greatly the time delay of inquiring about this table excessive for avoiding the map listing dynamically updating focus of local cache, affect response speed and the runnability of microblogging Front End Server, in the present embodiment, pre-set hurdle amount threshold, when the quantity of informed source content bar of the map listing dynamically updating focus is more than or equal to preset hurdle amount threshold, delete the informed source content bar do not used at most, effectively the informed source content bar quantity dynamically updating the map listing of focus is controlled in suitable scope.Hurdle amount threshold can adjust according to business demand and server performance.
Method the 3rd embodiment of the present embodiment and above-mentioned structure Twitter message have employed the size that two kinds of diverse ways control the map listing dynamically updating focus respectively, when the concrete enforcement embodiment of the present invention, can select according to embody rule environment.
S412, according to finding out last service time and deleting the informed source content bar do not used at most dynamically updated in the map listing of focus, message is delivered source ID and to add in the map listing dynamically updating focus with the informed source content corresponding relation that returns and generate new informed source content bar.
S413, message delivered source ID and add in the map listing dynamically updating focus with the informed source content corresponding relation that returns and generate new informed source content bar.
To sum up, in the embodiment of the present invention, microblogging Front End Server is by judging whether the quantity of the informed source content bar that the message dynamically updating focus of local cache is delivered in the list of source is more than or equal to preset hurdle amount threshold, if it is the informed source content bar do not used at most is deleted, effectively the message dynamically updating focus being delivered the spatial cache that takies of source list controls in suitable scope, improve the utilization rate of hot spot data, thus ensure response speed and the runnability of microblogging Front End Server.The informed source content in source ID acquisition map listing is delivered by message, be convenient to by the management of map listing to message source content, alleviate the operation burden of background server, background server can rapid feedback message entity content to microblogging Front End Server, microblogging Front End Server can build in time Twitter message response user request.
It is below the microblogging Front End Server embodiment of the embodiment of the present invention.The method of the structure Twitter message of the embodiment of the present invention and microblogging Front End Server belong to a total inventive concept, the detail content of not detailed description in microblogging Front End Server embodiment, can with reference to the embodiment of the method for above-mentioned structure Twitter message.
Please refer to Fig. 5, it is the block diagram of microblogging Front End Server first embodiment that the embodiment of the present invention provides.This microblogging Front End Server, comprises following content:
Map listing sets up unit 501, delivers the map listing of source ID and informed source content for setting up message;
Informed source contents acquiring unit 502, for when receiving user and showing the request of Twitter message, finds message entity content corresponding to the Twitter message ID of this Twitter message and message to deliver source ID, obtains informed source content according to map listing;
Twitter message display unit 503, for building Twitter message by message entity content together with informed source content.
To sum up, the embodiment of the present invention delivers the informed source content in source ID acquisition map listing by message, be convenient to by the management of map listing to message source content, alleviate the operation burden of background server, background server can rapid feedback message entity content to microblogging Front End Server, microblogging Front End Server can build in time Twitter message response user request.
Please refer to Fig. 6, it is the block diagram of microblogging Front End Server second embodiment that the embodiment of the present invention provides.This microblogging Front End Server, comprises following content:
Map listing sets up unit 501, delivers the map listing of source ID and informed source content for setting up message;
Informed source contents acquiring unit 502, for when receiving user and showing the request of Twitter message, finds message entity content corresponding to the Twitter message ID of this Twitter message and message to deliver source ID, obtains informed source content according to map listing;
Twitter message display unit 503, for building Twitter message by message entity content together with informed source content.
As a preferred implementation, obtain informed source content according to map listing, comprising: judge whether map listing has message to deliver informed source content corresponding to source ID, if had, read the informed source content of this correspondence, otherwise, read the informed source content of acquiescence.
As another preferred implementation, obtain informed source content according to map listing, comprising: judge whether the map listing that human configuration is commonly used has message to deliver informed source content corresponding to source ID, if had, reads the informed source content of this correspondence; Otherwise whether the map listing judging to dynamically update focus has message to deliver informed source content corresponding to source ID, if had, reads the informed source content of this correspondence, otherwise, read the informed source content of acquiescence.Wherein, map listing comprises the map listing that human configuration is commonly used and the map listing dynamically updating focus.
Wherein, inquiry request transmitting element 504 and map listing updating block 505 is also comprised:
Inquiry request transmitting element 504, for read acquiescence informed source content after, send to informed source inquiry background server the inquiry request that query messages delivers informed source content corresponding to source ID;
Map listing updating block 505, the informed source content update for using informed source inquiry background server to return dynamically updates the map listing of focus.
As a preferred implementation, map listing updating block 505, specifically for receiving the informed source content that informed source inquiry background server returns; Judge whether the memory space that the map listing dynamically updating focus takies is more than or equal to preset memory space threshold value, if, according to finding out last service time and deleting the informed source content bar do not used at most dynamically updated in the map listing of focus, message is delivered source ID and to add in the map listing dynamically updating focus with the informed source content corresponding relation that returns and generate new informed source content bar; Otherwise, message is delivered source ID and to add in the map listing dynamically updating focus with the informed source content corresponding relation that returns and generate new informed source content bar.Wherein, the map listing dynamically updating focus comprises some source content hurdles, every bar source content hurdle comprise message deliver source ID and informed source content corresponding relation, this source content hurdle last service time.
As another preferred implementation, map listing updating block 505, specifically for receiving the informed source content that informed source inquiry background server returns; Judge whether the quantity of the informed source content bar dynamically updated in the map listing of focus of local cache is more than or equal to preset hurdle amount threshold, if, according to finding out last service time and deleting the informed source content bar do not used at most dynamically updated in the map listing of focus, message is delivered source ID and to add in the map listing dynamically updating focus with the informed source content corresponding relation that returns and generate new informed source content bar; Otherwise, message is delivered source ID and to add in the map listing dynamically updating focus with the informed source content corresponding relation that returns and generate new informed source content bar.Wherein, the message dynamically updating focus is delivered source list and is comprised some source content hurdles, and every bar source content hurdle comprises the last service time that message delivers source ID and informed source content corresponding relation, this source content hurdle.
To sum up, the embodiment of the present invention delivers the informed source content in source ID acquisition map listing by message, be convenient to by the management of map listing to message source content, alleviate the operation burden of background server, background server can rapid feedback message entity content to microblogging Front End Server, microblogging Front End Server can build in time Twitter message response user request.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, this program can be stored in a computer-readable recording medium, and storage medium can comprise memory, disk or CD etc.
Above content is only preferred embodiment of the present invention, and for those of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, this description should not be construed as limitation of the present invention.

Claims (12)

1. build a method for Twitter message, it is characterized in that, comprising:
Set up the map listing that message delivers source ID and informed source content;
When receiving user and showing the request of Twitter message, find message entity content corresponding to the Twitter message ID of this Twitter message and message to deliver source ID, obtain informed source content according to described map listing;
Described message entity content is built Twitter message together with informed source content.
2. method according to claim 1, is characterized in that, described according to described map listing acquisition informed source content, comprising:
Judge whether described map listing has described message to deliver informed source content corresponding to source ID, if had, reads the informed source content of this correspondence, otherwise, read the informed source content of acquiescence.
3. method according to claim 1, is characterized in that, described map listing comprises the map listing that human configuration is commonly used and the map listing dynamically updating focus;
Described according to described map listing acquisition informed source content, comprising:
Judge whether the map listing that human configuration is commonly used has described message to deliver informed source content corresponding to source ID, if had, reads the informed source content of this correspondence; Otherwise whether the map listing judging to dynamically update focus has described message to deliver informed source content corresponding to source ID, if had, reads the informed source content of this correspondence, otherwise, read the informed source content of acquiescence.
4. method according to claim 3, is characterized in that, after the informed source content of described reading acquiescence, also comprises:
The inquiry request that the described message of inquiry delivers informed source content corresponding to source ID is sent to informed source inquiry background server;
The map listing of focus is dynamically updated described in the informed source content update using described informed source inquiry background server to return.
5. method according to claim 4, it is characterized in that, the described map listing dynamically updating focus comprises some source content hurdles, every bar source content hurdle comprise message deliver source ID and informed source content corresponding relation, this source content hurdle last service time;
Dynamically update the map listing of focus described in the informed source content update that described use described informed source inquiry background server returns, comprising:
Receive the informed source content that described informed source inquiry background server returns; Judge whether the memory space that the map listing dynamically updating focus takies is more than or equal to preset memory space threshold value, if, according to finding out described last service time and deleting the informed source content bar do not used at most dynamically updated in the map listing of focus, message is delivered source ID and the described informed source content corresponding relation returned adds in the map listing dynamically updating focus and generates new informed source content bar; Otherwise, message is delivered source ID and the described informed source content corresponding relation returned adds in the map listing dynamically updating focus and generates new informed source content bar.
6. method according to claim 4, it is characterized in that, the described message dynamically updating focus deliver source list comprise some source content hurdles, every bar source content hurdle comprise message deliver source ID and informed source content corresponding relation, this source content hurdle last service time;
Dynamically update the map listing of focus described in the informed source content update that described use described informed source inquiry background server returns, comprising:
Receive the informed source content that described informed source inquiry background server returns; Judge whether the quantity of the informed source content bar dynamically updated in the map listing of focus of local cache is more than or equal to preset hurdle amount threshold, if, according to finding out described last service time and deleting the informed source content bar do not used at most dynamically updated in the map listing of focus, message is delivered source ID and the described informed source content corresponding relation returned adds in the map listing dynamically updating focus and generates new informed source content bar; Otherwise, message is delivered source ID and the described informed source content corresponding relation returned adds in the map listing dynamically updating focus and generates new informed source content bar.
7. a microblogging Front End Server, is characterized in that, comprising:
Map listing sets up unit, delivers the map listing of source ID and informed source content for setting up message;
Informed source contents acquiring unit, for when receiving user and showing the request of Twitter message, finds message entity content corresponding to the Twitter message ID of this Twitter message and message to deliver source ID, obtains informed source content according to described map listing;
Twitter message display unit, for building Twitter message by described message entity content together with informed source content.
8. microblogging Front End Server according to claim 1, is characterized in that, described according to described map listing acquisition informed source content, comprising:
Judge whether described map listing has described message to deliver informed source content corresponding to source ID, if had, reads the informed source content of this correspondence, otherwise, read the informed source content of acquiescence.
9. microblogging Front End Server according to claim 7, is characterized in that, described map listing comprises the map listing that human configuration is commonly used and the map listing dynamically updating focus;
Described according to described map listing acquisition informed source content, comprising:
Judge whether the map listing that human configuration is commonly used has described message to deliver informed source content corresponding to source ID, if had, reads the informed source content of this correspondence; Otherwise whether the map listing judging to dynamically update focus has described message to deliver informed source content corresponding to source ID, if had, reads the informed source content of this correspondence, otherwise, read the informed source content of acquiescence.
10. microblogging Front End Server according to claim 9, is characterized in that, also comprises inquiry request transmitting element and map listing updating block:
Inquiry request transmitting element, for read acquiescence informed source content after, send to informed source inquiry background server the inquiry request that the described message of inquiry delivers informed source content corresponding to source ID;
Map listing updating block, dynamically updates the map listing of focus for using described informed source inquiry background server described in the informed source content update returned.
11. microblogging Front End Server according to claim 10, it is characterized in that, the described map listing dynamically updating focus comprises some source content hurdles, every bar source content hurdle comprise message deliver source ID and informed source content corresponding relation, this source content hurdle last service time;
Described map listing updating block, specifically for receiving the informed source content that described informed source inquiry background server returns; Judge whether the memory space that the map listing dynamically updating focus takies is more than or equal to preset memory space threshold value, if, according to finding out described last service time and deleting the informed source content bar do not used at most dynamically updated in the map listing of focus, message is delivered source ID and the described informed source content corresponding relation returned adds in the map listing dynamically updating focus and generates new informed source content bar; Otherwise, message is delivered source ID and the described informed source content corresponding relation returned adds in the map listing dynamically updating focus and generates new informed source content bar.
12. microblogging Front End Server according to claim 10, it is characterized in that, the described message dynamically updating focus deliver source list comprise some source content hurdles, every bar source content hurdle comprise message deliver source ID and informed source content corresponding relation, this source content hurdle last service time;
Described map listing updating block, specifically for receiving the informed source content that described informed source inquiry background server returns; Judge whether the quantity of the informed source content bar dynamically updated in the map listing of focus of local cache is more than or equal to preset hurdle amount threshold, if, according to finding out described last service time and deleting the informed source content bar do not used at most dynamically updated in the map listing of focus, message is delivered source ID and the described informed source content corresponding relation returned adds in the map listing dynamically updating focus and generates new informed source content bar; Otherwise, message is delivered source ID and the described informed source content corresponding relation returned adds in the map listing dynamically updating focus and generates new informed source content bar.
CN201310244481.6A 2013-06-19 2013-06-19 Build the method and microblogging Front End Server of Twitter message Active CN104243523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310244481.6A CN104243523B (en) 2013-06-19 2013-06-19 Build the method and microblogging Front End Server of Twitter message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310244481.6A CN104243523B (en) 2013-06-19 2013-06-19 Build the method and microblogging Front End Server of Twitter message

Publications (2)

Publication Number Publication Date
CN104243523A true CN104243523A (en) 2014-12-24
CN104243523B CN104243523B (en) 2018-09-04

Family

ID=52230868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310244481.6A Active CN104243523B (en) 2013-06-19 2013-06-19 Build the method and microblogging Front End Server of Twitter message

Country Status (1)

Country Link
CN (1) CN104243523B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097380A1 (en) * 2001-11-19 2003-05-22 Mulhern Robert Kelly System and method for managing and updating information relating to economic entities
US20040019614A1 (en) * 2002-07-24 2004-01-29 International Business Machines Corporation Mid-tier-based conflict resolution method and system usable for message synchronization and replication
CN101119517A (en) * 2007-07-12 2008-02-06 深圳市融合视讯科技有限公司 Method of automatic downloading software from network server
US20080162526A1 (en) * 2006-12-28 2008-07-03 Uma Kant Singh Method and system for managing unstructured data in a structured data environment
CN101778124A (en) * 2009-12-22 2010-07-14 卓望数码技术(深圳)有限公司 Method for accessing Internet by mobile client end and page access server
CN102036224A (en) * 2009-09-29 2011-04-27 中国移动通信集团设计院有限公司 Method, system and upgrading control entity for informing mobile equipment of upgrading software
CN201813408U (en) * 2010-09-10 2011-04-27 北京开心人信息技术有限公司 Prompting system of online state
US20110126272A1 (en) * 2009-11-25 2011-05-26 International Business Machines Corporation Apparatus and method of identity and virtual object management and sharing among virtual worlds
CN102195802A (en) * 2010-03-18 2011-09-21 中兴通讯股份有限公司 Terminal software transmission method, server and terminal
CN102595346A (en) * 2012-02-14 2012-07-18 中国民航信息网络股份有限公司 Flight multiple-client message notification system and method thereof
CN102710436A (en) * 2012-05-23 2012-10-03 福建星网锐捷网络有限公司 Network equipment management method, device, relative equipment and system
CN102769579A (en) * 2011-05-05 2012-11-07 腾讯科技(深圳)有限公司 Method for displaying microblog message, microblog terminal and microblog server side
CN102833180A (en) * 2011-06-17 2012-12-19 腾讯科技(北京)有限公司 Method and system for sharing microblog messages
CN103051646A (en) * 2011-10-12 2013-04-17 腾讯数码(天津)有限公司 Information synchronization method and device
CN103095549A (en) * 2011-10-31 2013-05-08 腾讯科技(北京)有限公司 Method and system for messaging between instant messaging tools

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097380A1 (en) * 2001-11-19 2003-05-22 Mulhern Robert Kelly System and method for managing and updating information relating to economic entities
US20040019614A1 (en) * 2002-07-24 2004-01-29 International Business Machines Corporation Mid-tier-based conflict resolution method and system usable for message synchronization and replication
US20080162526A1 (en) * 2006-12-28 2008-07-03 Uma Kant Singh Method and system for managing unstructured data in a structured data environment
CN101119517A (en) * 2007-07-12 2008-02-06 深圳市融合视讯科技有限公司 Method of automatic downloading software from network server
CN102036224A (en) * 2009-09-29 2011-04-27 中国移动通信集团设计院有限公司 Method, system and upgrading control entity for informing mobile equipment of upgrading software
US20110126272A1 (en) * 2009-11-25 2011-05-26 International Business Machines Corporation Apparatus and method of identity and virtual object management and sharing among virtual worlds
CN101778124A (en) * 2009-12-22 2010-07-14 卓望数码技术(深圳)有限公司 Method for accessing Internet by mobile client end and page access server
CN102195802A (en) * 2010-03-18 2011-09-21 中兴通讯股份有限公司 Terminal software transmission method, server and terminal
CN201813408U (en) * 2010-09-10 2011-04-27 北京开心人信息技术有限公司 Prompting system of online state
CN102769579A (en) * 2011-05-05 2012-11-07 腾讯科技(深圳)有限公司 Method for displaying microblog message, microblog terminal and microblog server side
CN102833180A (en) * 2011-06-17 2012-12-19 腾讯科技(北京)有限公司 Method and system for sharing microblog messages
CN103051646A (en) * 2011-10-12 2013-04-17 腾讯数码(天津)有限公司 Information synchronization method and device
CN103095549A (en) * 2011-10-31 2013-05-08 腾讯科技(北京)有限公司 Method and system for messaging between instant messaging tools
CN102595346A (en) * 2012-02-14 2012-07-18 中国民航信息网络股份有限公司 Flight multiple-client message notification system and method thereof
CN102710436A (en) * 2012-05-23 2012-10-03 福建星网锐捷网络有限公司 Network equipment management method, device, relative equipment and system

Also Published As

Publication number Publication date
CN104243523B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
US10110727B2 (en) Systems and methods for event stream management
US20190102341A1 (en) Object information processing method and apparatus, and storage medium
CN101493826B (en) Database system based on WEB application and data management method thereof
US9986032B2 (en) Client calculation of links to network locations of files to upload
CN103020223B (en) File-sharing disposal route, device and system
CN106817388B (en) Method and device for acquiring data by virtual machine and host machine and system for accessing data
CN103236989B (en) Buffer control method in a kind of content distributing network, equipment and system
CN105354315A (en) Region division method in distributed database, Region node and system
US10873552B2 (en) Large data management in communication applications through multiple mailboxes
CN110109868A (en) Method, apparatus and computer program product for index file
CN107133285A (en) A kind of distributed major key generation method and device
CN104182487A (en) Unified storage method supporting various storage modes
CN104113572A (en) Distribution method, system and front end device for user generation content
Wang et al. On data staging algorithms for shared data accesses in clouds
CN101694707A (en) Method and device for budget control
CN101968791A (en) Data storage method and device
CN104391947A (en) Real-time processing method and system of mass GIS (geographic information system) data
CN104243523A (en) Method for building microblog messages and microblog foreground server
CN103678008A (en) Data reading method and corresponding data reading device
CN103795810A (en) Data distribution system and method and central server of data distribution system
KR101596588B1 (en) Method for moving data between terminals and apparatus for the same
CN111523066A (en) Data acquisition method and device
CN110110256A (en) Data processing method, device, electronic equipment and storage medium
CN116962501A (en) Message management method, device, computer equipment and computer readable storage medium
CN115936174A (en) Management method and related equipment for predicting operation plan

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant