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

GauthierPLM

06/26/2019, 9:01 AM
Hello 🙂 I am new to Kotlin for backend dev and I was wondering what is the advantage of ktor compared to Spring?
t

Tsvetozar Bonev

06/26/2019, 9:04 AM
Comparing the two is kind of difficult, Spring is an entire framework encompassing different concerns of a server, while ktor mostly is a wrapper of a web server that allows you to easily setup your endpoints and filters.
Or at least that's my understanding of the two
d

Dennis Schröder

06/26/2019, 9:10 AM
I would add that ktor is much less opinionated than spring.
✔️ 1
g

GauthierPLM

06/26/2019, 9:34 AM
Okay, so ktor is what Sinatra is to Rails or Flask is to Django, right ?
☝🏼 1
d

Dennis Schröder

06/26/2019, 10:38 AM
Yes, the Flask comparison is good. I don´t know about Sinatra.