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

Peer discovery #52

Open
abitrolly opened this issue Jun 23, 2021 · 2 comments
Open

Peer discovery #52

abitrolly opened this issue Jun 23, 2021 · 2 comments

Comments

@abitrolly
Copy link

How does a peer discovery work for osm-p2p-server?

Do I need to do something for the initial data sync?

@hackergrrl
Copy link
Contributor

osm-p2p-server is for interfacing with a peer-to-peer OSM database locally. You create it by passing in a kappa-osm instance, which has a replicate() API to sync the database with another peer. As for how to find such peers, you can use other modules in the NodeJS ecosystem such as hyperswarm.

@abitrolly
Copy link
Author

Thanks for the explanation. I hoped I could just run this node and get a local instance of OSM data synchroned fast, like in blockchain.

Because this server has limited functionality, I would rename it to osm-p2p-api for clarity, and then kappa-osm to osm-p2p-db. https://github.com/hyperswarm/hyperswarm surely looks interesting. If everything is merged together, I would call it osm-p2p-node. However, I am not sure what the DB size right now would be?

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

2 participants