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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Preparing for server-loads that make Digg spikes look like a joke

14 点作者 crockstar大约 14 年前

7 条评论

swombat大约 14 年前
How many hits did they have to handle? Without this figure, it's a bit hard to put things in context.
benologist大约 14 年前
I might be missing something significant but it looks to me like the site was just static HTML and JavaScript with the JavaScript being updated at some rate.<p>If that's true why wouldn't you just do /xxxxx/clock.js and /xxxxx/data.js on S3 + CloudFront? The /version/ means caching is never going to get in your way because you're incrementing it each time you update.<p>Then the entire diagram is reduced to the web server + S3/CloudFront with software pushing new versions of the JavaScript.<p>Also is that for real about GAE cutting you off under load regardless of being paid? What's the point of using it to scale if there's a very low ceiling on how high you can go.
评论 #2452084 未加载
checker大约 14 年前
LivingSocial just did a similar $1 sale today in DC to launch their new Instant Deals, which are location based paid coupons. They advertised on the front page of the free commuter newspaper, the radio, even had people walking around Chinatown with distinct orange shirts.<p>Needless to say, their servers were having a rough time keeping up. The main web page served up timeouts every few page requests and the member creation system didn't work for a coworker. However, it seemed like the order processing system seemed pretty snappy, and the iPhone app stayed solid too (I'm referring to the server-side parts of course).
crockstar大约 14 年前
In response to all of the comments, would be great if you could direct them to the post itself. The team behind the site/push have said they are happy to address/answer questions so please fire away.
peterwwillis大约 14 年前
Every time I see a HN story about "how i made my site handle lots of traffic" it's people re-learning the same lessons. We really need a basics-of-building-big-webapps FAQ.<p>Step 1: Make your site as static as possible, or at least relying as little as possible on server-side processing. Pretend your app is made of Java and thus assume it will hog memory, be slow and crash every other day, so plan to handle those kind of 'reliability' issues.<p>Step 2: Get a CDN or a buncha cloud-hosted servers (like, 100). You may need 5-10 of them to serve static content using a caching web server solution ala Varnish (or just Apache proxying/caching; yes, it works fine), and 50-100 for application and database processing.<p>Step 3: Make sure as little of your site as humanly possible makes use of database calls, and for gods sake try not to write too much.<p>Step 4: Use a lightweight (I SAID LIGHTWEIGHT!) key/value memory store as a cache for database elements and other items you might normally [erroneously] get from disk or network or database.<p>Step 5: Don't rely solely on 'cloud' resources. Eventually you will get bitten because they're not designed to scale infinitely and probably do not care about you (especially if you don't pay for them or pay very little).<p>Step 6: (optional) Re-create this solution on a different hoster in a different datacenter on the opposite coast of your country. Not only will you end up with a DR site, you'll see load and latency improvements for many users. How to effectively and cheaply replicate content between datacenters cross-country is left as a lifetime career goal for the reader.
bborud大约 14 年前
Digg still exists? Wow. It appears to be so!
jajoyce2大约 14 年前
this scares me, yet I like it.