TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby itsukaalmost 2 years ago

2 comments

coleplxalmost 2 years ago
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
itsukaalmost 2 years ago
Demo: <a href="https:&#x2F;&#x2F;smart-placement-demo.pages.dev" rel="nofollow noreferrer">https:&#x2F;&#x2F;smart-placement-demo.pages.dev</a>