Feature/backend ingestion analytics optimizations - #738
Merged
Sadeequ merged 4 commits intoJul 29, 2026
Merged
Conversation
|
@mijinummi 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! 🚀 |
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.
🛰️ Backend Hardening: Ingestion Recovery, TWAP Engine, WebSockets & Multi-Stage Docker
📝 Overview
This PR improves data reliability, realtime event broadcasting, price analytics, and production deployment efficiency across
stellarflow-backend.closes #714
closes #722
closes #727
closes #728
🛠️ Key Changes by Issue
1. Multi-Stage Docker Optimization (#728)
python:3.11-slim.gcc,g++,build-essential) from runtime layer, keeping total production image footprint under 200MB.appuserruntime execution context.2. Multi-Channel WebSocket Broadcaster (#723)
ConnectionManagerleveraging Redis Pub/Sub backend inapp/websockets/manager.py.subscribe:pool:XLM-USDC).3. Time-Weighted Average Price (TWAP) Engine (#722)
TWAPEngineinapp/analytics/twap.pycomputing 1-hour, 24-hour, and 7-day price signals./api/v1/pools/{id}/twap.4. Ingestion Recovery & Gap Detection (#714)
SorobanListenerto detect missing ledger blocks during WebSocket disconnections or high traffic.dispatch_backfill_jobto query missing ledger ranges via Soroban HTTP RPC.event_hashconstraint onLedgerEventrecords to prevent duplicate event insertion during backfills.🧪 Testing & Verification
docker images) and confirmed build compilers are absent in runtime layer.test_twap.py).test_soroban_listener.py).