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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Making Instagram.com faster: Part 3 – cache first

213 点作者 stablemap超过 5 年前

9 条评论

kaycebasques超过 5 年前
&gt; However, as the product grew, a side effect was that our web performance began to slow. Over the last year we made a conscious effort to improve this.<p>We’ve [1] been advocating strongly for using performance budgets [2] as a means of protecting hard-earned performance improvements. There’s some depressing stat around performance regressions... something like 25-50% of big sites regress in performance 6 months after a big push to optimize. Don’t quote me on the specific number, I believe it’s mentioned in [3].<p>[1]: Google Web DevRel<p>[2]: <a href="https:&#x2F;&#x2F;web.dev&#x2F;performance-budgets-101" rel="nofollow">https:&#x2F;&#x2F;web.dev&#x2F;performance-budgets-101</a><p>[3]: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;YJGCZCaIZkQ" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;YJGCZCaIZkQ</a>
评论 #21229595 未加载
评论 #21226335 未加载
评论 #21226553 未加载
williamscales超过 5 年前
The trick of properly applying operations to cached posts is cool. But the overall experience is bad. It&#x27;s so frustrating to see an interesting post appear for a fraction of a second and then disappear. It would be far more usable to simply focus on getting fresh data as quickly as possible.
评论 #21225753 未加载
评论 #21225954 未加载
mfontani超过 5 年前
&gt; we immediately present users with a cached copy of their previous feed and stories tray, and then replace it with fresh data once it’s available<p>I vehemently HATE this pattern.<p>I&#x27;m on a slow connection, and I open the app.<p>Yay, I see some (cached) content. I start reading.<p>After a random amount of time EVERYTHING CHANGES, and I can&#x27;t get back to it. It&#x27;s gone, for all intents and purposes, forever.<p>I&#x27;d love to have a something which tells me there&#x27;s fresh content to be had, and that I could - if and when I so wanted - CHOOSE to see it.
评论 #21226501 未加载
评论 #21226751 未加载
评论 #21226222 未加载
评论 #21226435 未加载
评论 #21226055 未加载
评论 #21226151 未加载
评论 #21226176 未加载
评论 #21226078 未加载
评论 #21227130 未加载
评论 #21226062 未加载
评论 #21227506 未加载
opencl超过 5 年前
I wonder if they&#x27;re ever going to bring the web version anywhere close to feature parity with the apps, or update the UWP app that&#x27;s been abandoned for years.
评论 #21226603 未加载
评论 #21227625 未加载
评论 #21226476 未加载
purple_ducks超过 5 年前
Does anybody from instagram actually use instagram.com?<p>Because the comments side panel on pictures is probably the buggiest implementation of _anything_ i&#x27;ve ever seen.
评论 #21226676 未加载
评论 #21226671 未加载
评论 #21226837 未加载
throwaway_bad超过 5 年前
This looks like a pretty naive solution.<p>The more elegant way to do optimistic UI would be to use CRDT or OT.<p>Usually syncing is talked about in the context of syncing multiple clients. Here, we just want to sync the cached offline state with the server state. This allows you to make arbitrary changes to your offline state even if your server has conflicting changes incoming, it will all be eventually consistent in the end.<p>I would love to see a blog post about that! (the only way I know how to implement it cleanly is using pouchdb)
评论 #21232057 未加载
wolco超过 5 年前
Instagram engineering,<p>Why can&#x27;t search handle two keywords?
hwj超过 5 年前
Beware, cache invalidation is one of the hard problems in computer science. ;)
pmlnr超过 5 年前
&gt; in part 2 we talked about improving performance by pushing data directly to the client rather than waiting for the client to request the data<p>I firmly believe this should never, ever be done. This is the very reason I swapped to linux from windows xp many years ago: there was no way to tell the computer not to do anything unless I ask for it.
评论 #21228243 未加载
评论 #21227599 未加载