Multiple/alternative data retrieval implemenations #98
Labels
kind/architecture
Core architecture of project
kind/discussion
Topical discussion; usually not changes to codebase
Currently Helia takes a blockstore that it enhances with bitswap. This creates a hard dependency on bitswap.
To enable experimentation and adoption of faster/more use-case specific retrieval protocols (cars, graphsync, XYZNewFutureProtocol etc) we should allow this to be a configuration option.
At this point blocks may not be the correct abstraction since it limits us to a block as the unit of data you get in response to a CID.
A better read abstraction might be a
CID
to a stream ofUint8Array
s? The the underlying retrieval method can apply whatever optimisations it can to fetch the data quickly and the calling code doesn't have to keep going back to fetch another block for another CID.Questions:
dag-pb
,dag-cbor
ordag-json
we can make some assumptions about structure?The text was updated successfully, but these errors were encountered: