java - How can we implement on-site message reminders similar to BBS on the current website?
高洛峰
高洛峰 2017-05-17 10:06:57
0
2
462

The basic requirement is that the navigation bar is a public part with a new reply reminder function. How to better remind new replies in the navigation bar of many current websites (such as segmentdefalut)? What I want to talk about is the solution that refreshes the page to update information. DWR is a push without refreshing. But when a general relational database is used in the background, will frequent searches have a great impact on performance? But when no optimization is done, accessing the database every time it is refreshed is obviously a waste of resources. However, if you use a general cache (the user ID and the corresponding number of new replies are placed in the cache), the cache must be updated when adding or deleting replies, and at the same time, they must be persisted. In the case of frequent replies, Will it also lead to performance degradation? I would like to ask if anyone has made a similar system and what is the general idea of implementing it? Thanks! !

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (2)
PHPzhong

Recommend a blog. It's written very clearly above.
http://www.cnblogs.com/emrys5...

    Ty80

    websocket

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!