Git Product home page Git Product logo

allo-indexer-rs's Introduction

allo-indexer-rs

Index the Allo protocol on-chain events blazingly fast

Architecture

  • The only storage backend for the whole indexer is a single PostgreSQL db. We use it to store both typical values, JSON & use it as a key-value store
  • Token prices are indexed from on-chain AMMs, no need for an external service
  • This also obviates the need for block time estimates.
  • Passport is ingested in batch mode
  • The only dependency is an RPC and a DB connection
  • We use Supabase as the default host for the DB, making the data easily publicly queryable
  • All of the data in the database is public, allowing for a public connection credential for general access
  • Blocks, IPFS data and prices are immutable, and we can cache them inside of Postgres
  • We can restore postgres dumps of the immutable data do spin up a new instance instantly
  • We index chains in parallel
  • We fetch block ranges and IPFS files in parallel
  • We index per-round, making the initial startup time almost instant
  • HTTP API is fully decoupled from the indexer workers, allowing changes without redeploys
  • Basic QF calculations (without overrides or estimates) can be done in-database as a materialized view and automatically updated and cached
  • We use Kani for verification of the correctness of the QF and QV algorithms

allo-indexer-rs's People

Contributors

bard avatar vacekj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.