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

grpc.WithInsecure is deprecated: use insecure.NewCredentials() instead

Hey I'm trying make a small test client with Go and Grpc, opts := grpc.WithInsecure() cc, err := grpc.Dial("localhost:9950", opts) if err != nil { log.Fatal(err) } The WithInsecure() function call gives a…
shwick
  • 4,277
  • 6
  • 21
  • 28
27
votes
1 answer

What is the exact use of the executor in grpc-java’s ServerBuilder? Does it just execute the handler methods?

grpc-java uses an executor in its ServerBuilder, which if not defined by the builder.executor() method, uses a static cached thread pool by default. What is the exact use of this executor? Does it just execute the handler methods or does it do…
gravetii
  • 9,273
  • 9
  • 56
  • 75
26
votes
1 answer

Messaging vs RPC in a distributed system (Openstack vs K8s/Swarm)

OpenStack uses messaging (RabbitMQ by default I think ?) for the communication between the nodes. On the other hand Kubernetes (lineage of Google's internal Borg) uses RPC. Docker's swarm uses RPC as well. Both are gRPC/protofbuf based which seems…
Manohar
  • 3,865
  • 11
  • 41
  • 56
26
votes
4 answers

How to increase message size in grpc using python

I am using grpc for message passing and am testing a simple server and client. When my message size goes over the limit, I get this error. grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, Received…
Dumbo
  • 1,068
  • 2
  • 12
  • 21
26
votes
6 answers

gRPC C++ on Windows

I have been trying for 3 days by now to find how to install and use gRPC on windows with no luck. I am using Visual Studio 2015, Win7 64-bit. To be safe, I'll write step by step of what I am doing. It might not be necessary but I am a beginner…
jiripi
  • 656
  • 1
  • 5
  • 15
25
votes
1 answer

Android How to add a custom header in grpc client?

I have to add a custom header in an android grpc client. I am unable to send it successfully. public class HeaderClientInterceptor implements ClientInterceptor { @Override public < ReqT, RespT > ClientCall < ReqT, RespT >…
rana
  • 1,824
  • 3
  • 21
  • 36
24
votes
1 answer

Xcode: Signing for "gRPC-C++-gRPCCertificates-Cpp" requires a development team

When you compile Xcode for Mac app or other iOS, you may see below error Signing for "gRPC-C++-gRPCCertificates-Cpp" requires a development team. Select a development team in the Signing & Capabilities editor. My Xcode version: 11.2.1 Mac OS:…
Sky
  • 2,212
  • 3
  • 14
  • 22
24
votes
2 answers

What is the difference between gRPC and CORBA?

I have a reasonable experience in developing both SOAP and REST web services (in java platform). I am trying to understand the difference between the gRPC and CORBA in every aspect apart from the fact that both enables platform-neutral way of…
Praveen
  • 432
  • 1
  • 6
  • 14
24
votes
2 answers

Visualize gRPC and Protocol Buffers

We are close to 100 .proto files, where every may define around 10 IDL structures (like service or message). Is there a way to visualize of of them, including references (from one file to other). For example similar to UML class diagram. Possibly…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
24
votes
1 answer

How do you share gRPC proto definitions between services

I am specifying a number of independent gRPC services that will all be hosted out of the same server process. Each service is defined in its own protobuf file. These are then run through the gRPC tools to give me the target language (c# in my case)…
Wizbit
  • 421
  • 1
  • 4
  • 13
24
votes
3 answers

What's the difference between gRPC and WCF?

I know we are comparing 2 different technologies, but I would like to know pros and cons of both. WCF is present for almost a decade now. Didn't anything similar exist in java world until now?
Jonna
  • 1,625
  • 1
  • 18
  • 38
23
votes
3 answers

Which option is more suitable for microservice? GRPC or Message Brokers like RabbitMQ

I want develop a project in microservice structure. I have to use php/laravel and nodejs/nestjs What is the best connection method between my microservices. I read about RabbitMQ and NATS messaging and also GRPC Which option is more suitable for…
Mohammad Honarvar
  • 231
  • 1
  • 2
  • 6
23
votes
1 answer

Questions about gRPC support in web browsers and how they utilize HTTP2

Upon discovering gRPC, I stumbled across this blog post Why isn’t everyone already using gRPC in their SPAs? Traditionally it’s not been possible to use gRPC from browser-based applications, because gRPC requires HTTP/2, and browsers don’t…
spencer741
  • 965
  • 1
  • 10
  • 22
23
votes
1 answer

How can I deprecate whole message in Protocol Buffers?

According to documentation: deprecated (field option): If set to true, indicates that the field is deprecated and should not be used by new code. Example of use: message Foo { string old_field = 1 [deprecated=true]; } How we can deprecate the…
23
votes
3 answers

Can I send a custom Error message from server to client GRPC?

I have created a simple GRPC server and client . What i want to do is to create a custom error in the server and pass it to the client. My code looks as follows: Server.js var error = require('error'); var PROTO_PATH = grpc.load(__dirname +…
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193