CN104320330A - Message issuing method of electronic forum - Google Patents

Message issuing method of electronic forum Download PDF

Info

Publication number
CN104320330A
CN104320330A CN201410611967.3A CN201410611967A CN104320330A CN 104320330 A CN104320330 A CN 104320330A CN 201410611967 A CN201410611967 A CN 201410611967A CN 104320330 A CN104320330 A CN 104320330A
Authority
CN
China
Prior art keywords
message
request
terminal
model
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410611967.3A
Other languages
Chinese (zh)
Inventor
徐发锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING WEICHEYIZU INFORMATION TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
BEIJING WEICHEYIZU INFORMATION TECHNOLOGY DEVELOPMENT 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 BEIJING WEICHEYIZU INFORMATION TECHNOLOGY DEVELOPMENT Co Ltd filed Critical BEIJING WEICHEYIZU INFORMATION TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201410611967.3A priority Critical patent/CN104320330A/en
Publication of CN104320330A publication Critical patent/CN104320330A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a message issuing method of an electronic forum. The method comprises the steps that a server creates a post according to a request of a terminal and maintains a message queue corresponding to the post, and the message queue is fixed in length; when other terminals access the post the first time, the server returns the message queue corresponding to the post to the terminals which access the post the first time; when the server receives reply messages which are returned by the terminals and relevant to the post, the reply messages are maintained in a data persistence mode and then put into the message queue corresponding to the post; according to received requests, sent by the terminals, of pulling messages, the server obtains messages designated by the requests from the corresponding message queue, and returns the obtained messages to the terminals; the terminals display the obtained messages. By means of the method, the message issuing mode of the electronic forum can be quicker and more vivid, technical difficulty and cost of instant messaging are lowered, the capacity of precipitation of knowledge and messages can be maintained, and good expandability of a system is guaranteed.

Description

