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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Defcon: Preventing overload with graceful feature degradation (2023)

237 点作者 mlerner大约 1 年前

10 条评论

winrid大约 1 年前
One of the most satisfying feature degradation steps I did with FastComments was making it so that if the DB went offline completely, the app would still function:<p>1. It auto restarts all workers in the cluster in &quot;maintenance mode&quot;.<p>2. A &quot;maintenance mode&quot; message shows on the homepage.<p>3. The top 100 pages by comment volume will still render their comment threads, as a job on each edge node recalculates and stores this on disk periodically.<p>4. Logging in is disabled.<p>5. All db calls to the driver are stubbed out with mocks to prevent crashes.<p>6. Comments can still be posted and are added into an on-disk queue on each edge node.<p>7. When the system is back online the queue is processed (and stuff checked for spam etc like normal).<p>It&#x27;s not perfect but it means in a lot of cases I can completely turn off the DB for a few minutes without panic. I haven&#x27;t had to use it in over a year, though, and the DB doesn&#x27;t really go down. But useful for upgrades.<p>built it on my couch during a Jurassic park marathon :P
评论 #39561875 未加载
danpalmer大约 1 年前
Joining Google a few years ago, one thing I was impressed with is the amount of effort that goes into graceful degradation. For user facing services it gets quite granular, and is deeply integrated into the stack – from application layer to networking.<p>Previously I worked on a big web app at a growing startup, and it&#x27;s probably the sort of thing I&#x27;d start adding in small ways from the early days. Being able to turn off unnecessary writes, turn down the rate of more expensive computation, turn down rates of traffic amplification, these would all have been useful levers in some of our outages.
评论 #39556321 未加载
Banditoz大约 1 年前
Am I reading the second figure right? Facebook can do 130*10^6 queries&#x2F;second == ‭130,000,000‬ queries&#x2F;second?!
评论 #39555700 未加载
评论 #39555383 未加载
评论 #39555327 未加载
评论 #39557147 未加载
评论 #39555337 未加载
评论 #39555207 未加载
评论 #39557691 未加载
评论 #39556953 未加载
评论 #39555211 未加载
评论 #39555651 未加载
评论 #39557493 未加载
评论 #39555668 未加载
评论 #39555251 未加载
dang大约 1 年前
Discussed (a tiny bit) at the time:<p><i>Defcon: Preventing Overload with Graceful Feature Degradation</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36923049">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36923049</a> - July 2023 (1 comment)
mrb大约 1 年前
Off-topic but: I love the font on the website. At first I thought it was the classic Computer Modern font (used in LateX). But nope. Upon inspection of the stylesheet, it&#x27;s <a href="https:&#x2F;&#x2F;edwardtufte.github.io&#x2F;et-book&#x2F;" rel="nofollow">https:&#x2F;&#x2F;edwardtufte.github.io&#x2F;et-book&#x2F;</a> which was a font designed by Dmitry Krasny, Bonnie Scranton, and Edward Tufte. The font was originally designed for his book Beautiful Evidence. But people showed interest in font, see the bulletin board on ET&#x27;s website: <a href="https:&#x2F;&#x2F;www.edwardtufte.com&#x2F;bboard&#x2F;q-and-a-fetch-msg?msg_id=0000bm&amp;topic_id=1&amp;topic=Ask%20E%2eT%2e" rel="nofollow">https:&#x2F;&#x2F;www.edwardtufte.com&#x2F;bboard&#x2F;q-and-a-fetch-msg?msg_id=...</a> Initially he was reluctant to go the trouble of releasing it digitally. But eventually he did make it available on GitHub.
gillh大约 1 年前
Anyone interested in load shedding and graceful degradation with request prioritization should check out the Aperture OSS project.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;fluxninja&#x2F;aperture">https:&#x2F;&#x2F;github.com&#x2F;fluxninja&#x2F;aperture</a>
jedberg大约 1 年前
I&#x27;m surprised they don&#x27;t have automated degradation (or at least the article implies that it must be operator initiated).<p>We built a similar tool at Netflix but the degradations could be both manual and automatic.
评论 #39558938 未加载
mikerg87大约 1 年前
Isn&#x27;t this referred to as Load Shedding in some circles? If its not, can someone explain how its different?
评论 #39557184 未加载
评论 #39558736 未加载
评论 #39557220 未加载
velcrovan大约 1 年前
Seems like whenever I log into FB lately it&#x27;s pretty much always in a state of “graceful feature degradation”.<p>For example, as soon as I log in I see a bell icon in the upper right with a bright red circle containing an exact positive integer number of notifications. It practically screams “click here, you have urgent business”.<p>I can then leave the web page sitting there for any number of minutes, and no matter how long I wait, if I click on that notification icon it will take a good 20 seconds to load the list of new notifications. (This is on gigabit fiber in a major metro area, so not a plumbing issue.)
评论 #39563211 未加载
评论 #39556150 未加载
评论 #39555669 未加载
评论 #39556660 未加载
评论 #39555956 未加载
评论 #39556436 未加载
评论 #39556889 未加载
OtherShrezzing大约 1 年前
&gt; if (disableCommentsRanking.enabled == False)<p>This could use some light-touch code reviewing
评论 #39558749 未加载
评论 #39557172 未加载
评论 #39560095 未加载
评论 #39556900 未加载