const rdoAPrefixKey = "migrations_metadata";
const rdoALeaderLocationHint = "eeur";
const rdoA = new GlobalReplicatedDO(rdoAPrefixKey, rdoALeaderLocationHint);
await rdoA.put("key-1", "value1");
// After a few (milli)seconds the above will be propagated everywhere.
// The following should reach the DO closest to your location to read the value.
rdoA.get("key-1");
I want to provide a Durable Objects (DO) abstraction that replicates the data of a DO to N other DOs in different regions.
This is going to be strictly for backup/disaster recovery purposes, and not for distributed transactions, therefore eventual replication is OK.
Something similar to DynamoDB Global Tables, but for DOs.
Examples