hyperdrive icon indicating copy to clipboard operation
hyperdrive copied to clipboard

proxy content from sparse archive to peer

Open joehand opened this issue 6 years ago • 3 comments

(opening for discussion + posterity since I keep forgetting this)

We want to proxy archives from a server to a remote peer that may not be able to connect to the swarm (for instance, a browser peer connected via websockets):

As far as I remember, this is what @mafintosh suggested:

  • Set up server to listen to onwant requests
  • Download requested content, then respond to onwant

It'd be cool to have this as an api or module we can use. This may also relate to remote storage, for example with dat-http.

joehand avatar Oct 11 '17 15:10 joehand

Another idea I have is to create a way to proxy the archive interface directly using some form of RPC (think dnode). I'd have to see exactly what subset of the interface I'd need to proxy and what the performance implications of that route are.

creationix avatar Oct 11 '17 16:10 creationix

Bear in mind that Beaker uses a different API than hyperdrive

On Wed, Oct 11, 2017 at 11:13 AM, Tim Caswell [email protected] wrote:

Another idea I have is to create a way to proxy the archive interface directly using some form of RPC (think dnode). I'd have to see exactly what subset of the interface I'd need to proxy and what the performance implications of that route are.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mafintosh/hyperdrive/issues/194#issuecomment-335863466, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNhU_KqFaj_2sZM3uK8mfwQEDELlkEhks5srOkkgaJpZM4P1uQd .

pfrazee avatar Oct 11 '17 16:10 pfrazee

@pfrazee yep, I have several concurrent concepts I'm trying to prove out, not all of them involve cloning the beaker environment in https sites.

creationix avatar Oct 11 '17 17:10 creationix