Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Eventually Replicated DO #4

Open
lambrospetrou opened this issue Nov 5, 2024 · 0 comments
Open

Global Eventually Replicated DO #4

lambrospetrou opened this issue Nov 5, 2024 · 0 comments

Comments

@lambrospetrou
Copy link
Owner

lambrospetrou commented Nov 5, 2024

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

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");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant