Cointime

Download App
iOS & Android

Understanding the rivalry between Modular vs Monolithic Blockchains

Validated Individual Expert

A blockchain, as we all know, is a distributed database that allows for secure, transparent, and tamper-proof data sharing. But the numerous potential applications of blockchain technology have sparked a heated debate in the crypto community about the best way to scale blockchains.

If you have been paying apt attention to the space, you’ll frequently hear of new protocols launching with claims of X thousand transactions per second. However, if you investigate these claims further, you will discover that they are all theoretical. The majority of them fail upon launch.

To fully comprehend why we require systems capable of thousands of tps, we must first comprehend blockchain design. To do so, we must consider the rivalry between Monolithic and Modular designs.

It is said that there are key points of comparison in every rivalry. The rivalry between Modular and Monolithic blockchains in the world of blockchains can be boiled down to three key areas: scalability, throughput, and data availability. Each has its own set of features, capabilities, and applications.

Let’s take a closer look at these three areas to see how Modular and Monolithic blockchains compare.

What’s a monolithic blockchain?

Consider a country in which only the president is responsible for all aspects of government. A country with no checks and balances. Isn’t it terrifying?

That is a straightforward definition of a monolithic blockchain. It is a blockchain in which all sets of responsibilities are handled on a single layer without the use of third-party services.

A blockchain performs four main tasks or functions:

  • Consensus: agreement on the verifiability of data. How a blockchain decides which blocks are valid and should be added to the chain.
  • Data availability: The amount of block space available in each block. To verify the receipt of data that must be made available upon request.
  • Execution: A blockchain’s computation. That is the Tx speed/state transition speed. Commitment to state changes: Settlement (Finality).

The consensus layer is the beacon chain. It informs you of what is true. The data layer informs you of what has already occurred, storage. The execution layer informs you of what is going on, compute.

All these layers are very complex but…

…monolithic blockchains have all nodes and all hardware of the chain trying to do all these three things at once in the same spot.

It is a blockchain that combines the consensus mechanism, data availability layer, settlement layer, and execution layer into a single layer. Typically, settlement and execution are linked.

All key features or responsibilities of a blockchain system are addressed internally in a monolithic blockchain. They typically prioritize decentralization and security at the expense of scalability (optimizing one attribute of the blockchain and restricting others).

…on the other hand, we have modular blockchains.

What’s a modular blockchain?

Modular blockchains are blockchains that operate on the modularity principle. They typically handle a specialized set of duties (often off-chain) and then outsource them to one or more separate layers.

Instead of the blockchain performing all three functions simultaneously (consensus, data availability, and execution), it can divide them into different categories, with the different roles and responsibilities of network participants performing these functions separately.

In that case, the execution layer is decoupled from the bottom consensus and data availability layers, allowing nodes to execute transactions independently rather than performing all transactions to test validity within a limited space or block.

These distinct components/layers can be combined to achieve a variety of objectives. Similar to pluggable modules, they provide greater flexibility and portability. It enables developers to optimize the various blockchain components in order to create a complete system. They enable the launch of new blockchains by simply outsourcing security, much like current layer 2 solutions.

Let’s look at Rollups as an example.

They are a common type of modular blockchain. Rollups process transactions (transactions) and delegate consensus, data availability, and settlement to their parent chain.

Ethereum was the first to begin the transition to a sharded modular blockchain structure. The chain is sharded into multiple sub-chains, each of which is responsible for a portion of network activity. These shards can now decide whether to process transactions or store data.

Now that we’ve discussed the differences between monolithic and modular blockchains, let’s look at their benefits and drawbacks.

Benefits of monolithic blockchains:

  • Monolithic blockchains can enforce secure transactions on their own nodes.
  • Nodes observe transactions on the blockchain and validate them after reaching a consensus. This solves data issues when blockchain data is stored in multiple nodes.
  • Utility: If users continue to use the token, a monolithic blockchain can provide additional value in the long run.
  • They are simple to recognize and even simpler to implement and design.

