The Graph is not magic. It's a good solution to a real problem. But people treat it like it's the only solution, and that's wrong.

When you need to query blockchain data, The Graph is convenient. You write a subgraph, deploy it, wait for indexing to finish, and suddenly you can run complex queries without touching the blockchain directly. No RPC spam. No parsing events at midnight. No managing your own infrastructure. For most projects, it's fine.

For payment systems handling real-time transaction reconciliation, it's insufficient.

The Graph has latency built in

The Graph is optimized for eventual consistency. Indexers watch the blockchain, process new blocks, update the subgraph, and make data available. The process is reliable. It catches everything. It also takes time.

A new block arrives. The indexer sees it. The indexer processes events and stores them in the subgraph. The database syncs. Your query resolves. Between block inclusion and data availability, you're looking at seconds at best. Often longer if indexing is backed up or the indexer is resyncing.

That's fine for dashboards showing user balances or historical transaction counts. It's not fine when you're confirming a payment and the system needs to know, within subsecond latency, whether funds were received.

We built a custom indexer because The Graph couldn't give us the latency we needed. We parse blocks in real time, emit events to Kafka, and populate a local database that serves queries with sub-100-millisecond latency. The Graph doesn't do that.

Multi-chain indexing is where The Graph gets messy

The Graph has subgraphs for Ethereum, Polygon, Arbitrum, and others. Each subgraph is a separate system. If you need to reconcile a payment across two chains, you're making multiple API calls to multiple subgraphs, each with its own latency and availability characteristics.

Now you're chasing consistency. A payment originates on Ethereum, bridges to Polygon, and settles on Solana. To verify the complete transaction, you need data from three different subgraphs at three different time points. If one subgraph is lagging, your whole reconciliation process blocks.

Custom indexers handle this differently. You index all relevant chains into a single database. A payment crossing three chains is a single query. You control the consistency model. You decide whether to wait for finality before confirming, or to show pending transactions with clear warnings.

We index six chains into a single PostgreSQL instance. A multi-chain payment reconciliation takes one millisecond. The Graph would require three separate API calls.

Cost, use cases, and when it falls apart

Cost comparison gets weird at scale. The Graph charges based on query complexity and volume. Small projects are cheap. Millions of queries per day gets expensive. Hosting your own indexer means paying for compute and storage but not for every single query. At 10 million queries per month, The Graph starts costing more than running your own infrastructure. At 100 million queries per month, it's absurdly expensive.

The catch is that custom indexing isn't free. You need someone to maintain it. We pay for two engineers to maintain our indexing infrastructure. That's less than The Graph would cost us at our query volume, but it's not zero.

When The Graph actually works great. For read-heavy applications with flexible latency, The Graph is excellent. A dashboard showing all transactions for a user can wait 30 seconds. A leaderboard showing top token holders doesn't need sub-second accuracy. The Graph also handles infrastructure you don't want to own. For small teams with limited resources, The Graph is the obvious choice.

We used The Graph for two years before building custom infrastructure. It worked until it didn't.

What falls apart first.

The Graph starts breaking when you need one of three things. Real-time latency for payment confirmation. Multi-chain atomic reconciliation. Query volume exceeding one million per day for complex queries.

Hit all three, and custom indexing becomes inevitable.

We hit all three simultaneously when we launched payment batching. Users could initiate payments that settled across multiple chains. Confirming the batch required verifying every payment within subsecond latency. Confirming required querying all relevant chains simultaneously. And batching increased our query volume tenfold.

Custom indexing took four weeks to build the first version. It took another two months to get observability right. But once it worked, payment confirmation latency dropped from three seconds average to 150 milliseconds median.

How to build your own and when to decide

We started with raw event parsing. Every new block gets fetched, events are decoded, and data flows into Kafka. Multiple consumers read from Kafka and populate different database schemas depending on the query pattern. Payment confirmation queries go to a schema optimized for lookups by transaction hash and recipient address. Reconciliation queries go to a schema tracking balance changes per account. Analytics queries go to a data warehouse for batch processing. We use PostgreSQL for synchronous queries, Clickhouse for analytics, and Kafka for streaming.

The decision framework

Build custom if you need sub-second latency, multi-chain atomic operations, or are hitting six figures monthly on The Graph costs. Use The Graph if you're fine with occasional seconds of latency, only query single chains, and have query volume below one million per day.

Most teams fall into the second category. That's fine. The Graph is a good product. But if payment systems are your problem, you're probably in the first category, which means you'll eventually make the same decision we did.

Start with The Graph. Build your product. Then measure. If latency becomes a bottleneck or multi-chain operations get messy, build the indexer. You'll have real data to guide your infrastructure decisions instead of guessing.

We built ours because The Graph couldn't keep up. We couldn't have known that without actually trying The Graph first.