lagom-samples icon indicating copy to clipboard operation
lagom-samples copied to clipboard

gRPC examples: Why are .proto in `impl` and not `api`?

Open ryanhanks opened this issue 5 years ago • 2 comments

Do the samples currently demonstrate best practices around where .proto files should live?

The examples currently don't share a schema definition between the client and the implementing service. Why is that? Is this not something that we would expect to see in the api package, and then used by both the service making the client call and the service providing the handler?

ryanhanks avatar Nov 23 '19 02:11 ryanhanks

You are right about it. This should be added to the api module. I think this was just an oversight.

Thanks for reporting this.

I added this issue to the backlog, but it can take sometime before someone can find time to pick it.

Would you be interested in sending a PR?

octonato avatar Nov 28 '19 13:11 octonato

Actually, I don't think that's supported at the moment. I thought we had a specific inssue in either lagom/lagom or playframework/play-grpc` (which includes lagom support for grpc) but I could only find https://github.com/akka/akka-grpc/issues/152 (and related issues).

ignasi35 avatar Nov 29 '19 14:11 ignasi35