Benefits of modular blockchain:

  • Scalability: Using modularity in blockchains increases scale without introducing unwholesome trust assumptions.
  • Ease of design
  • Ease of chain deployment: By leveraging modular designs, new blockchains can launch faster without having to worry about getting every aspect of the architecture correct.
  • Flexibility: Purpose-built modular chains provide more options for trade-offs and design implementations. A modular blockchain system, for example, may include modular chains focused on security and data availability, while others focus on execution.

Now, regardless of the significant benefits of both blockchains, there are always trade-offs when deciding between different approaches. Let’s take a look at the disadvantages.

Drawbacks of monolithic blockchains:

  • Inefficient execution: A node on a monolithic chain may occasionally need to re-execute transactions for validity verification, resulting in delays.
  • Resource limits: Node source limits, such as bandwidth and storage, can have an impact on blockchain efficiency.
  • Flexibility: Monolithic chains are rigid and cannot optimize for desired characteristics without sacrificing another.
  • Scalability: Monolithic chains use faster block times and larger block sizes to achieve higher throughput. This increases the hardware requirements for nodes while decreasing the number of those who can validate the chain, resulting in centralization and increased security risks.
  • Security and decentralization: Monolithic blockchains limit block times and block sizes to achieve high decentralization. This increases the number of validating nodes but reduces throughput. This is due to the fact that it processes transactions on every node.
  • State bloat: Storing transaction data on-chain causes the blockchain’s size to grow exponentially over time. This can increase node hardware requirements and harm decentralization.

Drawbacks of modular blockchains:

Even though modular blockchains solve various issues where monolithic blockchain lags behind, modular architecture comes with its own set of drawbacks.

  • Unlike monolithic blockchains, which execute each blockchain function in a single layer, modular chains may lack protection-related characteristics.
  • Complexity: It is often difficult to design without the involvement of expert operators due to their design complexity. Similarly, execution layers must require certain complex mechanisms, such as fraud proofs and validity proofs, that allow the security layer to enforce the validity of off-chain state transitions. Complex designs require complex mechanisms to function.
  • Security risk due to reliance on third-party validity set. Cannot guarantee their own security in the same way that monolithic blockchains can. If the security layer (which typically handles consensus and data availability) fails, the modular chain may fail.
  • Tokenomics: Due to the limited application of chain components, it is difficult to attract token value. For example, a layer purely focused on consensus and data availability will likely see less use for its utility token compared to an execution layer.

Further Comparative analysis

First, let’s recap the definition of modular vs monolith

  • Monoliths do everything within one protocol, making them self-sufficient (but also inefficient). Even when there is downtime due to overload, they do not allow for an outsourcing function.
  • Modular chains are specialized because they only do a subset of things within their protocol. Hence, they are not-self sufficient. They must be combined with another chain to function; they do not function on their own.

So to tell if a chain is modular or monolithic, simply ask: “Does it need to be combined with another chain to function?” Yes? → modular. No? → monolithic.

Keeping this recap in mind…

i. Does Arbitrum (or any rollup) have a modular or monolithic design?

Well, Arbitrum requires another chain to post data to and resolve fraud, otherwise, it simply does not work. Hence, it is modular.

ii. Is Ethereum modular or monolithic in nature?

It is monolithic. Rollups can be deployed on top of Ethereum (as can any L1), but rollups are not required for Ethereum to function. It should also be noted that once launched, Ethereum’s danksharding component will be modular.

iii. What about Avalanche and its subnets? Is it modular or monolithic?

Each subnet is a standalone blockchain. They don’t need another chain to work. Hence, it is monolithic. It is important to note that just because a subnet’s code is built with a modular software stack does not make it a modular protocol!!

The modular blockchain layout is significantly more flexible than the monolithic blockchain layout. It is intended to provide miners with features not available in the monolithic blockchain. When miners focus less on specific functions such as consensus, they are able to leverage the layout and create new blockchains more quickly, regardless of blockchain architecture.

It’s also worth noting that in modular blockchains, consensus and data availability (DA) are inextricably linked. They must always be present as a single component of the DA layer in order to provide an accurate chronology of events. These two elements must always be present.

Next, we must also address the scalability trilemma, which states that a blockchain can only prioritize two of three factors: scalability, decentralization, and security.

Assume we have three teams to demonstrate this. A, B, and C are the respective teams.

We have high TPS chains like Solana and Binance Smart Chain on team A, which sacrifice decentralization. On team B, we have chains like Cosmos that sacrifice security, and on team C, we have chains like Bitcoin and Ethereum which focus on decentralization and security and therefore lose out on scalability. They make a sacrifice in some way.

This is true for all monolithic blockchains, but the idea is that we can achieve all of these factors in a blockchain using a modular approach.

Typically, in a monolithic blockchain design, all four tasks are carried out on the same layer which can be inefficient as the chain scales. With modular blockchains, each task can be specifically performed by one layer while the remaining tasks are off-loaded to other layers.

By allowing layers to focus on their specific task they can be specialized to do their objective really well. This increases flexibility because you are no longer required to make certain concessions in order to fit within the constraints of a monolithic blockchain.

Now, let’s explain this point better, using the Ethereum network.

In a monolithic blockchain, there’s one single blockchain within one chain of blocks that progresses. Furthermore, all validators validate that single chain. In the Ethereum protocol, there’s a gigantic pool of validators, around 300,000.

We can use this pool of validators and distribute it later on when we get shards. Instead of having all of the validators validating a single monolithic blockchain — when we get shards, which are more chains and more block space — we can actually spread these validators out across many shards. So, instead of 300,000 validators validating a single chain, we can have 5,000 validators validating a single shard and then adding more and more shards that are all combined together.

This would increase the amount of block space available at L1 while maintaining decentralization. So the data layer is a history/storage layer that contains everything computed. The rollups will then use these shards as information storage and will settle on them. The first shard iteration will add approximately 18 times more data than the Ethereum L1. This means Ethereum will be approximately 18 times more scalable.

When you add roughly 18 times more scale to the Ethereum L1, it’s not 18 times more scalable on the rollups, it’s much, much more due to the compression in the rollups.

When a small amount of data is added to Ethereum’s L1, the L2s can then use orders of magnitude more data because they eventually compress it down to a very small package of data and settle that on the L1. As a result, one megabyte on the L1 becomes equivalent to one gigabyte of transactional data on the L2. When you linearly increase the number of shards on Ethereum, you exponentially increase the number of transactions rollups can process.

The more validators we have, the more capital we have to protect and secure the blockchain, and the more validators we have, the more shards we can create, which adds more block space, and creates a lot of scale along the L2s.

Conclusion:

The only way out of the scalability trilemma is through decentralization.

If you only optimize for scalability, as many alternate layers 1 do, you increase hardware and node requirements, reducing the number of network participants and thus losing decentralization. When you optimize for execution, those chains move very quickly and the blocks are added to the ledger very quickly, but the only computers that can keep up with these chains are extremely powerful ones. If your computer is slow, you will fall behind.

Roll-ups, such as zkr, optimistic, and the like, are examples of modular blockchain approaches that have become popular topics in the crypto space. Celestia is another example, with a specific focus on the data availability layer.

On the other hand, some examples of a monolithic approach include chains such as Bitcoin, Solana, and even Ethereum 1.0. (prior to recent upgrades).

Both monolithic and modular approaches, as demonstrated in this article, are effective in their own right. As a result, developers must decide which approach is best for their specific use case. For example, a DeFi app may prioritize security and thus choose a monolithic design to provide a stronger security posture. However, if that same application is to prioritize throughput and execution speed, a modular design may be best suited for their use case.

This demonstrates that both designs serve a purpose.

Comments

All Comments

