https://kotlinlang.org logo
Title
j

João Rodrigues

06/01/2021, 9:55 AM
Hey 👋 I'm developing a backend with Ktor, loving the framework so far! In some cases, I'll have to handle several (possibly large) responses from another backend, process them and forward them to my client. For now this is all rest, no web sockets. Is there anyway in Ktor to have a constant flow of responses to the client? Something like Spring WebFlux, I'd like to have a reactive flux of responses in Ktor. Have you ever implemented such thing with Ktor? Is it even possible as the framework stands today? Did you have success with any other framework? Thanks in advance 🙏
n

nfrankel

06/01/2021, 10:05 AM
#ktor?
j

João Rodrigues

06/01/2021, 10:11 AM
I also posed this question in ktor's channel, but given that I haven't found much literature on this topic in Ktor, I'd love to hear if folks here have implemented such a thing with other frameworks
e

edrd

06/01/2021, 12:15 PM
For the ktor->client part you may try rsocket-kotlin: https://github.com/rsocket/rsocket-kotlin
👍 1
j

João Rodrigues

06/01/2021, 1:21 PM
Didn't know about this! thank you, will check it out
🤘 1