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
11
votes
2 answers

How to use gRPC in an existing Rails application

The current web app setup is like this: there is a central server which interacts with different services through http API calls using JSON as the response object. We want to switch to using gRPC for the communication between these services to…
Vinay Lodha
  • 211
  • 2
  • 7
10
votes
0 answers

How to use gRPC with Kotlin Ktor

Where can I find examples of using gRPC with ktor. Is it possible, has anyone done such before? I need help. I have tried following this sample: https://github.com/renannprado/ktor-grpc-sample but I could not get it to work and the sample may not be…
Jerry Okafor
  • 3,710
  • 3
  • 17
  • 26
10
votes
1 answer

how to return list in grpc

i want return list of Person model to client in grpc.project is asp.net core person.proto code is : syntax = "proto3"; option csharp_namespace = "GrpcService1"; service People { rpc GetPeople (RequestModel) returns (ReplyModel); } message…
noob
  • 126
  • 1
  • 7
10
votes
3 answers

When making Grpc request over http in .net core creates following exception. I am using .net core 3.1

Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: An error occurred while sending the request. IOException: The request was aborted. Http2ConnectionException: The HTTP/2 server sent invalid…
navaladi v.k
  • 111
  • 1
  • 2
  • 7
10
votes
3 answers

Does gRPC vs NATS or Kafka make any sense?

For a long time, when it comes to the microservice architecture, NATS and Kafka are the first options that come to my mind. But recently I found this gRPC template in dotnet core and that grasped my attention. I read a lot about it and watched a lot…
Arnold Zahrneinder
  • 4,788
  • 10
  • 40
  • 76
10
votes
1 answer

Error when trying to build docker image: failed to dial gRPC: unable to upgrade to h2c, received 500

When I try to execute docker build -t exampledockeracc/testapp:v1.0.0 . I receive the following error: failed to dial gRPC: unable to upgrade to h2c, received 500, context canceled When i search for the error people come with the solution to restart…
jscholten
  • 317
  • 2
  • 13
10
votes
1 answer

Client gRPC connection with reconnect in C++?

Is it possible to have a client channel that automatically reconnects? I tried using wait_for_ready(true) on the context, but that doesn't seem to have any effect. I get this crash when I try to use a client channel with a lost connection: E0519…
Šimon Tóth
  • 35,456
  • 20
  • 106
  • 151
10
votes
3 answers

GRPC: make high-throughput client in Java/Scala

I have a service that transfers messages at a quite high rate. Currently it is served by akka-tcp and it makes 3.5M messages per minute. I decided to give grpc a try. Unfortunately it resulted in much smaller throughput: ~500k messages per minute…
simpadjo
  • 3,947
  • 1
  • 13
  • 38
10
votes
1 answer

Should I transmit large data sets via gRPC without manual chunking?

I want to use gRPC to expose an interface for bidirectional transfer of large data sets (~100 MB) between two services. Because gRPC imposes a 4 MB message size limit by default, it appears that the preferred way to do this is to manually code…
w128
  • 4,680
  • 7
  • 42
  • 65
10
votes
3 answers

Need Guidance for Intregration Testing with the new .Net Core 3.0 grpc service

I am playing around with the new GRPC Service for .Net Core 3.0 template. I have successfully created the Hello World service. I am now trying to add a test project to this solution. I can see how to make an in-memory server for integration…
Mark LFT
  • 141
  • 1
  • 7
10
votes
1 answer

CMake with gRPC cannot find gRPCTargets.cmake

I am having issues building the grpc cpp helloworld example with cmake. I built and installed grpc with cmake initially, and then with make directly. I have found this issue raised by someone else in the past, which was closed as resolved. It does…
codentary
  • 993
  • 1
  • 14
  • 33
10
votes
3 answers

How to inspect clients that are connected to a GRPC server

To provide better debugging information for my GRPC server/client setup, I am trying to find an API for grpc.server that allows me to inspect what clients are connected to the server. The most promising question I have found is question, which gives…
pmelanson
  • 330
  • 4
  • 16
10
votes
1 answer

How to make call to gRPC server over HTTP/1.1 from cURL command or in internet browser

I have added below new code in protobuf file and compiled to get the generated grpc_pb files. service EchoService { rpc Echo(EchoMessage) returns (EchoMessage) { #-----New code start----- option (google.api.http) = { post:…
SOWMITHRA KUMAR G M
  • 1,320
  • 2
  • 11
  • 17
10
votes
3 answers

grpc organization in microservices

I'm creating a system using a microservices architecture. There are two microservices A and B, each living in their own repository. There is a user.proto file containing protobuf definition and gRPC method signatures. A uses generated user.pb.go as…
kkyr
  • 3,785
  • 3
  • 29
  • 59
10
votes
2 answers

GRPC Connection Management in Golang

I am relatively new to GRPC and want to be sure that I am doing connection management correctly with golang. I don't want to have to create a new connection for every call but I also don't want to create bottlenecks as I scale. What I did was to…
mornindew
  • 1,993
  • 6
  • 32
  • 54