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

How to use a gRPC interceptor to attach/update logging MDC in a Spring-Boot app

Problem I have a Spring-Boot application in which I am also starting a gRPC server/service. Both the servlet and gRPC code send requests to a common object to process the request. When the request comes in I want to update the logging to display a…
Jim M.
  • 909
  • 1
  • 12
  • 29
10
votes
1 answer

gRPC server in Python with Unix domain socket

Will gRPC support in Python allow me to implement a server that listens on a Unix domain socket (as opposed to a port)? I am using Python 3.5.3 and grpcio/grpcio-tools 1.18.0. So far, I have not been able to find any relevant example nor direct…
rookie099
  • 2,201
  • 2
  • 26
  • 52
10
votes
1 answer

Why doesn't AsyncUnaryCall and others extend Task?

When working with gRPC in C#, asynchronous calls return AsyncUnaryCall (for unary calls - of course, other calls have slightly different return types). However, AsyncUnaryCall does not extend Task. Therefore, common things you would…
me--
  • 1,978
  • 1
  • 22
  • 42
10
votes
4 answers

Why do I get: "--grpc_out: protoc-gen-grpc: The system cannot find the path specified." message?

I am following this C# Quickstart tutorial for gRPC. I have come to this step where I have to use the following command to generate gRPC code: %UserProfile%\.nuget\packages\Grpc.Tools.1.15.0\tools\windows_x86\protoc.exe -I../../protos --csharp_out…
Gal Eržen Pajič
  • 111
  • 1
  • 1
  • 7
10
votes
1 answer

Why is envoy proxy required for grpc-web?

If the browser supports http/2, why does grpc-web require envoy proxy? Is it just required for older browsers that do not support http/2?
Deep Vora
  • 318
  • 3
  • 13
10
votes
3 answers

What is the difference between thread safe and thread compatible?

What is the difference between thread safe and thread compatible? What thread compatible mean? What is use cases for thread compatible? UPD: I have found this definition in the grpc documentation of StreamObserver. Also, I have found the link to…
mkUltra
  • 2,828
  • 1
  • 22
  • 47
10
votes
1 answer

Is google.protobuf.Empty dangerous for backwards compatibility?

The spec for google.protobuf.Empty states: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. I've been…
DMac the Destroyer
  • 5,240
  • 6
  • 36
  • 56
10
votes
5 answers

Google dialogflow PERMISSION_DENIED Exception

I am trying to access a Google DialogFlow from a Windows Java application. I have the environment variable, GOOGLE_APPLICATION_CREDENTIALS, properly set and I can call other Google APIs. However, when I call: DetectIntentResponse response =…
Andrew Prokop
  • 121
  • 1
  • 1
  • 4
10
votes
5 answers

How to broadcast in gRPC from server to client?

I'm creating a small chat application in gRPC right now and I've run into the issue where if a user wants to connect to the gRPC server as a client, I'd like to broadcast that the event has occurred to all other connected clients. I'm thinking of…
Somnium
  • 363
  • 1
  • 8
  • 17
10
votes
1 answer

gRPC context on the client side

I am building a client/server system in go, using gRPC and protobuf (and with a gRPC gateway to REST). I use metadata in the context on the server side to carry authentication data from the client, and that works perfectly well. Now, I'd like the…
chilladx
  • 2,037
  • 2
  • 16
  • 19
10
votes
2 answers

Android: grpc failed on Nexus 5

I'm working with geocoder. On all devices the code works fine but on a Nexus 5 phone there is an exception in the logs. My code: override fun fromAddress(address: Address): Observable { val location =…
Laurens V
  • 551
  • 1
  • 7
  • 19
10
votes
1 answer

Drone 0.8: build stuck in pending state

Installed Drone 0.8 on virtual machine with the following Docker Compose file: version: '2' services: drone-server: image: drone/drone:0.8 ports: - 8080:8000 - 9000:9000 volumes: - /var/lib/drone:/var/lib/drone/ …
vania-pooh
  • 2,933
  • 4
  • 24
  • 42
10
votes
3 answers

file transfer using gRPC

What is the standard way to use gRPC and protocol buffer to transfer file or images from one process to another? The file is from 1MB to 6MB. Basically I want to know how to implement sender / receiver code pairs for python, C++ and…
cpchung
  • 774
  • 3
  • 8
  • 23
10
votes
1 answer

How to wait for the gRPC server connection?

I am trying to run the Helloworld example with the client in C# and the server in Python. When I manually start the server and then the client, the client can successfully connect to the server and call the SayHello method. Now, I have configured…
johannesmik
  • 731
  • 1
  • 8
  • 18
10
votes
3 answers

How to read Meta data in gRPC using Java at client side

I am using Java and Protoc 3.0 compiler and my proto file is mention below. https://github.com/openconfig/public/blob/master/release/models/rpc/openconfig-rpc-api.yang syntax = "proto3"; package Telemetry; // Interface exported by…
Ammad
  • 4,031
  • 12
  • 39
  • 62