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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

Setting Message Size Limits in Tonic While Using Service Interceptor

I'm building a gRPC server using the Tonic framework in Rust (still exploring rust). By default, Tonic has a maximum message size limit of 4MB, and I would like to increase this limit to 50MB for both ...
Amit Shmulevitch's user avatar
0 votes
1 answer
25 views

How to create gRPC server in Windows Form App?

I start to explore gRPC in C#. I try to build gRPC serwer in Windows Forms App. I used belowe code to create and start gRPC server. But I encountered a problem. Exception User-UnHandled System.IO....
AndrzejFor's user avatar
0 votes
0 answers
27 views

How to put a List inside another List in mapstruct?

I am using mapstruct and grpc. I have a data called Context and it contains a list called Verification, this part does it well, from grpc to dto: @Mapping(source = "context.verificationList",...
Michael's user avatar
0 votes
0 answers
22 views

Compatibility between gRPC and protobuf versions

I would like to know if gRPC is attached to a specific version of protobuffer. I mean, when I compile gRPC from source in the C++ git repository, the third_party folder contains a submodule linked to ...
ChrisMarLie's user avatar
0 votes
0 answers
34 views

gRPC Java server leaks memory on large requests since updating JDK Docker image

We have a gRPC server written in Java. The application is using SpringBoot version 2.5.7. In an attempt to isolate the issue, I stripped the project down to contain only one unary gRPC endpoint that ...
Jonathan Shifman's user avatar
0 votes
2 answers
34 views

gRPC - Keep a stream connection alive in Python

I am trying to convert a C# app into a Python app and I am having issues with gRPC. I need to keep a stream connection alive while the application is running, this app receive broadcast messages from ...
McNets's user avatar
  • 10.4k
0 votes
0 answers
11 views

how to setup envoy for react to call spring boot server using grpc on ec2 instance

This is the github repo: https://github.com/gwengusc/react-springboot-grpc-example Every thing works fine when I use restful api for react to call spring boot both local and ec2. However, I want to ...
user2914509's user avatar
1 vote
0 answers
19 views

Kotlin Coroutines SharedFlow collector lost some data with gRPC Kotlin

I tried to use SharedFlow with gRPC Server side stream. var sharedFlow: SharedFlow<T>? = null fun createStream(): SharedFlow<T> { val stub = ServiceGrpcKt.Stub(channel) return stub....
이태훈's user avatar
1 vote
0 answers
13 views

How to bypass IPC mechanism in case client and server run in same process context in gRPC?

In a project that I'm working on (on a linux based system), I have server, which can have multiple clients.All of this happens on a single machine, hence I'm using Unix Domain Sockets as grpc IPC ...
iakaisa's user avatar
  • 11
-5 votes
0 answers
24 views

Is it possible to use the grpc-gateway for C++ based servers? [closed]

The grpc gateway helps you provide your APIs in both gRPC and RESTful style at the same time, i.e. define your service in .proto once, and use it as plain REST or over a gRPC API. This is very useful, ...
Lorah Attkins's user avatar
0 votes
0 answers
14 views

Unable to correctly configure gRPC Ingress with Tailscale Kubernetes Operator

I'm running MicroK8s (v1.28.1) on Ubuntu (22.04.3; 5.15.0-1046-realtime). I've installed Tailscale Kubernetes Operator and can successfully access non-gRPC services using it. I can access the gRPC ...
DazWilkin's user avatar
  • 33.2k
1 vote
0 answers
42 views

Single Implementation for GET, LIST, ... endpoints for separate proto files

I've worked with RPC in past and from my experience, each RPC service needs separate implementation. for example, consider protos/oplaccount.proto has following service: service ...
newbieitTech's user avatar
0 votes
1 answer
8 views

Angular grpc client tells url scheme unsupported,is anyone can solve this?

this is error printed in console i create the ts grpc generated file by using grpc-gen-ts then i create the client from the pb_service file, but i invoke the client call this is will the error show up ...
Ganesh Venkatachalapathy's user avatar
1 vote
1 answer
22 views

What's the Best Practice for Continuous Streaming Termination with GRPC Service (C++)

Consider an rpc service which continuously streams a response from server to client: rpc stream_stuff(MyStreamRequest) returns (stream MyStreamResponse); The Request contains data which specifies how ...
Andy's user avatar
  • 1,675
0 votes
0 answers
12 views

How to detect a service type in a grpc request packet from client?

I am new to grpc and the services supported example gnmi, gnoi-file, gnoi-system etc. I want a single server to support multiple services and be able to spwan agent based on the service type. To ...
Mukul Mehra's user avatar
2 votes
0 answers
32 views

Grpc-gateway or maintain simultaneous REST and GRPC servers?

I have mostly used REST or grpc separately in services. When I needed both, used go-kit. But in my new project, OpenAPIv3 is a high want on the REST side and grpc is also needed. I have two options: ...
aloha's user avatar
  • 1,581
0 votes
1 answer
72 views

gRPC protocol buffer generating invalid client stub (Javascript)

I am attempting to send requests from my React client to my backend directly via the browser with an envoy proxy. Along the way I have come to a standstill involving an issue with my client stub not ...
Surya's user avatar
  • 584
1 vote
1 answer
51 views

go grpc: could not import github.com/golang/protobuf/proto (no required module provides package "github.com/golang/protobuf/proto")

The proto file is importing "github.com/golang/protobuf/proto" instead of "google.golang.org/protobuf/proto" when "protoc --proto_path=proto proto/*.proto --go_out=plugins=...
Worldwide's user avatar
0 votes
2 answers
64 views

Architecture for status updates between several services

I have one frontend that's communicating with a main backend that is in turn using services A & B, using gRPC call-response calls. A and B are each responsible for a hardware component they ...
TomVS's user avatar
  • 3
0 votes
0 answers
12 views

How to add swagger security defintion to all of my rpc methods in grpc-gateway

service ActorDefinitionServices { rpc GetActorDefinition(GetActorDefinitionRequest) returns (GetActorDefinitionResponse) { option (google.api.http) ={ get: "/v1/reverseetl/...
Razi Ahmad's user avatar
0 votes
0 answers
32 views

how to cancel a server from client with grpc in c#?

I want to cancel a server created in C# from a client written in C#. However, I will not use cancellation tokens for this. I tried to do it with the help of a flag. I wrote a code that sends true when ...
anonimusBird's user avatar
1 vote
0 answers
30 views

Want to convert go gRPC client and server into WASM and run it successfully

I've a basic go grpc client and server running fine and I want to change the client and server into WASM and want to run the wasm file to communicate between server and client through that WASM file ...
Ashish singh's user avatar
0 votes
1 answer
23 views

How do I build a grpc Enum invariant from an int in python?

I have a grpc method used to query the internal state of some remote object on the server. This internal state includes an enum for the status, which I have replicated in the expected gRPC response ...
Dash83's user avatar
  • 1,367
0 votes
1 answer
58 views

Will java's virtual thread be useful for Grpc bidirectional stream application?

We have to create a microservice using spring boot + grpc. We have to use Grpc's bidirectional streaming. So when client connects to the game, the connection is not disconnected until the client ...
PudgeKim's user avatar
  • 133
0 votes
2 answers
30 views

Best way to adapt Guava's AbstractExecutorService to achieve (gRPC) context propagation?

I had hoped to find a simple class that just does this in gRPC Context library, but sadly no luck. I want to wrap an arbitrary ExecutorService so it will wrap its tasks in order to propagate the ...
David's user avatar
  • 186
0 votes
0 answers
23 views

GRPC error: 14 UNAVAILABLE: No connection established

I am developing a microservices project using NestJS and gRPC. When I run my project locally it runs successfully, however when the project is uploaded to docker I get the error message "Error: ...
Đức Nguyễn Đức's user avatar
0 votes
0 answers
14 views

java grpc ignores `maxInboundMessageSize` and fails when payload bigger than 4194304

Using: server = ServerBuilder.forPort(port) .addService(new MyGRPC()) .maxInboundMessageSize(Integer.MAX_VALUE) .build() .start(); with gradle and package versions: def grpcVersion = &...
Seb's user avatar
  • 1,586
1 vote
0 answers
22 views

GRPC Client not able to find Virtual hostname when deployed with istio DestinationRule and VirtualService

I have an Grpc application ( java + maven). Both grpc server and client are deployed with istio on minikube cluster. When grpc client tries to make a grpc call to server it gets Error SEVERE: Servlet....
aditya ranjan Barik's user avatar
1 vote
0 answers
29 views

How to send traces to jaeger via grpc

I have started the jeager locally in docker: services: jaeger: image: jaegertracing/all-in-one ports: - "14268:14268" - "16686:16686" Then I ...
vovanchello's user avatar
-1 votes
0 answers
38 views

How to change UTF encoding in grpc

We are using grpc v1.36.0, which is supporting only UTF-8 char set in proto buff requests. How it can be changed to any other encoding.
Mohit's user avatar
  • 39
0 votes
0 answers
14 views

Is there a way to defined common proto structure for response?

I have to create a common structure for return response or error form my grpc service. But I want to write reusable .proto file. I write this proto file but dosn't see my requirement. This is my proto ...
saeed jalali's user avatar
-1 votes
0 answers
21 views

Support for charset other than UTF-8 in grpc plugin

We are using grpc as a plugin for opensource gateway (tyk) where we are facing one issue while dispatching the request to grpc server. Error is as following: rpc error: code = Internal desc = grpc: ...
Mohit's user avatar
  • 39
-1 votes
0 answers
16 views

How to integrate Spring Security with keycloak provider and LogNet/grpc-spring-boot-starter

How to integrate Spring Boot 3 Security with LogNet grpc starter? I have my own keycloak authentication. They mention only a bit in documentation, so I still don't understand how to do it... Cannot ...
Artyom Sedov's user avatar
2 votes
1 answer
55 views

It is possible to use Grpc.AspNetCore in C# console application?

I wannt to implement the grpc server in a C# / .NET Core console application rather than an ASP.NET Core web application and I have no idea how to do it or if it is even possible. I did successfully ...
mustafa-naeem's user avatar
0 votes
1 answer
34 views

How can I block and wait until an asynchronous StreamObserver call is finished?

I have a StreamObserver object that executes an asynchronous call: StreamObserver<ServerReflectionResponse> responseStreamObserver = new StreamObserver<ServerReflectionResponse>() { ...
DrPibb's user avatar
  • 3
0 votes
0 answers
25 views

How to set Metadata header in gRPC call when using Camel?

I'd like to pass custom Metadata header to gRPC call. Header has to be derived from additional data that's not present in the raw gRPC request. Something like this works all right without Camel: ...
ptomaszek's user avatar
  • 123
0 votes
0 answers
8 views

Does grpc request go through nginx with http 2 necessarily?

I am new to nginx and learning how to make nginx work with grpc. When I am adjusting nginx config, I found that both http and http2 setting for the port work. The grpc request could go through no ...
WeiAnHsieh's user avatar
1 vote
1 answer
29 views

How to fix redefined fields from protocol buffer definition in Go?

I'm building a gRPC client using the provider's .proto file and has a couple of enumerations that contains valued with the same name on it. syntax = "proto3"; enum Color { NONE = 0; ...
iapazmino's user avatar
-1 votes
0 answers
28 views

Issue about passing arguments to custom plugin with protoc

I use "libprotoc 22.2" and i want to write protoc plugin. My plugin prepared and it works but when i use my executable as a plugin of protoc then i get an error. My command: protoc --plugin=...
tango-2's user avatar
  • 92
0 votes
1 answer
31 views

use grpc reflection service to build static model

I am building a client to a specific grpc application, that exposes also the reflection service (so, for example, I can use grpc_cli to check the exposed call/types). ATM I don't have direct access to ...
Vito De Tullio's user avatar
0 votes
0 answers
35 views

Enable ALPN and list HTTP/2 using Scala Play framework 2.8

I'm trying to enable ALPN and HTTP/2 in a Scala Play Framework 2.8.20 app running on JDK 11.0.20 and Scala 2.13.11 (SBT 1.9.3). My objective is to work with play-grpc and specifically to serve grpc ...
sentenza's user avatar
  • 1,628
0 votes
0 answers
8 views

Avro rpc only import records not rpc methods

I am working with legacy avdl definitions for rpc. I am creating a new one for purpose and importing records from another avdl definition. Is there a way to only import records not the rpc service ...
Manoj Ramakrishnan's user avatar
1 vote
0 answers
24 views

gRPC C++ SetSslTargetNameOverride changes authority?

I am developing simple gRPC client in both C++ and Golang. There is a DialOption in golang client named WithAuthority which overrides the Authority pseudo header in http2 header. Is there any dial ...
WeiAnHsieh's user avatar
0 votes
0 answers
26 views

maxMessageLength Flutter grpc

I am using grpc connection method in my Flutter app. but when I try to send large (around 1GB) it doesn`t get the files. I think it is due to maxMessageLength is bigger than limit. Does anyone have ...
Farkhod Yusubov's user avatar
0 votes
0 answers
24 views

gRPC is not support with spring-boot 3 . is it going to be deprecated?

I am planing to use gRPC for new microservice platform. I realised that I am not able to use gRPC with latest spring boot. is it not a good idea to use gRPC for new application? What are the issues ...
Dinusha's user avatar
  • 696
0 votes
0 answers
28 views

Mac OS getting error while code generating

I am getting following error while doing maven install on gRPC code generation project. Error: Unsupported platform: protoc-3.11.4-osx-aarch_64.exe Maven plugin config <plugin> <groupId&...
Dinusha's user avatar
  • 696
0 votes
2 answers
47 views

Unable to inject @GrpcClient in quarkus "The following beans match by type, but none have matching qualifiers"

I am trying to create gRPC client in Quarkus. Did everything according to the documentation. Placed proto files in src/main/proto: here is the content of the service file syntax = "proto3"; ...
Денис Анд's user avatar
0 votes
2 answers
51 views

How can i use REST and gRPC in same spring boot project?

I am creating a service that will have gRPC endpoints for inter-service communications and REST endpoint for the client browser. what will the pom.xml be for it? since the gRPC server runs on 9000 and ...
Kakarot's user avatar
  • 315
1 vote
0 answers
54 views

How are bidirectional streams handled for TCP disconnection exceptions in gRPC?

In a bidirectional streaming setup in gRPC, if one party terminates the TCP connection, for instance, if the server abruptly crashes and restarts, how can the client re-establish the connection? Do we ...
王伯荣's user avatar
0 votes
0 answers
40 views

Compression over HTTP/2 grpc

We have a payload of 4MB to be returned to the client. We compress it to 500KB using gzip. Without compression, calculating the response and receiving it at the client end in the application, overall ...
sattu's user avatar
  • 640

1
2 3 4 5
127