perf: identity lookups — HTTP/2 and a handle answer cache #197
Labels
No labels
breaking-change
bug
documentation
duplicate
enhancement
good first issue
help wanted
performance
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Grandiras/ATProto.NET#197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Identity lookups are slower than they need to be:
IdentityResolverre-verifies the claimed handle on every resolution of a DID, even when the DID document is cached, so each call costs a well-known/DoH round trip (~120 ms p50 warm).Proposal
RequestVersionOrLower). The same burst drops to ~335 ms p50.IdentityResolverOptions.HandleCacheTtl(default 5 min; zero disables), as the handle spec recommends. Only answers are cached, never "no answer" or conflicts.ResolveUncachedAsyncbypasses the cache.