hyperledger / hyperledger/fabric

Clarify: can external chaincode be replicated?

Open
#3,319 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
16.7k
Forks
9.1k
Avg merge
5h 38m
Merged PRs (30d)
26

Description

Looking at [Configuring a peer to process external chaincode](https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_service.html#modify-the-peer-core-yaml-to-include-the-externalbuilder) and [Writing chaincode to run as an external service](https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_service.html#go), it looks like it should be possible for a chaincode to be run on multiple machines and for a peer to connect to those multiple instances (with some form of load balancing), by making multiple calls to `shim.ChaincodeServer` and defining multiple external builders with

```
externalBuilders:
- name: myexternal1
path:
- name: myexternal2
path:
```

And so on. Is this in fact possible?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.