Hacker News new | ask | show | jobs
by rsweeney21 1403 days ago
Has anyone tested edge functions + planetscale (or similar) vs edge functions + a database read replica also located at the edge?

It seems like you lose most of the benefit of your code running at the edge if your database is still in an AWS region.

2 comments

To my knowledge you can use planetscale’s read replicas in different regions which the user is then routed to the closest one? I was going to use fly.io until I realized PlanetScale does this already - or do you mean writes as well?

https://planetscale.com/docs/concepts/read-only-regions

:see_no_evil: This is an obvious next step for us.