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
12
votes
5 answers

GRPC web client with angular 6

I have worked with grpc .net client and a grpc server created with java, how can i implement grpc web client on angular 6 with typescript? Also how can i create proto files and it's typing's for typescript? I am following this repo but not able to…
Asad Shah
  • 771
  • 2
  • 8
  • 22
12
votes
3 answers

XXX_* type in generated *.pb.go file

I'm working on a tutorial about gRPC. When I generated the .pb.go file, I'm getting some XXX_* type in my struct. This is my consignment.proto file: syntax = "proto3"; package go.micro.srv.consignment; service ShippingService { rpc…
Cliff
  • 1,468
  • 4
  • 14
  • 18
12
votes
5 answers

Elastic Beanstalk deployment failure, permission denied, mkdir

I'm attempting to add the GRPC dependency to a node elastic beanstalk application and all of my deployments are failing. Once I remove the GRPC dependency from my package.json my deployments work. The error is ERROR: Failed to run npm install. >…
12
votes
1 answer

gRPC private channels

Is it possible to only stream to certain clients from a gRPC server? I believe what I'm looking for is something like Pusher, where you have a channel for a client and you can publish messages that can be seen only by a client that has access to…
user2502761
  • 563
  • 1
  • 6
  • 18
12
votes
1 answer

How to encode protobuf map in python?

I am using protobuf and grpc as interface between a client and server. The server is written in C and the client uses python to communicate to the server. I have a message created in protobuf like below. message value_obj { uint32 code = 1; …
nullptr
  • 133
  • 1
  • 1
  • 8
12
votes
3 answers

How to proxy gRPC calls

I'm trying to analyse what information an app is sending so I setup Charles but to my surprise nothing was logged out. After decompiling the app I see that it doesn't use simple REST calls but rather a library called gRPC. Is there a good tool out…
Paulus2
  • 437
  • 5
  • 15
12
votes
2 answers

Why do I get an error when importing my auto-generated gRPC code in Python?

I have to write a RPC service for some Python apps. I have an IDL file called solver.proto and generated some code from it using the grpcio-tools module. Here is the resulting project structure: solver-service ├── main.py └── protos/ ├──…
nmurthy
  • 1,337
  • 1
  • 12
  • 24
12
votes
1 answer

sbt assembly shading to create fat jar to run on spark

I'm using sbt assembly to create a fat jar which can run on spark. Have dependencies on grpc-netty. Guava version on spark is older than the one required by grpc-netty and I run into this error: java.lang.NoSuchMethodError:…
12
votes
3 answers

How to send custom header (metadata) with Python gRPC?

I want to know how to send custom header (or metadata) using Python gRPC. I looked into documents and I couldn't find anything.
avi
  • 9,292
  • 11
  • 47
  • 84
12
votes
1 answer

Microservices with gRPC and REST using Spring Boot

For a project I'd like to set up a small microservice scenario using Spring Boot with an API gateway exposing REST and GraphQL to the clients, a Eureka service registry and three services. I want all services behind the API gateway to talk gRPC…
n1try
  • 1,050
  • 14
  • 23
12
votes
3 answers

How to unpack an google.protobuf.Any type in gRPC nodejs client?

My protobuf file is like this: syntax = "proto3"; import "google/protobuf/any.proto"; service RoomService { getTestAny (Hotelid) returns (google.protobuf.Any); } message Hotelid { string hotelid = 1; } message HtlInDate { Hotelid…
Z fp
  • 562
  • 5
  • 20
12
votes
4 answers

GRPC: Client ID or connection information?

Is there a way to get the connection information on RPC calls from server side? Or maybe something like unique client ID?
Kibeom Kim
  • 471
  • 1
  • 5
  • 12
12
votes
3 answers

Shut down server in TensorFlow

When we want to use distributed TensorFlow, we will create a parameter server using tf.train.Server.join() However, I can't find any way to shut down the server except killing the processing. The TensorFlow documentation for join() is Blocks until…
fois
  • 472
  • 5
  • 14
12
votes
2 answers

How do you make gRPC client Timeout in C# if the server is down?

I am writing a connection back to a TensorFlow Serving system with gRPC from a C# platform on MS Windows 10. I have seen many references to Time-out and Dead-line with the C++ API for gRPC, but can't seem to figure out how to for a timeout under…
mazecreator
  • 543
  • 1
  • 11
  • 27
11
votes
1 answer

How to change MarkUpSafe version in virtual environment?

I am trying to make an application using python and gRPC as shown in this article - link I am able to run the app successfully on my terminal but to run with a frontend I need to run it as a flask app, codebase. And I am doing all this in a virtual…
alex deralu
  • 569
  • 1
  • 3
  • 18