No comments yet.
1) communications are built on top of gRPC 2) nodes sporadically connect to other nodes to send some data 3) the amount of data to be sent can vary from a few Kbytes to something much larger (streams?? GBytes??)
Thinking about the best way to manage the connections in every node I firstly came up with two possible options:
Op. 1) Open and close a connection every time we have to send data to a node. Issue: potential overload due to the continuous open/close. Op. 2) Maintain some connection manager to operate these connections for us. Issue: additional complexity.
I would love hearing your experiences and opinions on this topic.