TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Scaling a PHP MySQL Web Application

24 点作者 AbyCodes超过 13 年前

3 条评论

bartl超过 13 年前
Is that demo code for the caching system not broken? It looks to me like, if the cache gets rebuilt, the output is <i>only</i> sent to the file, and there's no output sent to the browser. I can't test that right now, and there are a few functions there I've never used, but that is what it looks like.<p>Also: I don't like system that just check for the age of the cache, and not a more elaborate system that, using a single simple DB query, checks if the input data has changed, before regenerating the file. That looks way more useful to me. But, of course, you have to hand code that query for each page.
评论 #3497979 未加载
gpapilion超过 13 年前
I always take issue with people talking about replication as a solution to scalability. It better to think of replication as a solution for availability.
评论 #3497990 未加载
ck2超过 13 年前
I think part2 is far better suited for the typical knowledge level on HN:<p><a href="http://www.oracle.com/technetwork/articles/dsl/white-php-part2-355138.html" rel="nofollow">http://www.oracle.com/technetwork/articles/dsl/white-php-par...</a><p>BTW their demonstration code where they hit filemtime constant to see if a file is outdated is also a bad recommendation since there is OS overhead, especially exaggerated if you use NAS. Instead use time of day for an zero-load way to check if sometime is out of date, and only update during times of lower load.
评论 #3497707 未加载