MultiversX Tracker is Live!

Patterns around building a fault-tolerant aggregator/indexer

Etherum Reddit

More / Etherum Reddit 93 Views

We are trying to build an indexer/aggregator in the style of TheGraph. Using TheGraph directly is not feasible, since we need to merge blockchain data with offchain data in our datastores.

The core idea is to listen to blockchain events using a golang service, and aggregate them into our database, using something like https://goethereumbook.org/en/event-subscribe/.

However, my concern is around fault tolerance. If some events are missed (eg the service goes down), there need to be measures to query the missed blocks and look for missed events.

How can I know if some events have been missed? AFAIK there are no nonces associated with events. Should I listen to individual blocks instead of listening to events? This helps since I can now identify missed blocks, but seems much more inefficient.

This looks like a solved problem in the industry and multiple organisations run their own indexers/aggregation services, but there isn't much documentation available around this. Would appreciate some pointers to resources or design-patterns.

submitted by /u/Deformer
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments