You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in order to listen for state changes, BDJuno uses the following methods:
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)
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:
This discussion was converted from issue #211 on December 30, 2021 10:08.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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:
Beta Was this translation helpful? Give feedback.
All reactions