by re-thc · 3y ago · 0 comments
Why would you need to do this? D1 is meant to be a complete database and intention is to host everything there.
> However, when you involve a database, this advantage starts to fade away.
Why? Define database and what your needs are. Dynamodb or Cosmosdb for example can be multi-region read/write databases. You can deploy it in every region supported if you need to. What is missing?
Other examples...
- Mongo Atlas (hosted mongodb) supports global multi-region.
- Astradb (hosted cassandra) supports global multi-region.
- Cockroachdb supports global multi-region. It has a more interesting approach of allowing you to specify the "home" region per row.
Regarding your second comment, while it's true that all the solutions you mentioned allow you to deploy a DB, they are offering between 5-10 locations around the world, compared to 100+ locations of Edge solutions.
Anyway, that's not the main point. I still don't think it's the right way to create read replicas for all your data in all locations. There should be a better way to copy only the relevant data (the data you want to fetch with low latency).