Working with Layer 2
With the number of users growing on the Ethereum network, the network’s high gas fees and congestion are becoming a primary problem for DApps. Therefore, as the demand for Ethereum increases, the scaling problem has become a top priority. There are various types of Ethereum scaling solutions that help relieve pressure by expanding the Ethereum network’s capacity. There are two types of Ethereum scaling solutions, including Layer 1 and Layer 2. Layer-2 scaling has become a hot topic in the crypto industry recently.
We discussed many Layer-2 scaling solutions, such as state channels, sidechains, and rollups, including optimistic and zero-knowledge (ZK) rollups, in Chapter 2, Ethereum Architecture and Ecosystem and Chapter 4, EVM-Compatible Blockchain Networks .
The following diagram provides an overview of the various Layer-2 scaling solutions:
Figure 15.30 – Layer-2 scaling solutions
In the next section, we...