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

Syncing db #460

Closed
ajayrao80 opened this issue Sep 17, 2018 · 2 comments
Closed

Syncing db #460

ajayrao80 opened this issue Sep 17, 2018 · 2 comments
Labels

Comments

@ajayrao80
Copy link

Here's the scenario. PeerA comes online, loads the db from remote address, does some operations and updates the values of the database and goes offline. PeerB comes online, loads the database, and starts reading the entries. Does the entries contain the ones made by PeerA?

@RichardLitt
Copy link
Member

Good question. Some clarifications: Did PeerA access the internet after they've updated the values, or was that only locally? Are there other nodes which hold the db besides PeerA and PeerB?

@aphelionz
Copy link
Member

Some explicit answers to the questions asked here:

Does the entries contain the ones made by PeerA?

No, not in the scenario you described. In a peer-to-peer swarm the data isn't persisted anywhere automatically. There ARE pinning services that help with this, but by default those entries are offline along with Peer A

Did PeerA access the internet after they've updated the values, or was that only locally?

If they did and they were replicated by another peer, or pinned via a service, then this is good news! The entries could well be out there.

Are there other nodes which hold the db besides PeerA and PeerB?

Likewise this - any online peer will be making the OrbitDB address available. More good news, if this is the case 👍

Also, if you have more questions, we just released the OrbitDB Field Manual. Check it out and feel free to open issues / PRs if you see fit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants