Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Comparisons

Pull-Based Oracle Architecture vs Push-Based Oracle Architecture

A technical analysis comparing on-demand data fetching (pull) against continuous data broadcasting (push) for blockchain oracles. This guide examines gas cost implications, latency, security models, and optimal use cases for DeFi lending protocols, helping CTOs and architects make an informed infrastructure choice.
Chainscore © 2026
introduction
THE ANALYSIS

Introduction: The Oracle Update Dilemma

Choosing between pull-based and push-based oracle architectures is a foundational decision impacting protocol security, cost, and performance.

Pull-Based Oracle Architecture excels at cost efficiency and data freshness for low-frequency, user-initiated updates. In this model, the protocol's smart contract (e.g., a lending pool) requests data from an oracle like Chainlink only when a user transaction requires it, paying the gas fee for that specific update. This is ideal for functions like one-off price checks for a liquidation, as it avoids paying for unnecessary, continuous data streams. Protocols like MakerDAO historically used this model for its predictable, on-demand cost structure.

Push-Based Oracle Architecture takes a different approach by having oracles (e.g., Pyth Network, Chainlink Data Streams) continuously push updates to on-chain contracts. This results in a trade-off: higher baseline operational costs for the oracle provider, but sub-second latency and guaranteed data availability for downstream protocols. High-frequency trading DEXs like Synthetix Perps and Drift Protocol rely on this model, where TVL security depends on prices being updated hundreds of times per minute, not just upon user request.

The key trade-off: If your priority is minimizing operational costs for infrequent data needs (e.g., an NFT lending protocol), choose a pull-based system. If you prioritize ultra-low latency and high-frequency data for real-time applications (e.g., perpetual futures, options), a push-based architecture is non-negotiable. The evolution of hybrid models, like Chainlink's CCIP, further blurs these lines, offering configurable update triggers.

tldr-summary
Push vs Pull Oracle Architecture

TL;DR: Core Differentiators

A high-level comparison of the two dominant oracle data delivery models, highlighting their core trade-offs in cost, latency, and complexity.

01

Push-Based (Publish/Subscribe)

On-chain data is proactively pushed by oracles. Nodes like Chainlink Data Feeds update on-chain aggregator contracts at predefined intervals or thresholds. This model prioritizes data freshness and predictability for high-frequency applications.

Key Advantage: Guaranteed, low-latency updates (e.g., every block or sub-minute). This is critical for perpetual futures DEXs (GMX, Synthetix) and lending protocols (Aave, Compound) that need real-time price feeds for liquidations.

02

Push-Based Trade-off

Higher operational cost and potential for stale data during low volatility. Oracles incur continuous gas costs to push data, which is paid by the protocol or passed to users. If update intervals are too long, prices can lag during market spikes.

This matters for: Protocols with tight gas budgets or assets with low trading volume. It creates a reliability vs. cost optimization challenge for developers.

03

Pull-Based (On-Demand)

Data is fetched on-demand by the consuming contract. Protocols like API3 dAPIs or Pyth's Pull Oracle store signed data off-chain (or on a low-cost L2). A user transaction triggers a data fetch via a verifiable pull, paying the gas.

Key Advantage: Extremely gas-efficient for protocols and ideal for low-frequency data (e.g., sports scores, insurance triggers). This model excels for NFT lending (NFTfi), insurance (Nexus Mutual), and optimistic rollups where cost predictability is paramount.

04

Pull-Based Trade-off

Higher latency and UX complexity for end-users. The data retrieval adds latency (1-2 extra blocks) and gas cost to the user's transaction. This can degrade UX for time-sensitive actions.

This matters for: Retail-facing DeFi applications where user experience is critical. It introduces a latency vs. protocol efficiency trade-off, requiring careful design of front-end gas estimations.

HEAD-TO-HEAD COMPARISON

Pull-Based vs Push-Based Oracle Architecture

Direct comparison of key operational and economic metrics for oracle data delivery models.

MetricPull-Based (On-Demand)Push-Based (Publish/Subscribe)

Data Update Latency

~12-15 sec (per request)

