Shift backend responsibilities toward read models, analytics, and event projection from Soroban events.
IndexerModule- replay-safe
IngestedEventEntitywith unique(network, txHash, eventIndex) SessionProjectionEntityfor read API projectionsEventProcessorServicefor idempotent processingProjectionServicefor projection updatesIndexerControlleringestion endpoint scaffold
To add new projections and read endpoints, follow the comprehensive guide: Backend Read-Model Extension Guide
This guide provides a standardized pattern for:
- Creating projection entities with proper indexing
- Implementing idempotent event processing
- Adding read APIs with proper DTOs
- Writing comprehensive tests
- Maintaining replay safety and schema versioning
- Replace manual ingest endpoint with Soroban RPC poller worker
- Add durable cursor/checkpoint table
- Expand projections for leaderboard/day stats