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

  • The main culprit of China's 43 billion yuan illegal money laundering case was arrested in the UK, involved in the UK's largest Bitcoin money laundering case

    Local time in the UK, Qian Zhimin appeared in Westminster Magistrates' Court for the first time under the identity of Yadi Zhang. She was accused of obtaining, using or possessing cryptocurrency as criminal property from October 1, 2017 to this Tuesday in London and other parts of the UK. Currently, Qian Zhimin is charged with two counts of illegally holding cryptocurrency. Qian Zhimin is the main suspect in the Blue Sky Gerui illegal public deposit-taking case investigated by the Chinese police in 2017, involving a fund of 43 billion yuan and 126,000 Chinese investors. After the case was exposed, Qian Zhimin fled abroad with a fake passport and held a large amount of bitcoin overseas. According to the above Financial Times report, Qian Zhimin denied the charges of the Royal Prosecution Service in the UK, stating that she would not plead guilty or apply for bail.

  • Nigeria’s Central Bank Denies Call to Freeze Crypto Exchange Users’ Bank Accounts

    In response to the news that "the Central Bank of Nigeria has issued a ban on cryptocurrency trading and requested financial institutions to freeze the accounts of users related to Bybit, KuCoin, OKX, and Binance exchanges," the Central Bank of Nigeria (CBN) stated in a document that the CBN has not officially issued such a notice, and the public should check the official website for the latest information to ensure the reliability of the news. According to a screenshot reported by Cointelegraph yesterday, the Central Bank of Nigeria has requested all banks and financial institutions to identify individuals or entities trading with cryptocurrency exchanges and set these accounts to "Post-No-Debit" (PND) status within six months. This means that account holders will not be able to withdraw funds or make payments from these accounts. According to the screenshot, the Central Bank of Nigeria has listed cryptocurrency exchanges that have not obtained operating licenses in Nigeria, including Bybit, KuCoin, OKX, and Binance. The Central Bank of Nigeria will crack down on the illegal purchase and sale of stablecoin USDT on these platforms, especially those using peer-to-peer (P2P) transactions. In addition, the Central Bank of Nigeria pointed out that financial institutions are prohibited from engaging in cryptocurrency transactions or providing payment services to cryptocurrency exchanges.

  • Universal verification layer Aligned Layer completes $20 million Series A financing

    Ethereum's universal verification layer Aligned Layer has completed a $20 million Series A financing round, led by Hack VC, with participation from dao5, L2IV, Nomad Capital, and others. The Aligned Layer mainnet is scheduled to launch in the second quarter of 2024. As the EigenLayer AVS, Aligned Layer provides Ethereum with a new infrastructure for obtaining economically viable zero-knowledge proof verification for all proof systems.

  • The total open interest of Bitcoin contracts on the entire network reached 31.41 billion US dollars

    According to Coinglass data, the total open position of Bitcoin futures contracts on the entire network is 487,500 BTC (approximately 31.41 billion US dollars).Among them, the open position of CME Bitcoin contracts is 143,600 BTC (approximately 9.23 billion US dollars), ranking first;The open position of Binance Bitcoin contracts is 109,400 BTC (approximately 7.07 billion US dollars), ranking second.

  • Bitcoin mining difficulty increased by 1.99% to 88.1T yesterday, a record high

    According to BTC.com data reported by Jinse Finance, the mining difficulty of Bitcoin has increased by 1.99% to 88.1T at block height 840,672 (22:51:52 on April 24), reaching a new historical high. Currently, the average network computing power is 642.78EH/s.

  • US Stablecoin Bill Could Be Ready Soon, Says Top Democrat on House Financial Services Committee

    The top Democrat on the U.S. House Financial Services Committee, Maxine Waters, has stated that a stablecoin bill may be ready soon, indicating progress towards a new stablecoin law in the U.S. before the elections. Waters has previously criticized a version of the stablecoin bill, but emphasized the importance of protecting investors and ensuring that stablecoins are backed by assets. Congressional movement on stablecoin legislation has recently picked up pace, with input from the U.S. Federal Reserve, Treasury Department, and White House in crafting the bill. The stablecoin bill could potentially be tied to a must-pass Federal Aviation Administration reauthorization due next month, and may also be paired with a marijuana banking bill.

  • Crypto mining company Argo mined 1,760 bitcoins last year and earned $50.6 million

    Crypto mining company Argo Blockchain has released its 2023 financial year performance report, which includes:

  • Crypto VC market hits 12-month high in March, with total investment exceeding $1 billion

    According to data from Cointelegraph, the cryptocurrency venture capital market continued to recover in March and April 2024. In March, 161 individual transactions were completed, setting a record in the past 12 months, with a total investment of more than $1 billion, an increase of 52% from the previous month. Although April has not yet ended, as of now, 90 transactions have been completed, attracting more than $820 million in investment.

  • Ethereum Layer 2 TVL has reached $39 billion

    L2BEAT data shows that Ethereum Layer2 TVL has reached $39 billion, with a 7-day increase of 6.66%.

  • Caixin: Mainland investors are currently not allowed to participate in the trading of Hong Kong virtual asset spot ETFs

    According to Caixin, the first batch of six virtual asset spot ETFs issued by Boshi International, Huaxia Fund (Hong Kong), and Jiashi International has been officially approved by the Hong Kong Securities Regulatory Commission. The goal is to be listed on April 30, 2024. It should be noted that mainland Chinese investors are currently not able to participate in the trading of these ETFs, despite the fact that they are first issued by Hong Kong companies under the umbrella of Chinese public funds.According to the product list on the Hong Kong Securities Regulatory Commission website, these six virtual asset spot ETFs were officially approved on April 23, 2024. The products are as follows: Jiashi Bitcoin Spot ETF (03439.HK), Jiashi Ethereum Spot ETF (03179.HK), Huaxia Bitcoin ETF (03042.HK), Huaxia Ethereum ETF (03046.HK), Boshi HashKey Bitcoin ETF (03008.HK), and Boshi HashKey Ethereum ETF (03009.HK).