< 1 sec (per update cycle)

Gas Cost Payer

End User / DApp

Oracle Network / Protocol

Real-Time Data Feeds

Ideal Use Case

Infrequent, Custom Queries (e.g., Proof of Reserves)

High-Frequency Markets (e.g., DEX, Lending)

Protocol Examples

Chainlink Functions, API3 dAPIs

Chainlink Data Feeds, Pyth Network

Infrastructure Overhead

Lower (No continuous updates)

Higher (Requires keeper networks)

PULL-BASED VS. PUSH-BASED ORACLE ARCHITECTURE

Gas Cost & Economic Analysis

Direct comparison of operational costs and economic models for on-chain oracle data delivery.

MetricPull-Based ArchitecturePush-Based Architecture

On-Chain Gas Cost (per update)

User pays (~50K-200K gas)

Protocol pays (~50K-200K gas)

Update Payment Model

Pay-per-query

Subscription / Staking

Data Freshness Control

User-controlled (on-demand)

Protocol-controlled (scheduled)

Gas Cost Predictability for User

Variable (per request)

Fixed / Zero (pre-paid)

Protocol Revenue Model

Transaction fee per pull

Staking rewards / Subscription fees

Ideal for High-Frequency Data

Example Protocols

Chainlink VRF, Pyth (on-demand)

Chainlink Data Feeds, UMA Optimistic Oracle

pros-cons-a
PULL-BASED VS PUSH-BASED ORACLES

Pull-Based Architecture: Pros and Cons

A technical breakdown of on-demand (pull) versus proactive (push) data delivery models, highlighting key trade-offs in cost, latency, and architectural complexity for DeFi protocols.

01

Pull-Based: Cost Efficiency

Pay-per-query model: Protocols like Chainlink's Any API or Pyth Network's pull oracle only incur gas costs when data is explicitly requested. This eliminates continuous on-chain update fees, making it ideal for low-frequency applications like governance votes, insurance claims processing, or NFT rarity checks where data is needed sporadically.

02

Pull-Based: Data Freshness Control

Deterministic data timing: The requesting contract controls exactly when an update occurs, guaranteeing data is fresh at the moment of execution. This is critical for time-sensitive liquidation engines or options expiry pricing where the exact block timestamp of the data point must be verifiable and on-demand.

03

Push-Based: Predictable Latency

Sub-second data availability: Systems like Chainlink Data Streams or Pyth's high-frequency push updates pre-write data to a low-latency cache (e.g., a dedicated oracle chain or L2). This provides sub-second finality for data, which is non-negotiable for perpetual DEXs, spot trading pairs, and money markets requiring real-time price feeds for liquidations.

04

Push-Based: Simplified Integration

Fire-and-forget consumption: Smart contracts simply read from a pre-populated on-chain data point. This reduces contract complexity, as there's no need to manage request/receive callbacks or handle request timeouts. It's the standard model for major DeFi bluechips (Aave, Compound) using Chainlink's push oracles for core price feeds, ensuring simplicity and reliability.

05

Pull-Based: Integration Complexity

Callback management overhead: Developers must implement a request-receive pattern (e.g., Chainlink's request-receive or Pyth's updatePriceFeeds pull), increasing smart contract size and gas costs for the initial call. This adds complexity for rapid prototyping and requires careful handling of request IDs and potential fulfillment failures.

06

Push-Based: Continuous Cost Burden

Fixed operational expense: Data providers bear the ongoing gas cost to update feeds on every block or at high frequency, which is passed to consumers via service fees. For niche assets or custom data feeds with low utilization, this can make push oracles economically unviable compared to a pull model.

pros-cons-b
Pull vs. Push Oracle Models

Push-Based Architecture: Pros and Cons

Key architectural trade-offs for on-chain data delivery, comparing proactive (Push) and on-demand (Pull) mechanisms.

01

Push-Based: Proactive Reliability

Guaranteed Data Delivery: The oracle network actively pushes updates to pre-defined contracts. This eliminates the risk of a smart contract failing due to missing data, which is critical for time-sensitive protocols like perpetual DEXs (e.g., GMX) or liquidation engines.

