BR Academy
0%
How It Works·Lesson 5 of 31·10 min

System Architecture & Data Flow

The concept

This lesson gives you a map of Hyperliquid's architecture you can keep referring back to as later lessons go deeper into individual pieces. At a high level, Hyperliquid is organized in two layers that work together rather than operating as separate, loosely connected systems.

HyperCore is the specialized trading engine: the on-chain central limit order book, the perpetuals and spot trading logic, and the state (balances, open orders, positions) that trading directly touches. This is the layer purpose-built for exchange-grade performance — it is where order matching and settlement, covered in a later lesson, actually happen. Because HyperCore is specialized rather than general-purpose, it can be optimized specifically for the kind of high-frequency state updates a trading venue needs, instead of being tuned for a mix of unrelated workloads.

The EVM-compatible application layer sits alongside HyperCore and gives developers a familiar, Ethereum-style environment to build applications that can read from and interact with HyperCore's order book and liquidity — lending protocols, structured products, trading tools, and anything else a developer might want to build on top of a fast, on-chain exchange. This is covered more in Module 5's ecosystem lessons; for now, the important point is that Hyperliquid is not just an exchange — it is an exchange plus a platform for building on top of it, which is why Module 5 can later discuss an entire ecosystem of builders rather than a single application.

Both layers run on the same underlying Layer-1 chain, secured by the same set of validators (this module's next lesson) and ordered by the same sequencing process. That shared foundation is what lets an application on the EVM layer interact with live exchange state without needing a separate bridge or oracle to "look over the wall" at HyperCore — a design choice meant to reduce the integration risk that comes from stitching together two entirely separate systems that have to trust each other's data secondhand. Contrast this with a design where a trading engine and an application layer live on two unrelated chains: every interaction between them would need its own bridge or messaging layer, each one an added point of delay and potential failure, covered generally in the cross-chain-bridge lesson later in this module.

Tracing the path of a single order end-to-end makes the pieces concrete:

  1. A trader's wallet signs and submits an order (say, a limit buy) to the network.
  2. The order reaches the network and is sequenced — placed into an agreed-upon order relative to every other incoming order, including other traders' orders arriving at nearly the same time.
  3. Validators process the sequenced orders and the matching engine checks the new order against the resting order book for a match.
  4. If a match occurs, the trade is executed and both sides' balances and positions are updated as part of the chain's state.
  5. That updated state is committed and becomes visible on-chain — viewable through a block explorer, the same way any blockchain transaction is.

Worked example

Trace one concrete order through these five steps: a trader wants to buy 1 unit of an asset at a specific limit price.

  • Step 1 (Submit): The trader's wallet signs the order — "buy 1 unit at price X" — and sends it to the network.
  • Step 2 (Sequence): The order arrives alongside other traders' orders submitted at nearly the same instant. The network's sequencing process (this module's next lesson covers exactly who does this and how) assigns it a definite position in the processing order — first-come, not "whoever has the fastest private connection to an exchange's matching engine," which is the opaque alternative on some centralized venues.
  • Step 3 (Match): The matching engine checks the order book for a resting sell order at or below price X. If one exists, the engine matches the two.
  • Step 4 (Settle): The buyer's balance of the quote asset decreases, the seller's balance of the quote asset increases, and both parties' position in the traded asset updates accordingly — all as part of the chain's recorded state, with no company's internal ledger involved.
  • Step 5 (Confirm): The trade and updated balances become visible on-chain, the same transaction anyone could independently verify.

(See assets/order-lifecycle-diagram.png — alt text: "Five labeled boxes in sequence: Submit, Sequence, Match, Settle, Confirm, with an arrow showing one order flowing through each stage from a trader's wallet to on-chain state.")

Now extend the same trace to show where the EVM layer could plug in without disturbing any of the five steps: imagine a lending application built on the EVM layer that wants to know a trader's current position size before extending credit against it. Because HyperCore's state is part of the same underlying chain, that application can read the trader's position directly, as it exists after Step 4, rather than waiting on a bridge or an external price feed to relay the information secondhand. This is the concrete benefit of the two-layer design mentioned in the concept section above: shared state, read directly, not relayed.

Exercise

Without looking back at the lesson, redraw this five-step flow from memory using only boxes and arrows — on paper or in a simple text list. Then compare your redrawn version against the five steps above. Most learners forget "sequence" as a distinct step from "submit," treating order arrival and order processing as the same moment; if you did too, make a note to revisit the next lesson on validators and sequencers closely, since the difference between the two is the entire point of that lesson. Then add a sixth box to your diagram representing an EVM-layer application reading HyperCore's updated state after Step 4, and label the arrow connecting it "shared chain state, not a bridge."

Recap

  • Hyperliquid runs two integrated layers on one chain: HyperCore (the order book and trading engine) and an EVM-compatible layer for building applications on top of it, sharing state directly rather than through a bridge.
  • A single order's life cycle has five distinct stages — submit, sequence, match, settle, confirm — and conflating "submit" with "sequence" is the most common gap in a first read of the architecture.
  • This five-stage map, plus the shared-state connection to the EVM layer, is the reference point for the next three lessons, on validators and sequencers, order matching, and cross-chain bridging.

Resources

  • Hyperliquid official documentation — the primary source for HyperCore and EVM-layer architecture details: https://hyperliquid.gitbook.io/hyperliquid-docs
  • Ethereum.org's documentation on the EVM — background on what "EVM-compatible" means for developers: https://ethereum.org/en/developers/docs/evm/
  • Lesson: Validators, Sequencers and Consensus (next in this module) — explains the "sequence" step in depth
  • Module 5: Core Applications — shows how the EVM layer's shared-state design is used by builders in practice

Privacy Preference Center

Necessary

Advertising

Analytics

Other