go-micro icon indicating copy to clipboard operation
go-micro copied to clipboard

[FEATURE] transport pool update

Open hkloudou opened this issue 3 years ago • 1 comments

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

  1. Add DialOption or Transport option Option: KeepAlive to reuse conn
  2. update Plugin to cache the connection instead of call Dial interface everyTime

hkloudou avatar Aug 06 '21 20:08 hkloudou

sometimes one remoteAddr only need one connection

hkloudou avatar Aug 06 '21 20:08 hkloudou