Recommended for you

  • On-chain indexing service Subsquid completes financing of US$17.5 million, with participation from DFG and others

    Subsquid, a chain indexing service, announced the completion of a $6.3 million financing through the CoinList community. As of now, its total financing amount has reached $17.5 million, with participation from DFG, Hypersphere, Zee Prime, Blockchange, and Lattice. It is reported that its native token, SQD, is scheduled to be listed this Friday. The Subsquid SDK has been integrated with Google BigQuery, allowing developers to use Google's technology to analyze blockchain data and reduce the data costs of large-scale deployment in the blockchain and developer communities.

  • Optimism 2024 Q1 Report: The implementation of EIP-4844 reduces L1 submission costs by 99%

    Optimism has released its Q1 2024 report, which shows that the number of daily active addresses has reached 89,000 (a 23% increase compared to the previous period), and the daily transaction volume has increased to 470,000 (a 39% increase compared to the previous period). These indicators are slightly lower than the historical high point in Q3 2023.

  • US Secret Service seizes domain used to run cryptocurrency scam

    On May 17th, the US Secret Service seized a domain used for cryptocurrency trust fraud in a "pig-killing plate" scam. In the "pig-killing plate" scam, scammers contact victims through various means, including dating apps, social media websites, and even random text messages disguised as wrong numbers.

  • Peaq Completes $20 Million Fundraising via CoinList Launch

    Peaq, a Layer1 blockchain applicable for DePIN and machine RWA, announced on X platform that it raised $20 million through its native token Launch, which was launched on CoinList from May 9 to May 16. As of now, over 145,000 community members have completed over-subscriptions of over $36 million. The new funds will be used to accelerate the growth of the peqosystem and further consolidate various ecosystem and community plans.

  • LocalMonero to Shut Down in Six Months Amid Regulatory Pressure and Internal Factors

    LocalMonero, a peer-to-peer exchange for trading privacy coin Monero (XMR), has disabled all trades and will be taken down in six months, according to parent company AgoraDesk. The company cited a combination of internal and external factors for the decision, but did not provide specifics. The move follows a trend of P2P crypto trading platforms shutting down due to regulatory challenges, including LocalBitcoins and Paxful. LocalMonero's closure also comes amid pressure from regulatory authorities on privacy coins, with exchanges including Binance and Coinbase delisting tokens like Monero and Zcash.

  • French securities regulator issues new warning to Bybit

    The French securities regulator has issued a new warning to the cryptocurrency exchange Bybit, urging customers to make arrangements for the possibility that the platform may suddenly stop providing services to French customers. The Financial Markets Authority (AMF) stated in a notice on Thursday that the exchange is not registered as a Digital Asset Service Provider (DASP), and therefore is providing services illegally in France. Bybit has been blacklisted by the AMF since May 20, 2022 for illegal operations.

  • Why should I care about Lens Network as a writer/creator?

    Lens Protocol just announced its latest development: the Lens Network. It is an ambitious infrastructure building plan aiming at revolutionising the future of online social spaces. Through this effort, Lens aims to break the "walled garden", a troubling issue that plagues current social media networks, and make the future social spaces more open and fairer for billions of users online.

  • Gaming platform Param Labs completes $7 million financing, led by Animoca Brands

    Gaming platform Param Labs has completed a $7 million financing round, led by Animoca Brands with participation from Delphi Ventures and Cypher Capital. Param Labs aims to establish a gaming ecosystem managed by its native PARAM token, which is set to launch soon. The company's first game, "Kiraverse," is a multiplayer shooting game that allows players to earn money while playing.

  • Blockchain SaaS solution AfriDex completes $5 million Pre-Seed round of financing, led by Endeavor Ventures

    AfriDex, a blockchain software-as-a-service solution based in London, UK, announced the completion of a $5 million Pre-Seed round of financing with Endeavor Ventures leading the investment and African Crops Limited, Oldenburg Vineyards, and Hank Oberoi participating. AfriDex is currently focused on the agricultural market, providing comprehensive on-chain solutions to support and protect supply chain participants, utilizing blockchain technology to achieve traceability, frictionless payments, anti-fraud transactions, verified authentication, simplified tax and subsidy management. (finsmes)

  • Rugpull occurs on Ethereum with fake NOT tokens

    PeckShield has monitored that the fake token Notcoin (NOT) on Ethereum has dropped 100%. An address starting with 0xE0eB sold 1,645,040,633,338,481.95 NOT and exchanged it for 93.5 WETH (valued at $281,000 USD). Note: Rugpull tokens have the same name as legitimate tokens.