A kind of information issuing method of Electronic Forum
Technical field
The present invention relates to development of Mobile Internet technology, particularly a kind of information issuing method of Electronic Forum.
Background technology
In the prior art, Electronic Forum (BBS) and instant messaging are two kinds of different many people information interaction approach.For Electronic Forum, because the number of users participating in Electronic Forum is huger, if therefore wish to allow all users in Electronic Forum have instant messaging ability all simultaneously, then larger by using technical scheme of the prior art to realize the difficulty of above-mentioned purpose, and namely allow to realize, its cost price also can be higher.
Due to known, the related art scheme existed in prior art fully can not precipitate the advantage of information and instant messaging agility in conjunction with Electronic Forum, make online information sharing mode natural not, the difficulty that Electronic Forum realizes instant messaging is very large, and cost price is very high.
Summary of the invention
In view of this, the invention provides a kind of information issuing method of Electronic Forum, thus can be effectively.
Technical scheme of the present invention is specifically achieved in that
An information issuing method for Electronic Forum, the method comprises:
A, server create a model according to the request of terminal and maintain the message queue of a regular length corresponding with this model;
B, when other this model of terminal maiden visit, the message queue corresponding with this model is returned to the terminal of this model of maiden visit by server;
C, when relevant to this model return information that server receives that terminal returns, after described return information persistence being kept, put into the message queue corresponding with this model;
D, server, according to the received request pulling message sent by terminal, obtain the message that this request is specified, and obtained message are returned to described terminal from the message queue of correspondence; The message that described terminal demonstration obtains.
Preferably, before described steps A, the method also comprises further:
Described terminal to server sends the request creating model.
Preferably, the method also comprises further:
When message queue is expired, time message the earliest in this message queue is deleted by server from this message queue.
Preferably, before described step D, the method also comprises further:
All terminals of accessing this notice all send the request pulling message to server with predeterminated frequency;
Wherein, pull described in the request of message and carry very first time stamp; The rise time of the last item message in this model that described very first time stamp pulls for this terminal last.
Preferably, the described message obtaining this request and specify from the message queue of correspondence, and obtained message is returned to described terminal comprise:
Pull according to described the very first time stamp carried in the request of message, from the latest news in the message queue corresponding to the request that this pulls message, traversal, all returns to described terminal by the message that rise times all in message queue are greater than described timestamp.
Preferably, described predeterminated frequency is 1 time per second.
Preferably, before described step D, the method also comprises further::
The terminal to server of accessing this notice sends the request pulling historical data;
Wherein, pull described in the request of message and carry the second timestamp; Described second timestamp is the minimum rise time of all message of current obtained this model of this terminal.
Preferably, the described message obtaining this request and specify from the message queue of correspondence, and obtained message is returned to described terminal comprise:
The second timestamp carried in the request of message is pulled according to described, from the perdurable data of the model corresponding to the request that this pulls message, select the rise time to be less than the historical data of described second timestamp, and the historical data selected is returned to described terminal.
As above visible, in information issuing method due to Electronic Forum in the present invention, the request pulling message that server can send according to terminal, message specified by this request is obtained (such as from the message queue of correspondence, the latest news of this model), and obtained message is returned to described terminal, make described terminal can show obtained latest news, therefore, all terminals of accessing this notice can with fixed intervals to the latest news in server poll message queue, make all terminals of accessing this notice immediately can both obtain latest news in this model, thus the user in Electronic Forum the is possessed ability of instant messaging, take full advantage of the advantage of Electronic Forum and instant messaging, Electronic Forum with the addition of the ability of instant messaging, this form of information issue of Electronic Forum is made to become more quick, vividly, vivaciously, the ability precipitating Knowledge and information can also be kept simultaneously, Electronic Forum is combined with chatroom, define a kind of new mobile Internet communication way.Simultaneously, also reduce technical difficulty and the cost price of instant messaging, make the trend that the bandwidth occupied by the information communication between server and terminal and cpu resource linearly increase relative to number of users, avoid quadratic power other growth trend even exponential, thus ensure that system is with good expansibility.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the information issuing method of Electronic Forum in the embodiment of the present invention.
Embodiment
For making object of the present invention, technical scheme and advantage clearly understand, to develop simultaneously embodiment referring to accompanying drawing, the present invention is described in more detail.
Present embodiments provide a kind of information issuing method of Electronic Forum.
Fig. 1 is the schematic flow sheet of the information issuing method of Electronic Forum in the embodiment of the present invention.As shown in Figure 1, the information issuing method of the Electronic Forum in the embodiment of the present invention mainly comprises step as described below:
Step 11, server creates a model according to the request of terminal and maintains the message queue of a regular length corresponding with this model.
In the inventive solutions, described server (Server) can be called information exchange push server.Described terminal (Client) can be mobile client.Described server is communicated with and mutual data transmission by mobile Internet with terminal, and same server then can be connected with multiple terminal simultaneously.
In addition, specifically, in the preferred embodiment, before above-mentioned steps 11, can further include step as described below:
Described terminal to server sends the request creating model.
In addition, in the inventive solutions, described message can be a record.Described message queue can be a kind of special linear list, this linear list only allows to carry out deletion action in the front end (front) of linear list, and update is carried out in the rear end (rear) of this linear list, be therefore the restricted linear list of a kind of operation.The queue one end of carrying out update is called tail of the queue, and the one end of carrying out the queue of deletion action is called team's head.When there is no element in queue, be called empty queue.In the inventive solutions, the unique corresponding message queue with regular length of model.
Therefore, in this step, when server receives the request of establishment model that terminal sends, server can create a model according to the request of this terminal, and maintains the message queue of a regular length corresponding with this model.
Step 12, when other this model of terminal maiden visit, the message queue corresponding with this model is returned to the terminal of this model of maiden visit by server.
Step 13, when relevant to this model return information that server receives that terminal returns, puts into the message queue corresponding with this model after described return information persistence being kept.
Other terminal can send corresponding return information to server after obtaining the message queue corresponding with this model.And when relevant to this model return information that server receives that terminal returns, after just this return information persistence being kept, put into the message queue corresponding with this model.Wherein, described persistence keeps referring to can power-off preserve on the storage device of data by data stored in addressable, such as, and hard disk etc.; Its hold mode can comprise: writing in files or database mode.
Preferably, in a particular embodiment of the present invention, when message queue is expired, time message the earliest in this message queue then can be deleted by server from this message queue.
Step 14, server, according to the received request pulling message sent by terminal, obtains the message that this request is specified, and obtained message is returned to described terminal from the message queue of correspondence; The message that described terminal demonstration obtains.
In the inventive solutions, all terminals of accessing this notice can send the request pulling message, to obtain the latest news in this model to server.
Such as, preferably, in a particular embodiment of the present invention, before above-mentioned steps 14, can further include:
All terminals of accessing this notice all send the request pulling message to server with predeterminated frequency; Wherein, pull in the request of message and carry very first time stamp, the rise time of the last item message in this model that described very first time stamp pulls for this terminal last described in.
Because described pulling in the request of message carries stamp of the above-mentioned very first time, " from the message queue of correspondence, obtain the message that this request is specified, and obtained message is returned to described terminal " therefore in described step 14 then specifically can comprise:
Pull according to described the very first time stamp carried in the request of message, from the latest news in the message queue corresponding to the request that this pulls message, traversal, all returns to described terminal by the message that rise times all in message queue are greater than described timestamp.
Preferably, in a particular embodiment of the present invention, described predeterminated frequency can be 1 time per second.
By above-mentioned mode, terminal can with fixed intervals (such as, 1 time per second) to the latest news in server poll message queue, thus make all terminals of accessing this notice immediately can both obtain latest news in this model, the ability of instant messaging that is equivalent to that the user in Electronic Forum is possessed.
In addition, in the inventive solutions, all terminals of accessing this notice can also obtain the historical data of this model at any time.
Such as, preferably, in a particular embodiment of the present invention, before above-mentioned steps 14, can further include:
The terminal of accessing this notice can send to server the request pulling historical data; Wherein, described in pull in the request of message and carry the second timestamp, described second timestamp is the minimum rise time of all message of current obtained this model of this terminal.
Because described pulling in the request of message carries above-mentioned second timestamp, " from the message queue of correspondence, obtain the message that this request is specified, and obtained message is returned to described terminal " therefore in described step 14 then specifically can comprise:
The second timestamp carried in the request of message is pulled according to described, from the perdurable data (being namely stored in the data default storage device) of the model corresponding to the request that this pulls message, select the rise time to be less than the historical data of described second timestamp, and the historical data selected is returned to described terminal.
In summary, in information issuing method due to Electronic Forum in the present invention, the request pulling message that server can send according to terminal, message specified by this request is obtained (such as from the message queue of correspondence, the latest news of this model), and obtained message is returned to described terminal, make described terminal can show obtained latest news, therefore, all terminals of accessing this notice can with fixed intervals to the latest news in server poll message queue, make all terminals of accessing this notice immediately can both obtain latest news in this model, thus the user in Electronic Forum the is possessed ability of instant messaging, take full advantage of the advantage of Electronic Forum and instant messaging, Electronic Forum with the addition of the ability of instant messaging, this form of information issue of Electronic Forum is made to become more quick, vividly, vivaciously, the ability precipitating Knowledge and information can also be kept simultaneously, Electronic Forum is combined with chatroom, define a kind of new mobile Internet communication way.Simultaneously, also reduce technical difficulty and the cost price of instant messaging, make the trend that the bandwidth occupied by the information communication between server and terminal and cpu resource linearly increase relative to number of users, avoid quadratic power other growth trend even exponential, thus ensure that system is with good expansibility.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. an information issuing method for Electronic Forum, is characterized in that, the method comprises:
A, server create a model according to the request of terminal and maintain the message queue of a regular length corresponding with this model;
B, when other this model of terminal maiden visit, the message queue corresponding with this model is returned to the terminal of this model of maiden visit by server;
C, when relevant to this model return information that server receives that terminal returns, after described return information persistence being kept, put into the message queue corresponding with this model;
D, server, according to the received request pulling message sent by terminal, obtain the message that this request is specified, and obtained message are returned to described terminal from the message queue of correspondence; The message that described terminal demonstration obtains.
2. method according to claim 1, is characterized in that, before described steps A, the method also comprises further:
Described terminal to server sends the request creating model.
3. method according to claim 1, is characterized in that, the method also comprises further:
When message queue is expired, time message the earliest in this message queue is deleted by server from this message queue.
4. method according to claim 1, is characterized in that, before described step D, the method also comprises further:
All terminals of accessing this notice all send the request pulling message to server with predeterminated frequency;
Wherein, pull described in the request of message and carry very first time stamp; The rise time of the last item message in this model that described very first time stamp pulls for this terminal last.
5. method according to claim 4, is characterized in that, the described message obtaining this request and specify from the message queue of correspondence, and obtained message is returned to described terminal comprises:
Pull according to described the very first time stamp carried in the request of message, from the latest news in the message queue corresponding to the request that this pulls message, traversal, all returns to described terminal by the message that rise times all in message queue are greater than described timestamp.
6. method according to claim 4, is characterized in that:
Described predeterminated frequency is 1 time per second.
7. method according to claim 1, is characterized in that, before described step D, the method also comprises further::
The terminal to server of accessing this notice sends the request pulling historical data;
Wherein, pull described in the request of message and carry the second timestamp; Described second timestamp is the minimum rise time of all message of current obtained this model of this terminal.
8. method according to claim 7, is characterized in that, the described message obtaining this request and specify from the message queue of correspondence, and obtained message is returned to described terminal comprises:
The second timestamp carried in the request of message is pulled according to described, from the perdurable data of the model corresponding to the request that this pulls message, select the rise time to be less than the historical data of described second timestamp, and the historical data selected is returned to described terminal.
CN201410611967.3A 2014-11-03 2014-11-03 Message issuing method of electronic forum Pending CN104320330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410611967.3A CN104320330A (en) 2014-11-03 2014-11-03 Message issuing method of electronic forum

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410611967.3A CN104320330A (en) 2014-11-03 2014-11-03 Message issuing method of electronic forum

