957 questions
0
votes
1
answer
54
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 ...
0
votes
1
answer
89
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
42
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
161
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:
...
0
votes
1
answer
144
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
76
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, ...
1
vote
1
answer
106
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
61
views
GRPC context keeps changing within a single request
I have a GRPC server that handles large number of requests per second. I have header interceptors, Completion and cancelled interceptors created. My understanding is that context of GRPC request would ...
1
vote
1
answer
180
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 ...
0
votes
0
answers
83
views
Expected top-level statement (e.g. "message") for syntax="proto3" line
Here is my accounts.protobuf file
package com.lyngo.account.protobuf;
syntax = "proto3";
import "google/protobuf/empty.proto";
service GrpcAccountService {
rpc ...
0
votes
1
answer
116
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
392
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 ...
0
votes
0
answers
128
views
Why does Envoy return a 200 status code with an empty body when proxying gRPC requests?
I am using Envoy as a proxy to forward gRPC requests to a backend gRPC service. My backend service is running on port 9090, and Envoy is listening on port 8084. When I send a gRPC request to http://...
0
votes
0
answers
184
views
How to manage request-scoped data and MDC effectively in gRPC unary calls?
I have a Spring Boot application serving HTTP requests in a multitenant architecture. For HTTP requests, client identity is extracted from a header and stored in a ThreadLocal. Since Tomcat ensures a ...
1
vote
0
answers
92
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
77
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 {
<...
1
vote
0
answers
367
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
0
answers
198
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
2
answers
100
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 ...
0
votes
1
answer
472
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 ...
1
vote
1
answer
152
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
188
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 ...
0
votes
0
answers
178
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 ...
-1
votes
1
answer
546
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).
....
1
vote
2
answers
633
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 ...