Reputation: 922
What are the advantages of developing on hyperledger composer over hyperledger fabric ? Also the limitations or things not supported by composer which is available in fabric ?
Upvotes: 2
Views: 1420
Reputation: 65
According my understanding Composer simplifies the blockchain implementation process. Basically it implements blockchains on top of a fabric blockchain runtime. It allows users to model blockchain in an abstract level using and generates relevant codes itself for some extent. Composer is more suitable for creating quick reusable POCs.
Upvotes: 0
Reputation: 6740
see this article for a side-by-side comparison.
[As mentioned below - edited], the current release of Hyperledger Composer cannot (yet, as time of writing) exploit all of the features of Hyperledger Fabric, but that is changing rapidly and the intention is not to have it place any limits. You can get a preview of this in the latest Hyperledger Composer 'next' v0.17.x release (a preview release) that uses Hyperledger Fabric v1.1-alpha. This means functionality (such as for example cross-channel queries or encryption or great historian support) would be available by calling out to the Fabric APIs and use the native function already available there. See this ticket for more info HERE
An example Below is of how it might be written in the transaction processor function inside Composer:
const response = await getNativeApi().invokeChaincode(myChainCode, [arg1, arg2, arg3], myChannel)
// do something here with response (as a developer)
Upvotes: 1
Reputation: 4037
Basically, Hyperledger Composer is a complement to Hyperledger Fabric. Composer allows you to model your roles, assets and transactions and it can generate some of the lower-level code for you. With Hyperledger Fabric, you would be writing this code yourself.
This can be a good thing, or not so much, depending on your POV.
Hyperledger Composer cannot (yet, as of this date) exploit all of the features of Hyperledger Fabric, but that is changing rapidly and the intention is not to have it place any limits. That said, it is also likely that what you can currently do with Composer will satisfy most common usage.
Upvotes: 3