Publications (1)

Publication Number Publication Date
CN104320330A true CN104320330A (en) 2015-01-28

Family

ID=52375504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410611967.3A Pending CN104320330A (en) 2014-11-03 2014-11-03 Message issuing method of electronic forum

Country Status (1)

Country Link
CN (1) CN104320330A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395492A (en) * 2017-07-31 2017-11-24 王守武 A kind of national trade information exchanges Forum System immediately
CN107894987A (en) * 2017-09-28 2018-04-10 郭世杰 A kind of management method that releases news for forum
CN108123866A (en) * 2016-11-30 2018-06-05 北京云中融信网络科技有限公司 Method for message transmission and device
CN109818851A (en) * 2019-01-23 2019-05-28 北京奇艺世纪科技有限公司 A kind of information persistence method, device and electronic equipment
CN112733063A (en) * 2021-01-15 2021-04-30 百果园技术(新加坡)有限公司 Personal post attribute list pulling method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984083A (en) * 2005-12-13 2007-06-20 腾讯科技(深圳)有限公司 Method and system for notifying instant-message in electronic bulletin edition system
CN101018141A (en) * 2007-03-02 2007-08-15 李沫南 The method and system for providing the instant communication for the electronic bulletin board
US20080186895A1 (en) * 2005-01-12 2008-08-07 Koninklijke Philips Electronics, N.V. Communication Method And Apparatus For Providing Real-Time Wireless Bulletin Board System
CN102375862A (en) * 2010-08-26 2012-03-14 腾讯科技(深圳)有限公司 Large-data-volume message management method and device
US20120284122A1 (en) * 2010-11-04 2012-11-08 Robert Craig Brandis Smartphone-Based Methods and Systems
US20130097271A1 (en) * 2010-06-10 2013-04-18 Tencent Technology (Shenzhen) Company Limited Method, terminal and server for displaying text in instant messaging systems
CN103841001A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Social network information processing method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080186895A1 (en) * 2005-01-12 2008-08-07 Koninklijke Philips Electronics, N.V. Communication Method And Apparatus For Providing Real-Time Wireless Bulletin Board System
CN1984083A (en) * 2005-12-13 2007-06-20 腾讯科技(深圳)有限公司 Method and system for notifying instant-message in electronic bulletin edition system
CN101018141A (en) * 2007-03-02 2007-08-15 李沫南 The method and system for providing the instant communication for the electronic bulletin board
US20130097271A1 (en) * 2010-06-10 2013-04-18 Tencent Technology (Shenzhen) Company Limited Method, terminal and server for displaying text in instant messaging systems
CN102375862A (en) * 2010-08-26 2012-03-14 腾讯科技(深圳)有限公司 Large-data-volume message management method and device
US20120284122A1 (en) * 2010-11-04 2012-11-08 Robert Craig Brandis Smartphone-Based Methods and Systems
CN103841001A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Social network information processing method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108123866A (en) * 2016-11-30 2018-06-05 北京云中融信网络科技有限公司 Method for message transmission and device
CN108123866B (en) * 2016-11-30 2019-01-25 北京云中融信网络科技有限公司 Method for message transmission and device
CN107395492A (en) * 2017-07-31 2017-11-24 王守武 A kind of national trade information exchanges Forum System immediately
CN107395492B (en) * 2017-07-31 2020-11-24 王守武 National industry information instant communication forum system
CN107894987A (en) * 2017-09-28 2018-04-10 郭世杰 A kind of management method that releases news for forum
CN107894987B (en) * 2017-09-28 2021-06-22 郭世杰 Published information management method for forum
CN109818851A (en) * 2019-01-23 2019-05-28 北京奇艺世纪科技有限公司 A kind of information persistence method, device and electronic equipment
CN112733063A (en) * 2021-01-15 2021-04-30 百果园技术(新加坡)有限公司 Personal post attribute list pulling method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
KR101764286B1 (en) Providing link to portion of media object in real time in social networking update
US9876894B2 (en) Systems and methods for event stream management
CN102567299B (en) Interacted with electrical form using text message
CN104320330A (en) Message issuing method of electronic forum
KR101544518B1 (en) Method, device and system for sharing microblog message
CN103379019B (en) Information push method and device in microblogging, system
CN101854399A (en) Method and device for aggregating network data
CN102769640B (en) The update method of user profile, server and system
EP2745262A2 (en) Most recently used list for attaching files to messages
US20070168433A1 (en) System and method for managing an instant messaging contact list
CN103378978A (en) Message push method and server
KR101475789B1 (en) Microblog client, method for aggregating microblog messages, and instant messaging client
US20070168443A1 (en) System and method for managing an instant messaging contact list
CN103491156A (en) Method and system for enabling circles and groups to be synchronous based on converged communication
CN104113572A (en) Distribution method, system and front end device for user generation content
CN109151056B (en) Method and system for pushing messages based on Canal
CN108446373A (en) Animation playing method, device, equipment and storage medium
CN102436336A (en) Method and device for displaying user data
CN109992325B (en) Information display method, information display apparatus, storage medium, and electronic apparatus
CN104094299A (en) Retrieving availability information from published calendars
CN104298416B (en) The generation method and device of message are automatically replied in instant messaging
CN109558554A (en) A kind of online method for previewing of document based on distributed objects storage system
CN104065566A (en) Method and system for realizing synchronization between WEB application circle and group messages
CN109634759A (en) A kind of quota management method of distributed memory system, system and associated component
CN103428236B (en) A kind of information-pushing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150128

WD01 Invention patent application deemed withdrawn after publication