go-micro
go-micro copied to clipboard
[FEATURE] transport pool update
When we use transport plugin like nats/quic, the util.pool[pool/Default.go/func (p *pool) Get] genarated too many connect. when we use Multithreading,it's very unreasonable
i think we have two way to improve
- Add DialOption or Transport option Option: KeepAlive to reuse conn
- update Plugin to cache the connection instead of call Dial interface everyTime
sometimes one remoteAddr only need one connection