kotlinx.rpc – a brand new approach for multiplatform RPC | Alexander Sysoev

preview_player
Показать описание


The library is purely Kotlin, and that is more than just being written in Kotlin - we use language constructs to represent the work with the network and services. For example, we use Kotlin interfaces to declare a service and then we use its implementation to provide server functionality. This makes the setup very straightforward and also works for seamless navigation in your IDE. We utilize the power of Kotlin Multiplatform to provide the best code-sharing experience. We use coroutines to make network calls and manage request lifecycles. We forward exceptions from the server and form the stacktrace as there were no intermediate steps in between. And many more.

This talk will familiarize the audience with the library and give the knowledge of how to start using the library in their projects, making their network code even more concise and easy to understand. The audience will have a brief knowledge of how it all works internally without the need to dive deep into the source code.
Рекомендации по теме
Комментарии
Автор

its great but the only thing that sucks about this is the serialization
its pretty clear that state of the art approach is to not do any serialization, just wrap a buffer with something that can randomly access fields
like SBE, capnproto, flatbuffers... but this is fine for majority, i just don't see why not have the best of the best.

krellin