affinidi-did-resolver-cache-server
A standalone network service for resolving and caching DID Documents at scale. Uses WebSockets for transport and operates a service-wide cache backed by a pool of parallel resolvers.
Architecture
graph LR
C1["Client 1"] -->|WebSocket| S["Cache Server"]
C2["Client 2"] -->|WebSocket| S
C3["Client N"] -->|WebSocket| S
S -->|cache miss| R["Resolver Pool"]
R --> M1["did:web"]
R --> M2["did:ethr"]
R --> M3["did:key"]
R --> M4["..."]
Requests from clients can be multiplexed and may be responded to out of order. The client SDK handles matching results to requests.
Running
- Configure via
./conf/cache-conf.tomlor environment variables. - Start the server:
Related Crates
affinidi-did-resolver-cache-sdk— Client SDK (usenetworkfeature to connect)affinidi-did-common— DID Document types (dependency)