grpc-java Questions

1

Solved

My question is similar to this post, but it seems to be old and inactive so I am reposting here. Basically, I have a weird use case where I need to send my authorization token in the gRPC request b...
Insectivorous asked 28/6, 2021 at 13:35

1

Solved

First calls usually successful, but then I have exception with message like those: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: ClientCall started after deadline exceeded: -175.597476157s fro...
Geothermal asked 29/6, 2021 at 12:56

4

I'm developing a chat app using GRPC in which the server receives information from the client and sends it back out to all the clients connected to it. For this, I've used Saturnism's chat-example ...
Torhert asked 7/11, 2017 at 10:6

1

Solved

There are services calling service A (10 replicas) via GRpc (100+ req/sec), java generated stubs. We don't have load balancers but I am curios what is the best practice in both cases. Should client...
Liu asked 18/1, 2021 at 17:12

4

When working with gRPC, we need to generate the gRPC client and server interfaces from our .proto service definition via protocol buffer compiler (protoc) or using Gradle or Maven protoc build plug...
Brindisi asked 10/4, 2020 at 3:19

2

Solved

I have a use case where many clients need to keep sending a lot of metrics to the server (almost perpetually). The server needs to store these events, and process them later. I don't expect any kin...
Teaspoon asked 26/6, 2019 at 6:57

2

Solved

I have two microservices communicating using gRPC.Both are docker applications deployed on ECS. How do I configure them to use AWS ALB?In documentation it says ALB supports HTTP/2, however I can on...
Impersonality asked 15/5, 2018 at 7:56

1

Solved

I am new to gRPC. What I am trying to do is to send a ssl gRPC call from a client to a server. My question is the 'certFile' in the following code a client cert or server cert? If it's a client c...
Barnwell asked 28/9, 2020 at 21:42

2

Solved

I read the gRPC Core concepts, architecture and lifecycle, but it doesn't go into the depth I like to see. There is the RPC call, gRPC channel, gRPC connection (not described in the article) and HT...
Iraqi asked 4/9, 2020 at 23:37

1

Solved

Usually, the client can cancel the gRPC call with: (requestObserver as ClientCallStreamObserver<Request>) .cancel("Cancelled", null) However, it is shown in the Javadoc: Cancellab...
Guppy asked 4/8, 2020 at 15:52

1

Solved

I would like to make client-side streaming blocking. The definition of that protocol can look like this: rpc RecordRoute(stream Point) returns (RouteSummary) {} As it's said in the documentation,...
Inshore asked 13/7, 2020 at 17:5

1

Solved

I'm trying to setup a simple pubslish/subscribe pattern over grpc using service streaming together with async stub on client. After implementing part of streaming messages back to client, I wanted ...
Iqbal asked 19/3, 2020 at 14:9

1

I am new to Spring webflux as well as protobuf. I have been reading some stuff and I have found some similarities between them. Like Spring webflux could be deployed over netty so does gRPC. Both...
Kaiserism asked 26/2, 2020 at 14:32

6

I have read the Load Balancing page at https://github.com/grpc/grpc/blob/master/doc/load-balancing.md to start of, but still am confused as to the right approach to loadbalancing between back end G...
Meyerhof asked 3/5, 2017 at 7:28

3

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 / rec...
Banshee asked 7/9, 2017 at 21:16

1

Solved

I want to define a request message in gRPC which should have a Json Object as a field For e.g. message UserRequest{ string name = 1; string city = 2; string email = 3; metainfo = 4;//A Json Ob...
Lodged asked 2/1, 2020 at 10:12

1

Solved

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----- optio...
Yorktown asked 13/6, 2019 at 12:29

1

I am writing one grpc service and using gRPC health checking on Kubernetes (https://github.com/grpc-ecosystem/grpc-health-probe). In my server, I added different implementation (one for liveness an...
Hardshell asked 7/10, 2019 at 17:21

2

Solved

I have a gRPC server which is using mutual TLS for encryption and authentication. So, every client that connects to this server provides an SSL certificate and I want to reject connections from cli...
Burchett asked 26/9, 2019 at 18:19

1

Solved

Looking at gRPC Java doc - ManagedChannelBuilder, there're two options to manage the connections. It seems idleTimeout() is the default/preferred configuration. But when I tried to search for a co...
Overcloud asked 13/9, 2019 at 21:26

3

Solved

I have deployed a web-application inside a tomcat container and have used grpc-netty (1.2.0) with netty-tcnative-boringssl-static:jar:1.1.33.Fork26. When i switch on debug logs it tells that "java...
Arruda asked 25/4, 2018 at 4:52

1

Solved

I'm occasionally getting cancellation errors when calling gRPC methods. Here's my client-side code (Using grpc-java 1.22.0 library): public class MyClient { private static final Logger logger = ...
Tiphane asked 19/7, 2019 at 10:46

1

Solved

Would it be possible to access context attributes of a grpc call from the rpc method definition? I have written a Server Interceptor which is something similar to this @Override public <ReqT, Re...
Stickler asked 18/7, 2019 at 15:45

1

The official documentation states the following with respect to generating client and server code. Next we need to generate the gRPC client and server interfaces from our .proto service definit...
Modulation asked 4/6, 2019 at 0:26

1

I'm working on gRPC and I want to run multiple services on same port Server server = ServerBuilder.forPort(8080) .addService(new HelloServiceImpl()) .addService(new ByeServiceImpl()) .bui...
Becharm asked 23/5, 2019 at 5:12

© 2022 - 2025 — McMap. All rights reserved.