<p>Fabric nodes use gRPC for communication and as such, it uses protobuf data serialization.</p>
<p>In Fabric, there is no need for the data sent over the wire to be human readable, as the data is anyway being constructed without human intervention.</p>
<p>You usually use JSON when you have payloads that are either expected to be constructed by users such as a REST API that is simple enough for users to use with curl/wget/scripts or when you want to be be able to debug the data sent over the wire.</p>
<p>As @jpa pointed out in his comment, sending JSON has its drawbacks such as sending the data scheme itself with every message along with the actual data and it is inefficient compared to protobuf which only sends the data only and the data scheme is not sent over the wire.</p>
<p>However there is also a drawback in using protobuf, and that is - that protobuf serialization is not deterministic.</p>
<p>In a system where there are signature checks everywhere such as Fabric, if you send a signature over a message, the message must be sent as a blob of bytes.</p>
<p>This makes the Fabric transaction structure extremely inefficient because it contains nested encapsulations of messages because each &quot;layer&quot; is represented in the layer above it as an opaque blob of bytes and to access an inner field of a transaction message you need to unmarshal the blob of bytes into the actual message object.</p>
<p><a href="https://i.stack.imgur.com/Egb9t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Egb9t.png" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/eUdmj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eUdmj.png" alt="enter image description here" /></a></p>
<p>This makes Fabric transaction processing very slow, as <a href="https://arxiv.org/abs/1901.00910" rel="nofollow noreferrer">observed in a paper</a> a couple of years ago:</p>
<blockquote>
<p>Fabric uses gRPC for communication between nodes in the network. To
prepare data for transmission, Protocol Buffers are used for
serialization. To be able to deal with application and software
upgrades over time, Fabric’s block structure is highly layered, where
each layer is marshaled and unmarshaled separately. This leads to a
vast amount of memory allocated to convert byte arrays into data
structures.</p>
</blockquote>
<p>Had Fabric transaction messaging been based on a deterministic marshaling scheme such as ASN1, then you would've been able to send a transaction without intermediate opaque byte blobs because signature checks would've involved serializing the message via the deterministic ASN1 serialization to obtain the blob of bytes that Fabric messages carry.</p>
Why does Hyperledger fabric use protobuf instead of JSON?
<p>What are the advantages that protobuf provides which JSON cannot?</p>
<p>&quot;<em>protobuff is faster than JSON</em>&quot; - What does this mean?</p>
<p>Note: I am aware of the differences between protobuf and JSON.</p>