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
1 answer

How to get message value in gRPC stream interceptor

I have implement a gRPC stream interceptor in Server like this: // Service define: // rpc searchProducts(google.protobuf.StringValue) returns (stream Product); func (w *wrappedStream) RecvMsg(m interface{}) error { log.Printf("%T, %v", m, m) …
Gomo
  • 47
  • 6
2
votes
2 answers

What happened if you delete a field on protobuf?

example: message Foo { ... string AccountToken = 3 string BusinessToken = 4 ... } since those 2 fields want to be deprecated by the project owner, can I safely remove those 2 fields just by deleting and regenerate the code then remove all…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
2
votes
1 answer

NestJS GRPC Error: call.sendMetadata is not a function

I'm trying to send a metadata from the server side gprc using NestJS framework. On the official NestJS guide here: it shows a example of doing the server side grpc metadata: @Controller() export class HeroesService { @GrpcMethod() …
Zichzheng
  • 1,090
  • 7
  • 25
2
votes
1 answer

Issue connecting my lambda function to Amazon managed blockchain

I am failing with a DNS 14 message when trying to call a lambda function to invoke chaincode on my Amazon Managed Hyperledger Blockchain. ERROR Failed proposal response. Status code: undefined. Message: 14 UNAVAILABLE: DNS resolution failed.…
2
votes
1 answer

gRPC service definitions: containerize .proto compilation?

Let's say we have a services.proto with our gRPC service definitions, for example: service Foo { rpc Bar (BarRequest) returns (BarReply) {} } message BarRequest { string test = 1; } message BarReply { string test = 1; } We could compile…
Max
  • 9,220
  • 10
  • 51
  • 83
2
votes
1 answer

How to encrypt gRPC connections without certificates?

I'm going to be using gRPC for a device to device connection over a network (my device will be running Linux and collecting patient data from various monitors, gRPC will be used by a Windows client system to grab and display that data). I obviously…
Michael Kohne
  • 11,888
  • 3
  • 47
  • 79
2
votes
1 answer

gRPC vs WebTransport vs WebSocket for inter-service communication

So I have built a microservice architecture-based system. My services had to communicate with each other in real time with minimum latency... Which is good for me, gRPC or WebTransport or WebSocket? And why? My only requirement after speed... I…
2
votes
0 answers

gRPC Server closing connection when receiving message

I'm using gRPC to exchange messages between C++ and node.js. It works fine. But now I need to to do the same, but using a go implementation instead of node.js. I'm getting the following error when sending messages from the go client to the c++…
Flav Scheidt
  • 105
  • 5
2
votes
0 answers

Achieving sub millisecond latency with gRPC over LAN?

I was reading about the performance of gRPC and found a couple of interesting benchmarks: gRPC is capable of processing approx. 36K requests per second using a single core server and approx. 62K requests per second using two cores (using the Java…
2
votes
1 answer

How to pass big amount of data(unknown size, minimum 10GB) using gRPC

From a source I am getting stream data which size will not be known before the final processing, but the minimum is 10 GB. I have to send this large amount of data using gRPC. Need to mention here, this large amount data will be passed through the…
user10634362
  • 549
  • 5
  • 21
2
votes
0 answers

kubernetes ingress returns 400 error for upstream http2 grpc application

I've created the ingress with below yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/backend-protocol: "GRPCS" nginx.ingress.kubernetes.io/ssl-redirect: "true" …
2
votes
1 answer

How can a REST endpoint call a method in gRPC server/ microservice?

I am very very new to gRPC and according to my requirement just wanted to know if this is possible, if yes then how ? I have a rest API application with endpoints, how can this rest api call a gRPC server method or client method ? Ideally I want to…
Annas
  • 161
  • 1
  • 7
2
votes
0 answers

How to use SSL in gRPC

I am completely new in SSL/TLS and trying to use this feature in gRPC by reading this. Though I have not found/understood any fruitful from this documentation which pushed me to search workaround from other sources and I have found this post 1, post…
user10634362
  • 549
  • 5
  • 21
2
votes
0 answers

Connect NGINX proxy to Envoy for gRPC-Web

I am currently developing a webapp with a gRPC backend. For this I am using gRPC-Web and the Envoy proxy between the webapp and the backend service. It is all going fine but now I wanted to deploy it to a digitalocean server and was setting up NGINX…
wind.leon
  • 33
  • 4
2
votes
0 answers

How can I get the registered service with the gRPC service class or function instead of in the Main() function

I have a gRPC service with several functions. To make it simple public GreeterService : GreeterServiceBase { public override Task SayHello(SayHelloRequest request, ServerCallContext context) {...} public override…
kzfid
  • 688
  • 3
  • 10
  • 17