fabric-chaincode-java icon indicating copy to clipboard operation
fabric-chaincode-java copied to clipboard

Read/write batching

Open bestbeforetoday opened this issue 8 months ago • 2 comments

Fabric v3.1.0 introduced a new performance optimization that allows ledger reads and writes to be performed in batches. This feature is described in the Peer to Chaincode Communication Optimization RFC.

fabric-chaincode-go provides a reference implementation of this functionality, which should be replicated by the Java chaincode libraries.

Implementation is composed of these component parts:

bestbeforetoday avatar May 19 '25 15:05 bestbeforetoday

I would like to give this a try.

saedmanaf avatar May 19 '25 16:05 saedmanaf

@saedmanaf You are very welcome to tackle some or all of it. I would recommend aiming to deliver just a subset of the functionality as a first step pull request. It could be as simple as implementing the fallback behaviour of GetMultipleStates that just calls GetState internally. Then build on this in small steps with subsequent pull requests. If it makes it easier to track and mark off progress, we could break out these steps into sub-issues.

It will be really important to include accompanying unit tests with each piece of functionality to ensure the correct behaviour.

bestbeforetoday avatar May 21 '25 17:05 bestbeforetoday