-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: cache keys server response #240
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
if let Some(redis) = redis { | ||
let cacao = cacao.clone(); | ||
let redis = redis.clone(); | ||
let cache_ttl = chrono::Duration::weeks(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok to have such a huge TTL for a cache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, but am confirming with team https://walletconnect.slack.com/archives/C044SKFKELR/p1701995841390399
…into feat/rate-limiting
…/notify-server into fix/cache-keys-server-response
Description
Keys Server requests take up 800ms-1.5s of messaging processing time according to Grafana metrics. This creates bad UX as they are expecting a response.
Depends on #231
How Has This Been Tested?
Existing tests
Due Diligence