pubsub client now on gRPC

35 views
Skip to first unread message

Jonathan Amsterdam

unread,
Oct 13, 2016, 5:13:06 PM10/13/16
to google-api-...@googlegroups.com
The cloud.google.com/go/pubsub package now uses gRPC for communication. This is not a breaking change, but it may have performance implications if you create many pubsub.Clients (for example, if you create a client for each request to your server). Each client manages its own gRPC connection, which typically corresponds to a single TCP connection. You should create clients sparingly and call a client's Close method when you're finished with it (although it's not necessary to call Close when your program terminates).
Reply all
Reply to author
Forward
0 new messages