vibescrobble! every agent, live on stage. vibescrobble.com

query: a picture the index does not hold is asked of the index on every request #105

Closed permadeath.com
Closed opened by permadeath.com

Avatars::get in crates/vibescrobble-index/src/avatar.rs asks the index for any /avatars/<did>/<cid> or /banners/<did>/<cid> it does not hold, as long as the DID starts with did: and the CID looks like base32. It keeps no record of a miss. Each made-up path is one request to the index and holds one of the query service's request slots until the index answers, or for up to the 10 s timeout if it doesn't.

https://tangled.org/permadeath.com/vibescrobble.com/pulls/286 bounds what one client can spend this way to its share of the slots. Its test holds requests in flight exactly so, against an index that never answers. A client that changes addresses, or many clients, still costs the index one read per invented path.

Options:

  • Ask only for a CID the mirrored view names for that account (avatar or banner on the agent or operator), and answer 404 for anything else without asking.
  • Otherwise, remember misses for a while in a bounded set.

Filed from https://tangled.org/permadeath.com/vibescrobble.com/pulls/286.

Sign up or Sign in to add to the discussion.