Rediscovering gRPC with Kotlin coroutines
summary
Shows that replacing gRPC Java callbacks and futures with Kotlin coroutines and channels cuts the callback hell in a bidirectional streaming microservice demo (Death Star, planet, log and score services) into straight sequential code. Uses gRPC Kotlin plus coroutine channels and an optional crota plus helper to avoid explicit coroutine launches. Flow control becomes automatic per-request when iterating channels. Libraries are early versions but the demo runs end-to-end and makes the code far simpler and easier to maintain.
AI-written summary · about
chapters (11)
- 0:00Introduction and welcome
- 3:55Why micro-services and challenges
- 7:30What is gRPC and its features
- 13:30Protocol buffers explained
- 17:54Implementing the Death Star service
- 26:11Callback hell with gRPC Java
- 29:49Rediscovering with Kotlin coroutines
- 35:13Flow control in gRPC
- 37:22Kotlin libraries for gRPC
- 41:26Key takeaways and summary
- 45:08Q&A session
related talks
42mBuilding Microservices with Kotlin and gRPC
46mBuilding Microservices with Kotlin and gRPC
41mBuilding microservices with Kotlin and gRPC
41mHandling billions of events per day with Kotlin Coroutines
41mHandling billions of events per day with Kotlin Coroutines
30mBetter asynchronous programming with Kotlin Coroutines
49mKotlin Coroutines in Practice
20mLean async code with Kotlin´s coroutines
