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

Real World Microservices gRPC vs Event Sourcing

I am trying to learn about microservices, and am confused about which approach is better between service orchestration and event sourcing ( service choreography) . There seems to be very few frameworks available which allow you to just build your…
John
  • 505
  • 4
  • 20
14
votes
4 answers

What would be the best approach to converting protoc generated structs from bson structs?

I'm writing a RESTful API in Golang, which also has a gRPC api. The API connects to a MongoDB database, and uses structs to map out entities. I also have a .proto definition which matches like for like the struct I'm using for MongoDB. I just…
Ewan Valentine
  • 3,741
  • 7
  • 43
  • 68
14
votes
0 answers

Integrating Play Framework 2.6 with gRPC and Netty

At the time I write this post, Play Framework is at v2.6.0-M4. The v2.5 version of the framework had difficulties to work with gRPC because of Netty conflicts (see this stackoverflow answer). I'm starting to look into gRPC and protobufs. Already…
Jesse
  • 879
  • 1
  • 12
  • 26
14
votes
1 answer

how to create a protobuf go plugin plugin

https://github.com/golang/protobuf protoc-gen-go is a plugin in protoc which generates go bindings for the input proto definition. protoc-gen-go also has a plugin framework for which grpc is a plugin…
weima
  • 4,653
  • 6
  • 34
  • 55
14
votes
3 answers

gRPC documentation generator

Does gRPC support generating documentation for services like Swagger?
Max Ng
  • 449
  • 1
  • 4
  • 10
13
votes
1 answer

grpc-dotnet Server without ASP.Net

I am currently trying to port my Project (.Net Core) from "Grpc.Core" to "grpc-dotnet", since Grpc.Core is now in maintenance mode and will be deprecated in about a Year. The Projects consists of multiple services. Clients and Servers. Porting the…
xTeare
  • 131
  • 5
13
votes
1 answer

Grpc not increasing max size of the message: received message larger than max

I am using grpc to send some pretty large messages (the parameters of a machine learning model over the network). The problem is that I am getting the following error when I make a grpc call: grpc: received message larger than max (261268499 vs.…
MUAS
  • 519
  • 1
  • 7
  • 20
13
votes
1 answer

Publish two different endpoints on Kestrel for two different endpoints on ASP.NET Core

I have a ASP.NET Core application that has two endpoints. One is the MVC and the other is the Grpc. I need that the kestrel publishs each endpoint on different sockets. Example: localhost:8888 (MVC) and localhost:8889 (Grpc). I know how to publish…
Douglas Ramos
  • 531
  • 1
  • 5
  • 10
13
votes
2 answers

proto c++ implementation - "marked ‘override’, but does not override" error

// api_internal.proto service InvoiceTemplateMatcher { rpc Process(InvoiceFilePath) returns (UploadStatus) {} } message InvoiceFilePath { string invoice_id = 1; string file_path = 2; } // template_matcher/src/main.cc class…
julka
  • 1,172
  • 2
  • 13
  • 29
13
votes
1 answer

How to design publish-subscribe pattern properly in grpc?

i'm trying to implement pub sub pattern using grpc but i'm confusing a bit about how to do it properly. my proto: rpc call (google.protobuf.Empty) returns (stream Data); client: asynStub.call(Empty.getDefaultInstance(), new StreamObserver()…
Dmitry Zagorulkin
  • 8,370
  • 4
  • 37
  • 60
13
votes
1 answer

grpc Python: ignore untrusted certificate

I want to create a grpc channel to a source that I trust, but whose certificate I lack. Setting up a secure channel with default credentials fails: import gprc ssh_channel = grpc.secure_channel(,…
user2416984
  • 941
  • 1
  • 11
  • 18
13
votes
1 answer

Access multiple gRPC services over the same connection

I am running a grpc server listening on localhost:6000, exposing 2 grpc services: RegisterSubscriberServiceServer and RegisterDropperServiceServer. Since both of these services are reachable from localhost:6000, I'd like to only dial this address…
ChaChaPoly
  • 1,811
  • 5
  • 17
  • 39
13
votes
3 answers

Defining custom go struct tags for protobuf message fields

I am new to grpc and have been trying to just fetch a json response from a webserver. The stub can then request the json from the rpc server. In my .proto file, I created a message type: message Post { int64 number = 1; string now = 2; …
ChaChaPoly
  • 1,811
  • 5
  • 17
  • 39
13
votes
2 answers

Asynchronous model in grpc c++

My team is designing a scalable solution with micro-services architecture and planning to use gRPC as the transport communication between layers. And we've decided to use async grpc model. The design that example(greeter_async_server.cc) provides…
WhiteSword
  • 155
  • 2
  • 5
13
votes
2 answers

python gRPC requiring a context argument

I am just getting started with gRPC and have tried to implement a simple python service after going through the starter guides. But when I invoke my client call python is asking for a context argument to be provided. Why does my code need to supply…
user7815551
  • 206
  • 1
  • 2
  • 6