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

Is token based authentication for gRPC adds metadata for each call?

I am reading through gRCP authentication and based on what I read, it looks like authentication info (token) is attached as metadata to each call (vs channel). Did I understand it correctly? The reason why I am so puzzled is that gRPC is touted to…
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
2
votes
0 answers

gRpc: Problems with Proto file and gRpc: 13 INTERNAL: Cannot read property 'id' of null

I'm trying to implement two microservices with gRpc, my stack is nestjs and prism. I have a method that gets a user in the database (findOne), the Prisma does not find the user returns null, but gRpc does not accept the return to null and generates…
Seta-san
  • 23
  • 3
2
votes
1 answer

Is it fine to restore a reserved field in a proto definition?

Say I commented out a field in a proto definition and set the number in the reserved fields, but now I want to restore it. Can I take it out of reserved and assign the number back? Or should I use a new number. Are there any implications on the…
Daniel Arechiga
  • 847
  • 7
  • 19
2
votes
1 answer

Creating gRPC server with c#. Return types Task?

I created a gRPC server with C#. Quite simple. What confuses me is that the return types of all message requests are Tasks. From the example Greeting server: public override Task SayHello(HelloRequest request, ServerCallContext…
Klamsi
  • 846
  • 5
  • 16
2
votes
2 answers

why does Java RMI use a registry?

when looking at gRPC, SOAP and REST neither of them use a naming service or registry. I was wondering why that is? what are the advantages to using a registry and what alternative do they use?
adams_john
  • 21
  • 1
2
votes
1 answer

What is the difference between grpc.WithConnectParams.Backoff and grpc_retry.WithBackoff?

I am trying to understand what is the difference between two GRPC ways to do a retry. One is grpc.WithConnectParams; that is, let's say grpc.Dial(address, grpc.WithConnectParams(grpc.ConnectParams{ Backoff: backoff.Config{ BaseDelay: 1 *…
Karel Bílek
  • 36,467
  • 31
  • 94
  • 149
2
votes
1 answer

ASP.NET gRPC: how to import other proto file?

I have a VS 2019 ASP.NET gRPC Server project. It has 2 proto files in the same folder: Protos\mainsvc.proto Protos\enums.proto The enums.proto contains a declaration some of common enums which I'd like to use in multiple proto files. How can I…
ZedZip
  • 5,794
  • 15
  • 66
  • 119
2
votes
1 answer

Are there any tools that offer both gRPC and OpenAPI documentation generation all in one?

I'd like to be able to, ideally, pass in only my protobuf files. These files contain the rpc definitions (with all of the necessary request/response bodies), and the google.api.http option that lets one create a http proxy so that clients can call…
PaulJob2
  • 29
  • 2
2
votes
1 answer

gRPC error about missing an "Unimplemented" server method

this my proto file: syntax = "proto3"; option go_package = ".;pb"; service Greeter { rpc SayHello (HelloRequest) returns (HelloReply); // hello } message HelloRequest { string name = 1; } message HelloReply { string message =…
Liamsuperman
  • 21
  • 1
  • 2
2
votes
1 answer

Problems with grpc connection using ssl

I am currently new in grpc. I wanted to provide ssl for my grpc server the javav code for starting looks like this: InputStream publicKey = ServerStarter.class.getResourceAsStream("/my-public-key-cert.pem"); InputStream privateKey =…
2
votes
0 answers

Can't reach gRPC server exposed by a nginx ingress in kubernetes

I have a gRPC server exposed by an ingress. Here are the nginx annotations I use : nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/backend-protocol: "GRPC" I am able to request it using grpcurl : grpcurl -d…
Olive
  • 21
  • 1
2
votes
2 answers

Redirecting service to bidirectional grpc

I'm currently working on a grpc server that will receive streaming grpc calls from the first server and redirect these calls to the second server, and redirect responses from the second server as streams to the first one. I have 2 proto files first…
2
votes
1 answer

Are CloudEvents useful on gRPC framework?

We have been working on an existing application that emits event for consumer applications. Consumer applications interact with our application on gRPC. We are evaluating CloudEvent standards for our events. While we understand that it provides a…
Pragmatic
  • 3,093
  • 4
  • 33
  • 62
2
votes
2 answers

Clarifai returns handshake error when using GRPC Python Client

I tried using the clarify-python-grpc client and it worked great. Here I just wanted to try the demographics model for testing. It worked 2 weeks ago but I think there was an update to grpc which leads to this bug. from…
Bernardo
  • 86
  • 7
2
votes
2 answers

Configure ASP.NET Core gRPC to use SSL/TLS on both the server and client

Here is my isue: how do you use the ASP.NET Core APIs for gRPC to establish SSL/TSL on both the server and the client? I have searched the internet for documentation on how to configure gRPC to use TLS. I can find some people who have posted a…
Steve Miller
  • 300
  • 3
  • 11