Open patriknw opened 4 years ago
While I'd be happy to learn more about the subject, there is already a description of how to combine Actors
and Server-side stubs:
https://doc.akka.io/docs/akka-grpc/current/server/walkthrough.html#stateful-services
Just posting that here in case it was what you were referring to
That's a useful example, but the the links I provided contain more advanced usage. Especially the mapMaterializedValue
part is probably not trivial.
Perhaps we need some additional documentation to illustrate how to use Akka gRPC with actors, especially the bi-directional streaming.
In the Cluster Client example we used this on the client side:
https://github.com/akka/akka-samples/blob/f8493a8922c4f1cff9f60bb39c46823f3f1587bc/akka-sample-cluster-client-grpc-scala/src/main/scala/sample/cluster/client/grpc/ClusterClient.scala#L63-L103
and on the server side:
https://github.com/akka/akka-samples/blob/f8493a8922c4f1cff9f60bb39c46823f3f1587bc/akka-sample-cluster-client-grpc-scala/src/main/scala/sample/cluster/client/grpc/ClusterClientReceptionistGrpcImpl.scala#L26-L62