ipni / storetheindex

A directory of CIDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dhstore nodes always cache provider info

gammazero opened this issue · comments

The dhstore nodes already keep a cache of provider info when dhfind is enabled. If they always keep this cache, then they can serve as provider backends. The provider cache would change so that it never expires providers, and the TTL instead becomes the time to the next update. That way if indexer(s) go down, the dhstore nodes still have all provider information. it just will not be updated until the indexer(s) come back online.

Provider cache could also be kept in indexstar, or both.

The cache could maintain the provider info in its serialized form, thereby saving the time of serializing to requesting clients.

Pcache is done, is now part of indexstar, and is deployed to dev and prod.