How to choose with a specific peer to share the transaction with?

59 Views Asked by At

how should you keep your hyperledger fabric transaction scalable in terms of choosing peers? Basically, removing the randomization of choosing a peer by the node and giving us the ability to select the peer we want to share the transaction with?

1

There are 1 best solutions below

0
Josh On

Please consider upgrading your Fabric application to use the new Gateway release (2.4.x). Gateway client based applications now have the ability to connect to a single "gateway peer" in the Fabric network, which in turn serves as a proxy to allocate requests across peers in the network. In addition, for Fabric networks deployed to Kubernetes, the Gateway Peer hostname can be set up to reference a HA / Load-Balanced set of peers with a common DNS name. Additionally if you are running your Fabric network in a k8s environment the use of IPVS proxy mode service routing can provide a few additional control dials for routing the node selector when clients connect to the peer.

In general, the recommendation is to use the new features provided by the Fabric Gateway release (2.4.x) for distributing the client connections to peers in a scalable and reliable fashion.