Layer 2s and scaling
Layer 2s and scaling
The fundamental constraint facing Bitcoin, Ethereum, and most blockchains is throughput. Bitcoin processes roughly seven transactions per second; Ethereum, roughly 13–15. Visa handles 24,000 transactions per second at peak, and the financial system settles far more than that daily. For cryptocurrencies to function as general-purpose payment or settlement networks, they must solve the scalability trilemma: how to achieve security, decentralization, and high throughput simultaneously.
The answer, pursued aggressively across the industry, is to move computation and settlement off the mainchain while keeping the security guarantees of the mainchain intact. These off-chain or "Layer 2" systems have become the primary mechanism through which Ethereum and other networks achieve application-grade throughput. Understanding how they work—and their tradeoffs—is essential for anyone evaluating a blockchain platform or using one in production.
Layer 2 solutions fall into several families: payment channels (typified by Bitcoin's Lightning Network), sidechains (independent chains that periodically settle to the mainchain), plasma (a design for scalable exits), and rollups (the dominant category today). Rollups further divide into optimistic rollups, which assume batches are valid unless proven otherwise, and zero-knowledge (ZK) rollups, which include cryptographic proofs of correctness in every batch. Each family makes different security and usability tradeoffs. Optimistic rollups like Arbitrum and Optimism prioritize developer simplicity—they run the Ethereum Virtual Machine unchanged—but require a fraud-proof window (typically one to seven days) before deposits are irreversible. ZK rollups like zkSync and StarkNet validate every batch with a proof, enabling faster finality, but require significantly more engineering complexity and currently support fewer applications out of the box.
Bridges—the infrastructure that transfers assets between Layer 2 networks and the mainchain—are critical to usability but introduce their own security risks. A bridge is ultimately a piece of code that locks assets on one chain and mints representations on another; if that code is compromised or its validators are malicious, user funds can vanish. Several major breaches have occurred on bridges, motivating ongoing research into verifiable, light-client-based designs.
Fees on Layer 2s drop dramatically relative to the mainchain—often by 10–100x, depending on the network and current congestion. This cost reduction unlocks use cases that are economically infeasible on mainnet: frequent updates, granular transactions, and applications that simply would not work at $5–50 per transaction. Yet Layer 2s introduce new complexity in applications: users must bridge assets, learn new interfaces, and accept shorter settlement windows (in the case of optimistic systems) or different security assumptions (in the case of sidechains). The industry's focus is now on improving Layer 2 UX, enabling seamless cross-Layer 2 movement, and ensuring that security properties are not lost in the push for speed.
The scalability problem and design space
Why can't blockchains just increase block size or reduce block time? What constraints limit throughput on the mainchain, and how do Layer 2 architectures relax them?
Production Layer 2 networks
Which Layer 2 networks have moved beyond testnet, achieved meaningful adoption, and enabled real economic activity? What do Arbitrum, Optimism, zkSync, and Polygon offer developers and users?
Articles in this chapter
📄️ The Blockchain Scalability Problem
The blockchain scalability problem: the fundamental limits that stop blockchains from processing transactions at real-world speeds, and why it matters.
📄️ What are Layer 2 Blockchains?
Understanding Layer 2 solutions and how they enable faster, cheaper cryptocurrency transactions while maintaining blockchain security.
📄️ Payment Channels Basics
Understanding how payment channels enable instant cryptocurrency transactions between two parties with blockchain security and minimal on-chain footprint.
📄️ Lightning Network: Bitcoin's Layer 2
How the Lightning Network enables instant Bitcoin payments at scale through routed payment channels, turning a settlement layer into practical money.
📄️ Plasma: An Ethereum Scaling Solution
Plasma explained: an Ethereum layer 2 design that processes transactions off-chain, using fraud proofs and Merkle trees to preserve security.
📄️ Sidechains vs Layer 2s
Sidechains vs layer 2s: how their security models differ and why the distinction matters when evaluating cryptocurrency scaling solutions.
📄️ Rollups: The Modern Scaling Solution
How rollups scale Ethereum by bundling thousands of transactions into one batch on the main chain, cutting costs while keeping base-layer security.
📄️ Optimistic Rollups Explained
How optimistic rollups scale Ethereum by assuming transactions are valid unless challenged, using fraud proofs and economic penalties to keep it honest.
📄️ Zero-Knowledge Rollups
How zero-knowledge rollups use cryptographic proofs to verify every batch, delivering faster finality and security without challengers or waiting periods.
📄️ Arbitrum: Optimistic Rollup Guide
Arbitrum explained: the most mature optimistic rollup for Ethereum, built by Offchain Labs in 2021, offering lower costs and higher throughput securely.
📄️ Optimism: Ethereum Scaling Guide
Optimism explained: the Ethereum layer 2 focused on EVM equivalence and simple design, prioritizing developer familiarity and protocol transparency.
📄️ StarkNet and Cairo
StarkNet and Cairo explained: StarkWare's zero-knowledge rollup that uses STARK proofs to verify transactions, with no fraud proofs or challenge periods.
📄️ zkSync Guide
zkSync explained: Matter Labs' zero-knowledge rollup live since 2020, pairing SNARK proofs with EVM compatibility for Solidity developers and tooling.
📄️ Polygon: Sidechain Ecosystem
Understand Polygon's sidechain architecture, how it achieves Ethereum scalability, and its role in the multi-layer blockchain ecosystem.
📄️ Cross-Layer Bridges and Interoperability
Understand how bridges enable asset movement between Layer 2 solutions and Ethereum, and the security implications of different bridge designs.
📄️ Fees on Layer 2 Networks
Analyze how Layer 2 solutions reduce fees, their fee structures, and the economics driving transaction costs across different scaling implementations.
📄️ Security Model of Layer 2s
Examine the security assumptions and guarantees of different Layer 2 solutions and how they maintain cryptographic and economic security.
📄️ The Future of Blockchain Scaling
Explore emerging scaling solutions and the long-term evolution of blockchain architecture toward multi-layer, sustainable throughput increases.