Questions tagged [grpc-go]

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

385 questions
0
votes
2 answers

GRPC-GO:Client stub not shown in the generated pb.go file

I am trying to learn GRPC from the official doc, Here is the tutorial I have followed grpc-go Generating the proto using this command protoc --go_out=$PWD helloworld/helloworld.proto This above command will generate the file helloworld.pb.go…
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
0
votes
1 answer

GRPC: keep a reference to stream to send data to multiple clients

I am starting with GRPC using go. I read the official docs, and few examples. In most examples, you don't identify the client, but use the stream to read / write data. I see there is API in Context to retrieve auth info, and can indentify the…
bsr
  • 57,282
  • 86
  • 216
  • 316
0
votes
2 answers

Is this an intention of bidirectional streaming RPC in gRPC?

I am maxing out my CPU on my gRPC client doing unary RPC. I wonder if it makes any sense to try replacing unary RPC with a bidirectional streaming RPC (or set of them?) that basically lasts throughout the life of the application? I can't tell if…
vmayer
  • 985
  • 2
  • 9
  • 18
0
votes
0 answers

Error "go.mod has post-v0 module" when I try "go get google.golang.org/grpc/reflection"

I am trying to add reflection to my working Go-based gRPC. I am getting an error when I try to fetch the reflection package: $ GO111MODULE=on go get google.golang.org/grpc/reflection go:…
Martin Del Vecchio
  • 3,558
  • 2
  • 27
  • 36
0
votes
2 answers

Should gRPC server and client be in the same repository?

I am playing around with a gRPC server using Go, I understand that one of the benefits of gRPC/Protobuf is that you can use it to create a client library easily by using the same messages/service API that are being used in the server code. If I am…
TheDude
  • 361
  • 4
  • 13
0
votes
1 answer

file not found / unable to import package

I have been following a gRPC tutorial, this works perfectly fine. The problems start when I try to add https://github.com/grpc-ecosystem/grpc-gateway to my project. I use the commands they give you: go get -u…
user11137806
0
votes
0 answers

Proper way to errors response in GRPC?

I try to find out the way to report server errors via grpc. What I want to achieve is errors that are verbose and static defined enough to tell clients what actually happened. Imagine I have the next request: message UpdateEmailRequest { string…
0
votes
1 answer

what is r.Scheme()+":///test.server" in grpc Dial call in all grpc test cases

Normally we pass the server address like for example "localhost:56666" or "someserver:9999" to the Dial method of grpc-go. ex: grpc.Dial("localhost:56666", grpc.WithInSecure()) But in the test cases given in grpc-go repo (refer below links), the…
kee
  • 46
  • 2
  • 10
0
votes
1 answer

Why does grpc-gateway is not building new endpoints

When I try to generate a proxy file via go build -o ./out/grpc-proxy, the proxy is generating without the new endpoints added in proto files I use node.js (v10.16.3) and grpc/go after that I build grpc-proxy. Generating code from *.proto into…
0
votes
1 answer

Is there a need to recreate a new stream by gprc stream client side?

There is a gRPC stream server and client. the client dials to server through gRPC bidirectional stream. The server is running on a kunbeness docker. After upgrading kubeness server once, the client always gets an EOF error when trying to send a…
lrouter
  • 349
  • 1
  • 5
  • 20
0
votes
1 answer

When to create a gRPC client when chaining multiple gRPC calls

I have a handful of gRPC servers, and would like to chain some of the calls, so that the flow would become something like: Client X calls Server A └──> Server A ... some processing ... < 1 > calls Server B └──>…
Ryota
  • 1,157
  • 2
  • 11
  • 27
0
votes
2 answers

gRPC implementation performance - java v/s goLang

gRPC supports rpc server and client implementation in many languages. I need to know whether there is any significant performance differences in implementing gRPC server and client in goLang v/s Java . If we are looking for high performance and…
girish TS
  • 209
  • 1
  • 3
  • 10
0
votes
1 answer

Error importing and using other .proto files when using protoc to generate golang code

I've been using protoc to generate golang gRPC client and server code without issues. Since I have multiple gRPC services that use the same data types, I'd like to refer to a base.proto for these types rather than copy and paste, which is extra…
Grant
  • 11
  • 2
0
votes
3 answers

gRPC Server stops for no reason

My Go gRPC Server stops without I stop it by myself. Right now I need to start the server again by entering the command "go run server.go" whenever I see it not responding every 30 or 60 minutes. Is this normal? Do I need to restart the server after…
0
votes
1 answer

How to create a generic GRPC server start function in Go

I'm trying to abstract the start of a GRPC server The original main function is the following: func main() { lis, err := net.Listen("tcp", port) if err != nil { log.Fatalf("failed to listen: %v", err) } s :=…
1 2 3
25
26