/kotlin-coroutines-gRPC-template

gRPC Kotlin template project for getting started building clients and services using Kotlin Coroutines and kroto-plus code generation.

Primary LanguageKotlin

Kroto+

Kotlin Coroutines gRPC Template

This is a template project for getting started building gRPC clients and services using Kotlin Coroutines and kroto-plus code generation.

The template can be built and ran using the following command:

git clone https://github.com/marcoferrer/kotlin-coroutines-gRPC-template && \
cd kotlin-coroutines-gRPC-template && \
./gradlew run 

This template covers:

  • Recommeded Build Configuration
  • Implementing A Service
  • Instantiating A Client Stub
    • Attaching a coroutineContext
  • Client and Server Rpc Method Examples:
    • Unary
    • Client Streaming
    • Server Streaming
    • BiDirectional Streaming