RuBaRu Whitepaper
Main Website
  • Abstract
  • RuBaRu - Why & What?
    • Portal
    • Problem Statement
    • What future holds for Social Media and Content Platforms?
    • Why RuBaRu?
    • Key Stakeholders
    • Core Components of Protocol
      • Fully OnChain Profile, Social Graph & Interactions
      • Decentralized Identity(DiD)
      • Fully On-Chain Rich Media Cloud: Decentralized Storage & Streaming
      • Incentive Program
      • Decentralized Creator Economy
      • Creator/Influencer Reputation Factor
      • Decentralized AI (#DeAi) Layer
      • Content Moderation
      • Brand Positioning
      • DAO Governance
    • Economy
      • Creator-Consumer Incentive Program (CCIP)
        • Join-2-Earn
        • Post-2-Earn
        • Refer-2-Earn
        • Engage-2-Earn
        • Advocate-to-Earn
        • Viral-to-Earn
        • Moderate-to-Earn
      • Creator Monetisation
      • Platform Monetisation
    • Technical Architecture & Breakthroughs
      • High level Architecture Overview
      • On-Chain Social Graph
      • On-Chain Authentication & Identity Layer
      • On-Chain Media & Content Infrastructure Layer(CDN)
      • On-Chain Feed Generation, Recommendation & Delivery Pipeline
      • OnChain Reward Wallet & Transaction Layer
      • On-Chain Content Indexer & Search Layer
      • On-Chain Referral Service
      • Decentralised AI Service layer
      • On-Chain Notification Layer
      • User Experience & Interface Layer (Frontend)
      • Off-Chain Components
        • Push Notification Broker Engine (Off-Chain)
        • Leaderboard Reverse Oracle Service
    • Tokenomics
      • Distribution Model
      • Token Utility
        • Credits : In-App Currency
        • $TOKEN (Governance & Value Capture Token)
      • Airdrop Season#1
      • Airdrop Season#2
    • Marketing & Go-To-Market Strategy
    • Try RuBaRu DApp
    • Roadmap
    • Community
    • Conclusion
    • Disclaimer
    • Quickstart
    • Publish your docs
  • Basics
    • Editor
    • Markdown
    • Images & media
    • Interactive blocks
    • OpenAPI
    • Integrations
Powered by GitBook
On this page
  1. RuBaRu - Why & What?
  2. Technical Architecture & Breakthroughs

On-Chain Referral Service

Updated: 8th March 2025

RuBaRu's Refer-2-Earn incentive model, part of the Creator-Consumer Incentive Program (CCIP), is designed as a fully on-chain, event-driven, auto-scalable referral service to efficiently track and reward user-driven growth. The system follows a modular, distributed architecture ensuring scalability, decentralization, and real-time processing.

High-Level Architecture:

  1. Mother Registry Canister (Orchestrator)

    • The central coordinator managing referral tracking and reward computation & distribution.

    • Maintains a ledger of referral relationships and dynamically provisions Data Satellite Canisters based on user demand.

  2. Data Satellite Canisters (Sharded Storage & Processing)

    • Distributed storage and computation layer handling referral tracking at scale.

    • Ensures load balancing by sharding data across multiple canisters to support high throughput.

  3. On-Chain Referral Code System

    • Generates unique, immutable referral codes directly on-chain.

    • Integrated into the user signup flow to link referral relationships.

  4. Event-Driven Reward Computation & Distribution

    • Referral rewards are dynamically computed based on SignUp and Claim referral reward events.

    • Message events are generated in response to user Signup using referral code, which then trigger automatic reward distribution.

    • Directly integrated with Wallet Service for real-time, on-chain ledger updates.

  5. User Service & Wallet Service Integration

    • Provides instant access to referral earnings, transaction history, and leaderboard rankings.

    • Users can transparently track referral activity and rewards.

By leveraging an event-based, auto-scalable microservices architecture, the on-chain referral service ensures efficient tracking, seamless reward distribution, and scalable user onboarding. The system dynamically scales with user demand, providing high reliability, decentralization, and an optimal user experience.

PreviousOn-Chain Content Indexer & Search LayerNextDecentralised AI Service layer

Last updated 2 months ago