cardano-foundation / cardano-foundation/cardano-rosetta-java

cache network status check after live

Open
#759 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26
Forks
15
Avg merge
5d 3h
Merged PRs (30d)
2

Description

Currently the data endpoints check the indexer sync status before serving requests.

This hits the db on every request. Once the stage is LIVE, we dont expect it to go down quickly, so we could cache the LIVE state and refresh it every 5-10 seconds instead of checking for every request.

There should be proper performance/load testing before doing this, to make sure the network status check does not impact data endpoint performance

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the data endpoints' indexer sync status check and the database query it performs. Add performance/load tests comparing the current behavior with a cached LIVE state refreshed every 5–10 seconds; done means LIVE avoids a database check on every request without harming endpoint performance.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, java
Domain
api, backend, database, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.