02

Push-Based: Lower On-Chain Latency

Sub-Second Finality for Consumers: Once a data point is updated on-chain, all dependent contracts have immediate access. This minimizes the execution lag for applications like algorithmic stablecoins (e.g., MakerDAO's PSM) that require near-instant price awareness to maintain peg stability.

03

Pull-Based: Cost Efficiency

Pay-Per-Use Gas Model: Contracts only incur gas costs when they explicitly request data. This is optimal for infrequent or user-initiated actions, such as NFT rarity checks, yield optimizer harvest functions, or insurance claim settlements, where data is not needed continuously.

04

Pull-Based: Architectural Simplicity & Control

Explicit Request Flow: Developers have fine-grained control over when and what data is fetched, simplifying state management and audit trails. This model is favored by protocols like Uniswap v3 for TWAP oracle updates, where price accumulation is triggered by user trades.

05

Push-Based: Cons - Ongoing Gas Overhead

Fixed Cost Regardless of Usage: The oracle bears the gas cost for all updates, which must be amortized across users via service fees. For low-frequency data feeds (e.g., a weekly CPI index), this can become economically inefficient compared to a pull model.

06

Pull-Based: Cons - User Experience Friction

Added Latency & Complexity for End-Users: Requiring a user's transaction to initiate a data pull adds steps and can fail if the oracle call reverts. This creates a poor experience for DeFi aggregators or dApps aiming for single-transaction composability.

CHOOSE YOUR PRIORITY

Decision Framework: When to Use Which

Pull-Based (On-Demand) for DeFi

Verdict: Preferred for high-value, low-frequency updates. Strengths: Superior security model. Data is fetched only when a user transaction triggers it, eliminating stale data risk for critical functions like liquidations or settlement. This deterministic cost model (user pays) is ideal for protocols like Aave or Compound where oracle updates are event-driven. Trade-offs: Higher per-update latency (user must wait for fetch) and gas cost for the end-user. Not suitable for perpetuals or price feeds that must be continuously available.

Push-Based (Publish-Subscribe) for DeFi

Verdict: Essential for high-frequency data and derivatives. Strengths: Ultra-low latency and constant data availability. Protocols like dYdX or GMX for perpetuals require sub-second price updates that only a push model (e.g., Pyth Network, Chainlink Data Streams) can provide. The protocol subsidizes update costs, creating a smoother UX. Trade-offs: Higher operational overhead and protocol-side costs. Relies on robust relayers and liveness assumptions. Stale data risk exists if the update mechanism fails.

verdict
THE ANALYSIS

Final Verdict and Strategic Recommendation

Choosing between pull-based and push-based oracles is a foundational decision that dictates your protocol's cost structure, latency profile, and security model.

Pull-Based Architecture excels at cost efficiency and decentralization because data is only fetched on-demand by users. This eliminates continuous gas expenditure for the oracle provider, allowing for a more permissionless and censorship-resistant network of node operators. For example, Chainlink's Data Streams on Arbitrum can deliver low-latency price updates with sub-second finality, but the cost is incurred by the end-user's transaction, making it ideal for high-frequency, user-initiated actions like perps trading on GMX or Aave.

Push-Based Architecture takes a different approach by pre-emptively updating on-chain data at regular intervals. This results in superior latency and reliability for critical, time-sensitive functions but introduces ongoing operational costs for the oracle service. Protocols like Pyth Network utilize this model, pushing price updates to Solana and Sui in ~400ms, which is non-negotiable for decentralized exchanges (DEXs) like Jupiter that require near-instantaneous, guaranteed price feeds for liquidations and swaps without user initiation.

The key trade-off is between operational cost and guaranteed latency. If your priority is minimizing protocol-side operational expenses and maximizing decentralization for less time-critical data (e.g., NFT floor prices, yield rate oracles), choose a Pull-Based system. If you prioritize sub-second data freshness and predictable performance for core financial logic where milliseconds matter (e.g., money markets, options, or high-frequency DEXs), and can absorb the protocol's continuous gas costs, a Push-Based oracle is the strategic choice.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team