Ask HN: How would you manage several gRPC connections?

1 points by ktulurules ↗ HN
Let's image we have a distributed system where:

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.

0 comments

[ 3.8 ms ] story [ 10.7 ms ] thread

No comments yet.