Skip to content

Peers should cache provider information to spread it around the network. #14

@Stebalien

Description

@Stebalien

After finding new providers for a piece of content, peers should store those providers locally. This:

  1. Speeds up future (initial) find provider queries for the same thing.
  2. Distributes frequently requested provider records around the network.

However, I'm a bit concerned about provider record expiration given a FindProviders call won't actually return when the provider record was initially submitted. This means that popular provider records would live forever.

One solution is to do this (record that some peer provides some content/service) inside the end service itself. For example, when we get a block from a peer, we could locally record a provider record for the peer from which we got the block. This would, incidentally, help us resume downloading a file if we restart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions