CN101453481A - Method for implementing notification through cache - Google Patents
Method for implementing notification through cache Download PDFInfo
- Publication number
- CN101453481A CN101453481A CNA2007101790110A CN200710179011A CN101453481A CN 101453481 A CN101453481 A CN 101453481A CN A2007101790110 A CNA2007101790110 A CN A2007101790110A CN 200710179011 A CN200710179011 A CN 200710179011A CN 101453481 A CN101453481 A CN 101453481A
- Authority
- CN
- China
- Prior art keywords
- client
- message
- server
- information
- application 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
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention provides a method for realizing notice through cache. Firstly, a client sends heartbeat signals to a server every 5 minutes; the server reads memory cache information of an application server according to the ID number and type provided by the client, the application server caches data through a Dictionary, and the ID and the client terminal type only determine a message; the client terminal acquires information returned by the server; the client terminal transfers actual server interfaces of the server from high priority to low priority according to the priority of each step of operation in the information; the queue cache of the memory information provides an information updating interface to make information stored in the database updated to the memory cache; and the function for greatly providing concurrent information notice for users can provide individual information notice for each user.
Description
Technical field
The present invention relates to a kind ofly realize the method for notice by buffer memory, particularly a kind of is a large amount of concurrent users informing functions that give information by a large amount of message of buffer memory in the application server internal memory, and the method for personalized message informing is provided for each user.
Background technology
Wireless interconnected online, it is not an easy thing that server active push information is given client, most technical scheme or real-time are not strong, excessive to the pressure that server end causes. this programme is conceived under the prerequisite of as far as possible saving server resource, realizes that by advice method server end pushes information to client.
Summary of the invention
Main purpose of the present invention provides a kind of method that realizes notice by buffer memory.Being particularly related to a kind of is a large amount of concurrent users informing functions that give information by a large amount of message of buffer memory in the application server internal memory, and the method for personalized message informing is provided for each user.
The object of the present invention is achieved like this:
1, a kind of method by buffer memory realization notice, it is characterized in that: this method comprises following step at least:
Step 1: client is sent heartbeat signal every 5 fens clockwise servers;
Step 2: ID number of providing according to client of server and type read the message of application server memory cache, and application server comes data cached by Dictionary, the unique definite a piece of news of ID and client type;
Step 3: client obtains the message that server returns;
Step 4: client is according to the priority of each operation in the message concrete business interface of invoking server from high to low;
Step 5: the internal memory message queue buffer memory updating interface that gives information makes the message of storing in the database also can be updated in the memory cache;
2, a kind of method that realizes notice by buffer memory according to claim 1, it is characterized in that: ID number of providing according to client of server and type read the message of application server memory cache, application server comes data cached by Dictionary, the unique definite a piece of news of ID and client type the steps include:
Step 21: the latest news that reads current I D and client type from database;
Step 22: if message is arranged in the database, be cached to application server earlier after then reading out, and return to client simultaneously;
Step 23:, then directly return to client if there is not message in the database.
Description of drawings
The overall structure schematic diagram of the system that Fig. 1 relates to for embodiments of the invention
Embodiment
Referring to Fig. 1, system is according to client user's ID number (less than 19 long numeral) and client type (enumeration type constant, may be Mobile, PC, Web) obtain up-to-date messaging list, these message all are that (basic structure of these objects is operating lists to object, they divide priority, because client will be come these message of ordinal response according to the priority), if message is interior
Attribute/method explanation
Message id does not repeat, and can use guid, can oneself realize other algorithms yet
Priority can be with 0,1, and 2...... represents that numerical value is more little, and priority is high more;
Priority level is uncertain
Father's message writes down it here and complies with because the execution of some message depends on other message
The id of the father's message that relies may have a plurality of father's message
Each operation of operating list comprises interface name, interface boards this shop and the needs of server
The various parameters of importing into.
Other describe the comment that writes down some plain texts here message, may be used to point out
Text message is given the user
Deposit in the message queue and exist, so with directly obtaining message from internal memory returns to client, otherwise the information of reading database at first, if there is this information in the database, then read out the back and return to client message again behind the first buffer memory, if do not have message in buffer memory and the database then return-1 expression and do not find message.After client is obtained message, the interface of sequence call server end is according to the priority obtained business datum.Message body object basic structure is as shown in table 1.
Table 1
Key step of the present invention is as follows:
Step 1: client is sent heartbeat signal every 5 fens clockwise servers;
Step 2: ID number of providing according to client of server and type read the message of application server memory cache, and application server comes data cached by Dictionary, the unique definite a piece of news of ID and client type.
Step 3: client obtains the message that server returns
Step 4: client is according to the priority of each operation in the message concrete business interface of invoking server from high to low
Step 5: the internal memory message queue buffer memory updating interface that gives information makes the message of storing in the database also can be updated in the memory cache.
ID number of providing according to client of above-mentioned steps 2 servers and type read the message of application server memory cache, and application server comes data cached by Dictionary, the unique definite a piece of news of ID and client type.Concrete steps as follows:
Step 21: the latest news that reads current I D and client type from database;
Step 22: if message is arranged in the database, be cached to application server earlier after then reading out, and return to client simultaneously;
Step 23:, then directly return to client if there is not message in the database.
Above-mentioned technical scheme is a large amount of concurrent users informing functions that give information when implementing, for each user provides personalized message informing.
It should be noted last that above embodiment is only in order to explanation and unrestricted technical scheme described in the invention; Therefore, although this specification has been described in detail the present invention with reference to the above embodiments,, those of ordinary skill in the art should be appreciated that still and can make amendment or replacement to the present invention with being equal to; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.
Claims (2)
1, a kind of method by buffer memory realization notice, it is characterized in that: this method comprises following step at least:
Step 1: client is sent heartbeat signal every 5 fens clockwise servers;
Step 2: ID number of providing according to client of server and type read the message of application server memory cache, and application server comes data cached by Dictionary, the unique definite a piece of news of ID and client type;
Step 3: client obtains the message that server returns;
Step 4: client is according to the priority of each operation in the message concrete business interface of invoking server from high to low;
Step 5: the internal memory message queue buffer memory updating interface that gives information makes the message of storing in the database also can be updated in the memory cache.
2, a kind of method that realizes notice by buffer memory according to claim 1, it is characterized in that: ID number of providing according to client of server and type read the message of application server memory cache, application server comes data cached by Dictionary, the unique definite a piece of news of ID and client type the steps include:
Step 21: the latest news that reads current I D and client type from database;
Step 22: if message is arranged in the database, be cached to application server earlier after then reading out, and return to client simultaneously;
Step 23:, then directly return to client if there is not message in the database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101790110A CN101453481A (en) | 2007-12-07 | 2007-12-07 | Method for implementing notification through cache |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101790110A CN101453481A (en) | 2007-12-07 | 2007-12-07 | Method for implementing notification through cache |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101453481A true CN101453481A (en) | 2009-06-10 |
Family
ID=40735504
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007101790110A Pending CN101453481A (en) | 2007-12-07 | 2007-12-07 | Method for implementing notification through cache |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101453481A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106202176A (en) * | 2016-06-27 | 2016-12-07 | 武汉斗鱼网络科技有限公司 | A kind of method and system realizing website version heat upgrading |
CN106657327A (en) * | 2016-12-20 | 2017-05-10 | 上海银禾油信息技术有限公司 | Message pushing method and message pushing device |
CN107172177A (en) * | 2014-09-25 | 2017-09-15 | 海信集团有限公司 | A kind of information recommendation method and device |
CN107733806A (en) * | 2016-08-12 | 2018-02-23 | 中国移动通信集团湖南有限公司 | A kind of data processing method and device |
-
2007
- 2007-12-07 CN CNA2007101790110A patent/CN101453481A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172177A (en) * | 2014-09-25 | 2017-09-15 | 海信集团有限公司 | A kind of information recommendation method and device |
CN106202176A (en) * | 2016-06-27 | 2016-12-07 | 武汉斗鱼网络科技有限公司 | A kind of method and system realizing website version heat upgrading |
CN107733806A (en) * | 2016-08-12 | 2018-02-23 | 中国移动通信集团湖南有限公司 | A kind of data processing method and device |
CN107733806B (en) * | 2016-08-12 | 2020-04-24 | 中国移动通信集团湖南有限公司 | Data processing method and device |
CN106657327A (en) * | 2016-12-20 | 2017-05-10 | 上海银禾油信息技术有限公司 | Message pushing method and message pushing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101686209B (en) | Method and device for storing message in message retransmission system | |
CN101454769B (en) | Method and system for synchronizing data in client device and server device | |
US8041725B2 (en) | Eliminating duplicate and invalid calendar items from end user calendars using a unique entry identifier (UEID) | |
US20100306234A1 (en) | Cache synchronization | |
CN106599146B (en) | Cache page processing method and device and cache page updating request processing method and device | |
CN107016027A (en) | The method and apparatus for realizing business information fast search | |
CN102769640B (en) | The update method of user profile, server and system | |
CN112084258A (en) | Data synchronization method and device | |
CN104202423A (en) | System for extending caches by aid of software architectures | |
CN105373541A (en) | Processing method and system for data operation request of database | |
CN111143382A (en) | Data processing method, system and computer readable storage medium | |
CN111400334B (en) | Data processing method, data processing device, storage medium and electronic device | |
CN102624682A (en) | Method for managing client data | |
CN110781183A (en) | Method and device for processing incremental data in Hive database and computer equipment | |
CN101217449B (en) | A remote call management procedure | |
CN101453481A (en) | Method for implementing notification through cache | |
CN111666344A (en) | Heterogeneous data synchronization method and device | |
CN113190517B (en) | Data integration method and device, electronic equipment and computer readable medium | |
CN116595014B (en) | Storage system, method and device for read receipt and readable storage medium | |
JP2008070949A (en) | Web page generation system, web page generation device and web page generation method | |
US9942345B2 (en) | Web server caching for performance improvement | |
CN111858612B (en) | Data accelerated access method and device based on graph database and storage medium | |
US8666954B2 (en) | Reduced bandwidth cache coherency via checksum exchange | |
JP2010198223A (en) | Relevance analysis system and relevance analysis method | |
CN109165259B (en) | Index table updating method based on network attached storage, processor and storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20090610 |