java - 高访问量新闻网站或app是怎么处理新闻评论的?
伊谢尔伦
伊谢尔伦 2017-04-17 17:20:05
0
2
426

如网易新闻,今日头条等这些大型新闻网站或app,怎么处理插入大量的新闻评论数据?在向表插入评论数据的时候是怎么处理的?每次进入新闻详情页,评论模块怎么去更新,如果用到缓存,具体用在什么地方?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
洪涛

To answer, this is a question of overall architecture. Regarding how to design the entire topic, I think you can go to infoq to find the corresponding architecture design articles. You can read articles such as Baidu Tieba app, news app, or Snowball app.
I’ll post a snowball handle here: http://www.tuicool.com/articles/YNzAfmV.

洪涛

High traffic does not mean high concurrency. For high-performance servers, this kind of high traffic can be easily handled. Simple read-write separation and front-end caching are basically enough. If you want to learn from it, you should search directly. A flash sale solution.
To put it simply, it’s not a big deal if 100,000 people visit a page at the same time, but it’s troublesome if 2,000 people write comments at the same time. But what news gets 2,000 comments at the same time in 1 second? After all, 99% of people don't comment at all, and more than half of those who write comments comment on other people's comments.

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!