947 questions
1
vote
1
answer
68
views
Watch Grpc health using Java stub
I want to watch a GRPC service's health. I can create a client and call 'grpc.health.v1.Health/Check'. I can also call 'grpc.health.v1.Health/Watch'.
With grpcurl, that outputs "status": &...
Tooling
0
votes
1
replies
64
views
Spring gRPC and Spring Boot compatibility
the getting started page notes that
Spring gRPC 1.0.x supports Spring Boot 4.0.x
But, how about backwards compatibility to Spring Boot 3.x ?
0
votes
1
answer
83
views
GRPC service is not accessible via Eureka
I have a microservices setup with the following services:
ECOM Service
API Gateway
NOTIFICATION-SERVICE (Spring gRPC-based service)
I’m trying to make the ECOM service communicate with the ...
-1
votes
1
answer
146
views
Issue with GRPC with Netty NIO threads
Hello I am facing some issues while Integrating Grpc Client to use Netty's NIO for grpc call and handling callbacks, i want application threads to be free from tracking the status of grpc calls and ...
1
vote
1
answer
152
views
gRPC problem in pom.xml file of my spring boot application
I am getting this error in my pom.xml file when using this build for my gRPC. Cannot resolve symbol 'os.detected.classifier'. Any advice!
<build>
<extensions>
<!-- ...
1
vote
0
answers
68
views
Grpc netty always establishing TLS1.2 even if configured TLS1.3 in ssl context in both server and client
I am using NettyChannelBuilder in grpc client and NettyServerBuilder in grpc server.
I have created NettyServerBuilder with sslcontext with TLS1.3 and started the server as below
import io.grpc....
1
vote
0
answers
49
views
Can't open gRPC channel after signing macOS application
I'm developing an application for macOS on Compose Desktop. Compose successfully executes Gradle tasks, but the application crashes on startup.
The application must not be published to the App Store.
...
0
votes
0
answers
84
views
Java gRPC - Single Channel with multiple DNS of same backend
Different instances of the same backend I want to use in my gRPC Channel are hosted in different AWS regions with different DNS. I want to pass in all these different DNS at the time of Channel ...
0
votes
0
answers
204
views
Protobuf/Grpc generated code from maven with javax instead of jakarta package
I am updating a spring boot project to version 3.4.5 with java 21. For this packages have changed from javax.* to jakarta.*
I am generating Grpc endpoints with protofiles with this maven plugin:
...
2
votes
0
answers
161
views
Why does Spring Initializr still use the deprecated protobuf-maven-plugin for gRPC projects? [closed]
I've recently started learning how to work with gRPC in Spring Boot. I used Spring Initializr to bootstrap a new project and added the gRPC dependencies. To my surprise, the generated pom.xml included ...
0
votes
1
answer
213
views
No error on the grpc client when ignoring the response stream from the server
I call the grpc server with a blocking stub that returns a stream.
blockingStub.send(request);
The generated stub code in blockingStub looks like this
java.util.Iterator<Response> send(Request ...
0
votes
1
answer
137
views
Not able to consume event from salesforce platform event using camel salesforce
Not able to consume event from salesforce platform event using camel salesforce
I am using camel 4.8.0, JDK 17 and Spring boot 3.3.4
I am using the below code.
from("salesforce:pubSubSubscribe:/...
0
votes
1
answer
109
views
grpc-spring-boot-starter method for Authentication
I'm using implementation("net.devh:grpc-spring-boot-starter:3.1.0.RELEASE") library to do Grpc work in my java application.
I followed the documentation to implement Authentication, ...
0
votes
3
answers
268
views
Using GRPC + Springboot, the GRPC plugin is not able to autogenerate the Streaming request object
I am using the new Springboot starter from org.springframework.boot (more details below) and I am able to use it to make a simple GRPC API to return Hello world. Now I was trying to upgrade the same ...
1
vote
1
answer
119
views
GRPC StreamObserver threads has no CDI context in Jakarta EE Open Liberty server
I have an Open Liberty server (23.0.0.9), running Jakarta 10 with CDI 3.0 that I am running a grpc-channel with push-pull based streams to an external server. A ManagedServiceExecutor is supplied to ...
0
votes
0
answers
111
views
Context.current() Changes every time it is called
In my GRPC server Context.current().toString() returns a different value everytime it is called even with in the same function for a single request.
Based on https://grpc.github.io/grpc-java/javadoc/...
1
vote
1
answer
227
views
Getting error error: cannot find symbol private static final com.google.protobuf.Internal.IntListAdapter.IntConverter
I have updated the com.google.protobuf:protoc version from 4.27.5 to 4.28.0 in my android project. The protobuf block has a defination like this
protobuf {
//dependency versions are defined under ...
1
vote
1
answer
384
views
First grpc call is taking more time to connect to server
We have written a grpc client and server. Whenever client and server are started, first 3-5 calls take more time in establishing connection. We are running 2 pods of grpc client and 2 pods of grpc ...
0
votes
1
answer
164
views
How to Assign/Configure a New EventLoop Group to Spring Boot gRPC Client?
I am using the Spring Boot Starter gRPC for my Reactive Spring Boot Server App Application and wanted to use a different Event Loop Group for my gRPC client (the service app talks to other services ...
0
votes
1
answer
503
views
Wiremock GRPC demo example is not returning response
I am trying to run the demo provided at wiremock grpc page using spring boot: https://wiremock.org/docs/grpc/
I have the following configuration for the beans:
@Configuration
public class ...
1
vote
0
answers
335
views
Why the GrpcClient annotation doesn't work?
I am trying to set up a GRPC client, but the default implementation does not work. Below I describe my project (Java, SpringBoot, GRPC).
I have:
the protofile is located separately from the server and ...
1
vote
0
answers
710
views
Spring Boot gRPC Server Initialization Error: Unable to get public no-arg constructor for NettyServerProvider
I want to configure a gRPC server in my Spring Boot application (Java 17), but I am encountering the following error when trying to instantiate the server:
package org.xenwgram.config;
import io.grpc....
1
vote
0
answers
104
views
why grpc-java uds is slower than dns?
Question:
We did a test to compare the performance between uds and dns. According to what said on the Internet, uds should be faster because it lacks many network layer protocols. However, the actual ...
1
vote
1
answer
100
views
How in Gosu override Java function when compiler require reified function?
My service on Gosu language (Java 11).
I write interceptor for GRPC Server. For it, I must implements next interface from GRPC library :
package io.grpc;
public interface ServerInterceptor {
<...
0
votes
1
answer
78
views
ManagedChannelBuilder creates a ManagedChannel, but MyService.newStub only accepts an RpcChannel
I'm trying to use the following code to create a stub:
ManagedChannel channel = channel = ManagedChannelBuilder.forAddress("localhost", 41800)
.usePlaintext()
.build();
...
1
vote
0
answers
429
views
Is datadog gprc trace metric (trace.grpc.server.hits) reliable?
My application is built using Kotlin and Spring Boot, with the gRPC framework running on AWS EKS clusters with datadog agent installed. We utilize Datadog APM to monitor the performance of our system. ...
0
votes
1
answer
191
views
Scaling gRPC Server Streaming to 100K Subscribers on GKE (Java Spring Boot Reactive)
I'm building a gRPC server streaming application using Java, Spring Boot, and reactive programming that acts as a wrapper around Google Cloud Pub/Sub. The application has two methods: /publish and /...
0
votes
0
answers
219
views
How to handle Grpc client channel reconnect scenarios in Java
I am using GRPC java 1.50 to handle Grpc communication among different components and using consul as service discovery.
On client side, I am caching ManagedChannel in ConcurrentHashMap for each ...
0
votes
1
answer
301
views
How to add the function of gRPC client to existed Micronaut http microservices
Environment:
Micronaut version: 4.6.3
JDK: 17
I have a rest api developed with Micronaut. Now I want to add the feature of gRPC client to this rest api for calling a gRPC server at http://localhost:...
0
votes
2
answers
118
views
Quarkus GRPC OpenTelemetry multiple transactions
Im using Quarkus together with io.quarkus:quarkus-opentelemetry:3.15.0. For log collection we are using Elastic and Cabana.
I have been doing some performance tests and I can see 2 types of ...
1
vote
1
answer
300
views
gRPC Application only listening for IPv6 Address
I am trying to run a Java gRPC Application on an Oracle Cloud Instance but it keeps listening only for IPv6 address
$ netstat -tulp | grep 16507
(Not all processes could be identified, non-owned ...
0
votes
1
answer
503
views
Getting a io.grpc.StatusRuntimeException: CANCELLED: io.grpc.Context was cancelled without error
I have written this simple gRPC code that should run the commit stub on every server. Here is the code -
private Boolean sendCommit(List<Transaction> allTransactions) {
for (int ...
0
votes
1
answer
114
views
grpc work with grpcurl but not working with java integration
We have a customer that we have to connect their grpc services. We can create jwt token from their server. When we use this jwt token with grpcurl, we can get response successfully, but when we trying ...
1
vote
1
answer
196
views
Spring gRPC @ExceptionHandler uses outdated Context generation
I'm using Spring Boot gRPC and encountered the problem that my set context (which I prepare in a @ServerInterceptor) is not used in exceptions at @GrpcAdvice ExceptionHandler. It handles Context....
0
votes
1
answer
162
views
How to close jetcd election client without errors
All client configurations work without any problems.
Election class in the Jetcd library has the following observe method,
void observe(ByteSequence electionName, Listener listener);
With this method ...
0
votes
1
answer
252
views
StatusRunTimeException with custom status codes in GRPC
We have an application where we have a need to return Custom GRPC Status codes, as we feel the codes are limited. Is there a way we can return Custom GRPC Status code?
I tried to return custom status ...
1
vote
0
answers
99
views
Shaded jar for Kafka Connector using grpc-netty-shaded not working
I am building a shaded jar that I want to run on a Kafka Connect cluster. This jar is a simple gRPC client that consumes Kafka messages from a topic then sends them to a server. However, when I run my ...
0
votes
0
answers
210
views
Set cookie to browser
I don't have the jwt token I got from my backend server installed in the browser.
I have the same configuration:
Client - react-app (grpc-web) (192.168.3.2:3000)
Proxy server envoy
(is on a virtual ...
0
votes
0
answers
83
views
grpc java latency between HEADERS and DATA resulting in client timeouts
We are facing multiple issues during the moderate load from grpc client written in C++ to grpc server written in java. (C++ is managed by clients and not in our control)
When we enabled the logs for ...
-1
votes
1
answer
602
views
GRPC-Java DEADLINE_EXCEEDED with 5 seconds even if put .withDeadlineAfter(5, TimeUnit.MINUTES)
Not sure if I am missing anything but I have a code block like this
ManagedChannel channel = getManagedChannel(serverId);
var responseObject = ArtifactsGrpc.newBlockingStub(channel).
....
0
votes
1
answer
516
views
Got ClassNotFoundException while building native image with grpc-netty-shaded 1.65.1
The version of grpc-java is 1.65.1, and I'm using grpc-netty-shaded in Nacos, which is an experimental version supporting Spring Boot 3.3.1. While using native:compile, the project encountered an ...
1
vote
2
answers
711
views
Java Spring Boot gRPC service not being created
I am trying to implement gRPC into my Java Spring Boot application (Maven), after compiling the .proto file and building the project, all the classes are being created except for the service in the ...
0
votes
1
answer
716
views
GRPC Java MAX_CONCURRENT_STREAMS vs maxConcurrentCallsPerConnection
I'm trying to understand the difference between MAX_CONCURRENT_STREAMS and maxConcurrentCallsPerConnection. I read that most servers set MAX_CONCURRENT_STREAMS to 100 as a default whereas ...
0
votes
1
answer
626
views
How many streams will be used by a single Bi-directional streaming gRPC call?
We are noticing performance issues when trying to use the bi-directional stream API call to stream data at 2000-4000 updates/second. We enabled debug logging and see that streamId is same for all the ...
0
votes
2
answers
271
views
How to use RoundRobinLoadBalancer "round_robin" in Java grpc 1.64.0?
I have updated grpc from 1.58.0 to 1.64.0 and the RoundRobinLoadBalancer is gone. Where did it go?
Is there an alternative?
I simply tried using the "pick_first" load balancer, but that's ...
1
vote
0
answers
633
views
Generate grpc java client
I am trying to compile my proto into a grpc java client and a python grpc java server.
I can't get the java generated class to produce the Services.
The following is proto named 'myproto.proto:
syntax ...
0
votes
1
answer
72
views
How to get a builder of a response type within ServerInterceptor?
I'm writing a ServerInterceptor that might respond with a predefined response. In order to construct a response, I need a builder of that type but I can't find a way to get it.
Here is the declaration ...
0
votes
1
answer
135
views
Is there a provision in grpc-java to add new services to grpc servers during runtime
I want to add and remove services to the grpc server without bringing down other services running.
Usecase:
Whenever I need to use grpcurl or grpcdebug for debugging purposes, these tools require like ...
0
votes
0
answers
80
views
GRPC traffic gets dropped at scale 6000 TPM Even with best practices and channel polling
I am seeing 1-2% grpc Traffic gets dropped even after following best practices.
I am using channel polling of size 10-20, best practices suggested in for polling is we have a unique channel name and ...
0
votes
1
answer
2k
views
What are the exact guarantees of gRPC Streaming?
I've been having diffulty understanding the exact guarantees of gRPC streaming. Mostly because I have heard/read contradicting stories about it.
My question is the following:
If I have a stream [A, B, ...