THE SIGNAL
BY
THE ARCH

Where Web3 founders, talent, and partners meet.

Directory

  • Partners Directory
  • All Categories
  • Compare Partners
  • For Founders
  • Find Your Match
  • Pricing

Get Involved

  • Get Listed
  • Submit an Event
  • Become an Operative
  • Refer a Client
  • Get Your Badge
  • 📅 Book a Call

News & Intelligence

  • Web3 News
  • Daily Digests
  • Intelligence Reports
  • Web3 Events
  • RSS Feed
  • Substack Newsletter

Contact

  • support@thesignal.directory
  • @thesignaldirectorybot

Company

  • About
  • How It Works
  • Manifesto
  • Demo

Legal

  • Privacy
  • Terms
  • Cookies

Resources

  • Guides
  • Sales Decks
  • Docs

© 2026 THE SIGNAL. All rights reserved.

THE SIGNAL
BY
THE ARCH

Where Web3 founders, talent, and partners meet.

Directory

  • Partners Directory
  • All Categories
  • Compare Partners
  • For Founders
  • Find Your Match
  • Pricing

Get Involved

  • Get Listed
  • Submit an Event
  • Become an Operative
  • Refer a Client
  • Get Your Badge
  • 📅 Book a Call

News & Intelligence

  • Web3 News
  • Daily Digests
  • Intelligence Reports
  • Web3 Events
  • RSS Feed
  • Substack Newsletter

Contact

  • support@thesignal.directory
  • @thesignaldirectorybot

Company

  • About
  • How It Works
  • Manifesto
  • Demo

Legal

  • Privacy
  • Terms
  • Cookies

Resources

  • Guides
  • Sales Decks
  • Docs

© 2026 THE SIGNAL. All rights reserved.

Home/Intelligence/Web3 Backend Infrastructure: Nodes, RPCs, and Indexers Explained for 2026

Web3 Backend Infrastructure: Nodes, RPCs, and Indexers Explained for 2026

Web3 backend infrastructure powers every DApp, from wallet interactions to complex DeFi dashboards. This guide covers node providers, RPC endpoints, blockchain indexers, and data APIs -- the invisible layer that determines your application's performance, reliability, and cost.

Samir Touinssi
Written by
Samir Touinssi
From The Arch Consulting
March 20, 2026•58 min read
Web3 Backend Infrastructure: Nodes, RPCs, and Indexers Explained for 2026

Web3 backend infrastructure is the critical middleware layer that connects your decentralized application to blockchain networks. It consists of three core components: nodes (the blockchain software that validates and stores the chain state), RPC endpoints (the API interfaces that let your application read from and write to the blockchain), and indexers (the data processing systems that transform raw blockchain data into queryable, application-specific databases). Without robust backend infrastructure, your DApp cannot read wallet balances, submit transactions, display historical data, or respond to on-chain events. In 2026, the Web3 infrastructure market is valued at over $3 billion annually, with providers like Alchemy, Infura, QuickNode, and The Graph processing billions of API calls per day across 50+ blockchain networks. Understanding these components is essential for any team building on-chain applications, whether you are building a simple wallet, a complex DeFi dashboard, or a real-time trading platform.

Related Intelligence

Navigating the Week Ahead: Essential Web3 Market Analysis for Strategic Founders

3/22/2026

Unpacking Web3 Builder Ecosystem Insights Amidst Quiet Activity

3/21/2026

Layer 2 Scaling Solutions Compared: Rollups, Sidechains & Validiums

Layer 2 Scaling Solutions Compared: Rollups, Sidechains & Validiums

3/20/2026

Need Web3 Consulting?

Get expert guidance from The Arch Consulting on blockchain strategy, tokenomics, and Web3 growth.

Learn More
Back to Intelligence

Table of Contents

Understanding the Web3 Infrastructure StackThe Three PillarsBlockchain Nodes: The Foundation LayerWhat Is a Blockchain Node?Node TypesEthereum Client SoftwareSolana Node InfrastructureRPC Providers: The API LayerWhat Is an RPC Provider?Major RPC Providers ComparedChoosing an RPC Provider: Decision FrameworkSelf-Hosted vs. Provider: Cost AnalysisBlockchain Indexers: The Data LayerWhy Indexers ExistMajor Indexing Solutions ComparedThe Graph: Deep DivePonder: The Developer-First AlternativeCustom Indexing SolutionsEnhanced APIs: Beyond Basic RPC
Home/Intelligence/Web3 Backend Infrastructure: Nodes, RPCs, and Indexers Explained for 2026

Web3 Backend Infrastructure: Nodes, RPCs, and Indexers Explained for 2026

Web3 backend infrastructure powers every DApp, from wallet interactions to complex DeFi dashboards. This guide covers node providers, RPC endpoints, blockchain indexers, and data APIs -- the invisible layer that determines your application's performance, reliability, and cost.

Samir Touinssi
Written by
Samir Touinssi
From The Arch Consulting
March 20, 2026•58 min read
Web3 Backend Infrastructure: Nodes, RPCs, and Indexers Explained for 2026

Web3 backend infrastructure is the critical middleware layer that connects your decentralized application to blockchain networks. It consists of three core components: nodes (the blockchain software that validates and stores the chain state), RPC endpoints (the API interfaces that let your application read from and write to the blockchain), and indexers (the data processing systems that transform raw blockchain data into queryable, application-specific databases). Without robust backend infrastructure, your DApp cannot read wallet balances, submit transactions, display historical data, or respond to on-chain events. In 2026, the Web3 infrastructure market is valued at over $3 billion annually, with providers like Alchemy, Infura, QuickNode, and The Graph processing billions of API calls per day across 50+ blockchain networks. Understanding these components is essential for any team building on-chain applications, whether you are building a simple wallet, a complex DeFi dashboard, or a real-time trading platform.

Related Intelligence

Navigating the Week Ahead: Essential Web3 Market Analysis for Strategic Founders

3/22/2026

Unpacking Web3 Builder Ecosystem Insights Amidst Quiet Activity

3/21/2026

Layer 2 Scaling Solutions Compared: Rollups, Sidechains & Validiums

Layer 2 Scaling Solutions Compared: Rollups, Sidechains & Validiums

3/20/2026

Need Web3 Consulting?

Get expert guidance from The Arch Consulting on blockchain strategy, tokenomics, and Web3 growth.

Learn More
Back to Intelligence

Table of Contents

Understanding the Web3 Infrastructure StackThe Three PillarsBlockchain Nodes: The Foundation LayerWhat Is a Blockchain Node?Node TypesEthereum Client SoftwareSolana Node InfrastructureRPC Providers: The API LayerWhat Is an RPC Provider?Major RPC Providers ComparedChoosing an RPC Provider: Decision FrameworkSelf-Hosted vs. Provider: Cost AnalysisBlockchain Indexers: The Data LayerWhy Indexers ExistMajor Indexing Solutions ComparedThe Graph: Deep DivePonder: The Developer-First AlternativeCustom Indexing SolutionsEnhanced APIs: Beyond Basic RPC

The infrastructure layer is often invisible to end users but determines the quality of their experience. A DApp that takes 3 seconds to load a wallet balance because of slow RPC calls will lose users. A DeFi dashboard that shows stale portfolio data because of poor indexing will destroy trust. A trading bot that misses opportunities because of unreliable WebSocket connections will cost money. Getting the infrastructure right is as important as getting the smart contracts right.

Understanding the Web3 Infrastructure Stack

The Three Pillars

Your DApp Frontend
       |
       v
