which web framework do you recommend?
# server
k
which web framework do you recommend?
c
I like Spring Boot 2, but if you want something with really Kotliny maybe ktor?
l
I second spring boot.
f
depends what you want to do with it
☝️ 4
m
doesn’t matter too much what it is; just stay away from anything that needs an app server (tomcat, websphere, etc) and you’ll be fine.
💯 2
e
use Ktor and dont look back 🙂
m
(fwiw I have adopted ktor recently and I’m pretty pleased with it)
K 2
t
@klensi what are you going to make?
k
@tipsy It’s for a api for mobile apps
m
pretty much anything will be fine, then. If this is your first time writing an http service on the jvm, just pick one and go with it and it won’t kill your project even if you picked slightly wrong. ktor, spring boot, dropwizard, spark, javalin i’m sure will all be survivable (and relatively straightforward to swap as long as you don’t bake your framework choice deep into your business logic, which you should never do anyway).
k
It depends, if you have API gateway and want to go full microservices I would recommend Java Spark( not Apache Spark ) or Ktor. If you plan to use something like authentication, security etc I would recommend SpringBoot
m
eh people have been doing authentication for a long time without spring 😉
g
We've built a mobile app API using Ratpack & Kotlin and we're pretty pleased - there was a spreadsheet floating around comparing various web libraries & frameworks and how they work under Kotlin
p
We do spring boot with kt, generally happy.