Open
Description
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:
- Configuration of batching based on peer capabilities when a connection is established
- Modifications to PutState (and PutPrivateData) API functions
- An accompanying WriteBatch implementation to collect batched writes.
- Modification of handleInit and handleTransaction to ensure that batched writes are sent at the end of a client invocation
- New Stub API functions: