-
Notifications
You must be signed in to change notification settings - Fork 163
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
Redis cache deletion #1231
Redis cache deletion #1231
Conversation
Update to use redis hgetall via streams for non-blocking operation. We think, that since the hook runs frequently there shouldn't ever be too many "Completed" transactions and thus traversing the list shouldn't be too expensive. |
Looking to understand the impact of first run (deleting large amount of completed txns) via some simple manual testing/tools like redis-rdb-tools locally on testnet data, perhaps this could also be fleshed out in to better tests against live data instead of mocks in the future. |
@base0010 Double checking is this waiting on review? |
@base0010 this looks good now. We need to make sure this does not break the setup so we will need to monitor and test when this gets into staging. |
Yeah, this looks to work fine with mocks. I haven't been able to get mocha to test my local db(non-mock) instance. Also the redis cache backup size didn't seem to grow that fast over the week (comparing rdb dumps) so I don't think we're gonna hit any limits. But monitor indeed. |
Description
Type of change
High-level change(s) description - from the user's perspective
Related Issue(s)
Fixes
Related pull request(s)