[RPC Provider / Node] ---- Read/write blockchain state
       |
       v
[Indexer / Data API] ----- Query historical & aggregated data
       |
       v
[Blockchain Network] ----- Source of truth (Ethereum, Solana, etc.)

Pillar 1: Nodes -- Software clients (Geth, Erigon, Reth for Ethereum; Agave, Firedancer for Solana) that participate in the blockchain network, validate transactions, and maintain the chain state.

Pillar 2: RPC Endpoints -- JSON-RPC or REST API interfaces that expose node functionality to applications. Methods like eth_getBalance, eth_sendRawTransaction, and eth_getLogs are the fundamental building blocks of Web3 interactions.

Pillar 3: Indexers -- Systems that process raw blockchain events and transaction data, transforming it into structured, queryable databases optimized for specific application needs.

Blockchain Nodes: The Foundation Layer

What Is a Blockchain Node?

A node is a computer running blockchain client software that:

  1. •Connects to other nodes in the peer-to-peer network
  2. •Validates new transactions and blocks
  3. •Stores blockchain state and history
  4. •Responds to data queries via RPC interface

Node Types

Node TypeStorageSync TimeUse CaseCost (Ethereum)
Full node~1 TB2-7 daysStandard operations$200-$500/month (cloud)
Archive node~15 TB+2-4 weeksHistorical queries$1,000-$3,000/month (cloud)
Light node~1 GBMinutesMobile/resource-constrainedMinimal
Validator node~1 TB + 32 ETH2-7 daysNetwork validation + staking$200-$500/month + 32 ETH

Full nodes store the complete current state but prune historical state data. They can answer questions about the current blockchain state but cannot look up historical storage values at arbitrary block heights.

Archive nodes store every historical state, enabling queries like "what was this address's balance at block 15,000,000?" They are essential for block explorers, analytics platforms, and DeFi dashboards that show historical data.

Key insight for builders: Most DApps do not need to run their own nodes. Node-as-a-service providers (Alchemy, Infura, QuickNode) offer the same functionality at lower cost and higher reliability than self-hosted nodes, unless you have specific requirements for customization, data privacy, or latency.

Ethereum Client Software

ClientLanguageTypeMarket ShareNotes
GethGoExecution~55%The original, most battle-tested
ErigonGoExecution~10%Optimized for archive nodes, lower storage
NethermindC#Execution~10%Enterprise-focused, good for Gnosis Chain
BesuJavaExecution~5%Enterprise, Hyperledger project
RethRustExecution~15% (growing)Paradigm-backed, fast sync, modern architecture
PrysmGoConsensus~35%Most popular consensus client
LighthouseRustConsensus~30%Sigma Prime, high performance
TekuJavaConsensus~15%Consensys, enterprise-grade
NimbusNimConsensus~10%Status, resource-efficient
LodestarTypeScriptConsensus~5%ChainSafe, unique language choice

Client diversity matters: If one client has a bug, it only affects a subset of the network. The Ethereum community actively promotes client diversity to prevent single points of failure. Running minority clients (Nethermind + Lodestar, for example) contributes to network health and may earn you social capital in the ecosystem.

Solana Node Infrastructure

Solana nodes have significantly higher hardware requirements:

RequirementMinimumRecommended
CPU12+ cores, 2.8+ GHz16+ cores, 3.0+ GHz
RAM128 GB256 GB
Storage2 TB NVMe SSD4+ TB NVMe SSD
Bandwidth1 Gbps10 Gbps
Monthly cost (bare metal)$500-$800$800-$1,500
Monthly cost (cloud)$1,500-$3,000$3,000-$5,000+

This high hardware bar is a direct consequence of Solana's monolithic, high-throughput architecture. It is also why most Solana DApp builders use RPC providers rather than running their own nodes.

RPC Providers: The API Layer

What Is an RPC Provider?

RPC (Remote Procedure Call) providers run blockchain nodes and expose them as API endpoints that your application can call. Instead of running your own node, you send requests to the provider's infrastructure.

Common Ethereum RPC methods:

MethodPurposeExample Response
eth_blockNumberGet latest block number"0x1234567"
eth_getBalanceGet address ETH balance"0x1bc16d674ec80000" (2 ETH)
eth_getTransactionReceiptGet transaction detailsReceipt object with logs
eth_callRead-only contract callEncoded return data
eth_sendRawTransactionSubmit signed transactionTransaction hash
eth_getLogsGet filtered event logsArray of log objects
eth_estimateGasEstimate gas for a transactionGas amount
eth_subscribeWebSocket subscriptionStream of events

Major RPC Providers Compared

ProviderChains SupportedFree TierPaid PlansUnique Features
Alchemy30+300M CU/month$49-$399+/monthEnhanced APIs, webhooks, Notify
Infura20+100K requests/day$50-$1,000+/monthMetaMask default, IPFS gateway
QuickNode50+10M API credits/month$49-$299+/monthMarketplace add-ons, streams
Chainstack30+3M requests/month$29-$349+/monthElastic nodes, dedicated nodes
Ankr45+30M requests/month$49-$499+/monthDecentralized RPC network
HeliusSolana only100K credits/day$49-$499+/monthDAS API, webhooks, Priority Fee API
TritonSolana onlyN/ACustom pricingDedicated infrastructure, lowest latency
Blast API (Bware Labs)50+12M API calls/month$12-$100+/monthDecentralized, multi-region

Choosing an RPC Provider: Decision Framework

FactorQuestions to AskImpact
Chain supportDoes the provider support all chains you deploy on?Eliminates 50%+ of options
Reliability (uptime SLA)What is the guaranteed uptime? Is there a refund policy?Critical for production DApps
LatencyWhat is the p50/p99 response time? Where are their nodes located?Critical for trading/MEV apps
Rate limitsWhat are the requests/second and daily limits?Determines if free tier is sufficient
Archive node accessDo they provide archive data for historical queries?Required for analytics, block explorers
Enhanced APIsDo they offer token balance APIs, NFT APIs, transaction history?Reduces indexing needs
WebSocket supportDo they support eth_subscribe and stable WebSocket connections?Required for real-time apps
Pricing modelCompute units vs. flat rate vs. per-request? How does scaling work?Determines cost predictability
Debug/trace supportDo they support debug_traceTransaction and trace_block?Required for debugging and analytics

Self-Hosted vs. Provider: Cost Analysis

ScenarioSelf-Hosted (Ethereum Archive)RPC Provider (Alchemy Growth)
Monthly cost$1,500-$3,000 (cloud)$399/month
Setup time2-4 weeks (sync + config)5 minutes
Maintenance4-8 hours/month (updates, monitoring)Zero
Uptime99.5-99.9% (without redundancy)99.99% (SLA-backed)
Multi-chainSeparate node per chainSingle account, all chains
Archive dataFull controlIncluded in plan
Custom methodsFull flexibilityLimited to provider's API

Recommendation for most teams: Use a managed RPC provider for development and early production. Consider self-hosted nodes only when you need custom RPC methods, data privacy, or have reached a scale where provider costs exceed self-hosting costs (typically >100M requests/month).

For teams evaluating infrastructure partners, The Signal's directory includes infrastructure and development partners with verified blockchain infrastructure expertise.

Blockchain Indexers: The Data Layer

Why Indexers Exist

Raw blockchain data is not application-friendly. To answer a simple question like "show me all NFTs owned by this address," you would need to scan every block, every transaction, and every event log from the beginning of the chain -- billions of operations. Indexers solve this by pre-processing blockchain data into structured databases that your application can query efficiently.

