I'm thinking of trying out Ktor for this project.....
# ktor
m
I'm thinking of trying out Ktor for this project... Are there any advantages over Spring? Or should I just stick with Spring?
a
I don’t know what “this” project is. Spring and Ktor are wildly different in approach and scope. Ktor is pure Kotlin and not opinionated at all and Spring had Kotlin bolted on (and that still shows) and is very opinionated.
b
Ktor: faster startup and better performance, less opinionated, idiomatic Kotlin, no reflection Spring: more popular, more OOTB extensions, more OO / closer to Java Most people who chose Spring are working on big projects where they can quickly train up Java developers, or they're transitioning from already-existing Spring projects. People who chose Ktor are generally more interested in performance and flexibility, or they want more idiomatic Kotlin, or they're just tired of Spring.