CN104243523B - Build the method and microblogging Front End Server of Twitter message - Google Patents

Build the method and microblogging Front End Server of Twitter message Download PDF

Info

Publication number
CN104243523B
CN104243523B CN201310244481.6A CN201310244481A CN104243523B CN 104243523 B CN104243523 B CN 104243523B CN 201310244481 A CN201310244481 A CN 201310244481A CN 104243523 B CN104243523 B CN 104243523B
Authority
CN
China
Prior art keywords
message
source
informed
source content
map listing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310244481.6A
Other languages
Chinese (zh)
Other versions
CN104243523A (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

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses the methods and microblogging Front End Server of structure Twitter message.Structure Twitter message method include, establish the map listing that message delivers source ID and informed source content, when receiving the request of user's displaying Twitter message, the corresponding message entity contents of Twitter message ID and message for finding the Twitter message deliver source ID, and informed source content is obtained according to the map listing;The message entity content and informed source content are built into Twitter message together.The technical program delivers the informed source content in source ID acquisition map listings by message, convenient for the management by map listing to message source content, mitigate the operation burden of background server, background server can give microblogging Front End Server, microblogging Front End Server that can build Twitter message response user's request in time with rapid feedback message entity content.

Description

Build the method and microblogging Front End Server of Twitter message
Technical field
The present invention relates to technical field of microblog, more particularly to the method and microblogging Front End Server of structure Twitter message.
Background technology
Microblogging(MicroBlog), it is one and shares, propagates and obtain platform, Yong Huke based on customer relationship message To set up personal community by being based on the technologies such as WEB, WAP, sharing immediately for message is realized.
In the prior art, microblogging Front End Server obtains Twitter message ID, from background server when building Twitter message The message entity content and informed source content of Twitter message ID are obtained, is then built according to message entity content and source content Twitter message.Informed source content include different platform, different editions mobile terminal, different type, different editions browser, And third-party application etc..For example, user delivers microblogging using iPhone4 mobile phones, the informed source content of the Twitter message is " iPhone4 clients ";For another example, user delivers microblogging by QQ7.3 version browsers, the informed source content of the Twitter message For " QQ7.3 version browsers ".
In the research and practice process to the prior art, the inventor finds that the existing technology has at least the following problems:By It is maintained in background server in the message entity content and informed source content of each Twitter message ID, when informed source content When needing modification, the corresponding informed source contents of Twitter message ID of entire background server are required to change, in informed source The management of appearance is inconvenient, and the operation burden weight of background server, it is difficult to which rapid feedback message entity content takes to microblogging foreground Business device, microblogging Front End Server are difficult to build Twitter message response user's request in time;When microblogging Front End Server is handled simultaneously Microblogging application request it is more when, background server feedback message physical contents and the slow problem of informed source content speed It is especially prominent, influence the service performance and stability of entire microblog system.
Invention content
The embodiment of the present invention provides the method and microblogging Front End Server of structure Twitter message, convenient in informed source The management of appearance can build Twitter message response user's request in time.
The embodiment of the present invention uses following technical scheme:
In a first aspect, a kind of method of structure Twitter message is provided, including:It establishes message and delivers source ID and informed source The map listing of content;When receiving the request of user's displaying Twitter message, the Twitter message ID for finding the Twitter message is corresponded to Message entity content and message deliver source ID, according to map listing obtain informed source content;By message entity content and Informed source content builds Twitter message together.
Second aspect provides a kind of microblogging Front End Server, including:Map listing establishes unit, for establishing message hair The map listing of table source ID and informed source content;Informed source contents acquiring unit, for showing microblogging as reception user When the request of message, the corresponding message entity contents of Twitter message ID and message that find the Twitter message deliver source ID, root Informed source content is obtained according to map listing;Twitter message display unit is used for message entity content and informed source content Twitter message is built together.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought:
The technical program establishes the map listing that message delivers source ID and informed source content, and source is delivered by message ID obtains the informed source content in map listing, convenient for by management of the map listing to message source content, reducing backstage The operation of server is born, and background server can give microblogging Front End Server, microblogging foreground with rapid feedback message entity content Server can build Twitter message response user's request in time;When microblogging Front End Server simultaneously handle microblogging application request compared with When more, background server feedback message physical contents speed is more particularly evident than very fast advantage, improves entire microblog system Service performance and stability.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example without creative efforts, can also be implemented for those of ordinary skill in the art according to the present invention The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is the method flow diagram of structure Twitter message method one embodiment provided in an embodiment of the present invention.
Fig. 2 is the method flow diagram of structure Twitter message second embodiment of method provided in an embodiment of the present invention.
Fig. 3 is the method flow diagram of structure Twitter message method third embodiment provided in an embodiment of the present invention.
Fig. 4 is the method flow diagram of structure Twitter message the 4th embodiment of method provided in an embodiment of the present invention.
Fig. 5 is the block diagram of microblogging Front End Server one embodiment provided in an embodiment of the present invention.
Fig. 6 is the block diagram of second embodiment of microblogging Front End Server provided in an embodiment of the present invention.
Specific implementation mode
For make present invention solves the technical problem that, the technical solution that uses and the technique effect that reaches it is clearer, below The technical solution of the embodiment of the present invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist The all other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Referring to FIG. 1, it is the method stream of structure Twitter message method one embodiment provided in an embodiment of the present invention Cheng Tu.This method is applied to microblogging Front End Server, and microblogging Front End Server refers to asks for providing response user terminal microblogging application The Front End Server of service, microblogging Front End Server is asked to belong to the front desk service function module in microblog system, the microblog system Refer to the microblog system based on technologies such as WEB, WAP.
The method of the structure Twitter message, includes the following steps:
S101, the map listing that message delivers source ID and informed source content is established.
The map listing preserves the correspondence that message delivers source ID and informed source content, and map listing can be by being System administrator is managed.For example, map listing is arranged with several source content columns from top to bottom, message delivers source ID can Think that a Digital ID, the message in nth bar source content column deliver source ID for " 10000 ", in corresponding informed source It is " iPhone4 clients " to hold, and it is " 10001 " that the message in (n+1)th source content column, which delivers source ID, and corresponding message is come Source contents are " QQ7.3 version browsers ".Microblogging Front End Server, which finds the corresponding message of Twitter message ID, to be delivered source ID and is " 10001 " can then obtain informed source content " QQ7.3 version browsers " from (n+1)th source content column of map listing.It is micro- Rich Front End Server can establish map listing in local cache.
S102, when receive user show Twitter message request when, the Twitter message ID for finding the Twitter message is corresponding Message entity content and message deliver source ID, and informed source content is obtained according to map listing.
Every Twitter message corresponds to a Twitter message ID, and it is real that background server preserves the corresponding message of Twitter message ID Hold in vivo and message delivers source ID.Microblogging Front End Server can obtain the Twitter message ID's of Twitter message from background server Message entity content and message deliver source ID.Microblogging Front End Server, can be according to message by the map listing pre-established It delivers source ID and obtains informed source content.
Front End Server is generally used for curstomer-oriented end, the request at customer in response end, and background server is generally used for preserving Run program and business datum;Herein, it is for business development and to manage just to distinguish Front End Server and background server Profit, they are belonging respectively to the different business function module of microblog system, and can share same set of hardware.
S103, message entity content and informed source content are built into Twitter message together.
Message in map listing is delivered the corresponding informed source contents of source ID to integrate with message entity content, Obtain Twitter message;The Twitter message customer in response is asked.
To sum up, in the embodiment of the present invention, the map listing that message delivers source ID and informed source content is established, by disappearing Breath delivers the informed source content in source ID acquisition map listings, convenient for the pipe by map listing to message source content Reason, for example ID corresponding informed source contents in source are delivered to message and increased, delete, change, reduce background server Operation burden, background server can give microblogging Front End Server, microblogging Front End Server with rapid feedback message entity content Twitter message response user's request can be built in time.When the microblogging application request that microblogging Front End Server is handled simultaneously is more, Background server feedback message physical contents speed is more particularly evident than very fast advantage, improves the service of entire microblog system Energy and stability.
Referring to FIG. 2, it is the method stream of structure Twitter message second embodiment of method provided in an embodiment of the present invention Cheng Tu.The present embodiment and the main distinction of the first embodiment of above-mentioned structure Twitter message method be, will be according to map listing Informed source content is obtained, following two situations are specifically divided into, if map listing has message to deliver the corresponding message of source ID Source content then directly reads the corresponding informed source content, if map listing does not have message to deliver, source ID is corresponding to disappear Breath source content then reads the informed source content of acquiescence.
The method of the structure Twitter message, includes the following steps:
S201, the map listing that message delivers source ID and informed source content is established.
S202, when receive user show Twitter message request when, the Twitter message ID for finding the Twitter message is corresponding Message entity content and message deliver source ID.
S203, judge whether map listing has message to deliver the corresponding informed source contents of source ID, if so, continuing to walk Otherwise rapid S204 continues step S205.
S204, the corresponding informed source content is read, continues step S206.
S205, the informed source content for reading acquiescence continue step S206.
If there is no the message to deliver the corresponding informed source contents of source ID in the map listing record of local cache, Read the informed source content of preset acquiescence.For example, the program is applied to telecom operators' microblogging business, acquiescence disappears It can be " telecom operators' microblogging " to cease source content.
S206, message entity content and informed source content are built into Twitter message together.Here informed source content, Include the informed source content of above-mentioned corresponding informed source content and acquiescence.
To sum up, in the embodiment of the present invention, judge whether map listing has message to deliver in the corresponding informed sources of source ID Hold, if so, read the corresponding informed source content to build Twitter message, otherwise read the informed source content of acquiescence with Build Twitter message;Since there are many type of informed source content, the map listing in microblogging Front End Server can not cover institute Some message delivers the corresponding informed source contents of source ID, can solve to can not find message hair in map listing using the above method The problem of table source ID corresponds to informed source content.It is delivered by message in the informed source that source ID is obtained in map listing Hold, convenient for by management of the map listing to message source content, mitigating the operation burden of background server, background server can Give microblogging Front End Server, microblogging Front End Server that can build Twitter message response in time and use with rapid feedback message entity content It asks at family.
Referring to FIG. 3, it is the method stream of structure Twitter message method third embodiment provided in an embodiment of the present invention Cheng Tu.The present embodiment and the main distinction of the second embodiment of above-mentioned structure Twitter message method are:It will be according to map listing Informed source content is obtained, following three kinds of situations are specifically divided into, as the common map listing of human configuration has message to deliver source The corresponding informed source contents of ID then directly read the corresponding informed source content, as the common map listing of human configuration does not have Have and map listing that dynamic updates hot spot has message to deliver the corresponding informed source contents of source ID and then read this corresponding to disappear Source content is ceased, as the no message of map listing of the common map listing of human configuration and dynamic update hot spot delivers source The corresponding informed source contents of ID then read the informed source content of the acquiescence;Increase to informed source inquiry background server hair Go out inquiry request, uses the content of the map listing of the informed source content update dynamic update hot spot of return.
The method of the structure Twitter message, includes the following steps:
S301, the map listing that message delivers source ID and informed source content is established.
In the embodiment of the present invention, establishes the common map listing of human configuration and dynamic updates the map listing of hot spot, it is preceding Person is system manager's human configuration, and the latter is to deliver the corresponding information source content dynamics of source ID according to used message Update, the two map listings can save the local cache in microblogging Front End Server.
S302, when receive user show Twitter message request when, the Twitter message ID for finding the Twitter message is corresponding Message entity content and message deliver source ID.
S303, judge whether the common map listing of human configuration has message to deliver in the corresponding informed sources of source ID Hold, if so, continuing step S304, otherwise, continues step S305.
The common map listing of human configuration is the common map listing of related personnel's human configurations such as system manager, The list records microblog system is most common or has the message of significant impact or necessary manual amendment in time to microblogging business Deliver source ID and the correspondence of source content.The common map listing of the human configuration is usually smaller, is microblogging foreground The list that server is inquired first.For example, it is artificial that before 5 mobile terminal, ranking before ranking 5 browser can be recorded to this Configure common map listing;For another example, when source content changes and informed source inquires the database of background server When map listing has little time change, administrator can actively modify in the common map listing of the human configuration.
S304, the corresponding informed source content for reading the common map listing of the human configuration continue step S308.
S305, judge whether the map listing that dynamic updates hot spot has message to deliver in the corresponding informed sources of source ID Hold, if so, continuing step S306, otherwise, continues step S307.
The map listing of dynamic update hot spot is after microblog system is run, and continuous renewal used message to deliver ID pairs of source The map listing for the information source content answered.The map listing of dynamic update hot spot is by being dynamically updated to reflect that a certain period The informed source content of used hot spot, microblogging Front End Server can not inquire in the common map listing of human configuration After message delivers the corresponding informed source contents of source ID, looked into the message of dynamic update hot spot delivers source row It askes.
The message of the Twitter message of microblogging Front End Server structure is delivered source ID and can not commonly be mapped from human configuration When inquiring corresponding informed source content in the map listing of list and dynamic update hot spot, inquires backstage to informed source and take Business device query messages deliver the corresponding informed source contents of source ID, and query result is updated to the mapping row of dynamic update hot spot Table.
Informed source inquiry background server belongs to one of background server, in the present embodiment, informed source inquiry Background server preserves the complete map list that message delivers the corresponding informed source contents of source ID, microblogging Front End Server The complete map list that background server is inquired by informed source obtains informed source content.
In the embodiment of the present invention, the map listing that dynamic updates hot spot includes several source content columns, in every source It includes the last usage time that message delivers source ID and informed source content correspondence, this source content column to hold column.People Work configures the complete map list of common map listing, the map listing for updating hot spot, informed source inquiry background server, These three row tableau formats can be identical.
S306, the corresponding informed source content that the dynamic updates the map listing of hot spot is read, continues step S308.
S307, the informed source content for reading acquiescence continue step S308 and step S309.It should be noted that step S308 and step S309 do not have sequencing relationship.
S308, message entity content and informed source content are built into Twitter message together.Here informed source content, Include the informed source content of above-mentioned steps S304, step S306 corresponding informed source content and acquiescence.
S309, it query messages is sent out delivers the corresponding informed source contents of source ID to informed source inquiry background server Inquiry request, continue step S310.
Such as message delivers source ID does not have corresponding informed source content in the map listing of microblogging Front End Server, Inquiry request then is sent out to informed source inquiry background server, inquiring the complete of background server by query messages source reflects List is penetrated, the message is found and delivers the corresponding informed source contents of source ID.
Step S310- steps S313 is to inquire the informed source content update that background server returns using informed source to move State updates the process of the map listing of hot spot.
S310, the informed source content that informed source inquiry background server returns is received.
S311, judge that whether dynamic updates the memory space of the map listing occupancy of hot spot more than or equal to preset storage sky Between threshold value otherwise, continue step S313 if so, continuing step S312.
Not using at most in S312, the map listing found out according to last usage time and delete dynamic update hot spot Informed source content bar, the informed source content correspondence for message being delivered source ID and return is added to dynamic and updates heat New informed source content bar is generated in the map listing of point.When next time, the message delivers source ID inquiry dynamic update hot spots Map listing when, corresponding informed source content can be found.
Map listing to avoid the dynamic of microblogging Front End Server local cache from updating hot spot causes greatly very much to inquire the row The time delay of table is excessive, influences the response speed and runnability of microblogging Front End Server, in the present embodiment, pre-sets caching Capacity-threshold, when the spatial cache that map listing occupies is more than or equal to preset spatial cache threshold value, deletion does not make at most Informed source content bar, the spatial cache for effectively occupying map listing control in appropriate range.Spatial cache Threshold value can be adjusted according to business demand and server performance.
It, can be from all informed source content bars by the last usage time of the informed source content bar of map listing In find the informed source content bar not used at most, such as by the last usage time of all informed source content bars with Current time is compared, and maximum time phase difference is the informed source content bar not used at most, is then deleted.
S313, the informed source content correspondence for message being delivered source ID and return are added to dynamic update hot spot New informed source content bar is generated in map listing.When next time, the message delivers reflecting for source ID inquiry dynamic update hot spots When penetrating list, corresponding informed source content can be found.
If there is no the information to deliver in the map listing of the dynamic update hot spot of microblogging Front End Server local cache to come ID corresponding informed source contents in source then obtain the informed source content of acquiescence, build micro-blog information, return to client, from And accelerate response speed, service performance is improved, the informed source content inquired from information source inquiry background server preserves For using next time in the map listing of microblogging Front End Server dynamic update hot spot.
If there is no information to deliver source in the map listing of the dynamic update hot spot of microblogging Front End Server local cache The corresponding informed source contents of ID are not the informed source contents for obtaining acquiescence, it is micro- to be built according to the informed source content of acquiescence Rich information returns to client, but inquires information from information source inquiry background server and deliver the corresponding message of source ID Then source content is inquired the informed source content that background server inquires according to information source and is built with information entity content Micro-blog information returns to client, and due to inquiring information from information source inquiry background server, to deliver source ID corresponding Informed source content needs some times, and the inquiry request that especially information source inquiry background server receives simultaneously is more When, query time can be long, causes micro-blog information to be returned to client in time, the response time is longer, customer experience It is not good enough.
Before if the complete map list of information source inquiry background server is read microblogging by microblogging Front End Server Platform server local caches, on the one hand, complete map list causes greatly very much microblogging Front End Server to inquire the time delay mistake of the list Greatly;On the other hand, complete map list needs often to safeguard, i.e., after microblogging Front End Server needs Period Synchronization Information source to inquire The complete map list of platform server just can guarantee that the integrality of data, synchronous process will cause two servers that need to handle greatly Data are measured, the operation burden of two servers is aggravated.
To sum up, microblogging Front End Server uses L2 cache strategy, establishes two map listings, wherein in level cache The common map listing of human configuration be administrator's active arrangement, record and commonly use source content, important service source content, tight Anxious modification source content, list modification is flexible, can carry out error handle by manual intervention, improve the reliable of microblog system Property, the common map listing of human configuration is the list inquired first;The map listing of dynamic update hot spot in L2 cache Dynamically to update, the map listing of record a period of time used hot spot source content, inquiry dynamic update hot spot is not remembered The complete map list of ability query messages source inquiry background server, reduces query messages source when recording informed source content The number for inquiring background server, reduces the burden of server, and the time that microblogging Front End Server is inquired in local cache It is shorter than the time to informed source inquiry background server inquiry, establish reflecting for dynamic update hot spot in microblogging Front End Server It penetrates list and accelerates the client end response time.When microblogging Front End Server brings into operation, it is normal to initially set up human configuration Then the map listing of map listing and empty dynamic update hot spot constantly updates the map listing of dynamic update hot spot Data.
Flexibility and the validity that system administration is improved using L2 cache strategy, are greatly reduced and are looked into informed source The interface for asking background server calls pressure, cost-effective, promotes the runnability of microblogging Front End Server.The technical program The inquiry request of microblogging Front End Server can be responded timely, and informed source inquires the complete map row of background server The inquiry velocity of table is than that comparatively fast, can provide the query interface service of preferable high concurrent low time delay, to improve entire microblogging system The service performance and stability of system.
Microblogging Front End Server is by judging that the dynamic of local cache updates the spatial cache that the map listing of hot spot occupies Whether preset spatial cache threshold value is more than or equal to, if it is, deleting the informed source content bar not used at most, effectively Ground controls the spatial cache that the map listing of dynamic update hot spot occupies in appropriate range, improves the use of hot spot data Rate, to ensure the response speed and runnability of microblogging Front End Server.
The informed source content in source ID acquisition map listings is delivered by message, convenient for passing through map listing to message The management of source content, mitigates the operation burden of background server, and background server can be given with rapid feedback message entity content Microblogging Front End Server, microblogging Front End Server can build Twitter message response user's request in time.
Referring to FIG. 4, the method stream of the 4th embodiment of its structure Twitter message method provided in an embodiment of the present invention Cheng Tu.The present embodiment and the main distinction of the 3rd embodiment of above-mentioned structure Twitter message method are:3rd embodiment passes through Judge whether the memory space that the map listing of dynamic update hot spot occupies is deleted more than or equal to preset memory space threshold value decision Except source content column, and the present embodiment is by judging that the dynamic of local cache updates in the informed source in the map listing of hot spot Whether the quantity for holding column is more than or equal to preset column amount threshold decision deletion source content column.
The method of the structure Twitter message, includes the following steps:
S401, the map listing that message delivers source ID and informed source content is established.
S402, when receive user show Twitter message request when, the Twitter message ID for finding the Twitter message is corresponding Message entity content and message deliver source ID.
S403, judge whether the common map listing of human configuration has message to deliver in the corresponding informed sources of source ID Hold, if so, continuing step S404, otherwise, continues step S405.
S404, the corresponding informed source content for reading the common map listing of the human configuration continue step S408.
S405, judge whether the map listing that dynamic updates hot spot has message to deliver in the corresponding informed sources of source ID Hold, if so, continuing step S406, otherwise, continues step S407.
S406, the corresponding informed source content that the dynamic updates the map listing of hot spot is read, continues step S408.
S407, the informed source content for reading acquiescence continue step S408 and step S409.It should be noted that step S408 and step S409 do not have sequencing relationship.
S408, message entity content and informed source content are built into Twitter message together.
S409, it query messages is sent out delivers the corresponding informed source contents of source ID to informed source inquiry background server Inquiry request, continue step S410.
S410, the informed source content that informed source inquiry background server returns is received.
S411, judge local cache dynamic update hot spot map listing in informed source content bar quantity whether More than or equal to preset column amount threshold, if so, continuing step S412, otherwise, continue step S413.
In the embodiment of the present invention, the map listing that dynamic updates hot spot includes several source content columns, in every source It includes the last usage time that message delivers source ID and source content correspondence, this source content column to hold column.When certain Source content column is by use, the last usage time on this source content column can be updated.
Map listing to avoid the dynamic of local cache from updating hot spot causes greatly very much the time delay for inquiring the table excessive, influences The response speed and runnability of microblogging Front End Server pre-set column amount threshold in the present embodiment, when dynamic updates When the quantity of the informed source content bar of the map listing of hot spot is more than or equal to preset column amount threshold, deletion does not make at most Informed source content bar, effectively by the informed source content bar quantity control of the map listing of dynamic update hot spot suitable In the range of.Column amount threshold can be adjusted according to business demand and server performance.
Two different method controls have been respectively adopted in the method 3rd embodiment of the present embodiment and above-mentioned structure Twitter message Dynamic update hot spot map listing size, when the embodiments of the present invention are specifically implemented, can according to concrete application environment into Row selection.
Not using at most in S412, the map listing found out according to last usage time and delete dynamic update hot spot Informed source content bar, the informed source content correspondence for message being delivered source ID and return is added to dynamic and updates heat New informed source content bar is generated in the map listing of point.
S413, the informed source content correspondence for message being delivered source ID and return are added to dynamic update hot spot New informed source content bar is generated in map listing.
To sum up, in the embodiment of the present invention, microblogging Front End Server is by judging that the dynamic of local cache updates disappearing for hot spot Whether the quantity that breath delivers the informed source content bar in the list of source is more than or equal to preset column amount threshold, if it is deletes Except the informed source content bar not used at most, the message of dynamic update hot spot is effectively delivered into the slow of source list occupancy Space control is deposited in appropriate range, improves the utilization rate of hot spot data, to ensure the response speed of microblogging Front End Server Degree and runnability.The informed source content in source ID acquisition map listings is delivered by message, convenient for passing through map listing Management to message source content, mitigates the operation burden of background server, and background server can be with rapid feedback message entity Content gives microblogging Front End Server, microblogging Front End Server that can build Twitter message response user's request in time.
It is the microblogging Front End Server embodiment of the embodiment of the present invention below.The structure Twitter message of the embodiment of the present invention Method and microblogging Front End Server belong to a total inventive concept, the not detailed description in microblogging Front End Server embodiment Detail content can refer to the embodiment of the method for above-mentioned structure Twitter message.
Referring to FIG. 5, it is the structure box of microblogging Front End Server one embodiment provided in an embodiment of the present invention Figure.The microblogging Front End Server, including following content:
Map listing establishes unit 501, and the map listing of source ID and informed source content are delivered for establishing message;
Informed source contents acquiring unit 502, for when receiving the request of user's displaying Twitter message, finding the microblogging The corresponding message entity contents of Twitter message ID and message of message deliver source ID, are obtained in informed source according to map listing Hold;
Twitter message display unit 503, for message entity content and informed source content to be built Twitter message together.
To sum up, the embodiment of the present invention delivers the informed source content in source ID acquisition map listings by message, is convenient for Management by map listing to message source content, mitigates the operation burden of background server, and background server can be quick Feedback message physical contents give microblogging Front End Server, microblogging Front End Server that can build Twitter message response user in time and ask It asks.
Referring to FIG. 6, it is the structure box of second embodiment of microblogging Front End Server provided in an embodiment of the present invention Figure.The microblogging Front End Server, including following content:
Map listing establishes unit 501, and the map listing of source ID and informed source content are delivered for establishing message;
Informed source contents acquiring unit 502, for when receiving the request of user's displaying Twitter message, finding the microblogging The corresponding message entity contents of Twitter message ID and message of message deliver source ID, are obtained in informed source according to map listing Hold;
Twitter message display unit 503, for message entity content and informed source content to be built Twitter message together.
As a preferred embodiment, informed source content is obtained according to map listing, including:Judging map listing is It is no to there is message to deliver the corresponding informed source contents of source ID, if so, reading the corresponding informed source content, otherwise, read Take the informed source content of acquiescence.
As another preferred embodiment, informed source content is obtained according to map listing, including:Judge human configuration Whether common map listing has message to deliver the corresponding informed source contents of source ID, if so, reading the corresponding message Source content;Otherwise, judge whether the map listing that dynamic updates hot spot has message to deliver in the corresponding informed sources of source ID Hold, if so, reading the corresponding informed source content, otherwise, reads the informed source content of acquiescence.Wherein, map listing The map listing of hot spot is updated including the common map listing of human configuration and dynamic.
Wherein, further include inquiry request transmission unit 504 and map listing updating unit 505:
Inquiry request transmission unit 504 inquires backstage after reading the informed source content given tacit consent to informed source Server sends out the inquiry request that query messages deliver the corresponding informed source contents of source ID;
Map listing updating unit 505, the informed source content for being returned using informed source inquiry background server Update dynamic updates the map listing of hot spot.
As a preferred embodiment, map listing updating unit 505, after receiving informed source inquiry The informed source content that platform server returns;Judge whether the memory space of the map listing occupancy of dynamic update hot spot is more than In preset memory space threshold value, if so, the map listing that dynamic updates hot spot is found out and deleted according to last usage time In the informed source content bar not used at most, message is delivered source ID and the informed source content correspondence of return It is added in the map listing of dynamic update hot spot and generates new informed source content bar;Otherwise, message deliver source ID with The informed source content correspondence of return, which is added in the map listing of dynamic update hot spot, generates new informed source content Column.Wherein, the map listing of dynamic update hot spot includes several source content columns, and every source content column includes that message is delivered The last usage time of source ID and informed source content correspondence, this source content column.
As another preferred embodiment, map listing updating unit 505, specifically for receiving informed source inquiry The informed source content that background server returns;Judge the informed source in the map listing of the dynamic update hot spot of local cache Whether the quantity of content bar is more than or equal to preset column amount threshold, if so, being found out and being deleted dynamic according to last usage time State updates the informed source content bar not used at most in the map listing of hot spot, and message is delivered source ID and return Informed source content correspondence, which is added in the map listing of dynamic update hot spot, generates new informed source content bar;It is no Then, the informed source content correspondence for message being delivered source ID and return is added in the map listing of dynamic update hot spot Generate new informed source content bar.Wherein, it includes several source contents that the message of dynamic update hot spot, which delivers source list, Column, every source content column include that message delivers source ID and informed source content correspondence, this source content column most Usage time afterwards.
To sum up, the embodiment of the present invention delivers the informed source content in source ID acquisition map listings by message, is convenient for Management by map listing to message source content, mitigates the operation burden of background server, and background server can be quick Feedback message physical contents give microblogging Front End Server, microblogging Front End Server that can build Twitter message response user in time and ask It asks.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, which can be stored in a computer-readable storage medium In matter, storage medium may include memory, disk or CD etc..
The above content is only presently preferred embodiments of the present invention, for those of ordinary skill in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, and the content of the present specification should not be construed as to the present invention Limitation.

Claims (12)

1. a kind of method of structure Twitter message, which is characterized in that including:
Establish the map listing that message delivers source ID and informed source content;
When receiving the request of user's displaying Twitter message, find in the corresponding message entities of Twitter message ID of the Twitter message Hold and message deliver source ID, according to the map listing obtain informed source content, convenient for by map listing to message come Source contents are increased, are deleted, are changed;
The message entity content and informed source content are built into Twitter message together.
2. according to the method described in claim 1, it is characterized in that, described obtain according to the map listing in informed source Hold, including:
Judge whether the map listing has the message to deliver the corresponding informed source contents of source ID, it should if so, reading Otherwise corresponding informed source content reads the informed source content of acquiescence.
3. according to the method described in claim 1, it is characterized in that, the map listing, which includes human configuration, commonly maps row Table and dynamic update the map listing of hot spot;
It is described that informed source content is obtained according to the map listing, including:
Judge whether the common map listing of human configuration has the message to deliver the corresponding informed source contents of source ID, if Have, reads the corresponding informed source content;Otherwise, judge whether the map listing that dynamic updates hot spot has the message to deliver The corresponding informed source contents of source ID, if so, otherwise reading the corresponding informed source content reads the message of acquiescence Source content.
4. according to the method described in claim 3, it is characterized in that, after the informed source content for reading acquiescence, also wrap It includes:
The inquiry message, which is sent out, to informed source inquiry background server delivers looking into for the corresponding informed source contents of source ID Ask request;
Reflecting for hot spot is dynamically updated described in the informed source content update returned using informed source inquiry background server Penetrate list.
5. according to the method described in claim 4, it is characterized in that, the map listing of dynamic update hot spot includes several Source content column, every source content column include that message is delivered in source ID and informed source content correspondence, this source Hold the last usage time on column;
Hot spot is dynamically updated described in the informed source content update returned using informed source inquiry background server Map listing, including:
Receive the informed source content that the informed source inquiry background server returns;Judge that dynamic updates the mapping of hot spot Whether the memory space that list occupies is more than or equal to preset memory space threshold value, if so, according to the last usage time The informed source content bar not used at most in the dynamically map listing of update hot spot is found out and deleted, message is delivered to come Source ID and the informed source content correspondence of the return, which are added in the map listing of dynamic update hot spot, generates new disappear Cease source content column;Otherwise, the informed source content correspondence for message being delivered source ID and the return is added to dynamic It updates in the map listing of hot spot and generates new informed source content bar.
6. according to the method described in claim 4, it is characterized in that, the map listing of dynamic update hot spot includes several Source content column, every source content column include that message is delivered in source ID and informed source content correspondence, this source Hold the last usage time on column;
Hot spot is dynamically updated described in the informed source content update returned using informed source inquiry background server Map listing, including:
Receive the informed source content that the informed source inquiry background server returns;Judge the dynamic update of local cache Whether the quantity of the informed source content bar in the map listing of hot spot is more than or equal to preset column amount threshold, if so, root It is found out according to the last usage time and deletes the informed source not used at most in the map listing of dynamic update hot spot Content bar, the informed source content correspondence for message being delivered source ID and the return are added to reflecting for dynamic update hot spot It penetrates in list and generates new informed source content bar;Otherwise, message is delivered the informed source content of source ID and the return Correspondence, which is added in the map listing of dynamic update hot spot, generates new informed source content bar.
7. a kind of microblogging Front End Server, which is characterized in that including:
Map listing establishes unit, and the map listing of source ID and informed source content are delivered for establishing message;
Informed source contents acquiring unit, for when receiving the request of user's displaying Twitter message, finding the Twitter message The corresponding message entity contents of Twitter message ID and message deliver source ID, are obtained in informed source according to the map listing Hold, message source content is increased convenient for passing through map listing, delete, is changed;
Twitter message display unit, for the message entity content and informed source content to be built Twitter message together.
8. according to the microblogging Front End Server described in claim 7, which is characterized in that described to be obtained according to the map listing Informed source content, including:
Judge whether the map listing has the message to deliver the corresponding informed source contents of source ID, it should if so, reading Otherwise corresponding informed source content reads the informed source content of acquiescence.
9. microblogging Front End Server according to claim 7, which is characterized in that the map listing includes that human configuration is normal Map listing and dynamic update the map listing of hot spot;
It is described that informed source content is obtained according to the map listing, including:
Judge whether the common map listing of human configuration has the message to deliver the corresponding informed source contents of source ID, if Have, reads the corresponding informed source content;Otherwise, judge whether the map listing that dynamic updates hot spot has the message to deliver The corresponding informed source contents of source ID, if so, otherwise reading the corresponding informed source content reads the message of acquiescence Source content.
10. microblogging Front End Server according to claim 9, which is characterized in that further include inquiry request transmission unit and Map listing updating unit:
Inquiry request transmission unit inquires background server after reading the informed source content given tacit consent to informed source It sends out and inquires the inquiry request that the message delivers the corresponding informed source contents of source ID;
Map listing updating unit, the informed source content update for being returned using informed source inquiry background server The map listing of the dynamic update hot spot.
11. microblogging Front End Server according to claim 10, which is characterized in that the mapping row of the dynamic update hot spot Table includes several source content columns, and every source content column includes that message delivers the passes corresponding with informed source content source ID It is, the last usage time on this source content column;
The map listing updating unit comes specifically for receiving the message that the informed source inquiry background server returns Source contents;Judge that whether dynamic updates the memory space of the map listing occupancy of hot spot more than or equal to preset memory space threshold Value, if so, find out and delete in the map listing of dynamic update hot spot according to the last usage time does not make at most Informed source content bar, the informed source content correspondence for message being delivered source ID and the return are added to dynamic It updates in the map listing of hot spot and generates new informed source content bar;Otherwise, message is delivered source ID and the return Informed source content correspondence, which is added in the map listing of dynamic update hot spot, generates new informed source content bar.
12. microblogging Front End Server according to claim 10, which is characterized in that the mapping row of the dynamic update hot spot Table includes several source content columns, and every source content column includes that message delivers the passes corresponding with informed source content source ID It is, the last usage time on this source content column;
The map listing updating unit comes specifically for receiving the message that the informed source inquiry background server returns Source contents;Judge whether the quantity of the informed source content bar in the map listing of the dynamic update hot spot of local cache is more than In preset column amount threshold, if so, the mapping row of dynamic update hot spot are found out and deleted according to the last usage time The informed source content bar not used at most in table, delivers message the informed source content pair of source ID and the return It should be related in the map listing for being added to dynamic update hot spot and generate new informed source content bar;Otherwise, message is delivered to come Source ID and the informed source content correspondence of the return, which are added in the map listing of dynamic update hot spot, generates new disappear Cease source content column.
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 CN104243523A (en) 2014-12-24
CN104243523B true 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119517A (en) * 2007-07-12 2008-02-06 深圳市融合视讯科技有限公司 Method of automatic downloading software from network server
CN201813408U (en) * 2010-09-10 2011-04-27 北京开心人信息技术有限公司 Prompting system of online state

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7370044B2 (en) * 2001-11-19 2008-05-06 Equifax, Inc. System and method for managing and updating information relating to economic entities
US6983293B2 (en) * 2002-07-24 2006-01-03 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
CN102036224B (en) * 2009-09-29 2013-09-18 中国移动通信集团设计院有限公司 Method, system and upgrading control entity for informing mobile equipment of upgrading software
US8424065B2 (en) * 2009-11-25 2013-04-16 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
CN102195802B (en) * 2010-03-18 2014-08-20 中兴通讯股份有限公司 Terminal software transmission method, server and terminal
CN102769579B (en) * 2011-05-05 2016-12-07 腾讯科技(深圳)有限公司 The display packing of a kind of Twitter message, microblog terminal and micro-blog server
CN102833180B (en) * 2011-06-17 2015-01-07 腾讯科技(北京)有限公司 Method and system for sharing microblog messages
CN103051646B (en) * 2011-10-12 2015-07-08 腾讯数码(天津)有限公司 Information synchronization method and device
CN103095549B (en) * 2011-10-31 2017-08-15 腾讯科技(北京)有限公司 The method and system of message transmission between a kind of JICQ
CN102595346B (en) * 2012-02-14 2014-10-22 中国民航信息网络股份有限公司 Flight multiple-client message notification system and method thereof
CN102710436B (en) * 2012-05-23 2016-06-29 福建星网锐捷网络有限公司 A kind of network device management method, device, relevant device and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119517A (en) * 2007-07-12 2008-02-06 深圳市融合视讯科技有限公司 Method of automatic downloading software from network server
CN201813408U (en) * 2010-09-10 2011-04-27 北京开心人信息技术有限公司 Prompting system of online state

Also Published As

Publication number Publication date
CN104243523A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN110149423A (en) Domain name processing method, device, readable storage medium storing program for executing and electronic equipment
CN103607312B (en) Data request processing method and system for server system
CN103685590B (en) Obtain the method and system of IP address
CN106897442A (en) A kind of distributed file system user quota method for pre-distributing and distribution system
CN104407936B (en) A kind of data snapshot method and device
CN104333501B (en) Contact list display method and device
CN103500204B (en) A kind of web page browsing backing method, web page server and client
CN104125135B (en) The management method of a kind of instant messaging application chat record and terminal
CN103378978A (en) Message push method and server
US11240188B2 (en) Large data management in communication applications through multiple mailboxes
CN109240611A (en) The cold and hot data hierarchy method of small documents, small documents data access method and its device
CN104980494A (en) Cloud storage and download sharing platform and method with local cache
CN104113572A (en) Distribution method, system and front end device for user generation content
CN101968791B (en) Data storage method and device
CN110365587A (en) Communication between devices method, apparatus, equipment and storage medium
US20130232208A1 (en) Method and device for updating messages
EP2695362B1 (en) Multi-user cache system
CN109379426A (en) X-CDN dispatching method, equipment and system based on X-DNS
CN104243523B (en) Build the method and microblogging Front End Server of Twitter message
CN103441865B (en) Method, system and the BRAS and Portal server of management ip address
CN103825922B (en) A kind of data-updating method and web server
CN102833295B (en) Data manipulation method and device in distributed cache system
CN104767769B (en) Shared agency and its object store and access method
CN106612304A (en) Data access method and device
CN103678008A (en) Data reading method and corresponding data reading device

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