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

Expire the reqid generated by http_gate #11

Open
miketang84 opened this issue Jan 30, 2023 · 0 comments
Open

Expire the reqid generated by http_gate #11

miketang84 opened this issue Jan 30, 2023 · 0 comments

Comments

@miketang84
Copy link
Collaborator

The results calculated by other nodes of the blockchain network, couldn't be consumed by their own http_gate instance, so we need a mechanism to expire those keys in the redis cache.

On the other side, even if the same http_gate and spin_worker, if http_gate was broken, the key will leave there forever, so we also need to expire them after some time.

Feel that 3 minutes is a good trade-off right now.

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

No branches or pull requests

1 participant