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

Determine DB is synced and up to date #162

Open
saurabhabh opened this issue Jan 29, 2019 · 2 comments
Open

Determine DB is synced and up to date #162

saurabhabh opened this issue Jan 29, 2019 · 2 comments

Comments

@saurabhabh
Copy link

saurabhabh commented Jan 29, 2019

I am sharing my hyper db with multiple writers (authorizing them allowing live replication). Is there an easy way / api to determine if a writer which has been offline is synced and has all the updated data written by other writers ?

@thekevinbrown
Copy link

You could have each of the clients publish their own HyperDB of their sync status, and give the owner of the original HyperDB access to these feeds so it can display that information as it sees fit. Would that work?

@emilbayes
Copy link
Collaborator

There is theoretically a way that I think is closer to what you're asking, but I'm unsure of the API. When you come online again, peers should share the newest merkle proof that they have, and once all messages until that newest proof have been fetch, you know that you are in sync. Maybe @mafintosh knows how this is done in practise?

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

3 participants