BR Academy
0%
The Ethereum Ecosystem·Lesson 23 of 33·10 min

Layer 2s and Scaling Solutions

This lesson covers why Ethereum's base layer deliberately keeps transaction throughput modest, and how Layer 2 networks scale the system without sacrificing the security guarantees covered earlier in this course.

Why Layer 1 stays modest on purpose. Every full node on Ethereum's base layer (Layer 1) independently verifies every transaction, as covered in Module 2 — this is exactly what makes the network's shared state trustworthy without relying on any single party. But it also means Layer 1's transaction throughput is constrained by what an ordinary node can realistically process and store; pushing throughput much higher would require more powerful (and more expensive, less accessible) hardware to run a node, which would reduce the number of people who can realistically participate in verifying the network — directly undermining decentralization. Ethereum's design deliberately accepts modest base-layer throughput to preserve broad, accessible participation in verification. This trade-off is often summarized as the "blockchain trilemma": a rough rule of thumb that decentralization, security, and scalability are difficult to maximize all three simultaneously, and that a design choice favoring one tends to come at some cost to another.

How Layer 2 rollups scale it instead. Rather than increasing Layer 1's own throughput, rollups execute transactions off the main chain — on their own separate network — and then periodically post a compressed summary of those transactions, plus a proof of their validity, back to Ethereum's Layer 1. This design lets rollups offer much lower fees and higher speed for everyday transactions, while still inheriting Layer 1's security for the ultimate record of what happened, since the compressed data and validity proof are what actually get verified and stored on the base chain.

Optimistic rollups. These assume every batch of transactions is valid by default, and only investigate further if someone submits a formal challenge within a defined dispute window (commonly measured in days). If a challenge proves a batch was invalid, it can be reverted and the party responsible penalized; if the dispute window passes with no successful challenge, the batch is treated as final. This approach is computationally simple but means withdrawals back to Layer 1 typically must wait out the full dispute window before being considered safe, unless a separate, faster liquidity mechanism is used.

Zero-knowledge (ZK) rollups. These attach a cryptographic proof of validity to every batch at the time it's submitted, rather than assuming validity and waiting for a possible challenge. The proof mathematically demonstrates the batch's correctness without requiring anyone to re-execute every transaction individually, which allows for faster finality on Layer 1 than the optimistic model's dispute-window approach, at the cost of more complex, computationally intensive proof generation.

The role of the sequencer. Most current rollups, whether optimistic or ZK, rely on a sequencer — the party responsible for receiving users' transactions, ordering them, and submitting the resulting batch back to Layer 1. Many rollups today use a single, centralized sequencer as a practical interim design, which is faster and simpler to operate than a fully decentralized alternative, but introduces a trust assumption distinct from Layer 1's own decentralized validator set: a centralized sequencer could, in principle, delay or reorder a user's pending transaction before it's included. This is a point covered further, and named explicitly as a real risk, in Module 6's lesson on technical risks.

Why this is central to Ethereum's own roadmap. Per the Ethereum Foundation's publicly stated roadmap, Ethereum pursues a "rollup-centric" scaling strategy: rather than dramatically increasing Layer 1's own transaction throughput, the plan centers on making Layer 1 an efficient, secure settlement and data layer for many rollups, each handling a large share of everyday transaction volume at much lower cost.

Worked Example

Comparing a transaction fee on Ethereum's Layer 1 to the fee for a similar transaction on a major Layer 2 network, using each network's own public fee tracker, typically shows a substantial difference — Layer 2 fees are routinely a small fraction of equivalent Layer 1 fees during normal conditions, since the rollup batches many transactions together before posting a single, shared proof and data package back to Layer 1, spreading that base-layer cost across many users' transactions at once.

Exercise

Write two or three sentences explaining, in your own words, why a Layer 2 can be cheaper and faster while still relying on Ethereum's Layer 1 for its ultimate security — referencing the role of the compressed data and validity proof posted back to Layer 1, and the trust assumption introduced by a centralized sequencer.

Recap

  • Ethereum's base layer keeps throughput modest deliberately, to preserve broad, accessible participation in independently verifying the network — a trade-off often summarized as the blockchain trilemma.
  • Rollups execute transactions off-chain and post compressed data plus a validity proof back to Layer 1, inheriting its security while offering lower fees and higher speed.
  • Optimistic rollups assume validity with a challenge window; ZK rollups attach a cryptographic proof upfront; both commonly rely on a sequencer that, when centralized, introduces its own interim trust assumption distinct from Layer 1.