Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Is only using Hyperledger Composer (Compared to Hyperledger Fabric) suitable for building a enterprise level application?
Composer is great for building a simple app fast but it seems to be missing a lot of features that fabric has.
Hyperledger Composer is an abstraction layer over Hyperledger Fabric in the same way JQuery or Angular are frameworks over JavaScript. So there is no using Composer without Fabric. Composer generates a RESTful interface for each Channel. For enterprise scale app it is recommended you put an NGNIX load balancer in front of a series of these RESTful endpoints. At Integra Ledger, we put as little business logic and data on the Fabric blockchain and uses standard .NET enterprise SOA techniques.
We can built enterprise level applications using Hyperledger composer there is no doubt in it . But however there are certain things in Hyperledger Fabric gives us more flexibility. For an example, you could not retrive transaction history of a specific asset in composer where as with Fabric you can. Composer uses swagger.io and loopback connecter to generate RestAPI,authentication ,there are some limitations when you use them .To be specific Composer does not support Auth0 authentication.One more thing is this issue.I would say Fabric is more expressive.When you use Fabric you will have all the freedom to mold it (takes a bit of work tough!).
So, using composer or fabric entirely depends up on the complexity of your application.
Hyperledger composer enables to create blockchain application in no time but there are limitations also like you do not have much control on chaincode and transaction mechanism and block structure in this and also there is no authentication provided with the REST APIs so we have to manage these things on our own.
Related
I have been trying to install it using the below link:
https://composer-playground.mybluemix.net/
Can anyone help me out with this?
I have to submit a project using Hyperledger Fabric and Composer.
Just in case people find this question, it should be noted that Hyperledger Composer is no longer actively maintained or supported. Most of the base programming model functionality was added to the various SDKs via a higher level API abstraction.
I am new to hyperledger and bit confused about hyperledger composer & nodejs api.
I saw using composer we can create assets, transactions, participants and chaincode and in last we have to archive it this all into .bna file and finally we deploy this chaincode into network using admin card
But at other end using NodeJs API we can also write chaincode by overiding init & invoke methods.
How can we relate these all.
The best way to think about this is the following:
1) Hyperledger Fabric v1.1 supports writing chaincode in two languages: Golang and JavaScript via Node.js
If you want to do all of the heavy lifting yourself, you can write straight chaincode.
2) Hyperledger Composer provides a higher-level model-driven language for developing smart contracts. It currently only allows deployment of these artifacts to Hyperledger Fabric. It also happens to support writing functions in JavaScript as well.
So if you want to start from a higher-level model-driven approach, Hyperledger Composer is the way to go. If you want to write all of the plumbing yourself or use very low-level chaincode features, then using chaincode itself is the way to go.
Moving forward, we are looking at a better way to move between the two and not force a decision / direction up front.
There is another option, we develop a framework called Convector to be in the middle of Composer (high abstraction, low control) and raw code (low abstraction, high control, therefore high risk). We open sourced it a few days ago. At WorldSibu we don't like loosing so much control over our code like with Composer but as Gari Singh was saying, doing all the heavy lifting for each project is crazy. It is like a Mongoose for Hyperledger Fabric. It may help to check it out.
It is also worth noting that, according to IBM, Composer is no longer recommended as a production solution, but only for prototyping. In HLF 1.3, chaincode can now be written in Go, Javascript and Java.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm not clear about Hyperledger. Please help!
What is Hyperledger?
What is Hyperledger Composer?
What is Hyperledger Fabric?
What is Hyperledger Fabric SDK GO?
What is consensus algorithm use in Hyperledger?
And Hyperledger have a miner or not?
Ans 1: Hyperledger is not: Not a company. Not a cryptocurrency. Not a blockchain. Hyperledger is rather something like a hub for open industrial blockchain development.
Further explanation you can follow this: https://blockgeeks.com/guides/what-is-hyperledger/
Ans 2: Hyperledger Composer is a set of collaboration tools for building blockchain business networks that make it simple and fast for business owners and developers to create smart contracts and blockchain applications to solve business problems.
Further explanation: https://www.hyperledger.org/projects/composer
Ans 3: Hyperledger Fabric is a business blockchain framework hosted by the Linux Foundation intended as a foundation for developing blockchain applications or solutions with a modular architecture. Hyperledger Fabric allows components such as consensus and membership services to be plug-and-play.
Further explanation: https://www.ibm.com/blockchain/hyperledger.html and https://hyperledger-fabric.readthedocs.io/en/release/
Ans 4: See this to know better about Fabric SDK GO: https://wiki.hyperledger.org/projects/fabric-sdk-go
Ans 5: See this to know better about consensus algorithm. https://www.hyperledger.org/wp-content/uploads/2017/08/Hyperledger_Arch_WG_Paper_1_Consensus.pdf
Ans 6: No miner needed in Hyperledger. Ordering service done this.
Also the primary difference between Hyperledger and other Blockchain networks such as Ethereum is that it is permissioned and it targets enterprise use cases, which operate on a certain degree of trust (partial trust) under a governance model dictated by the underlying consortium. Since the participants are not completely anonymous, the need of having a full BFT consensus implementation such as PoW can be eliminated. This in turn improves the network performance as well as makes it more scalable.
What is hyperledger ?
It is neither crypto currency nor a blockchain network or a a company .it’s kinda open source initiative hosted by Linux foundation supported by global leaders such as intel and IBM to advance blockchain technologies.
What is hyperldger fabric?
Hyperldeger has lot of umbrella projects under it .hyperledger fabric is one such project led by IBM .
Hypeldger fabric provides a platform to develop high scale blockchain applications with flexible amount of permissions .hyperledger universe has 4 other frameworks namely Iroha, Sawtooth, Indy, and Burrow.
what is hyperledger composer ?
hyperledger fabric is a hyperledger framework while composer is a hyperledger module.I suggest you start with hyperledger composer since it offers many benefits such as
Faster creation of blockchain apps, eliminating the big effort required to build blockchain applications from scratch
it is well-tested therefore less risk involved, easier to understand and align with different domains
Greater flexibility as the higher-level abstractions make it far simpler to iterate.
further hyperledger composer is written in javascript.Composer provides you a bunch of easy-to-use components that you can quickly learn and implement.
hyperledger fabric takes you a layer lower. if you wanna start learning about blockchain architecture and underlying processes go ahead with fabric.
What is consensus algorithm use in Hyperledger?
consensus mechanism in hyperledger is called "proof of authority"
And Hyperledger have a miner or not?
hyperledger does not have miners or any mining. mining is necessary when consensus mechanism of the network is "proof of work" .in hyperledger consensus mechanism is "proof of authority"
checkout my article .everything you have asked is explained in detail here
https://medium.com/#fnote/curious-case-of-hyperledger-fabric-ce0292906187
Hyperledger is an umbrella organization under The Linux Foundation that supports multiple blockchain technologies. See the chart here: https://www.hyperledger.org/
All Hyperledger projects are open source under the Apache 2 license, although many were originally developed by a contributing organization.
Hyperledger Burrow implements an Ethereum Virtual Machine (EVM)
Hyperledger Sawtooth is Intel's blockchain technology (and includes an EVM using Hyperledger Burrow
Hyperledger Fabric is IBM's blockchain technology (explained above)
Hyperledger Indy is a blockchain specifically focused on identity
Hyperleder Iroha is a blockchain focused on Mobile apps and is developed in Japan
Hyperledger Besu is an open source Ethereum client
Other than the fact that Composer makes deployment and testing of prototype business networks easier and the fact that we don't have to know golang to develop chaincode, what is the difference in the functionalities that these interfaces provide that may lead one to choose one over the other?
This article can probably provide you with the answers you need:
https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/
Hyperledger Composer is both an application development framework and set of powerful tools which simplifies and expedites the creation of blockchain applications and smart contracts that are ultimately executed on the Hyperledger Fabric blockchain. Composer has its own runtime, that is generic chaincode and hosts and interprets the business network deployed - so your smart contract need only use Javascript, not chaincode in Go a (which is Fabric's domain) s you mentioned. It also has a modeling facility to create your business network model and to define such controls as Access Control lists and queries to be executed.
This architecture link should help you with further understanding -> https://www.slideshare.net/SimonStone8/hyperledger-composer-architecture
Furthermore see the Hyperledger Composer docs, see here:
https://hyperledger.github.io/composer/
TO see the Hyperledger Fabric docs - see here:
https://hyperledger-fabric.readthedocs.io/en/latest/
I have been working on hyperledger fabric for some time. But I don’t understand where hyperledger composer comes in place . I do understand that it helps in visualizing the logic and transaction. But what I don’t get is how do you integrate it with fabric network? what does it create? Is it chaincode if not then what?
The Compose runtime is chain code that executes the business network archive artefacts created by the end-user.
Perhaps this will help?
https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/
The tech answer is that Hyperledger Composer is an abstraction layer over Hyperledger Fabric.
The practical answer is that it is awesome. Think how Angular and hundreds of other frameworks make web programming easier.
It is a framework where you can write your blockchain in Javascript and specify your data objects in an easy to understand text file. Throw in some querying, ACL stuff and pathways to use some nice opensource tools that let you do things like generate a Web API automatically and play around in a web environment without installing anything.
We are using it for the Integra Ledger Legal blockchain. (www.integraledger.com). I just spent the day working in it.