Let's image we have a distributed system where:<p>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??)<p>Thinking about the best way to manage the connections in every node I firstly came up with two possible options:<p>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.<p>I would love hearing your experiences and opinions on this topic.