Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Attempt to reuse existing streams when adding an archive #4

@RangerMauve

Description

@RangerMauve

Beaker is already capable of replicating mutliple dat archives over a single replication stream.

I propose that it should take advantage of this by attempting to load feeds from existing connections when opening a new archive. Essentially, beaker should track replication new streams here, and attempt to send the "feed" message to them once the archive is ready around here.

This would be useful for the cases where you're participating in a social network where the peers you've connected to are likely also to have the archives of mutual "friends". In that scenario you can start replicating data for the archive without having to go through the discovery swarm (and likely finding that same peer again). This should improve bandwidth by reducing the number of connections that need to be made for a successful replication.


Some considerations:

  • Will the added "feed" messages be a significant overhead?
  • Will having invalid "feed" messages cause problems for clients?
  • What are the privacy implications of notifying your peers about discovery keys they might not know about?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions