⚡2,000,000 Transactions per Second
Hyperledger Fabric is a flexible and scalable framework for building blockchain networks, which organizes the peer infrastructure using three types of nodes: orderers, endorsers, and commitment peers. These components work together to maintain the chain of operations and consensus. However, more interesting than the standard concept is the specific architecture of Fabric's implementation, which allows it to achieve, for example, 2 million transactions per second.
By default, at least one organization is created in Hyperledger Fabric, capable of creating an unlimited number of peers. These peers can interact with each other through channels (by default, interaction goes through a configuration channel), which functionally act as separate blockchains. Channels allow for the creation of multiple independent and parallel chains, each of which has its own endorsers, orderers, and committing peers.
Peer Infrastructure Structure
Endorsers: verify transactions before they are sent to the orderers and confirm the fulfillment of conditions (endorsement policies).
Orderers: receive transactions from the endorsers and arrange them in a sequential queue for further processing.
Commitments: record the results, performing final validation and committing them to the blockchain.
This architecture is complemented by channel tools, which are functionally separate blockchains. Channels allow for the creation of multiple independent and parallel chains, each with its own endorsers, orderers, and commitment peers.
Opportunities for Increasing the Efficiency of New Projects
Let's assume we have 100 different organizations, each deploying its own nodes. These nodes can support from one to many channels, allowing for a broad distribution of peers across these channels. Such a structure provides the opportunity to create an advanced infrastructure "out of the box" with high non-functional requirements such as high TPS (transactions per second) and low latency. This significantly simplifies access to reliable validators for new projects integrating into the ecosystem.
How to Achieve 2,000,000 Transactions per Second
The main approach consists of sharding by creating multiple channels and distributing nodes among them:
Number of channels: In HLF, a large number of channels can be easily created. For example, let's consider 2,000 channels.
Transactions in one channel: Up to 1,000 TPS (transactions per second) can be achieved in one channel.
Using a simple formula by multiplying the number of channels by the maximum number of transactions in each:
Total TPS = Number of Channels * TPS per Channel
We get:
2,000 * 1000 = 2,000,000 TPS
This is how theoretical performance of 2 million transactions per second is achieved across the entire network, not just a single channel.
Advantages and Adaptation
Technological advancements allow for parallel processing, scaling the infrastructure without the need to rewrite existing code. Hyperledger Fabric can be adapted for dynamic load changes using the current organizational and channel structures.
The presence of a Smart BFT consensus in version 3.0 opens new perspectives for transforming private networks into more flexible structures, ready to operate in public spaces, making Hyperledger Fabric a universal solution for industrial and business needs as well as public user demands.
This gives us the flexibility and ability to achieve exceptional performance indicators without significant changes in the structure and software implementation of the network, working towards achieving public and scalable next-generation networks.
Last updated