This repository has been archived by the owner on Dec 27, 2024. It is now read-only.
Transport of stably serialized messages over gRPC
#384
Labels
discussion
Open discussion of some problem
I2
Regular impact
S1
Highly significant
U4
Nothing urgent
Context
In current implementation we define type per message in NeoFS API in order to:
gRPC
libGiven the need to serialize messages for signatures and the like, we can try to skip the extra conversion+serialization step (
ToGRPCMessage
methods) of thegRPC
library utilities and pass the messages directly in binary form (our serialization follows Protocol Buffers).Proposal
Research direct transmission of message types on the example of some request and pay attention on the optimality criterion:
It is worth mentioning that the results directly depend on the selected versions of the libraries: current and
gRPC
.For experimentation, I propose to implement a test scenario based on a fake connection (
net.Conn
), which will allow you to calculate the amount of transmitted traffic (at least from the application side).The text was updated successfully, but these errors were encountered: