Professional Documents
Culture Documents
Channel
Channel
What is a channel?
If I were asked to describe what a channel is in one sentence, I
would say that it is an abstraction that forms a permissioned
boundary around the ledger and the chaincodes.
Before I move to an example use case, let’s have a look at
what a channel is in a more technical overview.
Business case
Let’s say we are building an application for a Law Firm. They
came to us and shared that they are handling many cases for
their clients, they need to exchange lots of paper documents
before the interested parties are ready to sign any of them.
Unfortunately, it happens that some documents are lost,
sometimes there are changes someone was not aware of, in
short, they have a lot of problems everyone would like to avoid.
On top of that, clients get mad, so we have to do something or
the firm will start losing clients.
Our client admitted they are very happy with the way the
application is working. Finally, there is no need to exchange so
many paper documents and we can keep track of everything
related to them.
The next step for our Law Firm is to implement this solution
with the next client, let’s call them Client B. We have a working
network with one application channel that is used by us and
Client A. We don’t want to share that channel with Client B as
they would be able to see everything from the ledger or maybe
even write data to it too. What we're gonna do next is add peer
nodes to the infrastructure owned by Client B and create a new
channel which will join our and their peers. In that way, we will
have two ledgers, one for each client we are cooperating with,
but only peers that are members of the channel will have a
copy of its ledger.
I bet you already see the pattern here. Every time we
implement a solution with another client, they need to set
up peer nodes on their side, then we join them to a newly
created channel and the ledger is stored only on the
participating peer nodes. Though in our example, we use a
channel to communicate just between two organizations, it is
possible to add more parties to a single channel.