Skip to content

Ask HN: How would you manage several gRPC connections?

1 pointktulurulesdiscuss
On 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.

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.