Without an indexer:

Query: "Get all Uniswap V3 swaps for USDC/ETH in the last 24 hours"
Process: Scan ~7,200 blocks, filter ~50,000 transactions, decode ~10,000 event logs
Time: 30-120 seconds
Cost: Millions of RPC calls

With an indexer:

Query: "Get all Uniswap V3 swaps for USDC/ETH in the last 24 hours"
Process: Single GraphQL/SQL query against indexed database
Time: 50-200 milliseconds
Cost: One API call

Major Indexing Solutions Compared

SolutionApproachQuery LanguageChainsPricingBest For
The GraphSubgraphs (AssemblyScript)GraphQL40+Free (decentralized) or hostedDeFi protocols, broad chain support
GoldskyMirror pipelines + subgraphsGraphQL + SQL30+$0-$500+/monthReal-time data, custom pipelines
PonderTypeScript frameworkGraphQLEVM chainsSelf-hosted (free)Developer experience, type safety
EnvioHyperIndex (Rust/TS)GraphQL30+$0-$300+/monthFast sync, real-time processing
SubsquidArchives + processorsGraphQL100+$0-$500+/monthMulti-chain, raw data access
Dune AnalyticsSQL-based analyticsSQL (DuneSQL)20+$0-$399+/monthAnalytics dashboards, community
Covalent (GoldRush)Unified APIREST/GraphQL200+$0-$499+/monthMulti-chain data, unified schema
MoralisStreams + APIREST20+$0-$299+/monthRapid development, Web2 developers

The Graph: Deep Dive

The Graph is the most widely used decentralized indexing protocol. It processes over 1 billion queries per month and indexes data for protocols like Uniswap, Aave, Compound, and Synthetix.

How The Graph works:

  1. •Define a subgraph: Write a schema (GraphQL), data sources (contract addresses and ABIs), and mapping handlers (AssemblyScript functions that process events)
  2. •Deploy: Publish your subgraph to The Graph Network (decentralized) or hosted service
  3. •Index: Indexer nodes process historical and new blockchain data according to your mappings
  4. •Query: Your application queries the subgraph via GraphQL

Subgraph development workflow:

1. graph init --product subgraph-studio myprotocol/mysubgraph
2. Define schema.graphql (entities and relationships)
3. Define subgraph.yaml (data sources, contracts, events)
4. Write mapping handlers in AssemblyScript (src/mapping.ts)
5. graph codegen (generate TypeScript types)
6. graph build (compile subgraph)
7. graph deploy --studio mysubgraph (deploy to Subgraph Studio)

Subgraph pricing (decentralized network):

  • •Queries are priced in GRT tokens
  • •~$0.00004 per query (approximately)
  • •Free tier available through Subgraph Studio for development
  • •Large protocols spend $500-$5,000/month on query fees

When to use The Graph:

  • •You need to index smart contract events across multiple blocks
  • •Your data model maps naturally to entities and relationships
  • •You want a decentralized, censorship-resistant data layer
  • •You need GraphQL as your query interface

When The Graph is not ideal:

  • •You need real-time data (sub-second latency) -- subgraphs have 1-10 second indexing delays
  • •You need complex SQL aggregations (The Graph uses GraphQL, not SQL)
  • •You need off-chain data integrated with on-chain data

Ponder: The Developer-First Alternative

Ponder is a newer indexing framework that prioritizes developer experience and type safety.

Key advantages over The Graph:

  • •Write handlers in TypeScript (not AssemblyScript)
  • •Full type safety with auto-generated types from ABIs
  • •Local development with hot reloading
  • •PostgreSQL backend (familiar tooling)
  • •No separate deployment process (runs alongside your app)

When to use Ponder:

  • •You are building a Next.js or full-stack application
  • •Your team prefers TypeScript over AssemblyScript
  • •You want local development with hot reloading
  • •You are indexing a small-to-medium number of contracts
  • •You value developer experience over decentralization

Custom Indexing Solutions

For complex applications, you may need a custom indexing pipeline:

Architecture pattern:

[RPC Provider] --eth_getLogs--> [Event Processor] --> [Database] --> [API Layer] --> [Frontend]
      |                              |                    |
      |                              |                [PostgreSQL/
      |                              |                 TimescaleDB/
      |                              |                 ClickHouse]
      |                              |
  [WebSocket] --subscriptions-->  [Real-time
   connection                    processor]

When to build custom:

  • •You need sub-second indexing latency
  • •You need complex aggregations or machine learning on indexed data
  • •You are processing data from 10+ chains simultaneously
  • •You need to correlate on-chain and off-chain data sources
  • •Your data model does not fit the entity-relationship pattern of subgraphs

Technology choices for custom indexing:

ComponentOptions
Event ingestionAlchemy Webhooks, QuickNode Streams, direct eth_getLogs
ProcessingNode.js, Rust, Go, Python
DatabasePostgreSQL (general), TimescaleDB (time-series), ClickHouse (analytics)
CacheRedis, Memcached
API layerGraphQL (Apollo, Pothos), REST (Express, Fastify)
Message queueRedis Streams, Apache Kafka, RabbitMQ

Enhanced APIs: Beyond Basic RPC

Modern RPC providers offer enhanced APIs that eliminate the need for custom indexing in many common scenarios:

Token Balance APIs

Instead of calling each token contract individually, enhanced APIs return all token balances for an address in a single call.

ProviderMethodCoverage
Alchemyalchemy_getTokenBalancesERC-20 on all supported chains
MoralisgetWalletTokenBalancesERC-20 on 20+ chains
Covalent/balances_v2/ERC-20 on 200+ chains
HeliusgetAssetsByOwner (DAS API)SPL tokens on Solana

NFT APIs

ProviderCapabilitiesCoverage
AlchemyOwnership, metadata, sales history, rarityEthereum, Polygon, Solana
MoralisOwnership, metadata, transfers, trades20+ chains
SimpleHashCross-chain NFT data, marketplace aggregation30+ chains
HeliusDAS API (Digital Asset Standard) for SolanaSolana (compressed + regular NFTs)

Transaction History APIs

ProviderCapabilities
AlchemyAsset transfers, internal transactions, token transfers
CovalentFull transaction history with decoded logs
Etherscan APITransaction list, internal transactions, token transfers
HeliusParsed transaction history with human-readable labels (Solana)

When enhanced APIs replace custom indexing:

  • •Simple wallet apps (balance display, transaction history)
  • •NFT galleries and marketplaces (ownership, metadata)
  • •Portfolio trackers (multi-token, multi-chain balances)
  • •Basic analytics dashboards

When you still need custom indexing:

  • •Protocol-specific aggregations (TVL calculations, APY history)
  • •Complex relational queries (all users with positions in pool X that were opened before date Y)
  • •Real-time event processing (instant notifications on specific contract events)
  • •Cross-protocol analysis (tracking positions across multiple DeFi protocols)

Data Availability and Storage

Beyond reading blockchain state, many DApps need to store data that does not belong on-chain:

Decentralized Storage

SolutionBest ForPricingPermanence
IPFSNFT metadata, static assetsFree (self-hosted) or $5-$20/month (Pinata)Depends on pinning
ArweavePermanent data storage~$5 per GB (one-time)Permanent (200+ years design)
FilecoinLarge data storage~$0.01 per GB/monthMiner-incentivized
CeramicMutable data streams, user profilesFree tier availablePersistent with updates

Centralized Storage (for performance-critical data)

