This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Switch to event and store listening #211
Labels
Cat: performance
Related to the overall performances
Type: Enhancement
Improvement to an existing feature
Milestone
Context
Currently, in order to listen for state changes, BDJuno uses the following methods:
v1
, the changes are fetched using a pull strategy: the RPC/gRPC endpoints are queried periodically (each block or based on a timer)v2
, the changes are fetched either as inv1
, 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:
The text was updated successfully, but these errors were encountered: