Skip to main content
Other Assets

Layer 2s and scaling

Pomegra Learn

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

📄️ Rollups: The Modern Scaling Solution

Rollups represent one of the most promising approaches to Ethereum scalability, bundling hundreds or thousands of transactions into a single batch and submitting that batch to the main chain. This elegant solution preserves the full security guarantees of the base layer while dramatically reducing transaction costs and increasing throughput. Understanding rollups is fundamental to grasping how modern blockchain scaling works and why they've become the dominant path forward for layer 2 solutions.

📄️ Optimistic Rollups Explained

Optimistic rollups represent the first production-ready scaling solution for Ethereum, operating on a deceptively simple principle: assume everything is correct until proven otherwise. Rather than cryptographically proving every transaction, optimistic rollups leverage an incentive structure where anyone can challenge fraudulent batches, with economic penalties ensuring honest behavior. This approach trades off proof computation for simplicity, lower latency, and full EVM compatibility, making it the dominant scaling solution in production today.

📄️ Zero-Knowledge Rollups

Zero-knowledge rollups (zk-rollups) represent the cutting edge of Ethereum scaling, using cryptographic proofs to verify transaction correctness rather than economic incentives. By generating a mathematical proof for every batch of transactions, zk-rollups achieve faster finality, enable more aggressive batching, and maintain security without requiring challengers or waiting periods. While more computationally intensive than optimistic rollups, zk-rollups are emerging as the longer-term solution for scaling, with recent breakthroughs making them practical for production use.

📄️ Arbitrum: Optimistic Rollup Guide

Arbitrum represents the most mature and widely adopted optimistic rollup for Ethereum, demonstrating that layer 2 scaling can achieve significant throughput improvements, lower costs, and substantial ecosystem growth while maintaining strong security guarantees. Built by Offchain Labs and deployed in 2021, Arbitrum One processes billions of dollars in value and has attracted hundreds of applications from major protocols to emerging projects. Understanding Arbitrum is essential for grasping how modern Ethereum scaling works in practice and the engineering choices that make production rollups successful.

📄️ Optimism: Ethereum Scaling Guide

Optimism stands as one of the two most significant Ethereum layer 2 solutions, distinguished by its unwavering focus on Ethereum alignment and simplicity in design. Rather than introducing novel extensions like Arbitrum's ArbOS, Optimism pursues EVM equivalence—making itself as close as possible to Ethereum—prioritizing developer familiarity and protocol transparency over feature expansion. Launched in 2021 and refined through multiple iterations, Optimism has established itself as the optimal choice for applications prioritizing Ethereum compatibility and those seeking a layer 2 that closely mirrors Ethereum's execution model.

📄️ StarkNet and Cairo

StarkNet represents a fundamentally different approach to Ethereum scaling, built on zero-knowledge proofs and the Cairo programming language rather than optimistic execution or EVM compatibility. Developed by StarkWare, StarkNet uses STARKs (Scalable Transparent Arguments of Knowledge) to prove transaction correctness, eliminating the need for fraud proofs or challenge periods while providing cryptographic certainty that transactions are valid. Cairo, StarkNet's custom language designed specifically for efficient proving, enables developers to write provable code but requires learning a new execution model, representing a trade-off between scalability and developer experience that contrasts sharply with EVM-compatible rollups.

📄️ zkSync Guide

zkSync stands as a production-grade zero-knowledge rollup that successfully balances EVM compatibility with cryptographic proof generation, demonstrating that practical zk-rollups can achieve meaningful adoption while maintaining developer familiarity with Solidity and Ethereum tooling. Built by Matter Labs and deployed to mainnet in 2020, zkSync combines SNARK proofs with careful circuit design to achieve substantial cost reductions and improved throughput. Unlike StarkNet's radically different execution model, zkSync pursues EVM compatibility through bytecode compilation and circuit interpretation, making it an attractive choice for projects seeking zk-rollup scalability without complete development model changes.