hashgraph / hedera-json-rpc-relay

Implementation of Ethereum JSON-RPC APIs for Hedera
Apache License 2.0
57 stars 68 forks source link

Improve cache support for APIs #1058

Open Nana-EC opened 1 year ago

Nana-EC commented 1 year ago

Problem

The relay support caching for some endpoints and not others. We should assess which would no benefit from it and which may need TTL times updated based on usage

Solution

Add cache support to heavily utilized methods in which the response does not change

Alternatives

No response

david-bakin-sl commented 1 year ago

Additionally, perhaps the mirror node could support an event stream (callbacks) that could notify of interesting events that would directly inform cache invalidation. E.g., new block added.