Joystream / Joystream/joystream
Argus/Colossus QueryNode result caching to improve latency
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
## Context
We are going with the proposal described in https://github.com/Joystream/joystream/issues/4414 for assets request authentication by Argus/Colossus.
Look into consistent in-memory caching of the actor persona along with the valid permissions instead of querying the information from QN. Ways to avoid cache inconsistencies seem to be 1) keeping local caching instance [subscribed](https://redis.io/docs/manual/pubsub/) to the changes of processor DB and updating the corresponding cache entry whenever processor DB record changes, 2) probably a more straightforward approach is to keep the cache record for a limited time and then re-fetch the record after this, there is a chance that cache would give outdated personae for a given member, but that's not a huge problem if TTL of cache record in small
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.