Leaderboard Reverse Oracle Service

Updated: 8th March 2025

The Leaderboard Reverse Oracle Service is an off-chain bridge designed to aggregate, process, and normalizereferral reward data from on-chain services like the Transaction Orchestrator and Satellite Canisters. It enables dynamic leaderboard generation, tracks weekly, monthly, and overall rankings, and maintains historical snapshots for auditability.

High-Level Design Overview

  • Data Integration: Fetches referral reward data using Internet Computer Agent, ensuring secure, real-time synchronization with on-chain services.

  • Leaderboard Processing: Aggregates data for weekly, monthly, and cumulative rankings, optimizing query efficiency.

  • API & Caching: Exposes RESTful APIs for querying leaderboard data, with Redis caching to improve response times.

  • Scalability: Uses batch processing and horizontal scaling (Redis for real-time lookups, PostgreSQL for historical data).

  • Performance Optimization: Implements indexed storage, TTL-based caching, and batch queries to minimize latency.

This hybrid approach reduces costs while enhancing user experience, with a future roadmap to move key components on-chain as decentralization capabilities expand.

Last updated