https://kotlinlang.org logo
#ktor
Title
# ktor
j

Javier

03/12/2024, 12:57 PM
I would like to know more details about grpc and ktor. Does it plan to add some integration with protocol buffers too?
e

e5l

03/12/2024, 2:35 PM
@Alexander Sysoev could you please take a look?
a

Alexander Sysoev

03/12/2024, 2:39 PM
What do you mean by "integration with protocol buffers"? Currently we only have a prototype and we still need to evaluate how to provide a proper integration with ktor. What I can tell, is that we plan gRPC intergration to be multiplatform, both client and server, though platforms may be added one by one, starting with jvm
j

Javier

03/12/2024, 4:01 PM
Currently there are two main repositories to work with gRPC in Kotlin. The official one which provides support to codegen client and server code with protocol buffers. But only in JVM wire from Square which works in KMP (at least the client). Will ktor (with the gradle plugin or something so) provide an integration to get a project working easily with gRPC + protocol buffers?
a

Alexander Sysoev

03/12/2024, 4:12 PM
Yeah, sure, in provided integration we will have our own proto compiler, similar to how those two have it, but better suited specifically for Kotlin
j

Javier

03/12/2024, 4:12 PM
That is really nice 👍 Thank you for the info :)
👍 1
r

rnett

03/12/2024, 4:13 PM
That sounds great, will it be possible to use that complier independently from a ktor client/server?
j

Javier

03/12/2024, 4:14 PM
Is there any public repo/branch to follow the development?
a

Alexander Sysoev

03/12/2024, 4:17 PM
@rnett yes, though I don't have any details on how it will be done exactly @Javier not now, but we plan to make it public as soon as possible
j

Javier

03/12/2024, 4:18 PM
Will the compiler work with K2/FIR to generate everything in real time without running any assemble/ksp task? I think FIR does not support this use case, but it should be great if this limitation was lifted
👍 1
a

Alexander Sysoev

03/12/2024, 4:27 PM
We are considering such possibility, but I can not say for sure, if or when it will be implemented
👍 2
10 Views