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
How to get the data? #1
Comments
Hey Ciro, I never got around to implementing consolidating the data intervals nor reading from the written data intervals. The data is stored in a LevelDB-backed storage, that's what alldata-storage-leveldb uses. In particular, here is where storage is created - https://github.com/tristanls/alldata-storage-leveldb/blob/master/index.js#L344 and a write to it https://github.com/tristanls/alldata-storage-leveldb/blob/master/index.js#L361. Reading the data would involve opening up the underlying store using levelup.open. And then reading accordingly, probably via a levelup.createReadStream. In case you're curious, there is a similar system that has been implemented end-to-end that I saw a presentation on. It has similar design elements as I hope this helps. Cheers, Tristan Edit: Added reference to |
For a visual explanation of the architecture Edit: Updated link (accidentally linked to start of presentation instead of specific section). |
Hello @tristanls, I'm going to study the material you've sent and I'll return. Thanks for the answer! Ciro |
Hello @tristanls, Thank you for your point of view and the ample and detailed material, fantastic! I believe you have understood about allData working, its documentation is great. I have some questions / ideas, what would be your opinion about it:
Ciro |
Hello, I think if Another consideration is that the data in Cheers, Tristan |
Here's some info more reliable than my opinion about performance of leveldb :) |
Understood @tristanls, The numbers on the levelDB performande are interesting! Your presentation is important, very instructive. I found this mechanism (DHTs - bucket storage) very interesting, once I reserve more time I will start to study these structures more. Thank you. Ciro |
Regarding bucket storage, here's an implementation that's used in a bunch of production DHTs: k-bucket. As of |
By the way, I'm happy to hear you find these helpful, thanks for letting me know. Cheers, Tristan |
@tristanls liked your project, congratulations!
I'm looking at your documentation and trying to understand the architecture. I'm not finding anything on how to get the data.
How to get the data?
Thank you
Ciro
The text was updated successfully, but these errors were encountered: