Deploying Hyperledger Fabric with AWS Blockchain Templates

Enterprise-grade blockchains which offer known peers, better security, and predictable transaction commits are now the norm. Hyperledger Fabric is a viable alternative which overcomes many of the drawbacks that have bedeviled the Ethereum framework.
Course info
Level
Intermediate
Updated
Nov 19, 2018
Duration
1h 49m
Table of contents
Description
Course info
Level
Intermediate
Updated
Nov 19, 2018
Duration
1h 49m
Description

This course demonstrates how to build, deploy and use Hyperledger Fabric networks on the AWS cloud. In this course, Deploying Hyperledger Fabric with AWS Blockchain Templates, you'll learn how to use Cloud Formation templates on AWS with Docker containers to quickly build Hyperledger Fabric networks to run chain code. First, you'll discover the Hyperledger umbrella of frameworks and tools and develop an understanding of the Hyperledger Fabric network which is comprised of peers with known identities. You'll see how Fabric's transaction lifecycle and consensus algorithm separates endorsing peers from committing peers and how this structure overcomes many of the drawbacks of Ethereum. Next, you'll learn the basic structure of a Fabric blockchain network on AWS and see how we can use AWS blockchain templates to quickly bring up a Fabric network on the AWS cloud. You'll connect to and work on this network from your local machine. Finally, you'll write chain code in the Golang programming language for a vehicle registry and see how we can invoke transactions on our blockchain using the command line interface. By the end of this course, you'll have a good understanding of how you can use AWS to build your own enterprise-grade blockchain networks and write chain code to update your Fabric blockchain.

About the author
About the author

A problem solver at heart, Janani has a Masters degree from Stanford and worked for 7+ years at Google. She was one of the original engineers on Google Docs and holds 4 patents for its real-time collaborative editing framework.

More from the author
Using PyTorch in the Cloud: PyTorch Playbook
Intermediate
2h 21m
Apr 25, 2019
Building Clustering Models with scikit-learn
Intermediate
2h 33m
Apr 24, 2019
More courses by Janani Ravi
Section Introduction Transcripts
Section Introduction Transcripts

Introducing Hyperledger Fabric
Hi, and welcome to this course on deploying HyperLedger Fabric with AWS Blockchain Templates. In this module, we'll first introduce Hyperledger Fabric, which is an open source framework to build blockchain networks, part of the Hyperledger umbrella of open source blockchain initiatives. The Hyperledger project offers a variety of different blockchain frameworks for different use cases, and amongst these, Hyperledger Fabric is one. The Hyperledger project is run by the Linux Foundation and was started in December 2015. Blockchain finds a wide variety of applications across industries. The Hyperledger project seeks to bring experts from all of these industries together so that blockchain networks and associated tools can be built for specific use cases. Hyperledger Fabric is one of several frameworks that the Hyperledger project offers. At the time of this recording, it's the most stable, the most popular, and the most widely used. Hyperledger Fabric allows us to build up permission blockchain networks specifically meant for use by enterprises, which means it mitigates a lot of the limitations of the Ethereum blockchain framework. Hyperledger Blockchain templates on AWS allow you to provision and create your own Hyperledger Fabric network on the AWS cloud in a very simple and intuitive manner. In this way, the various groups within your organization, or maybe even a group of organizations, can get up and running with the Hyperledger Fabric blockchain network with little to no effort.

Using AWS Blockchain Templates for Hyperledger Fabric
Hi, and welcome to this module where we'll see how we can use AWS blockchain templates in order to create a Hyperledger Fabric network on the AWS cloud. We'll first understand the basic architecture of the Hyperledger Fabric network on AWS, the peers, the orderers, the monitoring tools, and the ledger database. We'll then create a VPC, or a virtual private cloud, that will hold all of our resources and create a public subnet within it. We'll then use security groups to enable traffic to and from our instances, and create the network with templates specified in AWS CloudFormation. Once our Hyperledger Fabric network stack is up and running, we'll then connect to Hyperledger Explorer in order to monitor the current state of our network.

Building an Application for the Hyperledger Fabric Network
Hi, and welcome to this module on Building an Application for the Hyperledger Fabric Network. An application or a smart contract in Hyperledger Fabric is referred to as chaincodes. Chaincodes on Hyperledger are programs with self-contained state that can be run on the Fabric network in order to execute smart contracts. In this module, we'll see how we can implement chaincode using the Golang programming language to set up a vehicle registry. We'll use the command line as the client application that will install this chaincode on a peer, instantiate it, and then invoke transactions on it. We'll execute chaincode in order to query the ledger in order to get the current state of the world. This is a simple query, and not a transaction. It does not update our shared ledger. We'll then see how we can invoke transactions which will actually update our blockchain.