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

Add cache layer to ApiService to reduce duplicated RPC queries #521

Open
AndreiEres opened this issue Aug 25, 2023 · 0 comments
Open

Add cache layer to ApiService to reduce duplicated RPC queries #521

AndreiEres opened this issue Aug 25, 2023 · 0 comments

Comments

@AndreiEres
Copy link
Collaborator

AndreiEres commented Aug 25, 2023

We usually run parachains-tracker to follow multiple parachains and query rpc for information related not only to the particular parachain, e.g. validator groups.

async fn on_inherent_data() {
	let validator_groups = self.executor.get_backing_groups(self.node_rpc_url.as_str(), block_hash).await?;

We can reduce a huge amount of rpc queries, adding a cache layer to api service.

@AndreiEres AndreiEres moved this from Inbox to Todo in Polkadot Introspection Aug 30, 2023
@AndreiEres AndreiEres changed the title Reduce duplicated RPC queries Add cache layer to ApiService to reduce duplicated RPC queries Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant