If i have a fabric network with multiple peers, how can, say, a mobile app (representing the user) query data from that network ?
It would need the IP address of at least 1 peer, but how do i deliver this to the app as dynamically as possible ?
You can develop a gateway application using one of the below SDK's
Fabric comes with
NodeJS SDK
Go SDK
JAVA SDK
This gateway application will expose api's so that mobile app can consume whenever it required
I here by mention a sample open source fabcar application here
Related
I'm seting up a production environment of Hyperldger Fabric 1.4 and one of my concerns is connectivity with third party systems. Since the infrastructure is not running inside a VPN and third party systems available to public are generating load for our network, I am skeptical about allowing for a connection over public network directly into Hyperledger Composer API. I am wondering if anybody has experience with performance when deploying a intermediary host that is solely allowed to communicate with Hyperledger network?
Don't see a problem with that, if you need that kind of setup. If you use composer you will have an API to communicate with your network. Nothing stops you from creating another app that solely communicates with this API.
The performance depends on other factors, like number of requests, size of data, frequency of data.
Also, don't forget that the Hyperledger API needs to be secured. As for public access, there should be any, the whole point of Hyperledger is to allow only known entities to connect and do whatever needs to be done.
I created a network on the hyperledger composer locally. I can deal with this network as an admin but I will update this later to deal as a user.
My question is how can connect an Android app to this network locally?
And this connection will need an internet connection?
I need this app to participate and create assets and make transactions as I can do on hyperledger composer.
How can do that?
you can make your Android App talk to Hyperledger network using REST API's.
you can create REST API's using composer-rest-server
checkout instructions at this url
https://hyperledger.github.io/composer/latest/applications/web.html
I want to integrate hyperledger explorer into my angular application that interacts with my business network which is on the IBM blockchain platform.
My business network is deployed using composer and exposed as a composer REST server which my angular application interacts with.
Does anyone know of any resources to do this?
integration of IoT in Blockchain is possible if you have the right configuration. I personally checked it using IBM Bluemix. Simple steps to do:
1. Have IoT API ready to connect with Blockchain
2. Gather those data in synch in every ledger to run successful blockchain application.
I am working on setting up a Business Network for Multiple Organizations (two physical machines).
I did the setup of a business network using Hyperledger Composer Playground and achieved querying, rest-server implementation etc.
I have configured a multi-org (multiple organizations) setup for a single business network in a single cloud server (Reference link used: https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org). But, as in real scenario, I want to configure a multi-org functionality with two separate cloud servers.
I met with an error like below.
Error: Unable to Communicate with Peers. Peers not found.
Version of Composer : latest
Version of Fabric : V1.0
Thanks in Advance.
If you are using Composer latest (v0.19) then you have to use Fabric v1.1.
If you are Running on 2 servers with 2 IP addresses you need to solve the communications (IP Addressing and Routing) between you client and the servers, and between the containers on each server.
For the client to server you need to manage the addresses in the connection.json files for composer.
For the connectivity between the Peers and other containers the correct solution is to use Kubernetes or Docker Swarm to manage the addressing/routing. It is possible to use the extra_hosts feature of docker-compose for a simple demo but you might be restricted to one peer per org because of port conflicts.
Hyperledger Fabric has various SDKs (Node, Java, Go etc...) which are used to communicate with the fabric. A web user who wants to make a transaction must call a server that hosts a client based on those SDKs, which will then pass the call to the fabric.
I would like to skip a step and have a web browser application which submits transactions to a peer in the fabric. In v0.6 we developed a web app that made REST calls directly to the nodes but the API had security problems and is now deprecated.
If that's not possible, could someone explain to me why having a server for web users requests does not make the whole system more centralized?
Is developing with the Node SDK and then using Browserify a viable solution?
Thanks in advance.
Fabric API is in GRPC, so you would have to find the right package to support GRPC in browsers.