Settings

Theme

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

blog.cloudflare.com

2 points by itsuka 3 years ago · 2 comments

Reader

coleplx 3 years ago

That's interesting. I wonder how it interacts with the Cache API.

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.

If the Worker runs close to the Origin, then we wouldn't have dozens of DCs to MISS our requests anymore. Unfortunately, we'd miss all the advantagens of caching assets, like lower TTFB.

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't think it's possible to route things like that (maybe with service bindings?), and I'm pretty sure we'd end up paying twice per uncached request, lol.

Cool feature for non-cacheable content anyway

itsukaOP 3 years ago

Demo: https://smart-placement-demo.pages.dev

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection