Talking Kotlin

kotlinx.rpc

30 snips
Aug 11, 2025
In this engaging conversation, Alex Sysoev from JetBrains, who leads the Kotlin XRPC project, dives into the innovative features of the Kotlin XRPC library. He and Sebastian discuss the nuances of implementing Remote Procedure Calls in Kotlin, comparing RPC and REST, and the need for fault-tolerant services. Alex highlights the library's integration with Ktor and existing gRPC definitions, as well as its ambition to enhance interoperability within various environments. They also touch on experimental technology and the collaborative spirit of the Kotlin community.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
INSIGHT

kRPC Designed For Extensibility

  • kRPC focuses on extensibility and full Kotlin multiplatform support rather than being a stable cross-language standard.
  • Alex Sysoev notes kRPC could theoretically use diverse transports like Amazon SQS because of its abstraction.
INSIGHT

Proto Files Are Source Of Truth

  • For gRPC, .proto files remain the source of truth and generate the Kotlin interfaces you compile against.
  • You can reuse the same .proto to generate code for Python, Kotlin, and other languages to stay polyglot.
INSIGHT

Cleaner Kotlin Generation Than gRPC Java

  • Google gRPC Java generates large, hard-to-read classes from small proto files, making navigation painful.
  • kotlinx.rpc keeps Kotlin interfaces compact and shared for direct IDE navigation from client to server code.
Get the Snipd Podcast app to discover more snips from this episode
Get the app