Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Switch to event and store listening #211

Closed
RiccardoM opened this issue Sep 30, 2021 · 0 comments
Closed

Switch to event and store listening #211

RiccardoM opened this issue Sep 30, 2021 · 0 comments
Labels
Cat: performance Related to the overall performances Type: Enhancement Improvement to an existing feature
Milestone

Comments

@RiccardoM
Copy link
Contributor

RiccardoM commented Sep 30, 2021

Context

Currently, in order to listen for state changes, BDJuno uses the following methods:

  1. inside BDJuno v1, the changes are fetched using a pull strategy: the RPC/gRPC endpoints are queried periodically (each block or based on a timer)
  2. inside BDJuno v2, the changes are fetched either as in v1, or by querying the local storage.

While these methods have worked until now, they have become increasingly harder to maintain. We have particularly seen some of their limitations inside chains that have a huge amount of users like the Terra Chain. These chains make it extremely harder to periodically fetch some useful data such as the delegator rewards amount. Due to the high amount of data to get, the gRPC can become very slow to respond making the entire node loose blocks and become out-of-sync with the chain itself.

For this reason, I think we should try to leverage the new features that are being developed from both the Tendermint and Cosmos teams:

@RiccardoM RiccardoM added Type: Enhancement Improvement to an existing feature Cat: performance Related to the overall performances labels Sep 30, 2021
@RiccardoM RiccardoM added this to the v3 milestone Sep 30, 2021
@forbole forbole locked and limited conversation to collaborators Dec 30, 2021
@RiccardoM RiccardoM converted this issue into discussion #297 Dec 30, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Cat: performance Related to the overall performances Type: Enhancement Improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant