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 caching layer for fetching blocks information #24

Open
3 tasks
MakMuftic opened this issue Oct 29, 2024 · 0 comments
Open
3 tasks

Add caching layer for fetching blocks information #24

MakMuftic opened this issue Oct 29, 2024 · 0 comments

Comments

@MakMuftic
Copy link

As multiple services fetch the same blocks from the same chains, the gateway should have a caching layer that allows us to call the RPC endpoint only once and return block information multiple times.

The caching layer should only hold a couple of minutes' worth of blocks saved.

This will reduce considerably our usage of RPC calls.

Implementation details

TBD

Testing details

  • Manually validate that consecutive calls for the same block only use one RPC call
  • Expand unit tests

Acceptance Criteria

  • RPC Gateway only uses one RPC call to respond to consecutive RPC calls for the same block (or range)

QA Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant