Questions tagged [grpc]

A general RPC (Remote Procedure Call) framework over HTTP/2, initially developed at Google. gRPC is a language neutral and platform neutral framework that allows users to write applications where independent services can work with each other as if they were native. It uses Protocol Buffers as the interface description language.

Links

Related Tags

6316 questions
2
votes
2 answers

why the "loadBalancingPolicy“ must be used when "healthCheckConfig" in grpc

The code file is: client and server Doubtful code: var serviceConfig = `{ "loadBalancingPolicy": "round_robin", "healthCheckConfig": { "serviceName": "" } }` Test steps: 1.Run only one server and one client 2.When using…
null
  • 115
  • 1
  • 9
2
votes
1 answer

.NET6 Isolated Azure Function Unit and Integration Test causes gRPC exception

I have an isolated Azure Function that makes couple of HTTP POST calls. I am trying to write an integration test for them. But the test setup fails with a gRPC error. Here is the Program.cs that configures the HttpClient with…
ameya
  • 1,448
  • 1
  • 15
  • 31
2
votes
1 answer

Kubernetes and Service Mesh load-balancing misalignments

Kubernetes has a support of Pod load-balancing, session affinity through its kube-proxy. Kubernetes’ kube-proxy is essentially an L4 load balancer so we cannot rely on it to load balance L7-transport, e.g. muliple gRPC live connections or…
Ivan Voroshilin
  • 5,233
  • 3
  • 32
  • 61
2
votes
1 answer

GRPC on Google Cloud Run : upstream connect error or disconnect/reset before headers. reset reason: remote reset

EDIT It seems that my first error I describe is very easy to reproduce. Actually, Google Run fails to run any GRPC query on a .NET5 GRPC server it seems (at least, it did work before but as of today, February 21st, it seems that something changed).…
Vince.Bdn
  • 1,145
  • 1
  • 13
  • 28
2
votes
1 answer

Running protoc commands not generating Register method

I am trying to generate service with plugin methods in for grpc go This is my score.proto file syntax="proto3"; option go_package="./livescore"; service ScoreService{ rpc ListMatches(ListMatchesRequest) returns (ListMatchesResponse); } message…
gANDALF
  • 360
  • 4
  • 21
2
votes
0 answers

Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile-custom protoc did not exit cleanly

I've been struggling with the following error. [ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile-custom (compile) on project grpc: protoc did not exit cleanly. Review output for more information. -> [Help…
BountyHunter
  • 89
  • 2
  • 10
2
votes
0 answers

Problem installing Django Tech Stack on Apples M1

I just got a new Mac with an M1 chip, but I have problems getting our stack to run. Its a django project, with a few dependencies attached. Most of them being: grpcio…
TLListenreich
  • 103
  • 1
  • 7
2
votes
2 answers

GRPC : How to pass value from interceptor to service function

I have a unary interceptor that validates the jwt token and parses the id and role. Now I need to pass these to the service function. Interceptor func Unary() grpc.UnaryServerInterceptor { return func(ctx context.Context, req interface{}, info…
AnswerRex
  • 180
  • 1
  • 1
  • 11
2
votes
1 answer

gRPC Any type - Uncaught TypeError: deserialize is not a function

I'm having an issue in gRPC that's been driving me crazy. I have a .NET gRPC service that my ReactJS client is connecting to - this works fine. I'm subscribing to my stream, and I get data over the stream as expected. I'm having an issue…
Hrethric
  • 31
  • 7
2
votes
0 answers

How to host c# grpc service on linux and connect to in using client on windows machine

I have prepared dotnet service using grpc "template" (dotnet new grpc) that does simple CRUD operations on PostgreSQL DB. Service and database are on linux. I want to host it on linux and connect with my client from windows. Both computers are…
mareks
  • 124
  • 8
2
votes
0 answers

Flutter grpc streaming

Is there any way to create infinite scrolling using grpc streaming? So, I don't want to load all the data at one time and I don't want to do a standard pagination (unless it's the only way to do it) but I want to read data from stream in parts on…
dropEx39
  • 21
  • 2
2
votes
1 answer

Monorepo: How to consume a package from another project?

I am trying to create my first monorepo in Go. The project structure looks as follows: As you can see on the picture, the monoplay folder is the root. The pb folder contains the generated gRPC code that I would like to consume in the…
softshipper
  • 32,463
  • 51
  • 192
  • 400
2
votes
2 answers

gRPC KeepAlive/idletimeout

I am trying to understand how keepalive or idle connection works with gRPC. I have bidirectional streaming RPC, where I create session and do nothing so that there is no activity on the channel. If there is no activity, GRPC_ARG_KEEPALIVE_TIME_MS…
debonair
  • 2,505
  • 4
  • 33
  • 73
2
votes
1 answer

Detect client context destruction from gRPC server

I have create an Async C++ gRPC server that offer several APIs similar with a signature similar to this: service Foo { rpc FunctionalityA(ARequest) returns (stream AResponse); rpc FunctionalityB(BRequest) returns (stream BResponse); } The…
Cristiano
  • 856
  • 10
  • 24
2
votes
1 answer

How am I supposed to use protoc-gen-go-grpc?

I am trying to generate Go code for some Protocol Buffers as well as a gRPC service. In the past I have used https://github.com/golang/protobuf with a generate command that looked something like this: //go:generate protoc --proto_path=. --go-out=.…
Nick Corin
  • 2,214
  • 5
  • 25
  • 46