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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Smart Placement speeds up applications by moving code close to your back end

2 点作者 itsuka将近 2 年前

2 条评论

coleplx将近 2 年前
That&#x27;s interesting. I wonder how it interacts with the Cache API.<p>The Cache API has kinda poor cache hit ratio today if you serve users from multiple locations since the cache is per DC per location.<p>If the Worker runs close to the Origin, then we wouldn&#x27;t have dozens of DCs to MISS our requests anymore. Unfortunately, we&#x27;d miss all the advantagens of caching assets, like lower TTFB.<p>I guess running two Workers, one close to the origin and other close to the client, could replicate a bit their Smart Cache Topology. Unfortunately, I don&#x27;t think it&#x27;s possible to route things like that (maybe with service bindings?), and I&#x27;m pretty sure we&#x27;d end up paying twice per uncached request, lol.<p>Cool feature for non-cacheable content anyway
itsuka将近 2 年前
Demo: <a href="https:&#x2F;&#x2F;smart-placement-demo.pages.dev" rel="nofollow noreferrer">https:&#x2F;&#x2F;smart-placement-demo.pages.dev</a>