Feat/reducing infrastructure costs#486
Merged
gabito1451 merged 8 commits intoApr 28, 2026
Merged
Conversation
- Create ParserService and parser.worker.ts for background XDR parsing - Refactor IndexerService to use async generator for stream-based event fetching - Implement batch parsing optimization to reduce IPC overhead - Fix duplicated class definition and refactor SorobanEventIndexerService - Optimize IndexerModule and add unit tests
|
@T-kesh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…om/T-kesh/NovaFund into feat/reducing-infrastructure-costs
…om/T-kesh/NovaFund into feat/reducing-infrastructure-costs
Contributor
|
conflicts @T-kesh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This update significantly optimizes the blockchain indexer's resource efficiency by introducing a stream-based processing architecture and offloading CPU-intensive XDR decoding to background worker threads. By replacing full batch collection with an asynchronous generator and implementing a centralized ParserService, the system now processes ledger events in manageable batches, which reduces the operational memory floor to under 500MB and eliminates the risk of Out-of-Memory (OOM) crashes during high-volume indexing. Additionally, the refactor cleans up redundant module registrations and includes batch-parsing optimizations to minimize inter-process communication overhead, ensuring the indexer remains both performant and cost-effective under heavy network load.
closes #409