Skip to content

Fix/backend improvements#1227

Merged
miss-yusrah merged 4 commits into
NovaGrids:mainfrom
devoclan:fix/backend-improvements
Jun 29, 2026
Merged

Fix/backend improvements#1227
miss-yusrah merged 4 commits into
NovaGrids:mainfrom
devoclan:fix/backend-improvements

Conversation

@devoclan

Copy link
Copy Markdown
Contributor

closes #1162
closes #1178
closes #1158
closes #1157
transactions.service.ts makes live RPC calls for each query. There's no local index. Amount range queries (e.g., "all transactions between 100 and 1000 XLM") require fetching everything and filtering in-memory.
consumer.ts has no idempotency guard. Reprocessing an event updates the proposal store twice. There is no deduplication.
tracing.ts initializes the SDK but no spans wrap business logic. HTTP requests have no trace IDs. Database calls and RPC calls are invisible in trace tools.

devoclan added 4 commits June 29, 2026 16:44
… TransactionsService

Replaces on-demand full-scan filtering with a TTL-cached index that supports
O(log n) amount range lookups and hash/proposal-based direct access.
Tracks processed event IDs in a bounded set keyed by transactionHash:eventIndex
to prevent duplicate processing on replay or restart.
…pers

Adds withSpan wrapper, traceMiddleware for Express routes (propagates
trace context and sets X-Trace-Id header), and traceRpcCall/traceDbCall
helpers to instrument business logic with OpenTelemetry spans.
Tests the complete chain: request → middleware (CORS, auth, request ID) →
controller → service → persistence → response for transactions, proposals,
health, and error handling paths.
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@devoclan 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! 🚀

Learn more about application limits

@devoclan devoclan force-pushed the fix/backend-improvements branch from 510a0fb to bff2393 Compare June 29, 2026 17:43
@miss-yusrah miss-yusrah merged commit 3b0a950 into NovaGrids:main Jun 29, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants