Skip to content

feat: add 5s cache for sync status verification#761

Open
Sotatek-HenryDo wants to merge 1 commit into
developfrom
feat/issue-759
Open

feat: add 5s cache for sync status verification#761
Sotatek-HenryDo wants to merge 1 commit into
developfrom
feat/issue-759

Conversation

@Sotatek-HenryDo

Copy link
Copy Markdown
Collaborator

Ref: #759

Introduced a short-lived (5-second by default, configurable) cache for the indexer sync status verification.

Once the indexer transitions to the "LIVE" stage, subsequent status verifications (verifySyncStatus()) utilize the cached status instead of querying the database. This significantly reduces database load and prevents repetitive checks on high-frequency endpoints (such as /block and /account/balance) under heavy load.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Preprod Tests: PASSED

📊 View Detailed Test Report

🔗 Action Run #393

Tests run against preprod network with live blockchain data

@github-actions

Copy link
Copy Markdown
Contributor

✅ Preprod Tests: PASSED

📊 View Detailed Test Report

🔗 Action Run #395

Tests run against preprod network with live blockchain data

@Sotatek-HenryDo Sotatek-HenryDo force-pushed the feat/issue-759 branch 2 times, most recently from 17988d4 to aea4cbf Compare June 26, 2026 09:34
@github-actions

Copy link
Copy Markdown
Contributor

💥 Preprod Tests: DEPLOYMENT FAILED

🔗 Action Run #396

Tests run against preprod network with live blockchain data

@github-actions

Copy link
Copy Markdown
Contributor

✅ Preprod Tests: PASSED

📊 View Detailed Test Report

🔗 Action Run #397

Tests run against preprod network with live blockchain data

@github-actions

Copy link
Copy Markdown
Contributor

❌ Preprod Tests: FAILED

📊 View Detailed Test Report

🔗 Action Run #398

Tests run against preprod network with live blockchain data

@github-actions

Copy link
Copy Markdown
Contributor

❌ Preprod Tests: FAILED

📊 View Detailed Test Report

🔗 Action Run #399

Tests run against preprod network with live blockchain data

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant