This is really cool, but why reinvent the wheel? For instance SQLite already has tons of years of optimization regarding storing and accessing files on disk. To make SQLite decentralized (like Hyperdrive) you can put in a torrent. Index it using full-text-search https://sqlite.org/fts5.html for instance. Then let the users seed it. Users can use sqltorrent Virtual File System ( https://github.com/bittorrent/sqltorren…
The big asterisk is, this only works if your database never changes.
Hyperdrive v10 – a peer-to-peer filesystem
101–110 of 124 posts
Re: Hyperdrive v10 – a peer-to-peer filesystem
#102Earlier quoted context omitted.
That's very interesting, thanks for the links. I'm working on Scuttlebutt (like Dat/Hypercore) and have been working on reimplementing our stack with 'boring' tooling like SQLite and HTTP, and I've been really enjoying it so far. I'm going to read your blog post now, thanks a lot for the new info.
Interesting! Is there any document that I can read about your reimplementation? Or any code?
Re: Hyperdrive v10 – a peer-to-peer filesystem
#103This is really cool, but why reinvent the wheel? For instance SQLite already has tons of years of optimization regarding storing and accessing files on disk. To make SQLite decentralized (like Hyperdrive) you can put in a torrent. Index it using full-text-search https://sqlite.org/fts5.html for instance. Then let the users seed it. Users can use sqltorrent Virtual File System ( https://github.com/bittorrent/sqltorren…
I've been looking around IPFS, dat, hyperdrive etc and it seems like dat is the most natural setting for this but sqltorrent is new to me.
Re: Hyperdrive v10 – a peer-to-peer filesystem
#104Re: Hyperdrive v10 – a peer-to-peer filesystem
#105Earlier quoted context omitted.
Synology hardware is pretty close to what you're describing. Light on front goes from green to orange and you get an email, you plug in another drive, click a button in the GUI, and wait for the volume to reshard/resilver/remirror. A freenas box does this as well, but won't have the pretty drive light indicator if it's a home-built box, but then you're not limited to proprietary hardware.
I had been meaning to look into Synology more and I watched a few reviews after this exchange. Sound good except I'm not happy about having to link to their servers. But everything works that way these days :/
Re: Hyperdrive v10 – a peer-to-peer filesystem
#106Re: Hyperdrive v10 – a peer-to-peer filesystem
#107Earlier quoted context omitted.
The big asterisk is, this only works if your database never changes.
What do you mean? The author (say wikipedia owners) can change the db as they usually would change (using UPDATE queries say). Those write queries will result in the least-amount of disk-pages updates. In the torrent world this equals a minimum set of pieces modified and needed to be downloaded by users.
Re: Hyperdrive v10 – a peer-to-peer filesystem
#108This is really cool, but why reinvent the wheel? For instance SQLite already has tons of years of optimization regarding storing and accessing files on disk. To make SQLite decentralized (like Hyperdrive) you can put in a torrent. Index it using full-text-search https://sqlite.org/fts5.html for instance. Then let the users seed it. Users can use sqltorrent Virtual File System ( https://github.com/bittorrent/sqltorren…
It seems like the blog post answers your question pretty thoroughly. The Hyperdrive index and the protocol are tuned for this use case, making it scale to being able to host a Wikipedia clone. BitTorrent FS + SQlite are not tuned for this use case.
Re: Hyperdrive v10 – a peer-to-peer filesystem
#109Earlier quoted context omitted.
Fair enough -- updated it to POSIX-like. The main point there being that it should be as straightforward to use as Node's fs module.
I don't think that was the humor. Node is, from one point of view, a piece of a browser engine that's been extracted out. And you wrote a filesystem in it. It's like writing a webapp in x86_64 assembly - you can do it, obviously, but it can be viewed as an odd juxtaposition.
Re: Hyperdrive v10 – a peer-to-peer filesystem
#110Earlier quoted context omitted.
What do you mean? The author (say wikipedia owners) can change the db as they usually would change (using UPDATE queries say). Those write queries will result in the least-amount of disk-pages updates. In the torrent world this equals a minimum set of pieces modified and needed to be downloaded by users.
Last I checked you can't update a torrent. So if Wikipedia changes even a single letter, you'd need to download all the data once more