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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How we successfully handled 2.5x traffic in a week

154 点作者 talonx大约 5 年前

18 条评论

polote大约 5 年前
If Khan Academy uses Youtube to serve their video and uses Fastly to serve static content, what makes it hard to scale ?<p>I mean being able to scale that easily is a great thing, but is there anything worth sharing with the world in their case ?
评论 #23171877 未加载
评论 #23170972 未加载
评论 #23172872 未加载
评论 #23170685 未加载
评论 #23170500 未加载
评论 #23176924 未加载
评论 #23171834 未加载
评论 #23170478 未加载
xhkkffbf大约 5 年前
This is a good example of how cloud tools make this kind of scaling easy.<p>The trickier part can be the cost-- which this piece notes will increase roughly linearly with the number of users. If Khan Academy is free, I think this means those who are generous are going to need to keep giving to keep it that way. Let&#x27;s step up, everyone.
Ididntdothis大约 5 年前
Wouldn’t you deploy generally deploy your services with a certain safety margin? I am pretty sure most systems I am working on could handle 10x pretty easily. Then it would get hard but it seems 2.5x is a pretty normal and expected fluctuation.
评论 #23174434 未加载
ashtonkem大约 5 年前
2.5x is a surprisingly small jump for having all of your brick and mortar competitors shut down for an indeterminate period of time. Either Khan academy had amazing penetration into the education space, or the follow through rates for kids educating at home is abysmally low.<p>Disclaimer: I don’t have children, so I have no real world experience with Khan.
评论 #23172007 未加载
评论 #23171585 未加载
hinkley大约 5 年前
Khan Academy is actively soliciting donations right now, as is referenced in the footnote to the article:<p>&gt; Khan Academy&#x27;s increased usage has also increased our hosting costs, and we&#x27;re a not-for-profit that relies on philanthropic donations from folks like you.
cagenut大约 5 年前
I love it when people have both the inclination and the political pull to keep an environment super minimalist like this. Fastly to AppEngine is a blazing fast combo and so well sorted to &quot;just work&quot;.
nunorbatista大约 5 年前
Khanacademy is great and don&#x27;t get me wrong, but what I see is an engineering blog that doesn&#x27;t force HTTPS and an ad for Google products. All that Khanacademy did was optimize code, setup the partner console properly and pay the (likely enormous) bill. As I read in another comment here: &quot;How to scale: Make it somebody else&#x27;s problem&quot; + pay the bill.<p>Edit: ah, a case study from Google about Khanacademy. This post was definitely an ad: <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;customers&#x2F;khan-academy" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;customers&#x2F;khan-academy</a> Another: <a href="https:&#x2F;&#x2F;cloudplatform.googleblog.com&#x2F;2013&#x2F;08&#x2F;khan-academy-runs-on-google-cloud-platform.html" rel="nofollow">https:&#x2F;&#x2F;cloudplatform.googleblog.com&#x2F;2013&#x2F;08&#x2F;khan-academy-ru...</a>
评论 #23282429 未加载
parhamn大约 5 年前
Notably:<p>- No Rust&#x2F;Go rewrite<p>- GC not disabled<p>- Didn&#x27;t apply the latest research on k&#x2F;v storage<p>Jokes aside, this is the fun parts of hosted software and glad to hear the &quot;things don&#x27;t have to be so hard&quot; side of things. Hope it continues working out!
评论 #23171092 未加载
评论 #23170887 未加载
评论 #23172041 未加载
评论 #23171935 未加载
评论 #23170880 未加载
lultimouomo大约 5 年前
They are now suffering a major connectivity outage:<p><a href="https:&#x2F;&#x2F;status.khanacademy.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;status.khanacademy.org&#x2F;</a><p>Unfortunate timing for the blog post to reach HN...
httpsterio大约 5 年前
I haven&#x27;t actively thought about Khan Academy for several years and only just remembered its&#x27; existence. I do think that it&#x27;s all sorts of brilliant and that&#x27;s why I just signed up as a volunteer translator. I hope some of you other people here will so the same.
programminggeek大约 5 年前
On a largely content based app&#x2F;site, most of &quot;scaling&quot; comes down to caching. However you do that is up to you, but somewhere between caching at the browser layer, proxy layer, web server layer, or memcache layer, things should be fast and scalable without getting too fancy.
jve大约 5 年前
Some fun facts from scaling and optimizing the dominant school management site in our country that are used by schools, kindergartens, parents and kids. Schools years ago no longer may keep physical journals around because they use this system.<p>Peak was usually when semester end was coming. Currently, daily, we must sustain 2x of that peak, but peaked at 3x of that on the first day &quot;remote schools opened&quot;. The everyday traffic is currently like almost 3x it would have been, measuring by requests per second received on frontends.<p>We were struggling usually at end of semester. Luckily we stated to do some upgrades and optimizations to handle that, just before the lockdown started. In the end, we can now sustain many more times traffic we have. The hardest part wasn&#x27;t adding more resources (that was a MUST for sure) but it was much more effort to handle stuff that scales vertically (SQL) and some file share issues.<p>So there were some intermittent issues that were frustrating the users, sometimes bringing whole site down for minutes. (Sometimes is the trickiest part to handle). That includes hunting down expensive queries (not so hard), calling less or more optimal queries, taming SQL plan cache and dealing with some NTFS stuff for file share.<p>Some of the issues couldn&#x27;t be solved solely throwing more hardware in.<p>I&#x27;m still puzzled for the file share issue on Windows. Yeah, not so clever to store millions of files in a single folder within NTFS filesystem. We have append-only share, no deletes ever happening. Stuff like timestamps and short paths were disabled, defragmented $mft and the likes, but... every ~24 hours the drive would become sooo painfully slow and inacessible. Some access denied errors get thrown, etc. And it continues for some minutes. Maybe 15. Sometimes more. But between that ~15min period it works, so it&#x27;s like a wave with some period. But the thing is, outside of this window, the file share works very good (with all those millions of files within a folder). They were never deleted and we didn&#x27;t need to enumerate - just fetch file by file.<p>No, Antivirus wasn&#x27;t at fault, no backup system wasn&#x27;t messing around. Is there stuff NTFS may do under the hood on SSD drives? I&#x27;m aware there is a TRIM process, but as I understand it has to deal when the stuff is being deleted from the SSD?<p>We moved to rotating disks (!) and split those files across few folders and got rid of those issues. But still, 1 folder contains way more files you would hear anyone saying is healthy on NTFS.
sdan大约 5 年前
Love these sort of explanations on how companies and people run their infra. Great job KA!
评论 #23171799 未加载
freefriedrice大约 5 年前
TL;DR: Load Balancers and a clear policy means the cloud works as advertised.<p>Seven years ago I was at a medical conference in Portland, Oregon with a panel of &quot;experts&quot; discussing the security and accessibility of medical record systems and wearable devices. There was a principal engineer from Intel on the panel. When someone asked about the cloud, this tall, lanky, long-bearded man with a thick accent stood up and said:<p>&quot;The cloud? (chuckles) What is the cloud? Where is the cloud? Is it over here? (Points to a table) Is it over there? (points to another table). The cloud is a joke, man. It&#x27;s a complete joke.&quot;<p>EDIT: added an anecdote for SEO. :)
cheungyinglon大约 5 年前
is fastly the best service for caching?
评论 #23170909 未加载
评论 #23171360 未加载
评论 #23170562 未加载
评论 #23172411 未加载
jordache大约 5 年前
if they&#x27;re just referencing youtube videos, what is there to scale up? Speedier downloads of static content and repeat visits from likely the relatively stable set of user base?
评论 #23171916 未加载
throwawaysea大约 5 年前
Is there a good alternative video host or platform to YouTube? I always worry about their fickle content management&#x2F;censorship practices, and also just don&#x27;t like the idea of massive centralization around Google.
评论 #23176948 未加载
评论 #23176635 未加载
jliptzin大约 5 年前
2.5x in a week is news? I have worked on many things from viral apps, blogs that get picked up by large news orgs, etc that need to scale sometimes 100x or more in a day.
评论 #23170566 未加载
评论 #23171796 未加载
评论 #23170662 未加载