-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC Client and Service code gen #16
Conversation
001422b
to
8b27d53
Compare
Referencing original discussion. |
Working on finishing up the unit test / docs. Hoping to release soon after any pending user feedback |
34102a5
to
66f5af7
Compare
66f5af7
to
2b5960e
Compare
Benchmark application added based on These are initial results. The test parameters will need further refinement. QPS BenchmarksUnary Test Args:
Server Executor: ForkJoinPool(parallelism = 4)
Server Executor: directExecutor()
Client Executor: directExecutor() & Server Executor: directExecutor()
Streaming Test Args:
Server Executor: ForkJoinPool(parallelism = 4)
Server Executor: directExecutor()
Client Executor: directExecutor() & Server Executor: directExecutor()
|
33da918
to
f090999
Compare
0b67429
to
a3b5fe7
Compare
This reverts commit 392b5c1.
This is PR introduces client stub and service impl code generation for grpc. It contains an entire overhaul of the coroutines grpc api. Its open to any feedback.
Please reference the client / server example included. It contains a sample of the expected output for discussion.
You can try out the changes by running the following command to get started with a preconfigured template project. (kotlin-coroutines-gRPC-template)
Or via the version
0.2.2-SNAPSHOT
using the following repo in your build file.And the following kroto config
Some of the key points are:
CoroutineScope
interfacegrpc-java
patterns, while still fully embracing coroutine idioms and features.SendChannel.send { }
andCompletableDeferred.complete { }
RpcMethod
annotation fromgrpc-java
. RpcMethod.javaThis change is