Saturday, August 18, 2018

What is Hyperledger Fabric? Everything you should know about it

  Raj       Saturday, August 18, 2018
You might have heard about Hyperledger Fabric many times while doing research on Blockchain Technology. Here in this article I will provide detailed information about Hyperledger Fabric like What it actually is? How it works? and Advantages of Hyperledger fabric.

What is Hyperledger Fabric?

Hyperledger fabric is a Linux foundation's Hyperledger project or we can say that it is a blockchain framework which uses smart contracts to establish the trust between two parties.

Initially Hyperledger was launched by IBM but later on they decided to make it open source. So they decided to do partnership with one of the most reputed company who has expertise in managing open source systems, Linux foundation.

Before reading further you might be interested to read about Public VS Private Blockchain


How Hyperledger Fabric works?

Before i tell you the procedure let me explain about different peers in this technology.

A member (Organization) is responsible to set up their peers in blockchain network to participate. Here we can have different types of peers with different roles assigned to them.

Endorser Peer

Peer who validates the transaction invocation requests and executes smart contracts are known as Endorser Peer. After completing these two tasks Endorser can decide to approve or disapprove the transaction. 

Anchor Peer

Anchor peer is configured during channel configuration in the network. Anchor peer first receives messages or updates from order peer and then broadcast those messages to other peers.

Orderer Peer

Orderer peer is the central communication channel of the Hyperledger fabric. This peer is only responsible for maintaining consistent ledger across the entire network. It first creates blocks and delivers to other nodes. 

We have below two options to implement Orderer peer

  • Solo: Generally used for Development purpose and should not be used in production environment.
  • Kafaka: It is a messaging application which has high throughput fault tolerant feature. Kafaka is used in production environment of hyperledger fabric to implement orderer peer.

Steps of Hyperledger Fabric

  • First of all any participant raises transaction invocation request through client application
  • After that client application broadcasts this request to endorser peers in the network.
  • Now Endorser peer validates transactions and either approve or reject the transaction. Endorser peer send response back to client application that request is approved or not.
  • Once request is approved client application broadcasts the request to orderer peer so that orderer peer can convert the request into block and broadcast block to other peers in the network to update their ledger in hyper ledger fabric network.

Benefits of Hyperledger Fabric

  • Chaincode trust flexibility

Orderers and Endorsers are different and we can have different trust assumptions for them. So here we can say that if ordering process is not giving output as per our trust then also endorsing is different process and have different peers for that so we can still trust fully on endorsing process.
  • Confidentiality

In this architecture transaction information remains confidential among two parties only.
  • Scalability

As we all know that only Endorsers executes smart contracts so there is no need to install smart contracts in each and every node which really increase the scalability. 
  • Modular Architecture

Hyperledger Fabric provides modular architecture means we will have a flexibility of what we want to use and what we don't want to use. Some people call it plug and play but in simpler term we can say it provides us A la carte.

I hope you have liked this article and it is helpful to you. Do comment your views in comment box and share it with your friends.

Thanks for reading What is Hyperledger Fabric? Everything you should know about it

No comments:

Post a Comment