hyperledger / fabric-samples

Samples for Hyperledger Fabric
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
2.78k stars 3.37k forks source link

Chaincode as a service (CaaS) content #673

Open joshhus opened 2 years ago

joshhus commented 2 years ago

@mbwhite I reviewed the 2 pages below for CaaS. This issue is for comments and questions that may be applicable to a docs update, please ignore what is not.

https://github.com/hyperledger/fabric-samples/blob/main/test-network/CHAINCODE_AS_A_SERVICE_TUTORIAL.md

https://hyperledger-fabric.readthedocs.io/en/latest/cc_service.html

Generally, the .md GitHub file above seems to be an update to the existing published content / html file below it.

joshhus commented 2 years ago

https://github.com/hyperledger/fabric-samples/blob/main/test-network/CHAINCODE_AS_A_SERVICE_TUTORIAL.md

joshhus commented 2 years ago

https://hyperledger-fabric.readthedocs.io/en/latest/cc_service.html

mbwhite commented 2 years ago

Hello - sorry @joshhus should have go to this sooner..

Why for a test network specifically. Implication is it's not for production, perhaps not yet. This is referencing the test-network in fabric samples, rather than implying that this is not for production

What's the diff between this content and the already published ? That is for go only, and also is quite dated now

Any performance considerations compared to chaincode on channel. Any chaincode will be connected over a network to the peer, irrespective of how or what started it. If you run the container yourself the biggest risk is making mistakes, eg not giving it enough resources.

Use cases etc.... Applicable in all scenarios, but especially for anything K8S based.

Terminology It was never really clear in the start sadly; I'm trying to stick to Chaincode-as-a-service to refer to the pattern of you, the user, runs you own chaincode container, and gives the peer the connection information to it where to find it.

The word external doesn't add anything - there's nothing 'internal'.

On debugging specifically

I'm adding more tutorial focussed content in this doc. https://github.com/hyperledgendary/fabric-contract-debug-scenario