On this page
Blockchain Scaling: Layer 2s and Rollups
Public blockchains are secure and open, but they process transactions slowly and charge fees that rise sharply when demand spikes. Blockchain scaling is the effort to raise throughput and lower cost without giving up the security of the base chain. The dominant approach today is the layer 2 rollup.
Key Takeaways
- A base layer such as Ethereum limits how many transactions fit in each block, so when demand rises, gas fees climb until users are priced out.
- Layer 2 rollups execute transactions off the base chain, then post compressed batches back to it, sharing one settlement cost across hundreds of transactions.
- Rollups inherit the base chain's security by publishing their data on it, unlike sidechains that rely on their own separate validators.
- Scaling always trades something off; the honest debate is over which property (decentralization, cost, or speed) a design chooses to relax.
Key Takeaways
- A base layer such as Ethereum limits how many transactions fit in each block, so when demand rises, gas fees climb until users are priced out.
- Layer 2 rollups execute transactions off the base chain, then post compressed batches back to it, sharing one settlement cost across hundreds of transactions.
- Rollups inherit the base chain's security by publishing their data on it, unlike sidechains that rely on their own separate validators.
- Scaling always trades something off; the honest debate is over which property (decentralization, cost, or speed) a design chooses to relax.
What It Is
Blockchain scaling is the set of techniques that let a network handle more transactions per second at lower cost. The problem is often framed as the "scalability trilemma": a chain wants to be decentralized, secure, and scalable at once, and pushing hard on one tends to strain another.
A layer 1 (L1) is the base chain that provides final settlement and security, such as Ethereum or Bitcoin. A layer 2 (L2) is a separate system that runs on top of an L1, doing the heavy computation itself while leaning on the L1 for security and dispute resolution. A rollup is the leading L2 design: it "rolls up" many transactions into a single batch and posts that batch to the L1.
The Intuition
Think of the base chain as a small courtroom where every ruling is final and public, but only a few cases fit on the docket each day. Everyone wants their case heard, so they bid up the price of a slot. That bidding is what you feel as high gas fees.
A rollup is like a busy office that handles thousands of cases privately, then files one summary document with the court that records the outcomes. The court still holds the authoritative record, and anyone can challenge a false filing, but the expensive step of going before the judge happens once for the whole batch instead of once per case.
How It Works
A rollup runs its own execution environment where users transact cheaply and quickly. Periodically it compresses those transactions and posts the data to the L1, which is what lets anyone reconstruct the rollup's state and verify it. Two families differ in how they prove the batch is valid:
- Optimistic rollups assume batches are honest and allow a challenge window during which anyone can submit a fraud proof to reverse a bad batch.
- Zero-knowledge (ZK) rollups attach a cryptographic validity proof to each batch, so the L1 can confirm correctness immediately without a waiting period.
The cost of posting batch data to the L1 is the main expense. The 2024 introduction of blob transactions (EIP-4844) gave rollups a cheaper, temporary data lane on Ethereum, cutting L2 fees substantially. Sidechains, by contrast, do not post their data to the L1 and instead trust their own validator set, which is why they are usually not counted as true rollups.
Worked Example
Suppose a token swap costs $4.00 in gas if you execute it directly on the L1 during busy conditions.
Now route the same swap through a rollup. The rollup collects 500 transactions and posts them to the L1 as one batch. The L1 data cost for that batch is $100, so each transaction carries an amortized settlement cost of:
- $100 / 500 = $0.20 per transaction
Add the rollup's own execution fee of $0.05 per transaction, and the user pays:
- $0.20 + $0.05 = $0.25
Compared with $4.00 on the L1, that is a 16x reduction ($4.00 / $0.25 = 16). The saving comes entirely from sharing one fixed settlement cost across the whole batch. Double the batch to 1,000 transactions and the amortized settlement cost halves to $0.10, pushing the total to $0.15 and the saving to roughly 27x. Larger batches mean cheaper transactions, which is why rollups get cheaper as they get busier.
Common Mistakes
- Treating all layer 2s as equally secure. A true rollup posts its data to the L1; a sidechain does not. If the data never reaches the base chain, users are trusting a separate validator set, not the L1.
- Assuming instant withdrawals. Optimistic rollups impose a challenge window, often about seven days, before a withdrawal to the L1 finalizes. Fast "bridges" that skip this are third parties fronting the funds, with their own risk.
- Ignoring the sequencer. Most rollups today rely on a single operator (the sequencer) to order transactions. That is a centralization and censorship risk teams are still working to decentralize.
- Confusing higher throughput with unlimited capacity. Rollups still ultimately depend on L1 data space. When that space is scarce, L2 fees rise too.
Frequently Asked Questions
Q: What is blockchain scaling in simple terms? Blockchain scaling means increasing how many transactions a network can process and lowering the fee per transaction, without weakening the security or openness of the underlying chain.
Q: Why does blockchain scaling matter for fees? Base layers have limited block space, so users bid against each other and gas fees spike during demand. Scaling adds capacity, which relieves that competition and brings the per-transaction cost down.
Q: Is a layer 2 the same as a sidechain? No. A rollup layer 2 posts its transaction data to the L1 and inherits its security, while a sidechain runs on its own separate validators and does not settle to the base chain.
Q: Are optimistic and ZK rollups both secure? Both derive security from the L1, but differently. Optimistic rollups rely on a fraud-proof challenge window; ZK rollups rely on a validity proof verified immediately. ZK finalizes faster; optimistic designs are simpler to build.
Q: Does blockchain scaling remove all risk? No. Scaling shifts risk rather than erasing it, introducing sequencer centralization, bridge risk, and reliance on L1 data availability. Each design trades off decentralization, cost, or speed in its own way.
Sources
- Ethereum.org. "Scaling." https://ethereum.org/en/developers/docs/scaling/
- Ethereum.org. "Layer 2 Rollups." https://ethereum.org/en/layer-2/
- Buterin, Vitalik. "An Incomplete Guide to Rollups." https://vitalik.eth.limo/general/2021/01/05/rollup.html
- L2BEAT. "Scaling Overview." https://l2beat.com/scaling/summary
Disclaimer
This article is educational content only and is not financial advice. Nothing here is a recommendation to buy, sell, or hold any security. Consult a licensed advisor before making investment decisions.