Questions tagged [akka-grpc]
30 questions
4
votes
0 answers
Akka-grpc: how to authenticate request?
Is there a way to intercept request in akka-grpc? (I need to get authentication info and enrich request with it).

Teimuraz
- 8,795
- 5
- 35
- 62
3
votes
0 answers
Editing the Metadata of HttpRequest for Akka GRPC Authentication
Akka-grpc documentation provides a basic example of adding authentication through Akka-http.
At the end, it suggests that the authentication result can be embedded in the metadata of the HttpRequest and can be accessible in the grpc service methods…

zmerr
- 534
- 3
- 18
2
votes
1 answer
Can Akka grpc consume data from non-Akka service
I'm having trouble to understand the fundamentals of Akka grpc. In Akka documentation I see examples of Akka protobuf client consuming service from Akka protobuf server.
Can I use Akka though to consume data from a non-Akka protobuf service?

Douglas C Vasconcelos
- 589
- 4
- 15
1
vote
0 answers
What is the correct way to fetch elements from Akka Source Stream?
Overview
I have two microservices called warehouse-microservice (server) & grocery-microservice (client). And I'm trying to implement a streaming request & streaming response between them using the akka-grpc library. But I'm facing a problem while…

Amey Lokhande
- 402
- 5
- 11
1
vote
1 answer
Akka gRPC binding wrong port number
I am trying to run 2 different akka grpc servers however they cannot run concurrently. I try binding one server on localhost port 8080 and the other one on localhost port 8090. Separate they run fine but when I try to run them together I get the…

Dirac
- 25
- 5
1
vote
1 answer
play-grpc: AkkaGrpcClientModule is not generated
I'm trying to set test project with play framework and grpc.
My build.sbt:
enablePlugins(AkkaGrpcPlugin)
import play.grpc.gen.scaladsl.PlayScalaServerCodeGenerator
akkaGrpcExtraGenerators += PlayScalaServerCodeGenerator
libraryDependencies ++=…

Normal
- 1,347
- 4
- 17
- 34
1
vote
0 answers
Akka Grpc client many connections UNAVAILABLE: io exception
I am using akka grpc ( v 10.2.0 ),
I am creating 100 clients in parallel ( stress testing the grpc server ).
From time to time, on client side I see errors like:
o.grpc.netty.shaded.io.netty.channel.unix.Errors$NativeIoException: writevAddresses(..)…

FrancMo
- 2,459
- 2
- 19
- 39
1
vote
1 answer
Scala Play HTTP and gRPC
I have an HTTP Backend with Scala Play. Works fine.
Now I want to set up a gRPC-API on top of it (theoretical this should work).
To set gRPC up I basically followed the akka-quickstart
I can run sbt compile and get my generated Scala classes in the…

Proxy
- 41
- 1
- 6
1
vote
1 answer
How to run the akka grpc java example
Ok, following the prerequisites and instructions to use Java 8 the project creation works.
sbt new akka/akka-grpc-quickstart-java.g8
Then continuing with the guide
./gradlew compileJava works as well.
but then ./gradlew --info runServer fails with…

jteichert
- 527
- 1
- 4
- 20
1
vote
0 answers
How to implement pipeline in Akka grpc
I have a sample protobuf project in java that sends a protobuf request message to a server and gets the response using a netty channel handler, something along the lines of:
public NettyClient(String host, int port) {
this.host = host;
…

Douglas C Vasconcelos
- 589
- 4
- 15
1
vote
1 answer
Could not find a matching alpn-boot JAR for Java version: 12.0.2
Running sbt run on a Scala, akka-grpc project, based on their basic tutorial I get:
[error] [jetty-alpn-agent] Could not find a matching alpn-boot JAR for Java version: 12.0.2
Is alpn-boot not compatible with Java 12 yet? What is this trying to…

Hunor Kovács
- 1,062
- 9
- 16
1
vote
0 answers
Grpc parallel Stream communication leads to error:AkkaNettyGrpcClientGraphStage
I have two services: one that sends stream data and the second one receives it using akka-grpc for communication. When source data is provided Service one is called to process and send it to service two via grpc client. It's possible that multiple…

ArefehTam
- 367
- 1
- 6
- 20
1
vote
0 answers
Validating Proto3 with Scala using Akka-grpc
I am new to Scala. Developing my first scala App with Akka-grpc.
I have defined my proto as below :
message ApiRequest {
string email = 1;
string phone_number = 2;
int32 size = 3;
}
I want to validate my request parameters as here only…

RKP
- 750
- 2
- 12
- 23
1
vote
1 answer
How about Akka-grpc with flatbuffers, thoughts?
I have started working with Akka-GRPC using ProtoBuffers, the samples online are very clean and concise, but with Flatbuffers being faster than ProtoBuffers and GRPC stating out of box support for FlatBuffers, can we use flatbuffers with Akka-Grpc,…

Sushant Adhikari
- 21
- 4
1
vote
0 answers
AKKA gRPC - Detect stream client crash at server
I am connecting to AKKA GRPC Stream server to get the stream of messages. When the client dies/crashes for some reasons, not finding a way to detect at Server.
Is there any ErrorHandler/Callback register to get to know the client crashed?

Gajendra Naidu
- 395
- 3
- 16