Managing managed channels

78 views
Skip to first unread message

Mahesh Lal

unread,
Jun 16, 2016, 6:12:46 AM6/16/16
to grpc-io

Hi

We are using an approach in which we create a gRPC client with a channel, make a single call with it and then close the connection. This gets done for every request that needs to be made to the systems.

Does anyone see any issues with this? Is it efficient? What's the most accepted practice?

Thanks.

Craig Tiller

unread,
Jun 16, 2016, 10:23:17 AM6/16/16
to Mahesh Lal, grpc-io

It is not efficient.

In the future we *might* be able to optimize this away a little, but it's always going to be strictly better to keep channels around long term.

Most applications will want to create their stubs at initialization time and destroy them at shutdown.


--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CALftiMoe%2B6d_H_J%2Bcx7qoyMJZZBFV56uCDe%2BT2GpTSSct9XXaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages