All Questions
836
questions
1
vote
0
answers
17
views
Nginx close transport between upstream after upstream sending too many messages
I have an gRPC upstream server behind my Nginx reverse proxy server.
And client sends a single-direction stream request to Nginx to ask for informations from the server.
For some reason, client does ...
-3
votes
0
answers
27
views
Golang grpc client and server [closed]
Golang has service A and B. From service A, I make a function call to service B. The response time is 50ms, and if I do a load test, the response time from B service to A service is 1s. But the B ...
1
vote
1
answer
37
views
how to pass metadata from gRPC function to interceptor
I'm a bit lost; help me figure out this.
Im trying to add some extra data (like User ID) to a context that I will use later in the log interceptor.
here is how my gRPC call looks like
import (
&...
3
votes
0
answers
139
views
How to access serialized data (message payload) in Go gRPC without re-marshaling in an interceptor?
Im working with gRPC in Go and want to access the raw serialized data (in its wire format) directly in a gRPC interceptor without needing to re-marshal the data. In older versions of gRPC, I was able ...
1
vote
0
answers
55
views
How to return Errors via GRPC/Protobuf API in Golang with rich information?
I started learning golang, so I built a small API (using GRPC & Protobuf) in my golang application.
The project grew and grew - but now I am at a point, where I don't really know how to continue:
...
1
vote
1
answer
88
views
golang etcd grpc Call Route err: rpc error: code = Unimplemented desc = unknown service kkk.Simple
I have two grpc services, one is called simple_grpc in the etcd-example project, the other is called shop_grpc in the shop-example project, and the client project is in etcd-example-client. When I ...
1
vote
1
answer
70
views
Protobuf failing to produce the code with the `unable to determine Go import path for` error
I have two proto files according to the following structure in my file system:
protos
├── kws
│ └── kws.proto
├── common
│ └── common.proto
And here is their content:
common.proto
syntax = "...
0
votes
0
answers
33
views
How renaming a proto field can be a breaking change during the rolling deployment? [duplicate]
I have several Golang microservices communicating with each other via gRPC, using protocol buffers (proto) to define the APIs. The proto file is centralized and shared across multiple services.
Is ...
0
votes
0
answers
57
views
grpc client retryPolicy breaks when server uses gRPC+HTTP/2 h2c mux
In production I have a grpc server that also uses grpc-gateway to expose the http API. We have been using an approach similar to this to mux the grpc server and the grpc-gateway over the same tcp port....
0
votes
1
answer
162
views
grpc-web client using go?
I am trying to connect to a grpc-web server using go grpc client. After many failed attempts, I understand the grpc-web and grpc is different and grpc client cannot connect to grpc-web server.
I see ...
0
votes
0
answers
64
views
Send request with too large Header but got ENHANCE_YOUR_CALM error code rather than Status 431
My client send a request with size >8KB to my Nginx reverse proxy server. There is an upstream gRPC server behind Nginx.
When I check the error code, it is rpc error: code = Unavailable desc = ...
0
votes
0
answers
44
views
Postgresql TIME to proto timestamppb conversion giving negative value
I have a field in the postgres with TIME datatype. For GRPC in proto file as time.Time is not supported, so I'm using google.protobuf.Timestamp.
message Msg {
string id = 1;
google.protobuf....
1
vote
1
answer
96
views
How does grpc.ConnectionTimeout() differ from context.WithTimeout(), and when should I use one over the other?
For grpc.ConnectionTimeout(), the Go GRPC docs mention:
ConnectionTimeout returns a ServerOption that sets the timeout for connection establishment (up to and including HTTP/2 handshaking) for all ...
1
vote
0
answers
27
views
Logs for compression in gRPC APIs in Go Lang
I have enabled compression for a gRPC API, I want to verify if the response is getting compressed internally or not, Is there a way I can see the logs (trace logs) that the response is getting ...
-3
votes
1
answer
47
views
can we implement the grpc in GoLang with the existing code?
Currently,I am exploring to use grpc with Golang for microservices communication where one microservice will act as the server and other service will be the client consuming the services from the ...