Skip to content
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

Merged
merged 7 commits into from
Jun 15, 2022
Merged

Redis cache deletion #1231

merged 7 commits into from
Jun 15, 2022

Conversation

base0010
Copy link
Contributor

Description

Type of change

  • Docs change / dependency upgrade
  • Configuration / tooling changes
  • Refactoring
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires changes in customer code

High-level change(s) description - from the user's perspective

Related Issue(s)

Fixes

Related pull request(s)

@base0010
Copy link
Contributor Author

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.

@alexwhte alexwhte linked an issue May 27, 2022 that may be closed by this pull request
@base0010
Copy link
Contributor Author

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.

@alexwhte
Copy link
Contributor

@base0010 Double checking is this waiting on review?

@rhlsthrm
Copy link
Collaborator

@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.

@base0010
Copy link
Contributor Author

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.

@base0010 base0010 merged commit c1f7eec into main Jun 15, 2022
@sanchaymittal sanchaymittal deleted the redis-deletion branch September 29, 2022 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

As a user the cache should only store necessary data
3 participants