TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How would you manage several gRPC connections?

1 pointsby ktulurulesalmost 4 years ago
Let&#x27;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&#x2F;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.

no comments

no comments