Been thinking a lot about data locality and frameworks recently, I think with Cloudflare's edge and Worker's ability to split the application into multiple isolates across multiple data-centers we're in a really unique position to make this really simple. The edge can run your app by the user and by the database.
What if you could "use region" inside Worker to run certain functions in whatever region you want, close to your database for example 馃榿

Jun 28, 2025 路 12:51 AM UTC

This is the problem I want to solve while I鈥檓 at Cloudflare, we have all the core pieces but composing an application with this architecture is not obvious yet.
3
1
19
Replying to @zebassembly
Instead of building this on your own orange framework, how can we go about this with a Tanstack app? I feel like the magic of next cache components gives the edge there and this is a missing piece to Tanstack and others
Absolutely, this will not be an orange exclusive feature. I already got it working in react-router, the solution so far is framework agnostic
Replying to @zebassembly
D1 as a cache the way @zero__ms is would be fun
Replying to @zebassembly
We've recently rebuilt @AppearAPI in similar way. Using @tinybasejs as sync engine to push data to Durable Objects and let users fetch them from there. It's harder than it looks but it's 100% worth it.
3
8
Replying to @zebassembly
please no more use directives - I really don't like this pattern
1
7