SolutionBest ForNotes
PostgreSQLIndexed blockchain data, user metadataMost common for DApp backends
RedisCaching, real-time data, session stateEssential for performance
MongoDBFlexible schemas, event logsGood for rapidly evolving data models
ClickHouseAnalytics, time-series dataExcellent for large-scale blockchain analytics

Infrastructure Architecture Patterns

Pattern 1: Minimal (Early-Stage DApp)

Frontend (Next.js on Vercel)
     |
Alchemy / Infura (RPC + Enhanced APIs)
     |
No custom indexing (use provider's enhanced APIs)

Cost: $0-$100/month
Best for: MVPs, simple token/NFT apps, wallet interfaces
Limitations: No custom queries, limited to provider's API capabilities

Pattern 2: Standard (Growth-Stage DApp)

Frontend (Next.js on Vercel)
     |
     +-- Alchemy (RPC + Enhanced APIs)
     |
     +-- The Graph (custom subgraph for protocol-specific queries)
     |
     +-- Redis (caching layer)

Cost: $100-$1,000/month
Best for: DeFi dashboards, marketplaces, analytics apps
Limitations: Subgraph indexing delay (1-10 seconds), GraphQL-only queries

Pattern 3: Advanced (Production DeFi Protocol)

Frontend (Next.js, multi-region CDN)
     |
     +-- Alchemy / QuickNode (RPC, dedicated tier with SLA)
     |
     +-- The Graph (historical data, protocol analytics)
     |
     +-- Custom indexer (real-time events, complex aggregations)
     |       |
     |       +-- PostgreSQL (structured data)
     |       +-- Redis (cache + real-time state)
     |       +-- Kafka (event stream processing)
     |
     +-- Chainlink Automation (keeper tasks)
     |
     +-- Forta / OZ Defender (monitoring + alerts)

Cost: $2,000-$10,000+/month
Best for: Production DeFi protocols, high-volume trading apps, cross-chain applications
Capabilities: Sub-second data, custom aggregations, real-time monitoring, automated responses

Pattern 4: Multi-Chain (Cross-Chain Application)

Frontend
     |
API Gateway (custom, routes to chain-specific backends)
     |
     +-- Ethereum backend (Alchemy + The Graph subgraph)
     +-- Solana backend (Helius + custom indexer)
     +-- Arbitrum backend (Alchemy + shared subgraph)
     +-- Base backend (Alchemy + shared subgraph)
     |
Unified database (PostgreSQL with chain-specific schemas)
     |
Cross-chain message relay (Wormhole / LayerZero / Chainlink CCIP)

Cost: $5,000-$20,000+/month
Best for: Cross-chain bridges, multi-chain DeFi aggregators, universal wallets

For complex infrastructure setups, browse infrastructure partners on The Signal or book a consultation with our team to get matched with the right infrastructure specialists for your architecture.

Performance Optimization Best Practices

1. RPC Call Optimization

  • •Batch requests: Use JSON-RPC batching to combine multiple calls into a single HTTP request
  • •Multicall contracts: Use Multicall3 to batch on-chain reads into a single RPC call (reading 100 token balances in one call instead of 100 separate calls)
  • •Caching: Cache RPC responses in Redis with appropriate TTLs (block data: cache until new block; static data: cache indefinitely)
  • •Connection pooling: Reuse HTTP/WebSocket connections to reduce latency overhead

2. Indexer Performance

  • •Selective indexing: Only index the events and contracts your application needs
  • •Batch processing: Process events in batches rather than one at a time
  • •Read replicas: Use PostgreSQL read replicas to scale read-heavy workloads
  • •Materialized views: Pre-compute complex aggregations for frequently accessed data

3. Frontend Optimization

  • •Optimistic updates: Update the UI immediately on transaction submission, then reconcile with on-chain state
  • •Progressive loading: Load critical data first (balances, positions), then secondary data (history, analytics)
  • •WebSocket for real-time: Use WebSocket subscriptions for price feeds and transaction confirmations instead of polling
  • •Smart caching: Cache static data (token metadata, contract ABIs) aggressively; cache dynamic data (balances, prices) with short TTLs

Cost Optimization Strategies

1. RPC Cost Reduction

StrategySavingsImplementation
Response caching (Redis)40-60% fewer RPC callsCache balances, prices with TTL
Multicall batching80-95% fewer callsUse Multicall3 for read operations
Websocket subscriptions50-70% vs pollingReplace polling with subscriptions for real-time data
Provider tiering20-40% cost reductionUse free tier for non-critical calls, paid tier for production
Request deduplication10-30% fewer callsDeduplicate identical concurrent requests

2. Indexing Cost Reduction

StrategySavingsImplementation
Selective event indexing50-80% less data processedOnly index events your app actually queries
Ponder (self-hosted)100% vs hosted indexing feesRun alongside your app, PostgreSQL backend
Shared subgraphsSplit costs across multiple appsUse community-deployed subgraphs for common protocols
Time-bounded queries30-50% less data storedOnly store recent data, archive older data to cold storage

Security Considerations for Web3 Infrastructure

RPC Security

  • •Never expose RPC endpoints to the client: Proxy all RPC calls through your backend to prevent API key leakage and rate limit abuse
  • •Use separate keys for frontend and backend: Different rate limits, monitoring, and access controls
  • •Implement request validation: Validate that incoming RPC requests are well-formed and within expected parameters
  • •Monitor for anomalies: Track RPC call patterns and alert on unusual spikes (may indicate an attack)
  • •Use HTTPS exclusively: Never send transactions over unencrypted connections

Indexer Security

  • •Validate indexed data: Cross-reference critical indexed data with direct RPC calls to prevent data poisoning
  • •Implement access controls: Not all indexed data should be publicly queryable
  • •Monitor indexer health: Alert if indexing falls behind the chain head by more than a few blocks
  • •Handle chain reorganizations: Your indexer must correctly handle reorgs (reverted blocks) to prevent displaying incorrect data

For a comprehensive view of security best practices, see our guides on smart contract audit costs and Web3 bug bounty programs, and explore security partners in our directory.

The Future of Web3 Infrastructure (2026 and Beyond)

Emerging Trends

  1. •

    Decentralized RPC networks: Projects like Lava Network, Pocket Network, and dRPC are building decentralized alternatives to centralized RPC providers, offering censorship resistance and geographic distribution.

  2. •

    Real-time indexing: The gap between block production and indexed data availability is shrinking. Solutions like Goldsky Streams and Envio HyperIndex offer sub-second indexing for many use cases.

  3. •

    ZK-proven data: Zero-knowledge proofs are being applied to historical blockchain data, enabling trustless verification without re-executing transactions. Axiom and Herodotus are leading this space.

  4. •

    Account abstraction infrastructure: ERC-4337 bundlers, paymasters, and entry point contracts are creating a new infrastructure layer for smart account wallets.

  5. •

    Modular data availability: As Ethereum's rollup-centric roadmap matures, data availability layers (Celestia, EigenDA, Avail) are becoming critical infrastructure components that DApp builders need to understand.

  6. •

    AI-powered infrastructure: Machine learning is being applied to RPC load balancing, MEV protection, and anomaly detection in blockchain data.

Frequently Asked Questions

Do I need to run my own blockchain node?

For most DApp builders, no. Managed RPC providers (Alchemy, Infura, QuickNode) offer better uptime, lower cost, and zero maintenance compared to self-hosted nodes. Consider self-hosting only if you need custom RPC methods, extreme data privacy, or process more than 100 million requests per month where self-hosting becomes cost-effective.

What is the difference between an RPC provider and an indexer?

An RPC provider gives you real-time access to the current blockchain state -- like checking a balance or submitting a transaction. An indexer processes historical blockchain data into structured databases, enabling complex queries like "show me all swaps on Uniswap in the last 24 hours sorted by volume." RPC calls are for real-time operations; indexers are for historical queries and aggregations.

How much does Web3 backend infrastructure cost?

For an early-stage DApp, $0-$100 per month using free tiers of RPC providers and enhanced APIs. For a growth-stage application, $100-$1,000 per month adding custom indexing (The Graph or Ponder) and caching (Redis). For a production DeFi protocol, $2,000-$10,000+ per month with dedicated RPC tiers, custom indexing pipelines, monitoring, and automation.

Which indexing solution should I choose?

The Graph is the default choice for broad chain support and a decentralized data layer. Ponder is best for TypeScript developers who want local development with hot reloading. Goldsky and Envio are best for real-time data requirements. For complex, multi-source analytics, a custom indexing pipeline with PostgreSQL or ClickHouse provides the most flexibility.

How do I handle multiple blockchain networks?

Use a single RPC provider that supports all your target chains (Alchemy, QuickNode support 30-50+ chains). For indexing, deploy chain-specific subgraphs or use a unified API like Covalent that normalizes data across chains. Build a chain abstraction layer in your backend that routes requests to the appropriate chain-specific services.

What is the best RPC provider for Solana?

Helius and Triton are the top Solana-specific providers. Helius offers enhanced APIs (DAS API for NFTs, priority fee API, webhooks) with generous free tiers. Triton provides dedicated infrastructure for applications requiring the lowest latency. General providers like Alchemy and QuickNode also support Solana but with less specialized features.

How do I ensure my infrastructure is reliable?

Use multiple RPC providers with automatic failover (primary + backup). Implement health checks that verify response accuracy, not just availability. Set up monitoring and alerting for response times, error rates, and indexing lag. For critical applications, deploy infrastructure across multiple geographic regions and cloud providers.

What is a subgraph and how do I build one?

A subgraph is a custom data indexing specification for The Graph protocol. It defines which smart contract events to index and how to transform them into queryable entities. You write a GraphQL schema (data model), a manifest (which contracts and events to index), and mapping handlers (AssemblyScript functions that process events). The Graph Network then indexes your data and serves it via a GraphQL API.

Token Balance APIs
NFT APIs
Transaction History APIs
Data Availability and Storage
Decentralized Storage
Centralized Storage (for performance-critical data)
Infrastructure Architecture Patterns
Pattern 1: Minimal (Early-Stage DApp)
Pattern 2: Standard (Growth-Stage DApp)
Pattern 3: Advanced (Production DeFi Protocol)
Pattern 4: Multi-Chain (Cross-Chain Application)
Performance Optimization Best Practices
1. RPC Call Optimization
2. Indexer Performance
3. Frontend Optimization
Cost Optimization Strategies
1. RPC Cost Reduction
2. Indexing Cost Reduction
Security Considerations for Web3 Infrastructure
RPC Security
Indexer Security
The Future of Web3 Infrastructure (2026 and Beyond)
Emerging Trends
Frequently Asked Questions
Do I need to run my own blockchain node?
What is the difference between an RPC provider and an indexer?
How much does Web3 backend infrastructure cost?
Which indexing solution should I choose?
How do I handle multiple blockchain networks?
What is the best RPC provider for Solana?
How do I ensure my infrastructure is reliable?
What is a subgraph and how do I build one?

Share Article

XLI

The infrastructure layer is often invisible to end users but determines the quality of their experience. A DApp that takes 3 seconds to load a wallet balance because of slow RPC calls will lose users. A DeFi dashboard that shows stale portfolio data because of poor indexing will destroy trust. A trading bot that misses opportunities because of unreliable WebSocket connections will cost money. Getting the infrastructure right is as important as getting the smart contracts right.

Understanding the Web3 Infrastructure Stack

The Three Pillars

Your DApp Frontend
       |
       v
[RPC Provider / Node] ---- Read/write blockchain state
       |
       v
[Indexer / Data API] ----- Query historical & aggregated data
       |
       v
[Blockchain Network] ----- Source of truth (Ethereum, Solana, etc.)

Pillar 1: Nodes -- Software clients (Geth, Erigon, Reth for Ethereum; Agave, Firedancer for Solana) that participate in the blockchain network, validate transactions, and maintain the chain state.

Pillar 2: RPC Endpoints -- JSON-RPC or REST API interfaces that expose node functionality to applications. Methods like eth_getBalance, eth_sendRawTransaction, and eth_getLogs are the fundamental building blocks of Web3 interactions.

Pillar 3: Indexers -- Systems that process raw blockchain events and transaction data, transforming it into structured, queryable databases optimized for specific application needs.

Blockchain Nodes: The Foundation Layer

What Is a Blockchain Node?

A node is a computer running blockchain client software that:

  1. •Connects to other nodes in the peer-to-peer network
  2. •Validates new transactions and blocks
  3. •Stores blockchain state and history
  4. •Responds to data queries via RPC interface

Node Types

Node TypeStorageSync TimeUse CaseCost (Ethereum)
Full node~1 TB2-7 daysStandard operations$200-$500/month (cloud)
Archive node~15 TB+2-4 weeksHistorical queries$1,000-$3,000/month (cloud)
Light node~1 GBMinutesMobile/resource-constrainedMinimal
Validator node~1 TB + 32 ETH2-7 daysNetwork validation + staking$200-$500/month + 32 ETH

Full nodes store the complete current state but prune historical state data. They can answer questions about the current blockchain state but cannot look up historical storage values at arbitrary block heights.

Archive nodes store every historical state, enabling queries like "what was this address's balance at block 15,000,000?" They are essential for block explorers, analytics platforms, and DeFi dashboards that show historical data.

Key insight for builders: Most DApps do not need to run their own nodes. Node-as-a-service providers (Alchemy, Infura, QuickNode) offer the same functionality at lower cost and higher reliability than self-hosted nodes, unless you have specific requirements for customization, data privacy, or latency.

Ethereum Client Software

ClientLanguageTypeMarket ShareNotes
GethGoExecution~55%The original, most battle-tested
ErigonGoExecution~10%Optimized for archive nodes, lower storage
NethermindC#Execution~10%Enterprise-focused, good for Gnosis Chain
BesuJavaExecution~5%Enterprise, Hyperledger project
RethRustExecution~15% (growing)Paradigm-backed, fast sync, modern architecture
PrysmGoConsensus~35%Most popular consensus client
LighthouseRustConsensus~30%Sigma Prime, high performance
TekuJavaConsensus~15%Consensys, enterprise-grade
NimbusNimConsensus~10%Status, resource-efficient
LodestarTypeScriptConsensus~5%ChainSafe, unique language choice

Client diversity matters: If one client has a bug, it only affects a subset of the network. The Ethereum community actively promotes client diversity to prevent single points of failure. Running minority clients (Nethermind + Lodestar, for example) contributes to network health and may earn you social capital in the ecosystem.

Solana Node Infrastructure

Solana nodes have significantly higher hardware requirements:

RequirementMinimumRecommended
CPU12+ cores, 2.8+ GHz16+ cores, 3.0+ GHz
RAM128 GB256 GB
Storage2 TB NVMe SSD4+ TB NVMe SSD
Bandwidth1 Gbps10 Gbps
Monthly cost (bare metal)$500-$800$800-$1,500
Monthly cost (cloud)$1,500-$3,000$3,000-$5,000+

This high hardware bar is a direct consequence of Solana's monolithic, high-throughput architecture. It is also why most Solana DApp builders use RPC providers rather than running their own nodes.

RPC Providers: The API Layer

What Is an RPC Provider?

RPC (Remote Procedure Call) providers run blockchain nodes and expose them as API endpoints that your application can call. Instead of running your own node, you send requests to the provider's infrastructure.

Common Ethereum RPC methods:

MethodPurposeExample Response
eth_blockNumberGet latest block number"0x1234567"
eth_getBalanceGet address ETH balance"0x1bc16d674ec80000" (2 ETH)
eth_getTransactionReceiptGet transaction detailsReceipt object with logs
eth_callRead-only contract callEncoded return data
eth_sendRawTransactionSubmit signed transactionTransaction hash
eth_getLogsGet filtered event logsArray of log objects
eth_estimateGasEstimate gas for a transactionGas amount
eth_subscribeWebSocket subscriptionStream of events

Major RPC Providers Compared

ProviderChains SupportedFree TierPaid PlansUnique Features
Alchemy30+300M CU/month$49-$399+/monthEnhanced APIs, webhooks, Notify
Infura20+100K requests/day$50-$1,000+/monthMetaMask default, IPFS gateway
QuickNode50+10M API credits/month$49-$299+/monthMarketplace add-ons, streams
Chainstack30+3M requests/month$29-$349+/monthElastic nodes, dedicated nodes
Ankr45+30M requests/month$49-$499+/monthDecentralized RPC network
HeliusSolana only100K credits/day$49-$499+/monthDAS API, webhooks, Priority Fee API
TritonSolana onlyN/ACustom pricingDedicated infrastructure, lowest latency
Blast API (Bware Labs)50+12M API calls/month$12-$100+/monthDecentralized, multi-region

Choosing an RPC Provider: Decision Framework

FactorQuestions to AskImpact
Chain supportDoes the provider support all chains you deploy on?Eliminates 50%+ of options
Reliability (uptime SLA)What is the guaranteed uptime? Is there a refund policy?Critical for production DApps
LatencyWhat is the p50/p99 response time? Where are their nodes located?Critical for trading/MEV apps
Rate limitsWhat are the requests/second and daily limits?Determines if free tier is sufficient
Archive node accessDo they provide archive data for historical queries?Required for analytics, block explorers
Enhanced APIsDo they offer token balance APIs, NFT APIs, transaction history?Reduces indexing needs
WebSocket supportDo they support eth_subscribe and stable WebSocket connections?Required for real-time apps
Pricing modelCompute units vs. flat rate vs. per-request? How does scaling work?Determines cost predictability
Debug/trace supportDo they support debug_traceTransaction and trace_block?Required for debugging and analytics

Self-Hosted vs. Provider: Cost Analysis

ScenarioSelf-Hosted (Ethereum Archive)RPC Provider (Alchemy Growth)
Monthly cost$1,500-$3,000 (cloud)$399/month
Setup time2-4 weeks (sync + config)5 minutes
Maintenance4-8 hours/month (updates, monitoring)Zero
Uptime99.5-99.9% (without redundancy)99.99% (SLA-backed)
Multi-chainSeparate node per chainSingle account, all chains
Archive dataFull controlIncluded in plan
Custom methodsFull flexibilityLimited to provider's API

Recommendation for most teams: Use a managed RPC provider for development and early production. Consider self-hosted nodes only when you need custom RPC methods, data privacy, or have reached a scale where provider costs exceed self-hosting costs (typically >100M requests/month).

For teams evaluating infrastructure partners, The Signal's directory includes infrastructure and development partners with verified blockchain infrastructure expertise.

Blockchain Indexers: The Data Layer

Why Indexers Exist

Raw blockchain data is not application-friendly. To answer a simple question like "show me all NFTs owned by this address," you would need to scan every block, every transaction, and every event log from the beginning of the chain -- billions of operations. Indexers solve this by pre-processing blockchain data into structured databases that your application can query efficiently.

Without an indexer:

Query: "Get all Uniswap V3 swaps for USDC/ETH in the last 24 hours"
Process: Scan ~7,200 blocks, filter ~50,000 transactions, decode ~10,000 event logs
Time: 30-120 seconds
Cost: Millions of RPC calls

With an indexer:

Query: "Get all Uniswap V3 swaps for USDC/ETH in the last 24 hours"
Process: Single GraphQL/SQL query against indexed database
Time: 50-200 milliseconds
Cost: One API call

Major Indexing Solutions Compared

SolutionApproachQuery LanguageChainsPricingBest For
The GraphSubgraphs (AssemblyScript)GraphQL40+Free (decentralized) or hostedDeFi protocols, broad chain support
GoldskyMirror pipelines + subgraphsGraphQL + SQL30+$0-$500+/monthReal-time data, custom pipelines
PonderTypeScript frameworkGraphQLEVM chainsSelf-hosted (free)Developer experience, type safety
EnvioHyperIndex (Rust/TS)GraphQL30+$0-$300+/monthFast sync, real-time processing
SubsquidArchives + processorsGraphQL100+$0-$500+/monthMulti-chain, raw data access
Dune AnalyticsSQL-based analyticsSQL (DuneSQL)20+$0-$399+/monthAnalytics dashboards, community
Covalent (GoldRush)Unified APIREST/GraphQL200+$0-$499+/monthMulti-chain data, unified schema
MoralisStreams + APIREST20+$0-$299+/monthRapid development, Web2 developers

The Graph: Deep Dive

The Graph is the most widely used decentralized indexing protocol. It processes over 1 billion queries per month and indexes data for protocols like Uniswap, Aave, Compound, and Synthetix.

How The Graph works:

  1. •Define a subgraph: Write a schema (GraphQL), data sources (contract addresses and ABIs), and mapping handlers (AssemblyScript functions that process events)
  2. •Deploy: Publish your subgraph to The Graph Network (decentralized) or hosted service
  3. •Index: Indexer nodes process historical and new blockchain data according to your mappings
  4. •Query: Your application queries the subgraph via GraphQL

Subgraph development workflow:

1. graph init --product subgraph-studio myprotocol/mysubgraph
2. Define schema.graphql (entities and relationships)
3. Define subgraph.yaml (data sources, contracts, events)
4. Write mapping handlers in AssemblyScript (src/mapping.ts)
5. graph codegen (generate TypeScript types)
6. graph build (compile subgraph)
7. graph deploy --studio mysubgraph (deploy to Subgraph Studio)

Subgraph pricing (decentralized network):

  • •Queries are priced in GRT tokens
  • •~$0.00004 per query (approximately)
  • •Free tier available through Subgraph Studio for development
  • •Large protocols spend $500-$5,000/month on query fees

When to use The Graph:

  • •You need to index smart contract events across multiple blocks
  • •Your data model maps naturally to entities and relationships
  • •You want a decentralized, censorship-resistant data layer
  • •You need GraphQL as your query interface

When The Graph is not ideal:

  • •You need real-time data (sub-second latency) -- subgraphs have 1-10 second indexing delays
  • •You need complex SQL aggregations (The Graph uses GraphQL, not SQL)
  • •You need off-chain data integrated with on-chain data

Ponder: The Developer-First Alternative

Ponder is a newer indexing framework that prioritizes developer experience and type safety.

Key advantages over The Graph:

  • •Write handlers in TypeScript (not AssemblyScript)
  • •Full type safety with auto-generated types from ABIs
  • •Local development with hot reloading
  • •PostgreSQL backend (familiar tooling)
  • •No separate deployment process (runs alongside your app)

When to use Ponder:

  • •You are building a Next.js or full-stack application
  • •Your team prefers TypeScript over AssemblyScript
  • •You want local development with hot reloading
  • •You are indexing a small-to-medium number of contracts
  • •You value developer experience over decentralization

Custom Indexing Solutions

For complex applications, you may need a custom indexing pipeline:

Architecture pattern:

[RPC Provider] --eth_getLogs--> [Event Processor] --> [Database] --> [API Layer] --> [Frontend]
      |                              |                    |
      |                              |                [PostgreSQL/
      |                              |                 TimescaleDB/
      |                              |                 ClickHouse]
      |                              |
  [WebSocket] --subscriptions-->  [Real-time
   connection                    processor]

When to build custom:

  • •You need sub-second indexing latency
  • •You need complex aggregations or machine learning on indexed data
  • •You are processing data from 10+ chains simultaneously
  • •You need to correlate on-chain and off-chain data sources
  • •Your data model does not fit the entity-relationship pattern of subgraphs

Technology choices for custom indexing:

ComponentOptions
Event ingestionAlchemy Webhooks, QuickNode Streams, direct eth_getLogs
ProcessingNode.js, Rust, Go, Python
DatabasePostgreSQL (general), TimescaleDB (time-series), ClickHouse (analytics)
CacheRedis, Memcached
API layerGraphQL (Apollo, Pothos), REST (Express, Fastify)
Message queueRedis Streams, Apache Kafka, RabbitMQ

Enhanced APIs: Beyond Basic RPC

Modern RPC providers offer enhanced APIs that eliminate the need for custom indexing in many common scenarios:

Token Balance APIs

Instead of calling each token contract individually, enhanced APIs return all token balances for an address in a single call.

ProviderMethodCoverage
Alchemyalchemy_getTokenBalancesERC-20 on all supported chains
MoralisgetWalletTokenBalancesERC-20 on 20+ chains
Covalent/balances_v2/ERC-20 on 200+ chains
HeliusgetAssetsByOwner (DAS API)SPL tokens on Solana

NFT APIs

ProviderCapabilitiesCoverage
AlchemyOwnership, metadata, sales history, rarityEthereum, Polygon, Solana
MoralisOwnership, metadata, transfers, trades20+ chains
SimpleHashCross-chain NFT data, marketplace aggregation30+ chains
HeliusDAS API (Digital Asset Standard) for SolanaSolana (compressed + regular NFTs)

Transaction History APIs

ProviderCapabilities
AlchemyAsset transfers, internal transactions, token transfers
CovalentFull transaction history with decoded logs
Etherscan APITransaction list, internal transactions, token transfers
HeliusParsed transaction history with human-readable labels (Solana)

When enhanced APIs replace custom indexing:

  • •Simple wallet apps (balance display, transaction history)
  • •NFT galleries and marketplaces (ownership, metadata)
  • •Portfolio trackers (multi-token, multi-chain balances)
  • •Basic analytics dashboards

When you still need custom indexing:

  • •Protocol-specific aggregations (TVL calculations, APY history)
  • •Complex relational queries (all users with positions in pool X that were opened before date Y)
  • •Real-time event processing (instant notifications on specific contract events)
  • •Cross-protocol analysis (tracking positions across multiple DeFi protocols)

Data Availability and Storage

Beyond reading blockchain state, many DApps need to store data that does not belong on-chain:

Decentralized Storage

SolutionBest ForPricingPermanence
IPFSNFT metadata, static assetsFree (self-hosted) or $5-$20/month (Pinata)Depends on pinning
ArweavePermanent data storage~$5 per GB (one-time)Permanent (200+ years design)
FilecoinLarge data storage~$0.01 per GB/monthMiner-incentivized
CeramicMutable data streams, user profilesFree tier availablePersistent with updates

Centralized Storage (for performance-critical data)

SolutionBest ForNotes
PostgreSQLIndexed blockchain data, user metadataMost common for DApp backends
RedisCaching, real-time data, session stateEssential for performance
MongoDBFlexible schemas, event logsGood for rapidly evolving data models
ClickHouseAnalytics, time-series dataExcellent for large-scale blockchain analytics

Infrastructure Architecture Patterns

Pattern 1: Minimal (Early-Stage DApp)

Frontend (Next.js on Vercel)
     |
Alchemy / Infura (RPC + Enhanced APIs)
     |
No custom indexing (use provider's enhanced APIs)

Cost: $0-$100/month
Best for: MVPs, simple token/NFT apps, wallet interfaces
Limitations: No custom queries, limited to provider's API capabilities

Pattern 2: Standard (Growth-Stage DApp)

Frontend (Next.js on Vercel)
     |
     +-- Alchemy (RPC + Enhanced APIs)
     |
     +-- The Graph (custom subgraph for protocol-specific queries)
     |
     +-- Redis (caching layer)

Cost: $100-$1,000/month
Best for: DeFi dashboards, marketplaces, analytics apps
Limitations: Subgraph indexing delay (1-10 seconds), GraphQL-only queries

Pattern 3: Advanced (Production DeFi Protocol)

Frontend (Next.js, multi-region CDN)
     |
     +-- Alchemy / QuickNode (RPC, dedicated tier with SLA)
     |
     +-- The Graph (historical data, protocol analytics)
     |
     +-- Custom indexer (real-time events, complex aggregations)
     |       |
     |       +-- PostgreSQL (structured data)
     |       +-- Redis (cache + real-time state)
     |       +-- Kafka (event stream processing)
     |
     +-- Chainlink Automation (keeper tasks)
     |
     +-- Forta / OZ Defender (monitoring + alerts)

Cost: $2,000-$10,000+/month
Best for: Production DeFi protocols, high-volume trading apps, cross-chain applications
Capabilities: Sub-second data, custom aggregations, real-time monitoring, automated responses

Pattern 4: Multi-Chain (Cross-Chain Application)

Frontend
     |
API Gateway (custom, routes to chain-specific backends)
     |
     +-- Ethereum backend (Alchemy + The Graph subgraph)
     +-- Solana backend (Helius + custom indexer)
     +-- Arbitrum backend (Alchemy + shared subgraph)
     +-- Base backend (Alchemy + shared subgraph)
     |
Unified database (PostgreSQL with chain-specific schemas)
     |
Cross-chain message relay (Wormhole / LayerZero / Chainlink CCIP)

Cost: $5,000-$20,000+/month
Best for: Cross-chain bridges, multi-chain DeFi aggregators, universal wallets

For complex infrastructure setups, browse infrastructure partners on The Signal or book a consultation with our team to get matched with the right infrastructure specialists for your architecture.

Performance Optimization Best Practices

1. RPC Call Optimization

  • •Batch requests: Use JSON-RPC batching to combine multiple calls into a single HTTP request
  • •Multicall contracts: Use Multicall3 to batch on-chain reads into a single RPC call (reading 100 token balances in one call instead of 100 separate calls)
  • •Caching: Cache RPC responses in Redis with appropriate TTLs (block data: cache until new block; static data: cache indefinitely)
  • •Connection pooling: Reuse HTTP/WebSocket connections to reduce latency overhead

2. Indexer Performance

  • •Selective indexing: Only index the events and contracts your application needs
  • •Batch processing: Process events in batches rather than one at a time
  • •Read replicas: Use PostgreSQL read replicas to scale read-heavy workloads
  • •Materialized views: Pre-compute complex aggregations for frequently accessed data

3. Frontend Optimization

  • •Optimistic updates: Update the UI immediately on transaction submission, then reconcile with on-chain state
  • •Progressive loading: Load critical data first (balances, positions), then secondary data (history, analytics)
  • •WebSocket for real-time: Use WebSocket subscriptions for price feeds and transaction confirmations instead of polling
  • •Smart caching: Cache static data (token metadata, contract ABIs) aggressively; cache dynamic data (balances, prices) with short TTLs

Cost Optimization Strategies

1. RPC Cost Reduction

StrategySavingsImplementation
Response caching (Redis)40-60% fewer RPC callsCache balances, prices with TTL
Multicall batching80-95% fewer callsUse Multicall3 for read operations
Websocket subscriptions50-70% vs pollingReplace polling with subscriptions for real-time data
Provider tiering20-40% cost reductionUse free tier for non-critical calls, paid tier for production
Request deduplication10-30% fewer callsDeduplicate identical concurrent requests

2. Indexing Cost Reduction

StrategySavingsImplementation
Selective event indexing50-80% less data processedOnly index events your app actually queries
Ponder (self-hosted)100% vs hosted indexing feesRun alongside your app, PostgreSQL backend
Shared subgraphsSplit costs across multiple appsUse community-deployed subgraphs for common protocols
Time-bounded queries30-50% less data storedOnly store recent data, archive older data to cold storage

Security Considerations for Web3 Infrastructure

RPC Security

  • •Never expose RPC endpoints to the client: Proxy all RPC calls through your backend to prevent API key leakage and rate limit abuse
  • •Use separate keys for frontend and backend: Different rate limits, monitoring, and access controls
  • •Implement request validation: Validate that incoming RPC requests are well-formed and within expected parameters
  • •Monitor for anomalies: Track RPC call patterns and alert on unusual spikes (may indicate an attack)
  • •Use HTTPS exclusively: Never send transactions over unencrypted connections

Indexer Security

  • •Validate indexed data: Cross-reference critical indexed data with direct RPC calls to prevent data poisoning
  • •Implement access controls: Not all indexed data should be publicly queryable
  • •Monitor indexer health: Alert if indexing falls behind the chain head by more than a few blocks
  • •Handle chain reorganizations: Your indexer must correctly handle reorgs (reverted blocks) to prevent displaying incorrect data

For a comprehensive view of security best practices, see our guides on smart contract audit costs and Web3 bug bounty programs, and explore security partners in our directory.

The Future of Web3 Infrastructure (2026 and Beyond)

Emerging Trends

  1. •

    Decentralized RPC networks: Projects like Lava Network, Pocket Network, and dRPC are building decentralized alternatives to centralized RPC providers, offering censorship resistance and geographic distribution.

  2. •

    Real-time indexing: The gap between block production and indexed data availability is shrinking. Solutions like Goldsky Streams and Envio HyperIndex offer sub-second indexing for many use cases.

  3. •

    ZK-proven data: Zero-knowledge proofs are being applied to historical blockchain data, enabling trustless verification without re-executing transactions. Axiom and Herodotus are leading this space.

  4. •

    Account abstraction infrastructure: ERC-4337 bundlers, paymasters, and entry point contracts are creating a new infrastructure layer for smart account wallets.

  5. •

    Modular data availability: As Ethereum's rollup-centric roadmap matures, data availability layers (Celestia, EigenDA, Avail) are becoming critical infrastructure components that DApp builders need to understand.

  6. •

    AI-powered infrastructure: Machine learning is being applied to RPC load balancing, MEV protection, and anomaly detection in blockchain data.

Frequently Asked Questions

Do I need to run my own blockchain node?

For most DApp builders, no. Managed RPC providers (Alchemy, Infura, QuickNode) offer better uptime, lower cost, and zero maintenance compared to self-hosted nodes. Consider self-hosting only if you need custom RPC methods, extreme data privacy, or process more than 100 million requests per month where self-hosting becomes cost-effective.

What is the difference between an RPC provider and an indexer?

An RPC provider gives you real-time access to the current blockchain state -- like checking a balance or submitting a transaction. An indexer processes historical blockchain data into structured databases, enabling complex queries like "show me all swaps on Uniswap in the last 24 hours sorted by volume." RPC calls are for real-time operations; indexers are for historical queries and aggregations.

How much does Web3 backend infrastructure cost?

For an early-stage DApp, $0-$100 per month using free tiers of RPC providers and enhanced APIs. For a growth-stage application, $100-$1,000 per month adding custom indexing (The Graph or Ponder) and caching (Redis). For a production DeFi protocol, $2,000-$10,000+ per month with dedicated RPC tiers, custom indexing pipelines, monitoring, and automation.

Which indexing solution should I choose?

The Graph is the default choice for broad chain support and a decentralized data layer. Ponder is best for TypeScript developers who want local development with hot reloading. Goldsky and Envio are best for real-time data requirements. For complex, multi-source analytics, a custom indexing pipeline with PostgreSQL or ClickHouse provides the most flexibility.

How do I handle multiple blockchain networks?

Use a single RPC provider that supports all your target chains (Alchemy, QuickNode support 30-50+ chains). For indexing, deploy chain-specific subgraphs or use a unified API like Covalent that normalizes data across chains. Build a chain abstraction layer in your backend that routes requests to the appropriate chain-specific services.

What is the best RPC provider for Solana?

Helius and Triton are the top Solana-specific providers. Helius offers enhanced APIs (DAS API for NFTs, priority fee API, webhooks) with generous free tiers. Triton provides dedicated infrastructure for applications requiring the lowest latency. General providers like Alchemy and QuickNode also support Solana but with less specialized features.

How do I ensure my infrastructure is reliable?

Use multiple RPC providers with automatic failover (primary + backup). Implement health checks that verify response accuracy, not just availability. Set up monitoring and alerting for response times, error rates, and indexing lag. For critical applications, deploy infrastructure across multiple geographic regions and cloud providers.

What is a subgraph and how do I build one?

A subgraph is a custom data indexing specification for The Graph protocol. It defines which smart contract events to index and how to transform them into queryable entities. You write a GraphQL schema (data model), a manifest (which contracts and events to index), and mapping handlers (AssemblyScript functions that process events). The Graph Network then indexes your data and serves it via a GraphQL API.

Token Balance APIs
NFT APIs
Transaction History APIs
Data Availability and Storage
Decentralized Storage
Centralized Storage (for performance-critical data)
Infrastructure Architecture Patterns
Pattern 1: Minimal (Early-Stage DApp)
Pattern 2: Standard (Growth-Stage DApp)
Pattern 3: Advanced (Production DeFi Protocol)
Pattern 4: Multi-Chain (Cross-Chain Application)
Performance Optimization Best Practices
1. RPC Call Optimization
2. Indexer Performance
3. Frontend Optimization
Cost Optimization Strategies
1. RPC Cost Reduction
2. Indexing Cost Reduction
Security Considerations for Web3 Infrastructure
RPC Security
Indexer Security
The Future of Web3 Infrastructure (2026 and Beyond)
Emerging Trends
Frequently Asked Questions
Do I need to run my own blockchain node?
What is the difference between an RPC provider and an indexer?
How much does Web3 backend infrastructure cost?
Which indexing solution should I choose?
How do I handle multiple blockchain networks?
What is the best RPC provider for Solana?
How do I ensure my infrastructure is reliable?
What is a subgraph and how do I build one?

Share Article

XLI